+  RHDN Forum Archive
|-+  Romhacking
| |-+  ROM Hacking Discussion
| | |-+  Good text dumper?
Pages: [1] 2
Author Topic: Good text dumper?  (Read 1242 times)
Rai
Guest
« on: March 01, 2007, 07:43:56 am »

I want to test out my table and dump some text from Legend of the River King 2 for the SNES, but the text dumpers I've used so far suck. Translhextation or whatever takes far too long to dump a small ammount of text; when you try to dump the file from Windhex32, it's far larger than the original file. I suppose Hexecute is a good dumper, but whenever I try to open the rom for Legend of the River King 2 it crashes.
KaioShin
Guest
« Reply #1 on: March 01, 2007, 07:47:38 am »

I always code them myself, there is no better way to have it perfectly fitting your needs.
MANDANGA
Guest
« Reply #2 on: March 01, 2007, 07:56:38 am »

Try romjuice. It's was good for me.
RedComet
Guest
« Reply #3 on: March 01, 2007, 08:39:10 am »

Romjuice is definitely the way to go if you can't code your own. I used it for the better part of 3 years and it's only failed me once.
Dragonsbrethren
Guest
« Reply #4 on: March 01, 2007, 11:32:20 am »

Quote from: Rai on March 01, 2007, 07:43:56 am
when you try to dump the file from Windhex32, it's far larger than the original file.

Huh? Larger than your ROM? I've never had any problems with WindHex32's script dumper.
Nightcrawler
Guest
« Reply #5 on: March 01, 2007, 12:39:50 pm »

I've used Winhex32's script dumper without issue as well. I use that for most simple things. Anything else and I use a custom dumper.
KingMike
Guest
« Reply #6 on: March 01, 2007, 01:28:13 pm »

Maybe I just have it backwards, but Windhex's dumper seemed to mix up new line (*) and end-of-string (/)
Ryusui
Guest
« Reply #7 on: March 01, 2007, 01:52:39 pm »

I mainly use Romjuice, but I have coded my own script viewers/dumpers.
Kitsune Sniper
Guest
« Reply #8 on: March 01, 2007, 02:15:32 pm »

Quote from: Rai on March 01, 2007, 07:43:56 am
I want to test out my table and dump some text from Legend of the River King 2 for the SNES, but the text dumpers I've used so far suck. Translhextation or whatever takes far too long to dump a small ammount of text; when you try to dump the file from Windhex32, it's far larger than the original file. I suppose Hexecute is a good dumper, but whenever I try to open the rom for Legend of the River King 2 it crashes.
That's because Translhextion is only able to dump small text strings. The program is not optimized, so it takes a long time to do things.

If you want something better, use Romjuice. If you can use it.
Rai
Guest
« Reply #9 on: March 01, 2007, 05:34:54 pm »

Tried romjuice... What did I input wrong?
Quote
./romjuice <Kawa no Nushizuri 2 (J).smc> <kawa2.tbl> <0> <1573375> <output.txt>
< was unexpected at this time.
Ryusui
Guest
« Reply #10 on: March 01, 2007, 05:38:20 pm »

Kill the pointy brackets.

Quote
romjuice kawano~1.smc kawa2.tbl 0 1573375 output.txt

...Eh? Why does your script dump start at the beginning of the ROM? Shouldn't you, I dunno, find out where the script starts first before dumping all the extra crap with it?
Rai
Guest
« Reply #11 on: March 01, 2007, 05:54:03 pm »

Alright it works, but I'm still not doing something right. I shouldn't be getting an output larger than the rom... perhaps I'm confused on what an address is. They certainly aren't talking about the offset.
« Last Edit: March 01, 2007, 06:02:26 pm by Rai »
Ryusui
Guest
« Reply #12 on: March 01, 2007, 06:18:21 pm »

There are two reasons why the output file is larger than the ROM itself.

Reason 1: You're dumping the whole damn ROM.

Reason 2: Any kana in your table will become two-byte Shift-JIS characters, even if they represent a single byte in the ROM.

The two addresses you supply as arguments to romjuice are the start and end addresses for the dump. If you put in "0" as the start address, it's going to start from the beginning of the ROM and go all the way to the end address...oh, and both numbers are treated as hexadecimal, so you're telling it to dump 1573375h bytes, rather than 1573375 bytes (1801FFh, which means you're also dumping the header for reasons I can't begin to fathom)...in short, if your output file is around 22 megabytes, forget reasons 1 and 2: you've managed to completely flummox romjuice with your assumption that it accepts only decimal numbers.

Open up the ROM in Windhex and find where the text starts. That's your start address. Now scroll down and find out where it ends. That's your end address. Plug these numbers, unconverted from hexadecimal, into the romjuice command line. If there are multiple text blocks, rinse and repeat as necessary. Enjoy.
DarknessSavior
Guest
« Reply #13 on: March 06, 2007, 09:41:04 am »

On similar lines, I have questions about dumpers/inserters.

I downloaded pretty much every program here at RHDN, and I can get most of them to work.

The question is, is there a dumper/inserter that has options I can customize so that when it dumps text for me, it isn't a big line of garbage? By this I mean that all the kana for a dump I was testing it with (the weapons/armor list in CT) are put together as if it were a paragraph, when I would want it to put a line break after each item.

Is there a dumper/inserter that can do this sort of thing, or am I stuck with the option of coding my own? -_-

~DS
KingMike
Guest
« Reply #14 on: March 06, 2007, 09:45:26 am »

Might be a fixed length list. So if there's no end byte, then the game just assumes every 10 characters is a new entry.
Should check if there's a text dumper for fixed-length text.
Pages: [1] 2  


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