Jared Posted October 13, 2006 Share Posted October 13, 2006 This was posted by me over at GTAForums here. First of all, I must thank DexX for contacting me about this, he saw it as a possibility to fix our San Andreas V2.0 modding problems involving the gta3.img file, he was unable to test it because he has version 1, I have spent the last 6 hours testing and troubleshooting his idea. And it was all worth it, GTA San Andreas Version 2.0 is now 100% moddable. So thanks to DexX, if it wasn't for him and his genius ideas, we would not have been able to make this possible.Now, there are properly mixed ideas up to this point about what this topic is about, well let me give you the overview now. Late yesterday DexX contacted me on MSN with an idea for how we might be able to make GTA San Andreas Version 2.0, which is unmoddable up to the point of game textures, models, vehicles, peds and so on that are located in the games gta3.img file. Version 2.0 of the game was released due to the Hot Coffee mod, it removed the script for the Hot Coffee scenes, as well as adding code to the games exe (executable that starts the game) that checked the file size of the gta3.img file at start up, if you had modded it an it was bigger or smaller than the size programmed into the exe, then the game would automatically crash. DexX's idea was easy to understand, why? Well because it followed the normal modding protocol for Mapping. Creating a new .img file and putting the map files in it. Then using the gta.dat file in your games install directory to have the map access this new .img file to get the files required for the map to show up in game. So after speaking to him about it for about 30 minutes, I understood what he was on about and decided to test the theory. At first testing I created a new .img file and placed it in the models folder of your games installation directory. Then I edited the first non-comment line of the gta.dat file in the data folder of the games installation directory to point to the new .img file I had created in the models folder. From here I extracted a vehicles TXD and DFF from the gta3.img file and then added them to the new .img file I had created. Now I couldn't remove the old files, because that would change the files size, thus still crashing the game. What we did know was that you could rename a file in the gta3.img and no re-build the img archive and the size would not be edited. So I used the format suggested by DexX, one that's not used by any of the game files, .old. Not only is it easy to find that way, but it stops game read problems. From this I then saved the new .img file I had created for the game as VEHICLES.img and started the game for the first test. The game did not crash, glitch or create any errors. Experiment One was a success. Now it was time for Experiment Two, to do the same steps for an already spawned vehicle so we could see if it was drivable. Experiment Two passed with flying colors. Now it was the most important experiment. I had to install a third-party vehicle modification and test it. I downloaded JVT's Hummer for San Andreas and went through the same process as before only this time adding the hummer to the new file and renaming it to another vehicles name. The experiment was a success, and you can see by the image below of me driving a Ryder's Picadoor that I had modded to be the Hummer, on San Andreas Version 2.0. Okay, that I think that's enough of the overview of what we did, now let me show you how to do it yourself and make your game, if it's GTA San Andreas Version 2.0, fully moddable. The Guide To Making GTA San Andreas V2.0 Fully Moddable: First of all, doing this is very simple, but it requires two tools, there may be more that do all the hard work for you, but these are the two I used that worked for me, so it's what I will be doing the tutorial on. Once you have done this once, you'll be able to test it out using different tools yourself. Tools Required: IMG Tool 2.0 - Allows you to rename files. Alci's IMG Editor 1.5 - Allows you to add files easily and create new .img files. Step 1: Make a backup of your games gta3.img and gta.dat files, I know you hear it all the time, but with this, it is extremely important, one slip up and you'll have to reinstall your game all over again to get the game working again. And at times you may get confused and end up making a mistake, so take don't take the risk. Backup your games gta3.img and gta.dat files. gta3.img file is located in your "models" directory in you games installation directory, which by default is "C:\Program Files\Rockstar Games\GTA San Andreas\". Then your gta.dat file is located in the "data" folder in the same installation. Step 2: Add the following line to the first line (without the quotation marks) after all the comments in the original gta.dat file (note: comments are lines that start with #): "IMG MODELS\VEHICLES.IMG" NOTE: "VEHICLES.IMG" is the new .img file you will be creating for the mods to be placed in. It can be called what ever you want, but in this guide I'm calling it "VEHICLES.IMG". Your first 7 lines of gta.dat should now look like this: # # Load IDEs first, then the models and after that the IPLs # IMG MODELS\VEHICLES.IMG IMG DATA\PATHS\CARREC.IMG IMG DATA\SCRIPT\SCRIPT.IMG IMG MODELS\CUTSCENE.IMG Step 3: Now you need to make a new .img file. Now the one down side of IMG Tool 2.0, is you can not create new .img files. So to save time, effort and problems, we will instead be using Alci's IMG Editor 1.5, which it a creat tool for this, although sadly is only available on two GTA Modding Websites. It's the only IMG Tool I have found so far that allows you to create new.img files. But of course, there is more than likely, others out there that I have not used. Open Alci's IMG Editor 1.5 (double click the .exe included with the download, Alci's IMG Editor 1.5.exe) and create a new .img file: Click File -> New to create a new .img file Now you need to add what ever files you are wanting to add to the game that would usually be put in the gta3.img file, in this case I will be adding JYC's Hummer for San Andreas Vehicle Modification to the game. So when I downloaded it and extracted the .zip file, I renamed the TXD and DFF files to the name of the vehicle I would be replacing, which in this case is the picadoor, which in the gta3.img is called picador.txd and picador.dff. Remember that there TXD and DFF file names may vary from what there game name is, so watch out for that. So I renamed the to files from landstal.txd and landstal.dff (landstal is the gta3.img's code name for Landstalker): Click Rename the files your adding to the new .img file to the name of the file they will be replacing if they we're to be placed in the gta3.img file. Step 4: Now we need to add the files to the new .img file. In Alci's IMG Editor 1.5 click "Actions -> Import" and select the files your adding and click "Open" to add them to the file: Now import them files into the new .img file Your IMG Archive should now look like this: This is how the IMG file should now look, note that it may look graphically different in different IMG Editors. Save it (Ctrl+S) to your the models directory in your games installation directory, call it what ever you called the .img file in Step 1. If it was VEHICLES.IMG like I it was for us in this guide, then that's was it needs to be named, if it was something else, then you need to back track, find the name and name it that. Step 5: Now we're nearly done, we've added the files, saved VEHICLES.IMG or what ever you decided to call it, now all that's left to do is stop the game from reading the same files as that in your new .img file that are also in the gta3.img file. How do we do this? Simple, we can rename the contents of .img files without the files size being effected (well as long as you do not rebuild the archive), so we do this: You need to find the files with the same name as those in your new .img file in the gta3.img file using IMG Tool 2.0 (this is because Alci's IMG Tool does not support file renaming in .img files), rename them to {filename}.old. The .old extension is all you need to change, this is what we use because the game does not use the .old file format extension for any game files. For example, if you we're doing adding the hummer over Ryders Picadoor like we are, you need to change picador.txd and picador.dff in your gta3.img file to picador.old and picador.old. Where picador is the name of the vehicle, skin, files, etc that your modding. Your gta3.img file should look like this to begin with (remember if your not replacing the picadoor, then the file name will be different): Using IMG Tool 2.0, select the files of the same name as the files you just added to the new .img file. The two selected files are what we will be renaming. Click "Commands -> Rename" while selecting only one of the files and change the .txd or .dff to .old. Then do the same for the next file of the same name which is usually above or below it if your viewing by "Name" and not "Offset". To change this click "Tools -> Sort -> Name". Click "Commands -> Rename" while selecting one of the files at a time and change the files extension to .old. In this case, we haves renamed the file from picadoor.dff to picadoor.old. Once you have named both the files TXD and DFF file(s) to .old you are done. Simple exit from IMG Tool 2.0, without rebuilding the archive, and you are finished and ready to play. That's how easy it is, it may look like a lot of steps but once you've done it once, you'll be fine and you'll soon be doing it just like how you do normal modding of the gta3.img on version 1 of the game. What next? I'm also soon going to begin work on a tool soon that will create a new .img file, copy the contents of the current gta3.img file into the new .img file and rename all the other ones in the gta3.img file to .old format. Meaning, you can mod your game without going through all these steps each time, because you'll be using the new .img file to replace, delete, add and rename files in. No need to even touch the gta3.img file then. Any comments, ideas, problems, etc. post here. Cheers' Link to comment Share on other sites More sharing options...
Slayer Posted October 13, 2006 Share Posted October 13, 2006 Uhm, isn't it easier to just use the downgrader? Link to comment Share on other sites More sharing options...
Jared Posted October 13, 2006 Author Share Posted October 13, 2006 Depends on if you want to or not, this is of course just another solution that doesn't require you patching your game. Link to comment Share on other sites More sharing options...
chris82 Posted October 14, 2006 Share Posted October 14, 2006 So yeah, does this work with MTASA/SA-MP/Trainers/etc... like the downgrader does? Doubt it. This doesn't look like it lets you memory hack the .exe, which is required for the above mentioned mods. Link to comment Share on other sites More sharing options...
Jared Posted October 14, 2006 Author Share Posted October 14, 2006 Oh no, of course it doesn't, memory changing would take a lot more effort then this. Link to comment Share on other sites More sharing options...
Rakim Posted October 15, 2006 Share Posted October 15, 2006 (edited) Uhm, isn't it easier to just use the downgrader? You know wut Slayer, i am with you in that sense but i have to say that being a bit of a perfectionist for the details imma give this a shot cuz i hate the fact that my game when downgraded does not show the blown up car colors and the whole rain glitch and the dirty cars thing.So if i could just use my regular game unpatched and then play the game using all of the good fixes that R* included in the release v.2 when they were tryin to do damage control for Hot Coffee" i would be happy that would be like having my cake and eating it too..Cant wait to see if it works for me too!Hell maybe even fix that delete gta set file thing Edited October 15, 2006 by Rakim Link to comment Share on other sites More sharing options...
steino Posted October 22, 2006 Share Posted October 22, 2006 ive got a problem ehrn i go to download the bottom software which you said you had to have it couldnt find the website are you sure the html is right Link to comment Share on other sites More sharing options...
Jared Posted November 16, 2006 Author Share Posted November 16, 2006 ive got a problem ehrn i go to download the bottom software which you said you had to have it couldnt find the website are you sure the html is right It changed, check the tutorial here. Cheers' . Link to comment Share on other sites More sharing options...
Jared Posted January 27, 2007 Author Share Posted January 27, 2007 Pinned for an alternative to the downgrader. Link to comment Share on other sites More sharing options...
OTownDave Posted February 23, 2009 Share Posted February 23, 2009 (edited) I use San Andreas 2.0 and use this trick to add mods to the game. I must have over 30 cars and my game still runs like a top. I have also found the same trick of converting vehicles from .dff or .txd to .old also works with textures, though i choose not to do that, san andreas has too many textures and doing all that manually takes forever. but here are some cars i have put in my game with this trick, i will also say what they replaced Chrysler 300c - Admiral Chrysler 300m - Solair Chrysler PT Cruiser - Primo Dodge Challenger - Cheetah Ford GT - Bullet 2008 Toyota Camry - Greenwood Mitsubish Lancer Eveolution - Tahoma 1988 Monte Carlo SS - Majestic 1994 Nissan 300 ZX - Elegy 2009 Volkswagen Scirocco - Flash Lamborghini Murcielago - Turismo GTA 4 Infernus - Infernus GTA 4 Comet - Comet GTA 4 Super GT - Super GT 2005 Toyota Corolla - Bravura 2005 Hyundai Elantra - Perennial 1994 Dodge Ram 2500 - Yosemite 2007 Ford F150 Double Cab - Bobcat 2006 Chevy Avalanche - Landstalker 1992 Chevy Caprice Classic - Premier 1992 Chevy Caprice Taxi - Taxi 1988 Dodge Diplomat Taxi - Cabbie 1992 Lincoln TownCar - Elegant 1995 Dodge Viper R/T - Banshee 1989 Honda Civic - Blista Compact 2009 Nissan 370Z - ZR350 1992 Chevy Camaro Iroc Z28 - Buffalo 1999 Honda Prelude - Cadrona 2005 Mazda RX8 - Club 2005 Dodge Neon - Sultan 1989 Pontiac Bonneville - Vincent 1970 AMC Javelin - Stallion 2009 Chevy Camaro - Clover 1995 Volvo A740 Wagon - Stratum 2007 Honca Civic Coupe - Previon 1993 Ford Mustang GT 5.0 2005 Mercedes S500 - Washington Theres more... I jsut cant remember them right now i jsut remember the tutorial said that there was a certain number of cars before the game is no longe rplayable, whats the limit? cuz i got a ton of cars and im donig ok PC Specs 2.4 GHZ Dual Core Processor NVidia GeForce 8300 GS 128 MB 256 MB Ram DirectX 10 SoundCard Edited February 23, 2009 by OTownDave Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now