Inori / FuckGalEngine

My tools to crack galgame
822 stars 146 forks source link

PackNameTxt #58

Closed imKota closed 2 years ago

imKota commented 2 years ago

Hello, @Inori!

Inori commented 2 years ago

The script is used to generate a hash table of strings, the hash value is calculated using the original Jananese text. The script stores [hash_key, translated_string] pairs in the output binary file.

Then during game runtime, the code in MinoriPatch.cpp will calculate the hash of the game's text using the same algorithm as the script does. This way, we can index the translated strings using hash value, and replace the original Japanese text with the found one.

So if the name is not displayed correctly, there must be hash match errors, possibly you are using wrong translated name pairs or wrong encodings. I can't tell you the details because I really don't remember such details after so many years... You can attach the debugger to see what's going wrong.

imKota commented 2 years ago

Thank you, for the answer. I ended up writing myself :)