kurisunyanyan wrote:How can I reimport these gop file? I tried using quickbms to repack those files, but it didn't work in rpcs3.
It would be greatly appreciated if you could answer this question.
Trying to remember what I did.
To extract the gop txt file:
copy data.dat to a temp location
mkdir data_off2
quickbms.exe macross_pidx_offset2.bms data.dat data_off2\
- you will get a bunch of files under data_off2\ directory. delete everything except a file named "gop"
mkdir gop_mod
quickbms.exe macross_fsts.bms data_off2\gop gop_mod\
- you should find a bunch of .gop file under gop_mod\data\gop\ . delete all the .gop except the one that you want to translate (i.e. gop_battletext.gop).
Translate and modify content of that gop file. The text strings position is guarded by a offset table. If you change a string's starting file offset the corresponding offset table entry need to be updated. that is why this is best done with a specialize script.
P.S. So far I can only modify text string inside .gop file text section but not changing the section size. Changing starting position of each text strings is okay as long as the corresponding offset entries in the file header are updated. some translated text is longer than the original Japanese text, some shorter. So far the combine size did not exceed the original text section size. If gop file size is altered the game will not run. Also, if the translated gop file compressed to a bigger size than the original gop, quickbms's re-import workaround may also cause game to crash. So far I haven't have any compress file size issue with the translated gop file I tested.
To repack the modified file:
quickbms.exe -w -r macross_fsts.bms data_off2\gop gop_mod\
- you should see a message saying the modified file(s) was/were re-imported to gop
quickbms.exe -w -r macross_pidx_offset2.bms data.dat data_off2\
- you should see a message the "gop" archive was re-imported back to data.dat
copy this data.dat to you emulator hard drive or a modded PS3 hard drive replacing the original data.dat and start the game to test it.