NFTR Editor

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

Sep 15, 2008

NFTR Editor by DarthNemesis at 6:05 AM (39,728 Views / 3 Likes) 155 replies

  1. DarthNemesis
    OP

    Member DarthNemesis GBAtemp Maniac

    Joined:
    Feb 19, 2008
    Messages:
    1,208
    Country:
    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
    Noelemahc, Margen67 and hayate891 like this.


  2. Heran Bago

    Member Heran Bago Where do puyo come from?

    Joined:
    Nov 6, 2005
    Messages:
    2,854
    Location:
    Foggy California
    Country:
    United States
    Oo! Importing/Exporting to font files would be amazing, but damn hard.
     
  3. DarthNemesis
    OP

    Member DarthNemesis GBAtemp Maniac

    Joined:
    Feb 19, 2008
    Messages:
    1,208
    Country:
    United States
    Importing/exporting what?

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

    Member psycoblaster Divine

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

    Member DarthNemesis GBAtemp Maniac

    Joined:
    Feb 19, 2008
    Messages:
    1,208
    Country:
    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

    Member Noitora ::

    Joined:
    Aug 9, 2007
    Messages:
    3,768
    Location:
    Athens
    Country:
    Greece
    A width table editor would be awesome as It'd let us do VWFs easier.
    I really love you for doing this!
     
  7. kazumi213

    Member kazumi213 GBAtemp Regular

    Joined:
    Oct 16, 2006
    Messages:
    293
    Country:
    Spain
    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

    Member DarthNemesis GBAtemp Maniac

    Joined:
    Feb 19, 2008
    Messages:
    1,208
    Country:
    United States
    Sorry, I've never looked into anything like that.
     
  9. Noitora

    Member Noitora ::

    Joined:
    Aug 9, 2007
    Messages:
    3,768
    Location:
    Athens
    Country:
    Greece
    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

    Member javad GBAtemp Regular

    Joined:
    Jul 8, 2007
    Messages:
    255
    Location:
    malta
    Country:
    Malta
    Looks intersting, i can't wait for it!!!
     
  11. kazumi213

    Member kazumi213 GBAtemp Regular

    Joined:
    Oct 16, 2006
    Messages:
    293
    Country:
    Spain
    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

    Member BlueFlame90 GBAtemp Regular

    Joined:
    Aug 7, 2008
    Messages:
    162
    Country:
    Germany
    looks good. It would be really helpful for all the people who make translations.
     
  13. DarthNemesis
    OP

    Member DarthNemesis GBAtemp Maniac

    Joined:
    Feb 19, 2008
    Messages:
    1,208
    Country:
    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

    Member Noitora ::

    Joined:
    Aug 9, 2007
    Messages:
    3,768
    Location:
    Athens
    Country:
    Greece
    Anyway if you want to take a look at utility.bin's content yourself you can do so with crystaltile2
     
  15. DarthNemesis
    OP

    Member DarthNemesis GBAtemp Maniac

    Joined:
    Feb 19, 2008
    Messages:
    1,208
    Country:
    United States
    Done. There's a download link in the first post.
     
  16. psycoblaster

    Member psycoblaster Divine

    Joined:
    Jan 26, 2008
    Messages:
    2,132
    Location:
    Seoul.. (in Korea)
    Country:
    Korea, South
    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

    Member psycoblaster Divine

    Joined:
    Jan 26, 2008
    Messages:
    2,132
    Location:
    Seoul.. (in Korea)
    Country:
    Korea, South
    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

    Member DarthNemesis GBAtemp Maniac

    Joined:
    Feb 19, 2008
    Messages:
    1,208
    Country:
    United States
    Which font file? I'll try it out.
     
  19. ChaosBoi

    Member ChaosBoi Ushiromiya Battler

    Joined:
    Feb 19, 2007
    Messages:
    1,327
    Location:
    California
    Country:
    United States
    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

    Member psycoblaster Divine

    Joined:
    Jan 26, 2008
    Messages:
    2,132
    Location:
    Seoul.. (in Korea)
    Country:
    Korea, South
    the font file for Ys DS.
     

Share This Page