Does anyone localize games on consoles?

@jcorrea it seems you are at the point where you need to step back to verify if the tool is repacking it correctly
I mean... you are moving forward 2 steps... the portuguese file replacements, and the repacking (and one of them, or both are not working). So try to:
1) Extract original files
2) Repack
3) See if it works

The goal is to see if the game works normally after repacking it with all the original files

I been in that kind of situation before, it sucks, but is the best way to have a hint at which step of the rebuilding process is the mistake

*remember to uninstall the gamedata incase it was installed before (just incase the repacked file is used in the gamedata installation)
*and delete the contents of dev_hdd1 (or boot a different game to overwrite dev_hdd1 contents) because the game copyes files to it and sometimes that files could be an "outdated" copy of your previous tests
 
1) Extract original files
2) Repack
3) See if it works
In step 3 check also his MD5 and compare with the original... usually this packaging formats are very precise because some compression algorithms (such zlib) generates always the same identical compressed data
So it could happen that the rebuilt file (when using the original file contents) results in a MD5 identical to the original file

In that case... then the test was successful... there is no need to test the file in the console and we are completly sure the tool is working perfect
An example of this is the PSARC format (used a lot in PS3, not in this game though). If you rebuild a PSARC with the original contents and results in a MD5 identical to the original PSARC it means the method you used to rebuild it is the same used by the game company
 
In step 3 check also his MD5 and compare with the original... usually this packaging formats are very precise because some compression algorithms (such zlib) generates always the same identical compressed data
So it could happen that the rebuilt file (when using the original file contents) results in a MD5 identical to the original file

In that case... then the test was successful... there is no need to test the file in the console and we are completly sure the tool is working perfect
An example of this is the PSARC format (used a lot in PS3, not in this game though). If you rebuild a PSARC with the original contents and results in a MD5 identical to the original PSARC it means the method you used to rebuild it is the same used by the game company
I did it work. Thanks @sandungas. I tried what you suggested, but the MD5 didn't match after reimport, but with the original files, the "packed" file worked (even being different). So I started to investigate what was wrong, and discovered the fail was because I removed some xbox360 entries from the language file. Just added it again and my file also worked. To try it, I just deleted a lot of important text (because the xbox360 entries was almost 2 thousands characters and need this space to re-add those). I managed to import a bigger file changing the contents of Data00.packed in a hex editor, renaming "english.txt" to "spanish.txt" and, "spanish.txt" to "english.txt" ("spanish" and "english" string have the exact same length) . So, when I unpacked it, the english.txt (the "default" when there is no language to match your region) had the content of the spanish language (and it have more "room" for portuguese), I just changed this with mine translated file and "filled' the rest with null char ("00" in the hed editor) to match the exact file size. Both scripts worked, but mine still complains at the end (so I packed it with that script you suggested).
 
I did it work. Thanks @sandungas. I tried what you suggested, but the MD5 didn't match after reimport, but with the original files, the "packed" file worked (even being different).
Hmmm, thats a bad signal, it means the repacking script is not doing exactly the same than the original tool used by the game developers (or some metadata or timestamps or shit is missing in the extraction)
Anyway, it works so is good enought :encouragement:

So I started to investigate what was wrong, and discovered the fail was because I removed some xbox360 entries from the language file. Just added it again and my file also worked. To try it, I just deleted a lot of important text (because the xbox360 entries was almost 2 thousands characters and need this space to re-add those). I managed to import a bigger file changing the contents of Data00.packed in a hex editor, renaming "english.txt" to "spanish.txt" and, "spanish.txt" to "english.txt" ("spanish" and "english" string have the exact same length) . So, when I unpacked it, the english.txt (the "default" when there is no language to match your region) had the content of the spanish language (and it have more "room" for portuguese), I just changed this with mine translated file and "filled' the rest with null char ("00" in the hed editor) to match the exact file size. Both scripts worked, but mine still complains at the end (so I packed it with that script you suggested).
That looks tricky :D
The portuguese files was taken from the PC (or xbox360) version of the game, right ?, so are official ?... but cant be used directly on PS3 ?

What i would do is to take the official files for english from both, the PS3 version and PC version (or xbox360) and compare them in HXD hexeditor --> analysis --> compare
This should expose the differences in between platforms

Most probably the game was developed for PC originally... and for some reason they had to do some changes specific for PS3 to the text files
If you find that differences maybe is going to be easyer to "port" them
I mean... without need to modify a lot of bytes "here and there" (kind of thing you are not sure if is completly correct)... but instead it could be just a couple of steps

Dunno... im just thinking loud... at this point probably you are satisfyed enought with the result, but im mentioning it because you went so deep with it, and incase you want to see if there is some way to do a "perfect" port of the language texts

----------
Btw, you could make a xdelta patch for it
 
Last edited:
Hmmm, thats a bad signal, it means the repacking script is not doing exactly the same than the original tool used by the game developers (or some metadata or timestamps or shit is missing in the extraction)
Anyway, it works so is good enought :encouragement:


That looks tricky :D
The portuguese files was taken from the PC (or xbox360) version of the game, right ?, so are official ?... but cant be used directly on PS3 ?

What i would do is to take the official files for english from both, the PS3 version and PC version (or xbox360) and compare them in HXD hexeditor --> analysis --> compare
This should expose the differences in between platforms

Most probably the game was developed for PC originally... and for some reason they had to do some changes specific for PS3 to the text files
If you find that differences maybe is going to be easyer to "port" them
I mean... without need to modify a lot of bytes "here and there" (kind of thing you are not sure if is completly correct)... but instead it could be just a couple of steps

Dunno... im just thinking loud... at this point probably you are satisfyed enought with the result, but im mentioning it because you went so deep with it, and incase you want to see if there is some way to do a "perfect" port of the language texts

----------
Btw, you could make a xdelta patch for it
It was originally developed to PS3/X360. Then, in 2013 it was released to PC. The PC version have some new entries compared to PS3/X360. I think they share the same file beetween platforms. The differences beetween x360 and PS3 entries is because of buttons, for example: in PS3, "[[CROSS]]" and in X360, "[[A]]". PC version also have "[[KB:Jump]]". The text file is readable, it's a "tab-separated file", with the "key" name at the start of line, then a tab, then the text.

About the text file, I took it from PC version, but corrected some mistakes and removed the PC entries, letting just the same entries of the PS3 file (probably x360 also). I will make a vpatch of it.
 
Last edited:
Back
Top