Localization games font

How to translate the files of a game
cih99
Posts: 48
Joined: Wed Jun 09, 2021 10:23 pm

Localization games font

Post by cih99 »

UI Fonts Text

:oops:

Font
Square721Dm_18.Font
font_consolas_16.Font
Square721Dm_18_PageA.Texture2D
font_consolas_16_PageA.Texture2D
vadim
Posts: 4
Joined: Tue Apr 13, 2021 9:22 am

Re: Localization games font

Post by vadim »

.Font - these are the coordinates of the font characters
.Texture2D - these Texture with symbols
cih99
Posts: 48
Joined: Wed Jun 09, 2021 10:23 pm

Re: Localization games font

Post by cih99 »

How do I unzip a file?


font_consolas_16.Font

font_consolas_16_PageA.Texture2D
h3x3r
Posts: 165
Joined: Wed Jun 01, 2016 5:53 pm

Re: Localization games font

Post by h3x3r »

Your textures are DXT5 compressed. Texture starts on offset 0x128 hex and decimal 296. Texture size is at offset 0x120 hex and decimal 288.
Texture resolution can be obtained on the end of file. First INT is width and second INT is height. See image.
Image
Font
Image
cih99
Posts: 48
Joined: Wed Jun 09, 2021 10:23 pm

Re: Localization games font

Post by cih99 »

I did not understand what to do to add here or delete until a file appears
dds



Image
h3x3r
Posts: 165
Joined: Wed Jun 01, 2016 5:53 pm

Re: Localization games font

Post by h3x3r »

Good you are using 010 HEX Editor. Here is template to parse font texture files.
You must only add DDS header with correct compression and width/height. Compression is DXT5 with alpha. That "byte TextureRAWDATA[TextureSize];" is texture. Just click on that colum and press Ctrl+double tap C and paste into new file and add DDS header.

Code: Select all

//------------------------------------------------
//--- 010 Editor v11.0.1 Binary Template
//
//      File:
//   Authors:
//   Version:
//   Purpose:
//  Category:
// File Mask:
//  ID Bytes:
//   History:
//------------------------------------------------
FSeek(288);
int TextureSize;
int Unk;
byte TextureRAWDATA[TextureSize];
int Width;
int Height;
nguyen dinh duc
Posts: 26
Joined: Mon Sep 02, 2019 1:38 pm

Re: Localization games font

Post by nguyen dinh duc »

h3x3r wrote:Good you are using 010 HEX Editor. Here is template to parse font texture files.
You must only add DDS header with correct compression and width/height. Compression is DXT5 with alpha. That "byte TextureRAWDATA[TextureSize];" is texture. Just click on that colum and press Ctrl+double tap C and paste into new file and add DDS header.

Code: Select all

//------------------------------------------------
//--- 010 Editor v11.0.1 Binary Template
//
//      File:
//   Authors:
//   Version:
//   Purpose:
//  Category:
// File Mask:
//  ID Bytes:
//   History:
//------------------------------------------------
FSeek(288);
int TextureSize;
int Unk;
byte TextureRAWDATA[TextureSize];
int Width;
int Height;


if I don't have 010 HEX Editor . but using only HxD, how to know the width, and height. To get the image file
can you show me step by step?