mirror of
https://github.com/codestation/mhtools
synced 2024-11-10 05:44:17 +00:00
Project name change to make Vuze happy :D
This commit is contained in:
parent
ff05c55874
commit
4ae7054442
29 changed files with 61 additions and 61 deletions
2
.project
2
.project
|
@ -1,6 +1,6 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<projectDescription>
|
<projectDescription>
|
||||||
<name>mhtrans</name>
|
<name>mhtools</name>
|
||||||
<comment></comment>
|
<comment></comment>
|
||||||
<projects>
|
<projects>
|
||||||
</projects>
|
</projects>
|
||||||
|
|
28
README
28
README
|
@ -1,4 +1,4 @@
|
||||||
MH utilities - codestation
|
mhtools - MH utilities. By codestation
|
||||||
|
|
||||||
encoder/decoder number meaning to use in binary files:
|
encoder/decoder number meaning to use in binary files:
|
||||||
|
|
||||||
|
@ -6,6 +6,7 @@ encoder/decoder number meaning to use in binary files:
|
||||||
1 -> 0017, 2813-2818
|
1 -> 0017, 2813-2818
|
||||||
3 -> 4202-4204
|
3 -> 4202-4204
|
||||||
4 -> 3973-3987
|
4 -> 3973-3987
|
||||||
|
7 -> mib files between 2819-3972
|
||||||
|
|
||||||
(Older data.bin)
|
(Older data.bin)
|
||||||
1 -> 0016, 4757-4759
|
1 -> 0016, 4757-4759
|
||||||
|
@ -15,43 +16,42 @@ encoder/decoder number meaning to use in binary files:
|
||||||
7 -> mib quests
|
7 -> mib quests
|
||||||
|
|
||||||
To unpack and decrypt all the files from a container, e.g.:
|
To unpack and decrypt all the files from a container, e.g.:
|
||||||
java -jar mhtrans.jar --dec-all /home/user/data.bin output_dir
|
java -jar mhtools.jar --dec-all /home/user/data.bin output_dir
|
||||||
|
|
||||||
To extract all the string tables from a binary file, e.g.:
|
To extract all the string tables from a binary file, e.g.:
|
||||||
java -jar mhtrans.jar --extract 0017.bin 1
|
java -jar mhtools.jar --extract 0017.bin 1
|
||||||
|
|
||||||
To rebuild a new binary file using the string tables, e.g.:
|
To rebuild a new binary file using the string tables, e.g.:
|
||||||
java -jar mhtrans.jar --rebuild /home/user/0017 1
|
java -jar mhtools.jar --rebuild /home/user/0017 1
|
||||||
|
|
||||||
To encrypt a binary file, e.g.:
|
To encrypt a binary file, e.g.:
|
||||||
java -jar mhtrans.jar --encrypt 0017.bin
|
java -jar mhtools.jar --encrypt 0017.bin
|
||||||
|
|
||||||
To rebuild and encrypt, e.g.:
|
To rebuild and encrypt, e.g.:
|
||||||
java -jar mhtrans.jar --reb-enc /home/user/0017 1
|
java -jar mhtools.jar --reb-enc /home/user/0017 1
|
||||||
|
|
||||||
To decrypt a binary file, e.g.:
|
To decrypt a binary file, e.g.:
|
||||||
java -jar mhtrans.jar --decrypt 0017.bin.enc
|
java -jar mhtools.jar --decrypt 0017.bin.enc
|
||||||
|
|
||||||
To decrypt and extract, e.g.:
|
To decrypt and extract, e.g.:
|
||||||
java -jar mhtrans.jar --dec-ext 0017.bin.enc 1
|
java -jar mhtools.jar --dec-ext 0017.bin.enc 1
|
||||||
|
|
||||||
To only generate a index.bin (necessary to decrypt/encrypt), e.g.:
|
To only generate a index.bin (necessary to decrypt/encrypt), e.g.:
|
||||||
java -jar mhtrans.jar --gen-index /home/user/data.bin
|
java -jar mhtools.jar --gen-index /home/user/data.bin
|
||||||
|
|
||||||
To create a patchfile, e.g.:
|
To create a patchfile, e.g.:
|
||||||
java -jar mhtrans.jar --create-patch 0017.bin.enc 2813.bin.enc 2814.bin.enc MHP3RD_DATA.BIN
|
java -jar mhtools.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
|
(Note, it can use an optional data_install.txt to create tables that can be used in
|
||||||
patchers who can patch the data install)
|
patchers who can patch the data install)
|
||||||
|
|
||||||
To extract images from a TMH container
|
To extract images from a TMH container
|
||||||
java -jar mhtrans.jar --extract container.tmh 5
|
java -jar mhtools.jar --extract container.tmh 5
|
||||||
|
|
||||||
|
|
||||||
To pack images into a TMH container
|
To pack images into a TMH container
|
||||||
java -jar mhtrans.jar --rebuild /home/user/unpacked_countainer_dir 5
|
java -jar mhtools.jar --rebuild /home/user/unpacked_countainer_dir 5
|
||||||
|
|
||||||
To unpack a .pak file
|
To unpack a .pak file
|
||||||
java -jar mhtrans.jar --extract file.pak 6
|
java -jar mhtools.jar --extract file.pak 6
|
||||||
|
|
||||||
The KIRK related functions requires the Bouncy Castle Crypto API
|
The KIRK related functions requires the Bouncy Castle Crypto API
|
||||||
that can be downloaded from http://www.bouncycastle.org/download/bcprov-jdk16-146.jar
|
that can be downloaded from http://www.bouncycastle.org/download/bcprov-jdk16-146.jar
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
Manifest-Version: 1.0
|
Manifest-Version: 1.0
|
||||||
Sealed: true
|
Sealed: true
|
||||||
Main-Class: base.Mhtrans
|
Main-Class: base.MHTools
|
||||||
Class-Path: bcprov-jdk16-146.jar
|
Class-Path: bcprov-jdk16-146.jar
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* MHTrans - MH Utilities
|
/* MHTools - MH Utilities
|
||||||
Copyright (C) 2011 Codestation
|
Copyright (C) 2011 Codestation
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* MHTrans - MH Utilities
|
/* MHTools - MH Utilities
|
||||||
Copyright (C) 2011 Codestation
|
Copyright (C) 2011 Codestation
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* MHTrans - MH Utilities
|
/* MHTools - MH Utilities
|
||||||
Copyright (C) 2008-2011 Codestation
|
Copyright (C) 2008-2011 Codestation
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
|
@ -39,7 +39,7 @@ import enc.RebuildPluginC;
|
||||||
import enc.RebuildPluginD;
|
import enc.RebuildPluginD;
|
||||||
import enc.RebuildPluginE;
|
import enc.RebuildPluginE;
|
||||||
|
|
||||||
public class Mhtrans {
|
public class MHTools {
|
||||||
|
|
||||||
public static void extract(String filename, String decoder) {
|
public static void extract(String filename, String decoder) {
|
||||||
// (00[1-2][0-9]|47[0-9][0-9])\\..* decoder A
|
// (00[1-2][0-9]|47[0-9][0-9])\\..* decoder A
|
||||||
|
@ -118,26 +118,26 @@ public class Mhtrans {
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
System.out.println("mhtrans v2.0 - MHP2G/MHFU/MHP3 utils");
|
System.out.println("mhtools v2.0 - MHP2G/MHFU/MHP3 utils");
|
||||||
System.out.println();
|
System.out.println();
|
||||||
if (args.length < 2) {
|
if (args.length < 2) {
|
||||||
System.err.println("Usage: java -jar mhtrans.jar --extract <path to xxxx.bin> <decoder number>");
|
System.err.println("Usage: java -jar mhtools.jar --extract <path to xxxx.bin> <decoder number>");
|
||||||
System.err.println(" java -jar mhtrans.jar --rebuild <path to project folder> <encoder number>");
|
System.err.println(" java -jar mhtools.jar --rebuild <path to project folder> <encoder number>");
|
||||||
System.err.println(" java -jar mhtrans.jar --decrypt <path to xxxx.bin>");
|
System.err.println(" java -jar mhtools.jar --decrypt <path to xxxx.bin>");
|
||||||
System.err.println(" java -jar mhtrans.jar --encrypt <path to xxxx.bin>");
|
System.err.println(" java -jar mhtools.jar --encrypt <path to xxxx.bin>");
|
||||||
System.err.println(" java -jar mhtrans.jar --dec-ext <path to xxxx.bin> <decoder number>");
|
System.err.println(" java -jar mhtools.jar --dec-ext <path to xxxx.bin> <decoder number>");
|
||||||
System.err.println(" java -jar mhtrans.jar --reb-enc <path to project folder> <encoder number>");
|
System.err.println(" java -jar mhtools.jar --reb-enc <path to project folder> <encoder number>");
|
||||||
System.err.println(" java -jar mhtrans.jar --gen-index <data.bin>");
|
System.err.println(" java -jar mhtools.jar --gen-index <data.bin>");
|
||||||
System.err.println(" java -jar mhtrans.jar --dec-all <data.bin> <path to output folder>");
|
System.err.println(" java -jar mhtools.jar --dec-all <data.bin> <path to output folder>");
|
||||||
System.err.println(" java -jar mhtrans.jar --create-patch <xxxx.bin.enc> [ ... <xxxx.bin.enc>] <output_file>");
|
System.err.println(" java -jar mhtools.jar --create-patch <xxxx.bin.enc> [ ... <xxxx.bin.enc>] <output_file>");
|
||||||
System.err.println(" java -jar mhtrans.jar --decrypt-quest <mxxxxx.mib>");
|
System.err.println(" java -jar mhtools.jar --decrypt-quest <mxxxxx.mib>");
|
||||||
System.err.println(" java -jar mhtrans.jar --encrypt-quest <mxxxxx.mib>");
|
System.err.println(" java -jar mhtools.jar --encrypt-quest <mxxxxx.mib>");
|
||||||
System.err.println(" java -jar mhtrans.jar --extract-quests <xxxxxx.bin>");
|
System.err.println(" java -jar mhtools.jar --extract-quests <xxxxxx.bin>");
|
||||||
System.err.println(" java -jar mhtrans.jar --update-sha1 <mxxxxx.mib>");
|
System.err.println(" java -jar mhtools.jar --update-sha1 <mxxxxx.mib>");
|
||||||
System.err.println(" java -jar mhtrans.jar --decrypt-save <xxxxx.bin>");
|
System.err.println(" java -jar mhtools.jar --decrypt-save <xxxxx.bin>");
|
||||||
System.err.println(" java -jar mhtrans.jar --encrypt-save <xxxxx.bin>");
|
System.err.println(" java -jar mhtools.jar --encrypt-save <xxxxx.bin>");
|
||||||
System.err.println(" java -jar mhtrans.jar --decrypt-kirk <xxxxx.bin>");
|
System.err.println(" java -jar mhtools.jar --decrypt-kirk <xxxxx.bin>");
|
||||||
System.err.println(" java -jar mhtrans.jar --encrypt-kirk <xxxxx.bin>");
|
System.err.println(" java -jar mhtools.jar --encrypt-kirk <xxxxx.bin>");
|
||||||
System.exit(1);
|
System.exit(1);
|
||||||
} else {
|
} else {
|
||||||
if (args[0].equals("--extract")) {
|
if (args[0].equals("--extract")) {
|
|
@ -1,4 +1,4 @@
|
||||||
/* MHTrans - MH Utilities
|
/* MHTools - MH Utilities
|
||||||
Copyright (C) 2011 Codestation
|
Copyright (C) 2011 Codestation
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* MHTrans - MH Utilities
|
/* MHTools - MH Utilities
|
||||||
Copyright (C) 2011 Codestation
|
Copyright (C) 2011 Codestation
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* MHTrans - MH decrypter utilities
|
/* MHTools - MH decrypter utilities
|
||||||
Copyright (C) 2008-2011 Codestation
|
Copyright (C) 2008-2011 Codestation
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* MHTrans - MH data.bin/xxxx.bin decrypter
|
/* MHTools - MH data.bin/xxxx.bin decrypter
|
||||||
Copyright (C) 2008-2011 Codestation
|
Copyright (C) 2008-2011 Codestation
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* MHTrans - MH data.bin/xxxx.bin decrypter
|
/* MHTools - MH data.bin/xxxx.bin decrypter
|
||||||
Copyright (C) 2008-2011 Codestation
|
Copyright (C) 2008-2011 Codestation
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* MHTrans - KIRK savedata decrypter/encrypter
|
/* MHTools - KIRK savedata decrypter/encrypter
|
||||||
Copyright (C) 2011 Codestation
|
Copyright (C) 2011 Codestation
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* MHTrans - MH quest decrypter/encrypter
|
/* MHTools - MH quest decrypter/encrypter
|
||||||
Copyright (C) 2011 Codestation
|
Copyright (C) 2011 Codestation
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* MHTrans - MH savedata decrypter/encrypter
|
/* MHTools - MH savedata decrypter/encrypter
|
||||||
Copyright (C) 2011 Codestation
|
Copyright (C) 2011 Codestation
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* MHTrans - MHP2G 0016/0017/475x.bin language table extractor
|
/* MHTools - MHP2G 0016/0017/475x.bin language table extractor
|
||||||
Copyright (C) 2008-2011 Codestation
|
Copyright (C) 2008-2011 Codestation
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* MHTrans - MHP2G 53xx.bin language table extractor
|
/* MHTools - MHP2G 53xx.bin language table extractor
|
||||||
Copyright (C) 2008-2011 Codestation
|
Copyright (C) 2008-2011 Codestation
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* MHTrans - MHP2G 537x.bin language table extractor
|
/* MHTools - MHP2G 537x.bin language table extractor
|
||||||
Copyright (C) 2008-2011 Codestation
|
Copyright (C) 2008-2011 Codestation
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* MHTrans - MH TMH image extractor
|
/* MHTools - MH TMH image extractor
|
||||||
Copyright (C) 2011 Codestation
|
Copyright (C) 2011 Codestation
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* MHTrans - MH TMH image extractor
|
/* MHTools - MH TMH image extractor
|
||||||
Copyright (C) 2011 Codestation
|
Copyright (C) 2011 Codestation
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* MHTrans - MHP 0016/475x/0017.bin language table rebuilder
|
/* MHTools - MHP 0016/475x/0017.bin language table rebuilder
|
||||||
Copyright (C) 2008-2011 Codestation
|
Copyright (C) 2008-2011 Codestation
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* MHTrans - MHP2G 53xx.bin language table rebuilder
|
/* MHTools - MHP2G 53xx.bin language table rebuilder
|
||||||
Copyright (C) 2008-2011 Codestation
|
Copyright (C) 2008-2011 Codestation
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* MHTrans - MHP2G 537x.bin language table rebuilder
|
/* MHTools - MHP2G 537x.bin language table rebuilder
|
||||||
Copyright (C) 2008-2011 Codestation
|
Copyright (C) 2008-2011 Codestation
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* MHTrans - TMH image rebuilder
|
/* MHTools - TMH image rebuilder
|
||||||
Copyright (C) 2011 Codestation
|
Copyright (C) 2011 Codestation
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* MHTrans - PAK rebuilder
|
/* MHTools - PAK rebuilder
|
||||||
Copyright (C) 2011 Codestation
|
Copyright (C) 2011 Codestation
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* MHTrans - GIM image creator
|
/* MHTools - GIM image creator
|
||||||
Copyright (C) 2011 Codestation
|
Copyright (C) 2011 Codestation
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* MHTrans - MHP3 data keys
|
/* MHTools - MHP3 data keys
|
||||||
Copyright (C) 2011 Codestation
|
Copyright (C) 2011 Codestation
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* MHTrans - MHP3 game keys
|
/* MHTools - MHP3 game keys
|
||||||
Copyright (C) 2011 Codestation
|
Copyright (C) 2011 Codestation
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* MHTrans - MHP3 quest keys
|
/* MHTools - MHP3 quest keys
|
||||||
Copyright (C) 2011 Codestation
|
Copyright (C) 2011 Codestation
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* MHTrans - MHP3 savedata keys
|
/* MHTools - MHP3 savedata keys
|
||||||
Copyright (C) 2011 Codestation
|
Copyright (C) 2011 Codestation
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
|
|
Loading…
Reference in a new issue