NFTR Editor

Discussion in 'NDS - ROM Hacking and Translations' started by DarthNemesis, Sep 15, 2008.

  1. DarthNemesis
    OP

    DarthNemesis GBAtemp Maniac

    Member
    1,211
    41
    Feb 19, 2008
    United States
    This is a font preview and editor utility for NFTR files.

    Download NFTRedit v1.9 (.NET Framework 2.0 required)

    Currently supported features:
    * Preview text in the game's font (Shift_JIS, Unicode, raw hexadecimal, or a user-defined encoding)
    * View and edit a character map of all tiles (graphics, width/offset, etc.)
    * Import and export a bitmap of all tiles for use with your graphics editor of choice
    * Change tile dimensions
    * Copy and paste individual characters

    Planned future features:
    * Add/remove characters

    [​IMG]

    [​IMG]

    [​IMG]

    [​IMG]

    What other features would you guys like to see?
     
    Last edited by DarthNemesis, Sep 16, 2015


  2. Heran Bago

    Heran Bago Where do puyo come from?

    Member
    3,003
    410
    Nov 6, 2005
    United States
    Foggy California
    Oo! Importing/Exporting to font files would be amazing, but damn hard.
     
  3. DarthNemesis
    OP

    DarthNemesis GBAtemp Maniac

    Member
    1,211
    41
    Feb 19, 2008
    United States
    Importing/exporting what?

    [​IMG]
    Pretty easy to dump all the images.
     
  4. psycoblaster

    psycoblaster Divine

    Member
    2,132
    2
    Jan 26, 2008
    Seoul.. (in Korea)
    dunno if it would work but how about a font size editor???
    l
     
  5. DarthNemesis
    OP

    DarthNemesis GBAtemp Maniac

    Member
    1,211
    41
    Feb 19, 2008
    United States
    There's no way to scale up a pixel font automatically and still have the image look good or figure out the spacing, but you could maybe build a new font with the same mappings as the old one...
     
  6. Noitora

    Noitora ::

    Member
    3,765
    0
    Aug 9, 2007
    Greece
    Athens
    A width table editor would be awesome as It'd let us do VWFs easier.
    I really love you for doing this!
     
  7. kazumi213

    kazumi213 GBAtemp Regular

    Member
    293
    0
    Oct 16, 2006
    Really interesting tool DarthNemesis.

    Quite some time ago I started dealing with NFTR files and managed to get font dumps like the one in your picture using a combination of CrystalTile 2, a LZ77 decompressor and feidian. In example this is the dump I got for one of the NFTR files in the Pokemon D/P ROMs:

    [​IMG]

    I dumped all other NFTR files I found on D/P, but I'm pretty sure they don't contain all possible displayed characters in-game. In example all my dumps are missing the "zz" glyph you can pick on the "enter character name" screens. Maybe you could suggest where should I look for, other than NFTR files.

    What did you use to dump the font?

    Other question: Once I get one of those BMP dumps, how can I turn it into a Windows font? Need them to be 2-byte fonts? Basically I don't know what to do next after getting the font BMP [​IMG]
     
  8. DarthNemesis
    OP

    DarthNemesis GBAtemp Maniac

    Member
    1,211
    41
    Feb 19, 2008
    United States
    Sorry, I've never looked into anything like that.
     
  9. Noitora

    Noitora ::

    Member
    3,765
    0
    Aug 9, 2007
    Greece
    Athens
    I don't know about the others but am really looking forward to your NFTRviewer!
    Also with that you can view nftr files quickly without running a game.
     
  10. javad

    javad GBAtemp Regular

    Member
    255
    0
    Jul 8, 2007
    Malta
    malta
    Looks intersting, i can't wait for it!!!
     
  11. kazumi213

    kazumi213 GBAtemp Regular

    Member
    293
    0
    Oct 16, 2006
    Thanks DarthNemesis [​IMG]

    I think the fastest way to find NFTR files inside NDS ROMs is by opening them with a hexeditor, then search for the string "RTFN" (start of a NFTR file). This way I located 9 occurrences in Pokemon D/P (I didn't try the Korean version).

    The first match is at a too low offset, probably in one of the ARM bins or just an "index entry" (not sure whether this makes sense, I mean no "extractable" file was on that range).

    The next four matches are inside a LZ77 compressed file called "data/utility.bin". I worked with these NFTR files after uncompressing them.

    Last four matches are exact copies of the previous ones and are inside "dwc/utility.bin". This second utility.bin is the same as the previous one too.

    Of course I noticed font.narc, but it doesn't contain NFTR files. Something useful could be there, but it probably requires dealing with tiles [​IMG] . You seem very skilled at this. If you can inspect it a bit and write about your findings it would be much appreciated.
     
  12. BlueFlame90

    BlueFlame90 GBAtemp Regular

    Member
    162
    1
    Aug 7, 2008
    Gambia, The
    looks good. It would be really helpful for all the people who make translations.
     
  13. DarthNemesis
    OP

    DarthNemesis GBAtemp Maniac

    Member
    1,211
    41
    Feb 19, 2008
    United States
    utility.bin is a self-contained file that's included in many different games. It contains the wireless settings screens, so its NFTR files have nothing to do with Pokemon. I'm betting that the Pokemon font isn't in NFTR format.
     
  14. Noitora

    Noitora ::

    Member
    3,765
    0
    Aug 9, 2007
    Greece
    Athens
    Anyway if you want to take a look at utility.bin's content yourself you can do so with crystaltile2
     
  15. DarthNemesis
    OP

    DarthNemesis GBAtemp Maniac

    Member
    1,211
    41
    Feb 19, 2008
    United States
    Done. There's a download link in the first post.
     
  16. psycoblaster

    psycoblaster Divine

    Member
    2,132
    2
    Jan 26, 2008
    Seoul.. (in Korea)
    now how can you make this better XP
    DarthNemesis, you are GREAT [​IMG]

    Dunno what there is left to add - but I look forward to your updates [​IMG]
     
  17. psycoblaster

    psycoblaster Divine

    Member
    2,132
    2
    Jan 26, 2008
    Seoul.. (in Korea)
    when I click on character map, an error message comes out [​IMG]
    Unhandled exception has occurred in your application. If you click Continue, the application will ignore this error and attempt to continue. If you click Quit, the application will close immediately.

    Object reference not set to an instance of an object.
     
  18. DarthNemesis
    OP

    DarthNemesis GBAtemp Maniac

    Member
    1,211
    41
    Feb 19, 2008
    United States
    Which font file? I'll try it out.
     
  19. ChaosBoi

    ChaosBoi Ushiromiya Battler

    Member
    1,339
    60
    Feb 19, 2007
    United States
    California
    Does this work for any game with the NFTR file or is it only some for now? Might come in handy for me in the future since I'm just starting out.
     
  20. psycoblaster

    psycoblaster Divine

    Member
    2,132
    2
    Jan 26, 2008
    Seoul.. (in Korea)
    the font file for Ys DS.