Post by mina on Nov 8, 2014 12:02:00 GMT 10
I made this thread so the process and tools for modding will not be forgotten.
Disclaimer: I did not make these tools myself.
TOOLS
GCA Extractor
DAT Extractor
DAT Injector
DAT Repacker
Download
EXTRACTING
There are two types of .dat files in Resident Evil 4.
Main dat files :: These .dat files are found on the main folder. (Example: em.dat, st1.dat, xfile.dat)
Sub dat files :: These .dat files are found inside the Main dat files. (Example: pl00.dat, pl0.dat)
Extracting Main dat files:
Create a backup of the main dat files in case something goes wrong.
Rename the file from .dat to .gca. (Example: em.dat should become em.gca)
Now you can finally extract it using the GCA Extractor.
Note: after extracting it, you will have a folder with the same name as the gca,
it will have the Sub dat files inside. After you modify those, you don't have
to repack the folder to become a gca again . You can just leave it as is,
and the game will still recognize it.
Extracting Sub dat files:
Put the .dat file you want to extract on the same folder where the DAT Extractor is.
Run DAT Extractor, the one with the logo.
Type: datextract [name of dat file]
Example: datextract pl00.dat
INJECTING
Injecting is when you put a file directly inside a .dat file without extracting and repacking the said .dat file.
In short, this is better method than repacking.
Put the file (example: animation file like 117_pl00.FCV) inside the same folder as the DAT Injector.
Run DAT Injector, the one with the logo.
Type: datinject [name of dat file you want to inject to] [name of file you want to inject to the dat file] [index position]
Example: datinject pl0a.dat RadioTransmission.FCV 117
REPACKING
This method is not really needed because injecting is much easier. But in case you prefer
this and for the sake of not letting this method be forgotten, I'll write the instruction.
Put the folder you want to repack on the same folder as the DAT Repacker.
Run DAT Repacker, and type: datrepack [datname]\[datname].index
Example: datrepack pl00\pl00.index
FAQ
I can't change the file type! It becomes em.gca.dat instead of em.gca. What should I do?
You must change the settings of your Folder Option. To do this, click tools >> Folder Option
>> View (tab) >> Uncheck "Hide extensions from known file types"
The DAT Extractor/Injector isn't working, what's wrong?
Make sure you have Java 7u25 or else it won't work. You can get it here.
Download the 64installer or the 32installer. Install it and restart.
If it still doesn't work, go to Control Panel >> Region and Language >> Administrative (tab) >>
Change system locale >> Set it to English (United States). Then restart your pc again.
Disclaimer: I did not make these tools myself.
TOOLS
GCA Extractor
DAT Extractor
DAT Injector
DAT Repacker
Download
EXTRACTING
There are two types of .dat files in Resident Evil 4.
Main dat files :: These .dat files are found on the main folder. (Example: em.dat, st1.dat, xfile.dat)
Sub dat files :: These .dat files are found inside the Main dat files. (Example: pl00.dat, pl0.dat)
Extracting Main dat files:
Create a backup of the main dat files in case something goes wrong.
Rename the file from .dat to .gca. (Example: em.dat should become em.gca)
Now you can finally extract it using the GCA Extractor.
Note: after extracting it, you will have a folder with the same name as the gca,
it will have the Sub dat files inside. After you modify those, you don't have
to repack the folder to become a gca again . You can just leave it as is,
and the game will still recognize it.
Extracting Sub dat files:
Put the .dat file you want to extract on the same folder where the DAT Extractor is.
Run DAT Extractor, the one with the logo.
Type: datextract [name of dat file]
Example: datextract pl00.dat
INJECTING
Injecting is when you put a file directly inside a .dat file without extracting and repacking the said .dat file.
In short, this is better method than repacking.
Put the file (example: animation file like 117_pl00.FCV) inside the same folder as the DAT Injector.
Run DAT Injector, the one with the logo.
Type: datinject [name of dat file you want to inject to] [name of file you want to inject to the dat file] [index position]
Example: datinject pl0a.dat RadioTransmission.FCV 117
REPACKING
This method is not really needed because injecting is much easier. But in case you prefer
this and for the sake of not letting this method be forgotten, I'll write the instruction.
Put the folder you want to repack on the same folder as the DAT Repacker.
Run DAT Repacker, and type: datrepack [datname]\[datname].index
Example: datrepack pl00\pl00.index
FAQ
I can't change the file type! It becomes em.gca.dat instead of em.gca. What should I do?
You must change the settings of your Folder Option. To do this, click tools >> Folder Option
>> View (tab) >> Uncheck "Hide extensions from known file types"
The DAT Extractor/Injector isn't working, what's wrong?
Make sure you have Java 7u25 or else it won't work. You can get it here.
Download the 64installer or the 32installer. Install it and restart.
If it still doesn't work, go to Control Panel >> Region and Language >> Administrative (tab) >>
Change system locale >> Set it to English (United States). Then restart your pc again.