mhtools icon indicating copy to clipboard operation
mhtools copied to clipboard

Extraction

Open kurochan917 opened this issue 1 year ago • 3 comments

Hello, this is not so much an issue but just a general question.

I am new to all rom hacking and everything, but I wanted to try dabbling and play with the files of MHFU inspired by the FUComplete project. When I tried to use the code to extract and decrypt all files from a container, it estimated that the extracted content would exceed 3tb of content. Is this normal, extracting a 745mb Data.bin will give me 3tb of uncompressed files?

Thank you,

kurochan917 avatar Dec 04 '24 16:12 kurochan917

Hi, not normal at all, but this tool was only tested with MHP3rd and MHFU for the PSP. Have you tried with the original (unpatched) files?

codestation avatar Dec 09 '24 15:12 codestation

Hello, Thank you for your reply.

Before reading your reply, I've only tried using your tool on the patched Bin file and the JP Bin file, which both brought on some sort of error. Now I've successfully extracted the US Bin file, which extracted perfectly without any issues, size is also 1:1 in conversion.

I originally wanted to change some texts in the game for my cousin to give him a surprise, but he plays on the patched version so that's too bad. I was then going to edit the US version and show it to him, but now I noticed that for your code to extract string table "java -jar mhtools.jar --extract 0017.bin 1" referred to a 0017.bin, but in my extracted files, 0017 is an image file. Did you use 0017 as just an example or is the US Bin extract not good either?

Thank you,

kurochan917 avatar Dec 09 '24 18:12 kurochan917

Hello, Thank you for your reply.

Before reading your reply, I've only tried using your tool on the patched Bin file and the JP Bin file, which both brought on some sort of error. Now I've successfully extracted the US Bin file, which extracted perfectly without any issues, size is also 1:1 in conversion.

I originally wanted to change some texts in the game for my cousin to give him a surprise, but he plays on the patched version so that's too bad. I was then going to edit the US version and show it to him, but now I noticed that for your code to extract string table "java -jar mhtools.jar --extract 0017.bin 1" referred to a 0017.bin, but in my extracted files, 0017 is an image file. Did you use 0017 as just an example or is the US Bin extract not good either?

Thank you,

I've just been extracting the strings from bin files in consequent order and found the english text in 0020.BIN. Shame I can't figure out how to use your mhtool on the patched game, but this is a good start. Thank you very much!

If I were to further mess with the bin files which were extracted, do I need to further decrypt them or did the initial unpack and decrypt already do the trick?

kurochan917 avatar Dec 10 '24 20:12 kurochan917