Hacking Looking for help trimming down globals.bin file size in Yakuza PSP games

AugmentedSmoke

Active Member
OP
Newcomer
Joined
Feb 3, 2021
Messages
38
Trophies
0
Age
36
XP
520
Country
Australia
Hey there, I'm currently working with a team to try and figure out how to translate Kurohyou 2, the second Yakuza PSP game that was unfortunately JP only.

So far things are going well but we've hit an issue and it's been very difficult to think of a solution so far. So basically the file globals.bin is an ELPK archive that has some important stuff in it like the games font files and text files that hold things like menu text, item names and descriptions, etc. We have a program that extracts the text file to a .csv and then a program that repacks it back and that has no issues currently.

The issue is that when adding English text over the Japanese is that because of the extra characters, the file size increases and if it increases 1KB more than the original files size of 2.328MB the game will crash on initial load. Based off forum posts from the translation team for the original game it seems like its a memory issue. The first thought would be to switch the encoding and although it may have to come to that we'd like to avoid it if possible since it causes issues with fonts rendering correctly and makes all Japanese characters turn into asterisks (the file encoding is UTF16 LE currently).

Is there any way to compress the file or remove some of its file size without removing content? Any help is really appreciated!

I've attached both the original and edited version of the files in case thats of any help.
 
  • Like
Reactions: Henchman1

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    SylverReZ @ SylverReZ: https://www.youtube.com/watch?v=3eGAHfC5P-Y