Difference between revisions of "San Andreas v2.0 Modding"
Grayfox1992 (talk | contribs) (→Introduction) |
Grayfox1992 (talk | contribs) (→Step 2 - Registering a new archive) |
||
Line 8: | Line 8: | ||
It is highly recommended to make a backup of the ''gta3.img'' and ''gta.dat'' files, so in case of an accidental destruction they can be restored without having to reinstall the game. gta3.img is located in the "models" directory in the game's installation directory, which by default is <code>C\D:\Program Files\Rockstar Games\GTA San Andreas\</code>. The gta.dat file is located in the "data" directory. | It is highly recommended to make a backup of the ''gta3.img'' and ''gta.dat'' files, so in case of an accidental destruction they can be restored without having to reinstall the game. gta3.img is located in the "models" directory in the game's installation directory, which by default is <code>C\D:\Program Files\Rockstar Games\GTA San Andreas\</code>. The gta.dat file is located in the "data" directory. | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
==Step 3 - Creating the new archive== | ==Step 3 - Creating the new archive== |
Revision as of 14:39, 29 January 2008
This article explains how to modify the archives of the second version of GTA: San Andreas, based on the work of DexX and jarjar. [1]
Step 1 - Backup
It is highly recommended to make a backup of the gta3.img and gta.dat files, so in case of an accidental destruction they can be restored without having to reinstall the game. gta3.img is located in the "models" directory in the game's installation directory, which by default is C\D:\Program Files\Rockstar Games\GTA San Andreas\
. The gta.dat file is located in the "data" directory.
Step 3 - Creating the new archive
Now you need to make a new .img file. Now the one down side of IMG Tool 2.0 is you can't create new .img files. So to save time, effort and problems, we will instead be using Alci's IMG Editor 1.5, which is a great tool for this, although sadly is only available on two GTA Modding Websites.
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:
http://img371.imageshack.us/img371/5597/step1gu4.jpg
Click File -> New to create a new .img file
Now you need to add whatever files you want to add to the game that would usually be put in the gta3.img file, for example the .dff and .txd file for a vehicle you'd like to replace. In Alci's IMG Editor 1.5 click "Actions -> Import", select the files to add and click "Open" to add them to the file:
http://img138.imageshack.us/img138/9707/step3jg8.jpg
Now import the files into the new .img file
Save it (Ctrl+S) to the models directory in your game's installation directory, call it what ever you called the .img file in Step 1. If it was VEHICLES.IMG, 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 4 - Renaming the old files
Now we're nearly done, we've added the files, saved VEHICLES.IMG or whatever 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:
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. 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".
http://img478.imageshack.us/img478/6853/step6my4.jpg
Commands -> Rename while selecting one of the files at a time and change the files extension to .old
Once you renamed all replaced files to .old you are done. Simple exit from IMG Tool 2.0, without rebuilding the archive, and you are finished and ready to play.