999: 9 hours 9 persons 9 doors text editing

Discussion in 'NDS - ROM Hacking and Translations' started by Naridar, Dec 27, 2010.

  1. Naridar
    OP

    Naridar Excelsior!

    Member
    331
    85
    Oct 26, 2008
    Hungary
    Hi everyone! I've been thinking about translating 999: 9 hours 9 persons 9 doors into my language, hungarian. The problem is, I've tried extracting the game with dslazy and the result was a folder roughly 900 kbytes in size. Can anyone help retrieving the text data from the game?
     
  2. RadioShadow

    RadioShadow GBAtemp Advanced Fan

    Member
    535
    30
    Aug 30, 2007
    UK
    Use CrystalTile2 instead.

    - Simply open the rom.
    - Then click on Tools, NDS File System.
    - Then File, Split ROM.
    - Select which folder to save files in.

    From having a quick look, the text seems to be stored in the files in the "etc" folder. It is stored in shift-jis format. It seems the Japanese text has been left in there and they have just added the English text next to it. First I've seen that happen.

    The text seems to be stored first and then the pointers afterwards. Which is odd, because it is usually the other way round.

    The pointers are stored in "long" format. So it is a four hex byte pointer which is stored in reverse. So it would be stored as "BA130000" which leads to the offset "000013BA" in the file.
     
  3. WiiUBricker

    WiiUBricker Insert Custom Title

    Member
    7,103
    4,199
    Sep 19, 2009
    Argentina
    Espresso
    In the etc folder are just dat files and three ini files.

    The movie files have the extension *.mods. Are there any tools available that can convert these to avi?
     
  4. Naridar
    OP

    Naridar Excelsior!

    Member
    331
    85
    Oct 26, 2008
    Hungary
    Okay, got the text. Can you tell me where the font/encoding is stored? In hungarian, I'll need special characters not in the current font... more precisely, á, é, í, ó, ö, ő, ú, ü and ű.

    Also, no good. It froze when I reached a part of text I've translated.
     
  5. Naridar
    OP

    Naridar Excelsior!

    Member
    331
    85
    Oct 26, 2008
    Hungary
    Bump. Does anyone have an idea why it froze (and how to fix it) and/or how can I change the font/encoding?
     
  6. ERT_Ganon

    ERT_Ganon Newbie

    Newcomer
    1
    0
    Feb 11, 2011
    Brazil
    Rio de Janeiro
    Hi, everyone. First, forgive my English, it is terrible. I'm Brazilian rookie romhacker. Researching [NDS]999, I found this post.
    Well, the text font can be found in the file "Kanji_n.dat", you can extract using Crystal Tile 2.
    Extract the file and open it in hexa editor.
    Using as an example the letter "C" in 0x3D0:


    43 - The encode of the character, in this case "C "
    0000 - Bullshit
    02 - Starting position (from how many pixels below the X axis the character will be drawn)
    FC - I don't know. ^^
    0B - Height occupied by the character
    06 - Width occupied by the character
    0B - ?????

    Well, after this byte is the design of the character. Each bit represents one pixel.

    Transforming hex to binary would look like this:

    0E00 - 0000111000000000
    1100 - 0001000100000000
    1100 - 0001000100000000
    0100 - 0000000100000000
    0100 - 0000000100000000
    0100 - 0000000100000000
    0100 - 0000000100000000
    1100 - 0001000100000000
    1100 - 0001000100000000
    0E00 - 0000111000000000
    0000 - 0000000000000000

    This is it. The letter C mirror.

    See ya!