+  RHDN Forum Archive
|-+  Romhacking
| |-+  ROM Hacking Discussion
| | |-+  Good text dumper?
Pages: 1 [2]
Author Topic: Good text dumper?  (Read 1242 times)
Nightcrawler
Guest
« Reply #15 on: March 06, 2007, 10:48:20 am »

Somebody made a fixed length text dumper. I thought YOU did KingMike. I can't remember. I know I've used it.

You bafoon. You DID make one.  Why didn't your recommend your own utility? Tongue

Fixed Length Dumper
DarknessSavior
Guest
« Reply #16 on: March 06, 2007, 10:51:36 am »

I'm pretty sure I used that program (as I said, I downloaded EVERY dump/insertion tool I could find). The problem is, most of those ask you to input the number of characters per item you want to dump.

Therein lies the problem.  While CT has a maximum of 8 characters (9, if you include the symbols next to them), not every item is 8 characters long. The ones that aren't don't have empty spaces after them, either, from what I can tell. I'll double check the hex when I get home. But when I dumped that section, in most dumpers it came out quite screwy because of that.

Is there a dumping and insertion tool available that will let me select when to break and not, or am I out of options?

~DS
Nightcrawler
Guest
« Reply #17 on: March 06, 2007, 11:01:15 am »

Yes, any decent dumper can do that. you define an end string in your table. Usually something like *=FF or /=FF. I don't remember. I haven't used one in a long while. It can be different depending on utility, but most use common Thingy style tables with syntax like that.
DarknessSavior
Guest
« Reply #18 on: March 06, 2007, 11:04:29 am »

So basically I should check to see if those codes are in the hex already, and if so then define them in my table before I dump anything?

*slaps himself in the head* Man, I didn't think of that WHY!? Probably because I haven't bothered looking for control codes yet, not having the script dumped and all. -.-

I'll get right on it when I get home. ^_^

~DS
Nightcrawler
Guest
« Reply #19 on: March 06, 2007, 11:07:02 am »

You got it. If it's not fixed width, each item should end with a control code of sorts. That value will be added as the string end and will be jumped with a line break and carriage return.
DarknessSavior
Guest
« Reply #20 on: March 06, 2007, 11:09:57 am »

Ok, I got the string end and line break, I understand that. What the hell is a carriage return? I've read tons of docs recently, never seen that used before. Then again, people can't agree as to what to CALL a string end and line break control code. =P

~DS
KaioShin
Guest
« Reply #21 on: March 06, 2007, 11:12:34 am »

Quote from: DarknessSavior on March 06, 2007, 11:09:57 am
Ok, I got the string end and line break, I understand that. What the hell is a carriage return? I've read tons of docs recently, never seen that used before. Then again, people can't agree as to what to CALL a string end and line break control code. =P

~DS

Have you never seen a type writer? The "enter" button there is usually called return, since it returns to the beginning of the next line. So yes, carriage return => line break.
Nightcrawler
Guest
« Reply #22 on: March 06, 2007, 12:24:58 pm »

http://en.wikipedia.org/wiki/Carriage_return

It's 0x0d at the end of a line in ASCII.

I meant line feed (0x0a in ASCII) above rather than line break.

http://en.wikipedia.org/wiki/Line_feed

In any ASCII text document line breaks are properly represented in hex as 0x0d 0x0a with a carriage return followed by a line feed.

It's the mechanics of a text file. Wink Open one up in a hex editor and you can see what I mean.
DarknessSavior
Guest
« Reply #23 on: March 06, 2007, 02:50:18 pm »

Thanks NC. Confused me for a second there. =D

And yes, Kaioshin, I've used typewriters before, and I know what a 'return' is. Hell, I'm pretty sure I have an old keyboard somewhere that still says "Return" instead of "Enter". The problem was I never heard someone call it a "carriage return".

So basically what you mean is that when I configure the string end and line break, then if the dumper see's one, it'll automatically seperate it like so:

Item name (string end) (automatic line break)

Item name (string end) ...

and so on? That's what I want. ^_^

~DS

Pages: 1 [2]  


Powered by SMF 1.1.4 | SMF © 2006-2007, Simple Machines LLC