No description
Find a file
codestation fce2d43421 Major code refactoring: moved read/write functions in their own
class (EndianFixed), converted Decoder/Encoder classes into
interfaces.
Added support for extract/rebuild TMH containers.
Added jar manifest.
2011-01-17 06:15:19 +00:00
src Major code refactoring: moved read/write functions in their own 2011-01-17 06:15:19 +00:00
.classpath first commit 2010-12-12 17:12:44 +00:00
.gitignore first commit 2010-12-12 17:12:44 +00:00
.project first commit 2010-12-12 17:12:44 +00:00
COPYING Added LICENSE and README 2010-12-12 17:27:31 +00:00
data_install.txt Major code refactoring: moved read/write functions in their own 2011-01-17 06:15:19 +00:00
manifest.txt Major code refactoring: moved read/write functions in their own 2011-01-17 06:15:19 +00:00
README Added support for data install in the creation of patchfiles 2011-01-02 19:48:30 +00:00

MH string tables unpacker/rebuilder/encrypter/decrypter.

encoder/decoder number meaning to use in binary files:

(Newer data.bin)
1 -> 0017, 2813-2818
3 -> 4202-4204
4 -> 3973-3987

(Older data.bin)
1 -> 0016, 4757-4759
2 -> 5311-5323
3 -> 5370-5373

To unpack and decrypt all the files from a container, e.g.:
java -jar mhtrans.jar --dec-all /home/user/data.bin output_dir

To extract all the string tables from a binary file, e.g.:
java -jar mhtrans.jar --extract 0017.bin 1

To rebuild a new binary file using the string tables, e.g.:
java -jar mhtrans.jar --rebuild /home/user/0017 1

To encrypt a binary file, e.g.:
java -jar mhtrans.jar --encrypt 0017.bin

To rebuild and encrypt, e.g.:
java -jar mhtrans.jar --reb-enc /home/user/0017 1

To decrypt a binary file, e.g.:
java -jar mhtrans.jar --decrypt 0017.bin.enc

To decrypt and extract, e.g.:
java -jar mhtrans.jar --dec-ext 0017.bin.enc 1

To only generate a index.bin (necessary to decrypt/encrypt), e.g.:
java -jar mhtrans.jar --gen-index /home/user/data.bin

To create a patchfile, e.g.:
java -jar mhtrans.jar --create-patch 0017.bin.enc 2813.bin.enc 2814.bin.enc MHP3RD_DATA.BIN
(Note, it can use an optional data_install.txt to create tables that can be used in
patchers who can patch the data install)