1. DarthNemesis

    OP DarthNemesis GBAtemp Maniac
    Member

    Joined:
    Feb 19, 2008
    Messages:
    1,211
    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
  2. Heran Bago

    Heran Bago Where do puyo come from?
    Member

    Joined:
    Nov 6, 2005
    Messages:
    3,087
    Country:
    United States
    Oo! Importing/Exporting to font files would be amazing, but damn hard.
     
  3. DarthNemesis

    OP DarthNemesis GBAtemp Maniac
    Member

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

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

    psycoblaster Divine
    Member

    Joined:
    Jan 26, 2008
    Messages:
    2,131
    Country:
    dunno if it would work but how about a font size editor???
    l
     
  5. DarthNemesis

    OP DarthNemesis GBAtemp Maniac
    Member

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

    Noitora ::
    Member

    Joined:
    Aug 9, 2007
    Messages:
    3,765
    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

    kazumi213 GBAtemp Regular
    Member

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

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

    Noitora ::
    Member

    Joined:
    Aug 9, 2007
    Messages:
    3,765
    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

    javad GBAtemp Regular
    Member

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

    kazumi213 GBAtemp Regular
    Member

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

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

    OP DarthNemesis GBAtemp Maniac
    Member

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

    Noitora ::
    Member

    Joined:
    Aug 9, 2007
    Messages:
    3,765
    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 DarthNemesis GBAtemp Maniac
    Member

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

    psycoblaster Divine
    Member

    Joined:
    Jan 26, 2008
    Messages:
    2,131
    Country:
    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

    Joined:
    Jan 26, 2008
    Messages:
    2,131
    Country:
    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

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

    ChaosBoi Ushiromiya Battler
    Member

    Joined:
    Feb 19, 2007
    Messages:
    1,343
    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

    psycoblaster Divine
    Member

    Joined:
    Jan 26, 2008
    Messages:
    2,131
    Country:
    the font file for Ys DS.
     
Draft saved Draft deleted
Loading...

Hide similar threads Similar threads with keywords - Editor,