Cartographer raw output - what am I doing wrong?

Started by BlackDog61, May 11, 2014, 05:24:54 AM

Previous topic - Next topic


Hi there,

I'm trying to use Cartographer to "raw dump" a binary section using a table. I cannto get it to do what I want.

So I have this binary file extracted from Super Robot Taisen AP. Using the SJIS table with an added
at the end of the table, when i open it with WindHex, I can see the strings I want to dump, spanning from offset 10E058 to offset 114CA0.
So I set up Cartographer with the following commands:

#GAME NAME: Super Robot Taisen Advance Portable (PSP)

#SCRIPT STOP: $114ca0  // must be 1 past the last useful character
#TABLE: srtap_shared_bin_sjis.tbl
#COMMENTS: No  // Set to No to test insertion

My command line (in a batch ;) ):

Cartographer.exe shared.bin carto_srtap_shared_bin_raw_test1.txt carto_output_raw_test -s

Nothing too fancy. I would expect to get all of the characters and a line break with "end" marker before it regularly. But the output I get is:

//GAME NAME: Super Robot Taisen Advance Portable (PSP)

//BLOCK #000 NAME: Series
//Block Range: $10E058 - $114CA0











(etc - I truncated here)

In Windhex I can see more readable text, which includes "0083 STARDUST MEMORY" starting at offset 10E0E6. (Close to the start, it should be in the text I output above).
So the only difference I can think of between WindHex using my table and Cartographer using my table is that WindHex will artificially split byte streams per line of 16 bytes. Which means i should be able to see a difference if the offsets become non-even. But that's not the case for the string I mentioned (every character is coded on 2 bytes).
Would you help me understand what I can correct to dump this?

Note: I know I should be looking for pointers to do the same thing, but I have not found them directly before nor directly after. And I would like to be able to do this "simple" dump, before I get back on my pointers hunt.

Thank you in advance for your replies!


Just for the record - I've therefore programmed a custom raw dumper using Klarth's library.
I'm still very interested in the answer to my question, since I should otherwise post the tool I made to complement Cartgrapher, I guess?