Sunday, March 10, 2019

Growlanser 6 extracting pointers and text block/script

This is how you are able to use the tool called "Cartoprapher" to extract the pointer position and text associated with it.

Tools you need:

Cartographer
https://www.romhacking.net/utilities/647/

Shift JIS Table file:
https://www.romhacking.net/documents/179/

Once you unpacked Cartographer, you should create a new test folder and put the following files in it:
- Cartographer.exe
- one .FLK file (in this example i use 00000005.flk)
- the downloaded sjis.tbl
- a new text file called "GL6_commands.txt"
- a new bat file called "Cartographer.bat"

It should look like this:



First, you have to input the following text into "GL6_commands.txt"

https://growlanser6project.blogspot.com/2019/03/growlanser-6-cartographer-template.html

Depending on the file you want to dump, this needs to be changed:

#POINTER TABLE START: This is the start of the pointer table, pointing at the 1st pointer
#POINTER TABLE STOP:    this is the end of the pointer table, pointing at the last pointer, be careful not to point to a pointer that ends in 00 00 00 00, always point to the last pointer.
#BASE POINTER:        This is the position of the start of the text block
#TABLE:            This is the shift jis table file and it includes control points so the program knows when a new pointer has to start

It should look like this in the text file:



Next on the list is the sjis.tbl.
You only have to input additional commands at the very end:

Download the prepared table here: https://bitbucket.org/Risae/growlanser-6-english-translation/downloads/

END-FE and END-FF tells the program to use line breaks after it found the end of the text message.
It should look like this:




Last but not least is the "Cartographer.bat".
Open it in Notepad and copy in the following:
cartographer 00000005.flk GL6_commands.txt GL6_script_000 -s

pause

cartographer = tells the .bat file to start cartographer.exe with the commands
00000005.flk = the file it should "read"
GL6_commands.txt = the script it should execute
GL6_script_000 = this is the name of the textfile it will create the dump in. You can rename it however you want
-s = we use a script that only has 1 script block in it, read the Cartograph ReadMe for more information

It should look like this once you put it in:



Now, you can click on the "Cartographer.bat" to let the program create a dump of the script file, including the pointers:




 a new file called "GL6_script_000.txt" should have created itself, and in it are the dumped script files:



 A text editor like Notepad++ is able to display the Shift-JIS text.

No comments:

Post a Comment