Hello everyone.
I am working on translating the Last Ranker, a PSP game. The game text is already translated by "Englishsubs4all", and I already found and extracted the text files and manually translated the intro and the tutorial and they work well. Now I am planning on writing a tool for the translation, but I am having trouble with the null character. The files are in utf-8 format and as with most PSP games, all strings are tailed by a null character. My problem is that when I shift the null character to make a string shorter while the adjacent string longer - the file size stay the same- the game does not allow that and it crashes when the shifted null string is reached to be displayed.
Is there a way to shift the null character to lengthen a string size that needs more space by reducing the other that doesn't? I can continue writing a tool that deals with constant size strings, but that would be a pain to change the translation just because the string is too small.
When I add a null in the middle of the string, the game display the first half the string, then jumps to the next string skipping the other half without crashing which rules out that game is using either using string length and displaying strings sequentially. It was suggested to me that the game may use offset for strings, but I cannot find their locations.
a sample of the files can be found here:
http://wikisend.com/download/169400/MAP_T_KAN_00
I am working on translating the Last Ranker, a PSP game. The game text is already translated by "Englishsubs4all", and I already found and extracted the text files and manually translated the intro and the tutorial and they work well. Now I am planning on writing a tool for the translation, but I am having trouble with the null character. The files are in utf-8 format and as with most PSP games, all strings are tailed by a null character. My problem is that when I shift the null character to make a string shorter while the adjacent string longer - the file size stay the same- the game does not allow that and it crashes when the shifted null string is reached to be displayed.
Is there a way to shift the null character to lengthen a string size that needs more space by reducing the other that doesn't? I can continue writing a tool that deals with constant size strings, but that would be a pain to change the translation just because the string is too small.
When I add a null in the middle of the string, the game display the first half the string, then jumps to the next string skipping the other half without crashing which rules out that game is using either using string length and displaying strings sequentially. It was suggested to me that the game may use offset for strings, but I cannot find their locations.
a sample of the files can be found here:
http://wikisend.com/download/169400/MAP_T_KAN_00