Metal Gear Solid V .fnt File

How to translate the files of a game
SLaYeR983
Posts: 13
Joined: Tue May 19, 2015 8:20 pm

Metal Gear Solid V .fnt File

Post by SLaYeR983 »

Hi everybody.

https://github.com/Atvaark/TPP.FileFormats

This is amazing for MGSV modding but I have a problem. .fnt file is graphic font characters mapping. FfntTool good working for .ffnt font file, but .fnt can't open, edit and repack. There is one option with HEX Editor for now, but it is very difficult for add many new characters. Please help, how to modding that file? We want to translate MGSV and we could modding all the files we need except .fnt...

Exam: Font for iDroid's text cannot modding.


atvaark send it to me, but I don't know what to do with that...

Code: Select all

//------------------------------------------------
//--- 010 Editor v7.0.2 Binary Template
//
//      File: fnt.bt
//   Authors: atvaark
//   Version:
//   Purpose:
//  Category:
// File Mask:
//  ID Bytes:
//   History:
//------------------------------------------------

LittleEndian();

typedef struct {
  wchar_t character;
  short unknown1;
  ushort y_offset;
  ushort x_offset;
  short unknown2;
  short unknown3;
  short unknown_padding1;
  short unknown_padding2;
} FntGlyph;

typedef struct {
  ushort unknown1;
  ushort glyph_width1;
  ushort glyph_width2;
  ushort glyph_height1;
  ushort glyph_height2;
  ushort glyph_count;
  FntGlyph glyphs[glyph_count];
} FntFile;

FntFile file;


Everyone could benefit if there is a converter for .fnt (.fnt to .xml and reverse). Files is at attached. I waiting for helps.
Last edited by SLaYeR983 on Thu Jul 20, 2017 6:50 pm, edited 1 time in total.
GHOST DEAD
Posts: 218
Joined: Wed Jul 19, 2017 5:04 am

Re: Metal Gear Solid V .fnt File

Post by GHOST DEAD »

actully this is not a bitmap texture... this is a binary texture (without contrast mode) and i edited bitmap font generator for metal gear solid v... if i found my edited version... i share to you
SLaYeR983
Posts: 13
Joined: Tue May 19, 2015 8:20 pm

Re: Metal Gear Solid V .fnt File

Post by SLaYeR983 »

GHOST DEAD wrote:actully this is not a bitmap texture... this is a binary texture (without contrast mode) and i edited bitmap font generator for metal gear solid v... if i found my edited version... i share to you


I do not have much prevail on Technical details, but I just know that: ftex is dds graphic file and fnt is character mapping data of these dds files, so I mean character, coodinates and other things...

if I edit and repack or convert that file so I going to mapping to location of any character in the dds picture and I will add new ones. it is enough to me if there is a mapping xml like in ffnt.

Something like that would work:
Image
GHOST DEAD
Posts: 218
Joined: Wed Jul 19, 2017 5:04 am

Re: Metal Gear Solid V .fnt File

Post by GHOST DEAD »

as i said my friend... this in not a other texture... in hex this is a binary map
i fix bitmap font generator to that font...
how to use Metal Gear Solid V font fixer (fix and edit by GHOST DEAD {ME})
GHOST DEAD
Posts: 218
Joined: Wed Jul 19, 2017 5:04 am

Re: Metal Gear Solid V .fnt File

Post by GHOST DEAD »

as i said my friend... this in not a other texture... in hex this is a binary map
i fix bitmap font generator to that font...
Metal Gear Solid V font fixer (fix and edit by GHOST DEAD {ME})
this tool will help you... dont delete or rename data_mg.dll
SLaYeR983
Posts: 13
Joined: Tue May 19, 2015 8:20 pm

Re: Metal Gear Solid V .fnt File

Post by SLaYeR983 »

Thanks for help, but I dont understand how to use this

Edit: I got it. But this for .ffnt file. fnt file is different. I can't open edit and repack that file with any tool that made by atvaark.


Image

I do not know where it is used that name is Font_KJP_CUTIE_80p_alp

Image

This is iDroid font and name is Font_KJP_PROG_REG_32p_mb_alp


these fonts consists of seperated two files: .ftex and .fnt. and these font files not in FFNT archive. Ftex is OK, but other need a fix.
GHOST DEAD
Posts: 218
Joined: Wed Jul 19, 2017 5:04 am

Re: Metal Gear Solid V .fnt File

Post by GHOST DEAD »

just listen dude... i know all of this problem... dont blown yourself... all of this scripts and tools have many problemse
dont worry dude, thos ffnt is a else method... ffnt tool always damaged texture font
this guy (who made that tool) cant see png is not a good format for a common texture in a game with lua scripts
i am a lua progelrammer and i know that
this fonts works with a binary texture and font table and font fixer
this tool dont have fixer
SLaYeR983
Posts: 13
Joined: Tue May 19, 2015 8:20 pm

Re: Metal Gear Solid V .fnt File

Post by SLaYeR983 »

so how would I use that for .fnt file? There is not any tutorial about use with fnt file. I'm not a programmer, but just humble a user.
GHOST DEAD
Posts: 218
Joined: Wed Jul 19, 2017 5:04 am

Re: Metal Gear Solid V .fnt File

Post by GHOST DEAD »

SLaYeR983 wrote:so how would I use that for .fnt file? There is not any tutorial about use with fnt file. I'm not a programmer, but just humble a user.

i will creat a video tutorial for you
SLaYeR983
Posts: 13
Joined: Tue May 19, 2015 8:20 pm

Re: Metal Gear Solid V .fnt File

Post by SLaYeR983 »

GHOST DEAD wrote:i will create a video tutorial for you


Thanks a lot for it. I hope resolves that problem.
SLaYeR983
Posts: 13
Joined: Tue May 19, 2015 8:20 pm

Re: Metal Gear Solid V .fnt File

Post by SLaYeR983 »

I still waiting for it. I must edit to them. Please guys convert or fix them. I can't add a new characters.

"Aluigi" and "Atvaark" help please...
GHOST DEAD
Posts: 218
Joined: Wed Jul 19, 2017 5:04 am

Re: Metal Gear Solid V .fnt File

Post by GHOST DEAD »

SLaYeR983 wrote:I still waiting for it. I must edit to them. Please guys convert or fix them. I can't add a new characters.

"Aluigi" and "Atvaark" help please...


add a new unicode chaeacte? hmm?
answer: dude... game based on lua and custom unicode... just replace your character to another character...
as i know, this game can't support universal uncode mode in latin languages
this xml files are unicode, that's right... but you can't make new character in english files ( just like none_unicode files)
, i still cant edit weapon fonts and andvance fonts, but i know they are Ftex (as a direct map in zlib) and when i changed them, i could not see any different in main weapon fonts... :|
SLaYeR983
Posts: 13
Joined: Tue May 19, 2015 8:20 pm

Re: Metal Gear Solid V .fnt File

Post by SLaYeR983 »

GHOST DEAD wrote:
SLaYeR983 wrote:I still waiting for it. I must edit to them. Please guys convert or fix them. I can't add a new characters.

"Aluigi" and "Atvaark" help please...


add a new unicode chaeacte? hmm?
answer: dude... game based on lua and custom unicode... just replace your character to another character...
as i know, this game can't support universal uncode mode in latin languages
this xml files are unicode, that's right... but you can't make new character in english files ( just like none_unicode files)
, i still cant edit weapon fonts and andvance fonts, but i know they are Ftex (as a direct map in zlib) and when i changed them, i could not see any different in main weapon fonts... :|



some languages coding with UTF-8 and I imported strings to that langs., and also some ftex font files supported some unicode characters, ex: Ç - Ö - Ü... maybe modify current characters. I dont know what to do with that :)