ZenHAX

Free Game Research Forum | Official QuickBMS support | twitter @zenhax | SSL HTTPS://zenhax.com
It is currently Thu Aug 16, 2018 4:39 am

All times are UTC




Post new topic  Reply to topic  [ 13 posts ] 
Author Message
PostPosted: Thu Jul 20, 2017 2:52 pm 

Joined: Tue May 19, 2015 8:20 pm
Posts: 13
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:
//------------------------------------------------
//--- 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.


Attachments:
MGSV_Ftex_and_fnt_Fontfiles.rar [973.09 KiB]
Downloaded 98 times


Last edited by SLaYeR983 on Thu Jul 20, 2017 6:50 pm, edited 1 time in total.
Top
   
PostPosted: Thu Jul 20, 2017 4:48 pm 
User avatar

Joined: Wed Jul 19, 2017 5:04 am
Posts: 121
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

_________________
Be Good, Even in distressing or defamation and chill, Even Everyone's Called You a Bad Guy Or Lier and Mad


Top
   
PostPosted: Thu Jul 20, 2017 6:47 pm 

Joined: Tue May 19, 2015 8:20 pm
Posts: 13
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


Top
   
PostPosted: Fri Jul 21, 2017 4:40 am 
User avatar

Joined: Wed Jul 19, 2017 5:04 am
Posts: 121
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})

_________________
Be Good, Even in distressing or defamation and chill, Even Everyone's Called You a Bad Guy Or Lier and Mad


Top
   
PostPosted: Fri Jul 21, 2017 4:43 am 
User avatar

Joined: Wed Jul 19, 2017 5:04 am
Posts: 121
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


Attachments:
Metal Gear Solid V font fixer.7z [409.42 KiB]
Downloaded 74 times

_________________
Be Good, Even in distressing or defamation and chill, Even Everyone's Called You a Bad Guy Or Lier and Mad
Top
   
PostPosted: Fri Jul 21, 2017 8:32 am 

Joined: Tue May 19, 2015 8:20 pm
Posts: 13
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.


Top
   
PostPosted: Mon Jul 24, 2017 6:45 am 
User avatar

Joined: Wed Jul 19, 2017 5:04 am
Posts: 121
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

_________________
Be Good, Even in distressing or defamation and chill, Even Everyone's Called You a Bad Guy Or Lier and Mad


Top
   
PostPosted: Mon Jul 24, 2017 8:48 am 

Joined: Tue May 19, 2015 8:20 pm
Posts: 13
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.


Top
   
PostPosted: Mon Jul 24, 2017 6:35 pm 
User avatar

Joined: Wed Jul 19, 2017 5:04 am
Posts: 121
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

_________________
Be Good, Even in distressing or defamation and chill, Even Everyone's Called You a Bad Guy Or Lier and Mad


Top
   
PostPosted: Tue Jul 25, 2017 7:14 am 

Joined: Tue May 19, 2015 8:20 pm
Posts: 13
GHOST DEAD wrote:
i will create a video tutorial for you


Thanks a lot for it. I hope resolves that problem.


Top
   
PostPosted: Sun May 27, 2018 11:40 am 

Joined: Tue May 19, 2015 8:20 pm
Posts: 13
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...


Top
   
PostPosted: Sun May 27, 2018 2:34 pm 
User avatar

Joined: Wed Jul 19, 2017 5:04 am
Posts: 121
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... :|

_________________
Be Good, Even in distressing or defamation and chill, Even Everyone's Called You a Bad Guy Or Lier and Mad


Top
   
PostPosted: Sun May 27, 2018 3:08 pm 

Joined: Tue May 19, 2015 8:20 pm
Posts: 13
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 :)


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 13 posts ] 

All times are UTC


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Limited