2011-07-31 02:47:17 +00:00
|
|
|
mhtools - MH utilities. By codestation
|
2010-12-12 17:27:31 +00:00
|
|
|
|
|
|
|
encoder/decoder number meaning to use in binary files:
|
|
|
|
|
2010-12-12 18:23:18 +00:00
|
|
|
(Newer data.bin)
|
2010-12-12 17:27:31 +00:00
|
|
|
1 -> 0017, 2813-2818
|
2010-12-12 18:23:18 +00:00
|
|
|
3 -> 4202-4204
|
2010-12-12 17:27:31 +00:00
|
|
|
4 -> 3973-3987
|
2011-07-31 02:47:17 +00:00
|
|
|
7 -> mib files between 2819-3972
|
2010-12-12 17:27:31 +00:00
|
|
|
|
2010-12-12 18:23:18 +00:00
|
|
|
(Older data.bin)
|
|
|
|
1 -> 0016, 4757-4759
|
2010-12-12 17:27:31 +00:00
|
|
|
2 -> 5311-5323
|
|
|
|
3 -> 5370-5373
|
|
|
|
|
2011-07-24 02:08:42 +00:00
|
|
|
7 -> mib quests
|
|
|
|
|
2010-12-12 17:27:31 +00:00
|
|
|
To unpack and decrypt all the files from a container, e.g.:
|
2011-07-31 02:47:17 +00:00
|
|
|
java -jar mhtools.jar --dec-all /home/user/data.bin output_dir
|
2010-12-12 17:27:31 +00:00
|
|
|
|
|
|
|
To extract all the string tables from a binary file, e.g.:
|
2011-07-31 02:47:17 +00:00
|
|
|
java -jar mhtools.jar --extract 0017.bin 1
|
2010-12-12 17:27:31 +00:00
|
|
|
|
|
|
|
To rebuild a new binary file using the string tables, e.g.:
|
2011-07-31 02:47:17 +00:00
|
|
|
java -jar mhtools.jar --rebuild /home/user/0017 1
|
2010-12-12 17:27:31 +00:00
|
|
|
|
|
|
|
To encrypt a binary file, e.g.:
|
2011-07-31 02:47:17 +00:00
|
|
|
java -jar mhtools.jar --encrypt 0017.bin
|
2010-12-12 17:27:31 +00:00
|
|
|
|
|
|
|
To rebuild and encrypt, e.g.:
|
2011-07-31 02:47:17 +00:00
|
|
|
java -jar mhtools.jar --reb-enc /home/user/0017 1
|
2010-12-12 17:27:31 +00:00
|
|
|
|
|
|
|
To decrypt a binary file, e.g.:
|
2011-07-31 02:47:17 +00:00
|
|
|
java -jar mhtools.jar --decrypt 0017.bin.enc
|
2010-12-12 17:27:31 +00:00
|
|
|
|
|
|
|
To decrypt and extract, e.g.:
|
2011-07-31 02:47:17 +00:00
|
|
|
java -jar mhtools.jar --dec-ext 0017.bin.enc 1
|
2010-12-12 17:27:31 +00:00
|
|
|
|
|
|
|
To only generate a index.bin (necessary to decrypt/encrypt), e.g.:
|
2011-07-31 02:47:17 +00:00
|
|
|
java -jar mhtools.jar --gen-index /home/user/data.bin
|
2010-12-20 12:41:53 +00:00
|
|
|
|
|
|
|
To create a patchfile, e.g.:
|
2011-07-31 02:47:17 +00:00
|
|
|
java -jar mhtools.jar --create-patch 0017.bin.enc 2813.bin.enc 2814.bin.enc MHP3RD_DATA.BIN
|
2011-01-02 19:48:30 +00:00
|
|
|
(Note, it can use an optional data_install.txt to create tables that can be used in
|
|
|
|
patchers who can patch the data install)
|
2011-01-17 15:56:29 +00:00
|
|
|
|
|
|
|
To extract images from a TMH container
|
2011-07-31 02:47:17 +00:00
|
|
|
java -jar mhtools.jar --extract container.tmh 5
|
2011-01-17 15:56:29 +00:00
|
|
|
|
|
|
|
To pack images into a TMH container
|
2011-07-31 02:47:17 +00:00
|
|
|
java -jar mhtools.jar --rebuild /home/user/unpacked_countainer_dir 5
|
2011-01-17 15:56:29 +00:00
|
|
|
|
|
|
|
To unpack a .pak file
|
2011-07-31 02:47:17 +00:00
|
|
|
java -jar mhtools.jar --extract file.pak 6
|
2011-03-01 22:20:07 +00:00
|
|
|
|
2011-07-24 02:08:42 +00:00
|
|
|
The KIRK related functions requires the Bouncy Castle Crypto API
|
2011-03-01 22:20:07 +00:00
|
|
|
that can be downloaded from http://www.bouncycastle.org/download/bcprov-jdk16-146.jar
|
|
|
|
|
2011-07-24 02:08:42 +00:00
|
|
|
The PSP Crypto engine and AES wrapper comes from the Jpcsp project.
|