ZenHAX

Free Game Research Forum | Official QuickBMS support | twitter @zenhax | SSL HTTPS://zenhax.com
It is currently Mon May 17, 2021 1:54 pm

All times are UTC




Post new topic  Reply to topic  [ 10 posts ] 
Author Message
 Post subject: Kingdom Hearts 3 font
PostPosted: Fri Dec 11, 2020 12:47 pm 

Joined: Wed Jun 17, 2020 1:12 pm
Posts: 103
I'm localizing Kingdom Hearts 3 but there is font problem.Can these be modified?


Attachments:
TresTestDebugFontLarge.rar [3.59 MiB]
Downloaded 128 times
Top
   
PostPosted: Sun Dec 20, 2020 11:35 am 

Joined: Wed Jun 17, 2020 1:12 pm
Posts: 103
Up


Top
   
PostPosted: Tue Mar 02, 2021 11:35 am 
User avatar

Joined: Thu Aug 11, 2016 6:52 pm
Posts: 30
I found the fonts in TresFont.uexp. It contains SWF file with 4 fonts with unknown format (.dat files in zip). Each of that files contains header+data+table. My investigation of .dat structure:

Code:
short magic; //always 0x7FFB
int fileSize; //without first 6 bytes (magic+filesize)
short fontNum; //order of font in swf
string fontName; //has variable size
int unknown05; //always 0x00060000
byte unknown06; //?
short unknown07; //?
int unknown08; //width?
int unknown09; //height?
int dataLength; //size of font texture (tga?)


Archive - https://disk.yandex.ru/d/y099O5B2uD37Xw


Top
   
PostPosted: Tue Mar 02, 2021 12:15 pm 

Joined: Wed Jun 17, 2020 1:12 pm
Posts: 103
Code:
/TresGame/Flash/91_font/TresFont.swf

It's extension is "swf"
If i know correctly, if we can extract this and repack this "TresFont.uexp"
JPEX Flash decompiler can help.


Top
   
PostPosted: Tue Mar 02, 2021 2:49 pm 
User avatar

Joined: Thu Aug 11, 2016 6:52 pm
Posts: 30
yusuf2020 wrote:
Code:
/TresGame/Flash/91_font/TresFont.swf

It's extension is "swf"
If i know correctly, if we can extract this and repack this "TresFont.uexp"
JPEX Flash decompiler can help.

SWF contains 4 unknown files. I guess this is TGA textures, but i can't bring them to correct look(maybe because it swizzled). I showed the structure of these files above.


Top
   
PostPosted: Thu Mar 04, 2021 6:48 am 

Joined: Wed Jun 01, 2016 5:53 pm
Posts: 48
LinkOFF wrote:
I found the fonts in TresFont.uexp. It contains SWF file with 4 fonts with unknown format (.dat files in zip). Each of that files contains header+data+table. My investigation of .dat structure:

Code:
short magic; //always 0x7FFB
int fileSize; //without first 6 bytes (magic+filesize)
short fontNum; //order of font in swf
string fontName; //has variable size
int unknown05; //always 0x00060000
byte unknown06; //?
short unknown07; //?
int unknown08; //width?
int unknown09; //height?
int dataLength; //size of font texture (tga?)


Archive - https://disk.yandex.ru/d/y099O5B2uD37Xw


Hh nice guesswork but that file is actual SWF. Just cut first 289 bytes from TresFont.uexp and save as swf. There are also some of data on the end of file but its few bytes. Just save that cutted file with JPEXS and compare with original. It will show you which bytes are removed after saving.
Image

Here is 010 Hex Editor template to parse not whole file but at least the SWF you wanted.
Code:
//------------------------------------------------
//--- 010 Editor v11.0.1 Binary Template
//
//      File:
//   Authors:
//   Version:
//   Purpose:
//  Category:
// File Mask:
//  ID Bytes:
//   History:
//------------------------------------------------
LittleEndian();
FSeek(285);

struct {
    uint GFXFileSizeCheckFlag;
    ubyte GFXFile[GFXFileSizeCheckFlag];
    uint ExtraDataSize;
    ubyte ExtraData[ExtraDataSize];
} GFXF;


Top
   
PostPosted: Thu Mar 04, 2021 10:39 am 

Joined: Wed Jun 17, 2020 1:12 pm
Posts: 103
LinkOFF wrote:
I found the fonts in TresFont.uexp. It contains SWF file with 4 fonts with unknown format (.dat files in zip). Each of that files contains header+data+table. My investigation of .dat structure:

Code:
short magic; //always 0x7FFB
int fileSize; //without first 6 bytes (magic+filesize)
short fontNum; //order of font in swf
string fontName; //has variable size
int unknown05; //always 0x00060000
byte unknown06; //?
short unknown07; //?
int unknown08; //width?
int unknown09; //height?
int dataLength; //size of font texture (tga?)


Archive - https://disk.yandex.ru/d/y099O5B2uD37Xw

Image
How did you export the TresTestDebugFontLarge.uexp ?


Top
   
PostPosted: Thu Mar 04, 2021 3:07 pm 

Joined: Wed Jun 01, 2016 5:53 pm
Posts: 48
Most probably with Umodel. Set engine version from 4.16 to 4.19 but you get nothing useable... BTW textures are PS4 swizzled. I manage to HEX extract first texture from 112 or so.


Top
   
PostPosted: Thu Mar 04, 2021 4:09 pm 
User avatar

Joined: Thu Aug 11, 2016 6:52 pm
Posts: 30
h3x3r, thanks!
yusuf2020 wrote:
How did you export the TresTestDebugFontLarge.uexp ?

Gildor's Umodel


Top
   
PostPosted: Wed Mar 31, 2021 8:18 am 

Joined: Wed Jun 17, 2020 1:12 pm
Posts: 103
I got these files with viewtopic.php?f=9&t=12764&hilit=uasset+script
Does it help ?
I can also repack it.I guess there is a compression.


Attachments:
TresTestDebugFontLarge.rar [3.74 MiB]
Downloaded 15 times
Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 10 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