Help with converting the dumped hex(?) to text?

Discussion in 'NDS - ROM Hacking and Translations' started by 5hours, Jan 17, 2010.

Thread Status:
Not open for further replies.
Jan 17, 2010
  1. 5hours
    OP

    Newcomer 5hours Member

    Joined:
    Jan 17, 2010
    Messages:
    30
    Country:
    United States
    I'm planning on setting up a translation project for a certain game, but I'm having some trouble preparing the scripts.

    I downloaded WindHex, using the shiftjis.tbl and already found the script files (.bin) in the rom.
    When opening them with WindHex you get the usual long table with codes.
    (Someone mentioned in a thread you had to select 'View Text Data as Unicode', not that it changed anything visually.)
    I also 'learned' (hey, I'm a complete newbie with this.. ) how to dump the data in a text file by setting the offset.

    But my only problem is, the dumped text looks nothing like something that I could possibly convert/translate.
    Is there a certain step I have to follow?
    This is for example what I got: http://www.sendspace.com/file/ol1oyt

    Warning: Spoilers inside!

    (Fileden isn't working atm, so unfortunately I can't host it there..)
    EDIT: I already put it in the spoiler..

    If anyone could help me with this, I would appreciate it A LOT!
     


  2. 5hours
    OP

    Newcomer 5hours Member

    Joined:
    Jan 17, 2010
    Messages:
    30
    Country:
    United States
    Isn't there anyone who knows?
    Another try and I got this:
    Warning: Spoilers inside!
    If there's just someone who could tell me what exactly these are and how I convert them..
    Perhaps I'm doing something wrong?
     
  3. azerty1

    Member azerty1 GBAtemp Regular

    Joined:
    Mar 22, 2009
    Messages:
    160
    Country:
    Canada
    ok...i guess you were following my instructions from the other topic...
    I kinda skipped the most important step, by accident. before dumping anything and translating anythign, you need to sift through the file and figure out which bytes have something to do with the text, because if you're changing stuff, other stuff needs to be changed too.

    oh, and i just realized that windhex does not quite dump from tables the way i thought it would...i had assumed the "Dump Text" would do things in Unicode...
    regardless, even if you do dump it all and translate it, that won't actually be all that helpful. ROMs use really random methods of calculating string length and telling things what to do and everything, and it differs with every game. what you really need is a specific program for whatever game it is you're hacking.

    FAST tells it all here:
    http://gbatemp.net/index.php?showtopic=73394&st=45

    what game are you hacking? i'll take a look and see if i can help you.
     
  4. 5hours
    OP

    Newcomer 5hours Member

    Joined:
    Jan 17, 2010
    Messages:
    30
    Country:
    United States
    The first spoiler contains data from Ouran Koukou Host Bu and the second one from Kimi ni Todoke - Sodateru Omoi. Both games received many requests and I'm as well very interested in playing these.

    I'm not sure if I used your instructions per se, I mostly referred to;
    http://gbatemp.net/index.php?showtopic=106706&hl=

    However, if you're willing to help me to get started with this or give me some useful hints, that'd be great.
     
  5. Jei

    Member Jei Translator and romhacker wannabe

    Joined:
    Oct 17, 2003
    Messages:
    864
    Location:
    Zillions of pixels far away~
    Country:
    Brazil
    Is it easy to find the text within these games? I could get them and look into a way to extract the text - that's the easy part, since after that you either reinsert manually or program a tool for that.
     
  6. jjjewel

    Member jjjewel GBAtemp Maniac

    Joined:
    Dec 17, 2009
    Messages:
    1,004
    Country:
    United States
    Scripts for Kimi ni Todoke - Sodateru Omoi are compressed so you need to use a program to decompress them first before they're readable. (Search for LZ77 decompressor for the decompression tool.)

    I was also interested in translating this game a while back so I extracted and decompressed the scripts. I'll post the download here in case it's helpful. (But as azerty1 said in the earlier post, being able to extract and translate scripts aren't everything you need for rom hacking, not until you can find out how to insert the translated scripts back without messing the texts.)

    Here's the link for decompressed Kimi Todoke scripts (decompressed .bin files in \event\script folder)

    http://www.mediafire.com/?mykzhted5eu

    There are also some text in "growth" folder too but I didn't extract them. (Some of the files have texts, some don't. So you might have to manually check them.)


    For Ouran, the scripts aren't compressed. You should be able to find them without too much trouble. (Most scripts are in \scr\bin and \scr\scene folders.)


    I'd recommend CrystalTile2 if you want to check the scripts. Just change the encoding to Shift-JIS and you'll be able to read all the text. Anyway, the script texts are stored almost at the end of the files. Most codes at the beginning are probably pointers and control codes. (Most likely these are codes that you need to change in order to make your translated text readable when you insert it back to the game.)
     
  7. 5hours
    OP

    Newcomer 5hours Member

    Joined:
    Jan 17, 2010
    Messages:
    30
    Country:
    United States
    @Jei:
    Well, since these two games are visual novels, they have quite a lot of different scenarios, and therefore lots of dialogue, but they're mostly stored at at the same place.

    For the Ouran rom; data\scr\bin

    For the Kimi ni Todoke rom; -> data\event\script

    Thanks for willing to look into it.

    @jjjewel, I'll try everything out you just recommended. Already downloaded CrystalTile2 but so far I've had no luck. Hopefully this time..
    Getting the text out and preparing the scripts for translation are the most important things now.. translators etc. will come later..
     
  8. Jei

    Member Jei Translator and romhacker wannabe

    Joined:
    Oct 17, 2003
    Messages:
    864
    Location:
    Zillions of pixels far away~
    Country:
    Brazil
    Since jjjewel took care of Kimi ni Todoke already, I think I'm looking at Ouran tonight [​IMG]
     
  9. 5hours
    OP

    Newcomer 5hours Member

    Joined:
    Jan 17, 2010
    Messages:
    30
    Country:
    United States
    Thanks Jei, that's nice of you!
    And thanks jjjewel for the decompressed files, I actually managed to see whole dialogues for the first time! But realizing that there's indeed a chance of not being able to correctly input the text back into the game makes me worry a bit. But right now I don't want to focus too much on that, haha.

    Oh, I've got another question? (Gah, I feel so useless, blargh..)
    How do I dump/extract the kanji texts from Crystaltile?
     
  10. miruki

    Member miruki GBAtemp Advanced Fan

    Joined:
    Apr 23, 2008
    Messages:
    644
    Location:
    Awesometown
    Country:
    Germany
    I would suggest taking those dl links off before any mod notices them. The roms are not hard to find if you know where to look.

    Posting links to roms is forbidden, so better hurry before you get a warning. XD
     
  11. 5hours
    OP

    Newcomer 5hours Member

    Joined:
    Jan 17, 2010
    Messages:
    30
    Country:
    United States
    Okay, noted and deleted ;p
     
  12. jjjewel

    Member jjjewel GBAtemp Maniac

    Joined:
    Dec 17, 2009
    Messages:
    1,004
    Country:
    United States
    There's a text search function in CrystalTile. (View--> Text Search, then Search-->Ambassador Search)

    For Kimi Todoke, after you use Ambassador Search you should see the script text at the bottom of the list. Move your mouse to the first column where it says pointer, then you can highlight only the rows with the script. (You can't highlight from other columns though, only the first column.) Then Edit-->Export Image. You'll see a Save As window. Change "Code" at the bottom part to "Unicode" and save. And you should get the script in .txt file.
     
  13. 5hours
    OP

    Newcomer 5hours Member

    Joined:
    Jan 17, 2010
    Messages:
    30
    Country:
    United States
    I don't see an Ambassador Search option though..
    only - (E)
    - (A)
    etc..

    And the page just stays blank..
     
  14. jjjewel

    Member jjjewel GBAtemp Maniac

    Joined:
    Dec 17, 2009
    Messages:
    1,004
    Country:
    United States
    You probably have different version of CrystalTile then. Hm... Try playing around with the Search menu then. (After View-->Text Search). It should be one of the commands in the Search menu. Most likely the top or the second one, I guess. Try to get the text to show first. We can try to figure out how to import it later. (Maybe Edit--> Extract, if I remembered it right.)

    Otherwise, try the latest version of CrystalTile2. (There should be a download link some threads back, in this forum.)
     
  15. azerty1

    Member azerty1 GBAtemp Regular

    Joined:
    Mar 22, 2009
    Messages:
    160
    Country:
    Canada
    ok...the ouran rom is 256 Mb, meaning i can't download it at home...i'll get it at school and take a look.
    depending on how busy i am and how easy it is, i might be able to pull together an extractor and an inserter sometime this week.
    if anyone can check if pointers need to be reset, that would be quite helpful.
     
  16. 5hours
    OP

    Newcomer 5hours Member

    Joined:
    Jan 17, 2010
    Messages:
    30
    Country:
    United States
    I'm already using Crystaltile2, should have mentioned that, I guess. I decided to take a screenshot to show you what my Search menu looked like,
    everything is in English, except those commands. I'm assuming the (A) refers to Ambassador, but so far nothing happened.

    screenshot
    Warning: Spoilers inside!
     
  17. suruz

    Member suruz GBAtemp Advanced Fan

    Joined:
    Oct 1, 2007
    Messages:
    607
    Country:
    United Kingdom
    I used translhextion to dump text.. you turn Unicode on, select the necessary .tbl file and turn "thingy view" on. Then you can see the text and dump it in that format. Or... is this situation different?

    Anyway, if someone's making an extractor/inserter then problem solved, I guess ;D
     
  18. jjjewel

    Member jjjewel GBAtemp Maniac

    Joined:
    Dec 17, 2009
    Messages:
    1,004
    Country:
    United States
    In this case, the first one, "Search Script" should be the same as Ambassador search. (I guess.) Or you can try suruz's advice. I have read about translhextion some where too but didn't have a chance to try it yet.

    Or you can try this version of CrystalTile2. I think it's the version with English interface modified by people from this forum. (There's a thread in this forum, maybe many pages back.)

    http://www.mediafire.com/?1zzqg1y2dgh
     
  19. azerty1

    Member azerty1 GBAtemp Regular

    Joined:
    Mar 22, 2009
    Messages:
    160
    Country:
    Canada
    well...the text hacking is in progress, but I'm getting into some troubles with the pointers (not too much experience in finding the tables...)
    The script is in the .bin files in the data\scr\bin folder.
    The header is in this format
    00000000 tttttt 00 ???? 0000 ?? 000000
    ?? 000000 eeeeee 0000000

    tttttt text start. Right on the 's' of "switch"

    eeeeee is exactly 5 bytes after the end of weird commands that are in text...
    everything is in reverse byte order.
    after the header is a part that goes up to offset eeeeee, that is really, really weird...
    it's got stuff writting like :
    sure29 00 INE;
    0D IN {5F} GP {5F} LINE;
    after that, it's got some more stuff that i don't understand, but that has a pointer table somewhere in there.
    The question marks are what I don't understand, of course...
    I tried going to those offsets, but they either point to someplace outside the file, or into the middle of what looks like a pointer table, but isn't...

    I can't brute force the extraction by looking for textbox initializations in this game since the commands are all in ascii and are kinda screwy...

    could anyone lend a hand, please?
     
  20. 5hours
    OP

    Newcomer 5hours Member

    Joined:
    Jan 17, 2010
    Messages:
    30
    Country:
    United States
    Nice to see you're willing to spend your time to look into this. [​IMG] Unfortunately, I won't be able to help you with this matter, since I just got into this whole hex/script thing yesterday.
    I hope someone else gives this thread a visit!
     
Thread Status:
Not open for further replies.

Share This Page