Help with inserter for reorder pointers in script text

How to translate the files of a game
Kratos9999
Posts: 129
Joined: Mon Aug 22, 2016 10:30 am

Help with inserter for reorder pointers in script text

Post by Kratos9999 »

Hi guys, currently I am with an translation project, is the Black ps2 game. The structure of the scripts text of this game are simple, however, I need of a tool for reorder the pointers in order to edit the content by inserting more texts replacing the originals.
The pointers are absolute, e.g the values 504F points to offset 4F50 and so on. The endstring is 00 or 0000, 00000000. Someone can make a tool for reorder this pointers automatically, the file with texts is in this link:
https://drive.google.com/file/d/0B24D4L ... p=drivesdk
BlackDog
Posts: 2
Joined: Mon Oct 24, 2016 8:23 pm

Re: Help with inserter for reorder pointers in script text

Post by BlackDog »

Hey Kratos,
So you'resayingwhat you want is a program that does:
- save first pointer = start of text.
- read bytes from the file
- if byte is 00 then
. read all continuous 00 bytes from there (or stop at endof file)
. save offset of next non-zero byte (which is the pointer to the next text)
(until reachend of file)

Is that right or is there more data in the binary file you shared?
Kratos9999
Posts: 129
Joined: Mon Aug 22, 2016 10:30 am

Re: Help with inserter for reorder pointers in script text

Post by Kratos9999 »

Is exactly this BlackDog
swuforce
Posts: 233
Joined: Thu Oct 16, 2014 4:39 pm

Re: Help with inserter for reorder pointers in script text

Post by swuforce »

Try this tool.
Kratos9999
Posts: 129
Joined: Mon Aug 22, 2016 10:30 am

Re: Help with inserter for reorder pointers in script text

Post by Kratos9999 »

Thankyou very much swuforce by tool, I will be to test it and soon I post the results. Also thanks to blackdog, sorry for my bad english.
Kratos9999
Posts: 129
Joined: Mon Aug 22, 2016 10:30 am

Re: Help with inserter for reorder pointers in script text

Post by Kratos9999 »

Swuforce, your tool works perfectly here, the game now is 100% in portuguese Brazil. Thank you very much by help