From 4ae70544427f528015c6dfe04188ea5715b7b00b Mon Sep 17 00:00:00 2001 From: codestation Date: Sat, 30 Jul 2011 22:17:17 -0430 Subject: [PATCH] Project name change to make Vuze happy :D --- .project | 2 +- README | 28 ++++++++--------- manifest.txt | 2 +- src/base/HelperDec.java | 2 +- src/base/HelperEnc.java | 2 +- src/base/{Mhtrans.java => MHTools.java} | 40 ++++++++++++------------- src/base/MHUtils.java | 2 +- src/base/PatchBuilder.java | 2 +- src/crypt/DecryptUtils.java | 2 +- src/crypt/Decrypter.java | 2 +- src/crypt/Encrypter.java | 2 +- src/crypt/KirkCypher.java | 2 +- src/crypt/QuestCypher.java | 2 +- src/crypt/SavedataCypher.java | 2 +- src/dec/ExtractPluginA.java | 2 +- src/dec/ExtractPluginB.java | 2 +- src/dec/ExtractPluginC.java | 2 +- src/dec/ExtractPluginD.java | 2 +- src/dec/ExtractPluginE.java | 2 +- src/enc/RebuildPluginA.java | 2 +- src/enc/RebuildPluginB.java | 2 +- src/enc/RebuildPluginC.java | 2 +- src/enc/RebuildPluginD.java | 2 +- src/enc/RebuildPluginE.java | 2 +- src/img/Gim.java | 2 +- src/keys/DataKeys.java | 2 +- src/keys/GameKeys.java | 2 +- src/keys/QuestKeys.java | 2 +- src/keys/SavedataKeys.java | 2 +- 29 files changed, 61 insertions(+), 61 deletions(-) rename src/base/{Mhtrans.java => MHTools.java} (87%) diff --git a/.project b/.project index 9d04275..fe0e679 100644 --- a/.project +++ b/.project @@ -1,6 +1,6 @@ - mhtrans + mhtools diff --git a/README b/README index a683677..3a7dfe6 100644 --- a/README +++ b/README @@ -1,4 +1,4 @@ -MH utilities - codestation +mhtools - MH utilities. By codestation 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 3 -> 4202-4204 4 -> 3973-3987 +7 -> mib files between 2819-3972 (Older data.bin) 1 -> 0016, 4757-4759 @@ -15,43 +16,42 @@ encoder/decoder number meaning to use in binary files: 7 -> mib quests 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.: -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.: -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.: -java -jar mhtrans.jar --encrypt 0017.bin +java -jar mhtools.jar --encrypt 0017.bin 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.: -java -jar mhtrans.jar --decrypt 0017.bin.enc +java -jar mhtools.jar --decrypt 0017.bin.enc 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.: -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.: -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 patchers who can patch the data install) 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 -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 -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 that can be downloaded from http://www.bouncycastle.org/download/bcprov-jdk16-146.jar diff --git a/manifest.txt b/manifest.txt index 163f6e6..998801e 100644 --- a/manifest.txt +++ b/manifest.txt @@ -1,5 +1,5 @@ Manifest-Version: 1.0 Sealed: true -Main-Class: base.Mhtrans +Main-Class: base.MHTools Class-Path: bcprov-jdk16-146.jar diff --git a/src/base/HelperDec.java b/src/base/HelperDec.java index 72634c7..603f3ff 100644 --- a/src/base/HelperDec.java +++ b/src/base/HelperDec.java @@ -1,4 +1,4 @@ -/* MHTrans - MH Utilities +/* MHTools - MH Utilities Copyright (C) 2011 Codestation This program is free software: you can redistribute it and/or modify diff --git a/src/base/HelperEnc.java b/src/base/HelperEnc.java index 6e79bd1..791e7cf 100644 --- a/src/base/HelperEnc.java +++ b/src/base/HelperEnc.java @@ -1,4 +1,4 @@ -/* MHTrans - MH Utilities +/* MHTools - MH Utilities Copyright (C) 2011 Codestation This program is free software: you can redistribute it and/or modify diff --git a/src/base/Mhtrans.java b/src/base/MHTools.java similarity index 87% rename from src/base/Mhtrans.java rename to src/base/MHTools.java index d20cbd5..eeb31a1 100644 --- a/src/base/Mhtrans.java +++ b/src/base/MHTools.java @@ -1,4 +1,4 @@ -/* MHTrans - MH Utilities +/* MHTools - MH Utilities Copyright (C) 2008-2011 Codestation This program is free software: you can redistribute it and/or modify @@ -39,7 +39,7 @@ import enc.RebuildPluginC; import enc.RebuildPluginD; import enc.RebuildPluginE; -public class Mhtrans { +public class MHTools { public static void extract(String filename, String decoder) { // (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) { - System.out.println("mhtrans v2.0 - MHP2G/MHFU/MHP3 utils"); + System.out.println("mhtools v2.0 - MHP2G/MHFU/MHP3 utils"); System.out.println(); if (args.length < 2) { - System.err.println("Usage: java -jar mhtrans.jar --extract "); - System.err.println(" java -jar mhtrans.jar --rebuild "); - System.err.println(" java -jar mhtrans.jar --decrypt "); - System.err.println(" java -jar mhtrans.jar --encrypt "); - System.err.println(" java -jar mhtrans.jar --dec-ext "); - System.err.println(" java -jar mhtrans.jar --reb-enc "); - System.err.println(" java -jar mhtrans.jar --gen-index "); - System.err.println(" java -jar mhtrans.jar --dec-all "); - System.err.println(" java -jar mhtrans.jar --create-patch [ ... ] "); - System.err.println(" java -jar mhtrans.jar --decrypt-quest "); - System.err.println(" java -jar mhtrans.jar --encrypt-quest "); - System.err.println(" java -jar mhtrans.jar --extract-quests "); - System.err.println(" java -jar mhtrans.jar --update-sha1 "); - System.err.println(" java -jar mhtrans.jar --decrypt-save "); - System.err.println(" java -jar mhtrans.jar --encrypt-save "); - System.err.println(" java -jar mhtrans.jar --decrypt-kirk "); - System.err.println(" java -jar mhtrans.jar --encrypt-kirk "); + System.err.println("Usage: java -jar mhtools.jar --extract "); + System.err.println(" java -jar mhtools.jar --rebuild "); + System.err.println(" java -jar mhtools.jar --decrypt "); + System.err.println(" java -jar mhtools.jar --encrypt "); + System.err.println(" java -jar mhtools.jar --dec-ext "); + System.err.println(" java -jar mhtools.jar --reb-enc "); + System.err.println(" java -jar mhtools.jar --gen-index "); + System.err.println(" java -jar mhtools.jar --dec-all "); + System.err.println(" java -jar mhtools.jar --create-patch [ ... ] "); + System.err.println(" java -jar mhtools.jar --decrypt-quest "); + System.err.println(" java -jar mhtools.jar --encrypt-quest "); + System.err.println(" java -jar mhtools.jar --extract-quests "); + System.err.println(" java -jar mhtools.jar --update-sha1 "); + System.err.println(" java -jar mhtools.jar --decrypt-save "); + System.err.println(" java -jar mhtools.jar --encrypt-save "); + System.err.println(" java -jar mhtools.jar --decrypt-kirk "); + System.err.println(" java -jar mhtools.jar --encrypt-kirk "); System.exit(1); } else { if (args[0].equals("--extract")) { diff --git a/src/base/MHUtils.java b/src/base/MHUtils.java index 3136550..1bedc85 100644 --- a/src/base/MHUtils.java +++ b/src/base/MHUtils.java @@ -1,4 +1,4 @@ -/* MHTrans - MH Utilities +/* MHTools - MH Utilities Copyright (C) 2011 Codestation This program is free software: you can redistribute it and/or modify diff --git a/src/base/PatchBuilder.java b/src/base/PatchBuilder.java index fa07285..ac9a257 100644 --- a/src/base/PatchBuilder.java +++ b/src/base/PatchBuilder.java @@ -1,4 +1,4 @@ -/* MHTrans - MH Utilities +/* MHTools - MH Utilities Copyright (C) 2011 Codestation This program is free software: you can redistribute it and/or modify diff --git a/src/crypt/DecryptUtils.java b/src/crypt/DecryptUtils.java index 7b21f1c..a51b4c3 100644 --- a/src/crypt/DecryptUtils.java +++ b/src/crypt/DecryptUtils.java @@ -1,4 +1,4 @@ -/* MHTrans - MH decrypter utilities +/* MHTools - MH decrypter utilities Copyright (C) 2008-2011 Codestation This program is free software: you can redistribute it and/or modify diff --git a/src/crypt/Decrypter.java b/src/crypt/Decrypter.java index 64bb658..bbb434a 100644 --- a/src/crypt/Decrypter.java +++ b/src/crypt/Decrypter.java @@ -1,4 +1,4 @@ -/* MHTrans - MH data.bin/xxxx.bin decrypter +/* MHTools - MH data.bin/xxxx.bin decrypter Copyright (C) 2008-2011 Codestation This program is free software: you can redistribute it and/or modify diff --git a/src/crypt/Encrypter.java b/src/crypt/Encrypter.java index 86f28f3..345311b 100644 --- a/src/crypt/Encrypter.java +++ b/src/crypt/Encrypter.java @@ -1,4 +1,4 @@ -/* MHTrans - MH data.bin/xxxx.bin decrypter +/* MHTools - MH data.bin/xxxx.bin decrypter Copyright (C) 2008-2011 Codestation This program is free software: you can redistribute it and/or modify diff --git a/src/crypt/KirkCypher.java b/src/crypt/KirkCypher.java index 0eb05c4..d074ce1 100644 --- a/src/crypt/KirkCypher.java +++ b/src/crypt/KirkCypher.java @@ -1,4 +1,4 @@ -/* MHTrans - KIRK savedata decrypter/encrypter +/* MHTools - KIRK savedata decrypter/encrypter Copyright (C) 2011 Codestation This program is free software: you can redistribute it and/or modify diff --git a/src/crypt/QuestCypher.java b/src/crypt/QuestCypher.java index a1d0805..647b764 100644 --- a/src/crypt/QuestCypher.java +++ b/src/crypt/QuestCypher.java @@ -1,4 +1,4 @@ -/* MHTrans - MH quest decrypter/encrypter +/* MHTools - MH quest decrypter/encrypter Copyright (C) 2011 Codestation This program is free software: you can redistribute it and/or modify diff --git a/src/crypt/SavedataCypher.java b/src/crypt/SavedataCypher.java index 0d76949..98cddba 100644 --- a/src/crypt/SavedataCypher.java +++ b/src/crypt/SavedataCypher.java @@ -1,4 +1,4 @@ -/* MHTrans - MH savedata decrypter/encrypter +/* MHTools - MH savedata decrypter/encrypter Copyright (C) 2011 Codestation This program is free software: you can redistribute it and/or modify diff --git a/src/dec/ExtractPluginA.java b/src/dec/ExtractPluginA.java index f5c3483..9350fb0 100644 --- a/src/dec/ExtractPluginA.java +++ b/src/dec/ExtractPluginA.java @@ -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 This program is free software: you can redistribute it and/or modify diff --git a/src/dec/ExtractPluginB.java b/src/dec/ExtractPluginB.java index 4e00559..21baa39 100644 --- a/src/dec/ExtractPluginB.java +++ b/src/dec/ExtractPluginB.java @@ -1,4 +1,4 @@ -/* MHTrans - MHP2G 53xx.bin language table extractor +/* MHTools - MHP2G 53xx.bin language table extractor Copyright (C) 2008-2011 Codestation This program is free software: you can redistribute it and/or modify diff --git a/src/dec/ExtractPluginC.java b/src/dec/ExtractPluginC.java index b097d69..5be9e50 100644 --- a/src/dec/ExtractPluginC.java +++ b/src/dec/ExtractPluginC.java @@ -1,4 +1,4 @@ -/* MHTrans - MHP2G 537x.bin language table extractor +/* MHTools - MHP2G 537x.bin language table extractor Copyright (C) 2008-2011 Codestation This program is free software: you can redistribute it and/or modify diff --git a/src/dec/ExtractPluginD.java b/src/dec/ExtractPluginD.java index 7fa086f..72cc6ae 100644 --- a/src/dec/ExtractPluginD.java +++ b/src/dec/ExtractPluginD.java @@ -1,4 +1,4 @@ -/* MHTrans - MH TMH image extractor +/* MHTools - MH TMH image extractor Copyright (C) 2011 Codestation This program is free software: you can redistribute it and/or modify diff --git a/src/dec/ExtractPluginE.java b/src/dec/ExtractPluginE.java index 7690b72..ccc815f 100644 --- a/src/dec/ExtractPluginE.java +++ b/src/dec/ExtractPluginE.java @@ -1,4 +1,4 @@ -/* MHTrans - MH TMH image extractor +/* MHTools - MH TMH image extractor Copyright (C) 2011 Codestation This program is free software: you can redistribute it and/or modify diff --git a/src/enc/RebuildPluginA.java b/src/enc/RebuildPluginA.java index cf8ef37..c1f3560 100644 --- a/src/enc/RebuildPluginA.java +++ b/src/enc/RebuildPluginA.java @@ -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 This program is free software: you can redistribute it and/or modify diff --git a/src/enc/RebuildPluginB.java b/src/enc/RebuildPluginB.java index f716429..5c60be3 100644 --- a/src/enc/RebuildPluginB.java +++ b/src/enc/RebuildPluginB.java @@ -1,4 +1,4 @@ -/* MHTrans - MHP2G 53xx.bin language table rebuilder +/* MHTools - MHP2G 53xx.bin language table rebuilder Copyright (C) 2008-2011 Codestation This program is free software: you can redistribute it and/or modify diff --git a/src/enc/RebuildPluginC.java b/src/enc/RebuildPluginC.java index e1b4834..88bfa17 100644 --- a/src/enc/RebuildPluginC.java +++ b/src/enc/RebuildPluginC.java @@ -1,4 +1,4 @@ -/* MHTrans - MHP2G 537x.bin language table rebuilder +/* MHTools - MHP2G 537x.bin language table rebuilder Copyright (C) 2008-2011 Codestation This program is free software: you can redistribute it and/or modify diff --git a/src/enc/RebuildPluginD.java b/src/enc/RebuildPluginD.java index eb8e6f0..53ce47d 100644 --- a/src/enc/RebuildPluginD.java +++ b/src/enc/RebuildPluginD.java @@ -1,4 +1,4 @@ -/* MHTrans - TMH image rebuilder +/* MHTools - TMH image rebuilder Copyright (C) 2011 Codestation This program is free software: you can redistribute it and/or modify diff --git a/src/enc/RebuildPluginE.java b/src/enc/RebuildPluginE.java index 0c8425e..1796fcc 100644 --- a/src/enc/RebuildPluginE.java +++ b/src/enc/RebuildPluginE.java @@ -1,4 +1,4 @@ -/* MHTrans - PAK rebuilder +/* MHTools - PAK rebuilder Copyright (C) 2011 Codestation This program is free software: you can redistribute it and/or modify diff --git a/src/img/Gim.java b/src/img/Gim.java index afd880d..7fd4a84 100644 --- a/src/img/Gim.java +++ b/src/img/Gim.java @@ -1,4 +1,4 @@ -/* MHTrans - GIM image creator +/* MHTools - GIM image creator Copyright (C) 2011 Codestation This program is free software: you can redistribute it and/or modify diff --git a/src/keys/DataKeys.java b/src/keys/DataKeys.java index 6ed19d3..994b4f5 100644 --- a/src/keys/DataKeys.java +++ b/src/keys/DataKeys.java @@ -1,4 +1,4 @@ -/* MHTrans - MHP3 data keys +/* MHTools - MHP3 data keys Copyright (C) 2011 Codestation This program is free software: you can redistribute it and/or modify diff --git a/src/keys/GameKeys.java b/src/keys/GameKeys.java index ef5c144..354c91a 100644 --- a/src/keys/GameKeys.java +++ b/src/keys/GameKeys.java @@ -1,4 +1,4 @@ -/* MHTrans - MHP3 game keys +/* MHTools - MHP3 game keys Copyright (C) 2011 Codestation This program is free software: you can redistribute it and/or modify diff --git a/src/keys/QuestKeys.java b/src/keys/QuestKeys.java index 51628f3..756e317 100644 --- a/src/keys/QuestKeys.java +++ b/src/keys/QuestKeys.java @@ -1,4 +1,4 @@ -/* MHTrans - MHP3 quest keys +/* MHTools - MHP3 quest keys Copyright (C) 2011 Codestation This program is free software: you can redistribute it and/or modify diff --git a/src/keys/SavedataKeys.java b/src/keys/SavedataKeys.java index 2d32a07..fc69d7f 100644 --- a/src/keys/SavedataKeys.java +++ b/src/keys/SavedataKeys.java @@ -1,4 +1,4 @@ -/* MHTrans - MHP3 savedata keys +/* MHTools - MHP3 savedata keys Copyright (C) 2011 Codestation This program is free software: you can redistribute it and/or modify