Patapon 2 [PSP] GXT font texture files

How to translate the files of a game
VerMishelb
Posts: 6
Joined: Wed Mar 04, 2020 6:51 pm

Patapon 2 [PSP] GXT font texture files

Post by VerMishelb »

I have two versions of Patapon 2 (both EUR, UCES01177). One of them was translated to Russian by unknown person. The thing is that the font contains texture which looks weird. It's in GXT format and I can turn it into PNG and backwards but I can't understand how to make it readable for us (other GXTs are working fine). Please, help me to find the algorithm to make it readable and then turn back edited file to how it was in game.
There are two files: first one is the original UK lang font, the second one is edited somehow: Latin letters are replaced with Cyrillic ones.
EN:
Image

RU:
Image

Also, there is "outlinefont" file, which wasn't edited in RU version but I'll get into it after, probably has the same algorithm of making it readable.
I checked other files, this file must contain all the letters inside it because there is nothing left. Any ideas?

This happens if I just mirror the file vertically (tested if all letters are related to this file)
This one is quite big so I'll leave it as a link.
https://cdn.discordapp.com/attachments/ ... nknown.png

Files (remove .txt from gxt ones):
unknown_0_UK.png

unknown_0_RU.png

unknown_0_UK.gxt.txt

unknown_0_RU.gxt.txt
Last edited by VerMishelb on Tue Apr 07, 2020 12:53 pm, edited 4 times in total.
LokiReborn
Posts: 190
Joined: Fri Aug 26, 2016 3:11 pm

Re: Patapon 2 (GXT turned to PNG) font texture files

Post by LokiReborn »

VerMishelb wrote:I have two versions of Patapon 2 (both EUR, UCES01177). One of them was translated to Russian by unknown person. The thing is that the font contains texture which looks weird. It's in GXT format and I can turn it into PNG and backwards but I can't understand how to make it readable for us (other GXTs are working fine). Please, help me to find the algorithm to make it readable and then turn back edited file to how it was in game.
There are two files: first one is the original UK lang font, the second one is edited somehow: Latin letters are replaced with Cyrillic ones.
EN:
Image

RU:
Image

Also, there is "outlinefont" file, which wasn't edited in RU version but I'll get into it after, probably has the same algorithm of making it readable.
I checked other files, this file must contain all the letters inside it because there is nothing left. Any ideas?

This happens if I just mirror the file vertically (tested if all letters are related to this file)
This one is quite big so I'll leave it as a link.
https://cdn.discordapp.com/attachments/ ... nknown.png


You didn't attach the files.
VerMishelb
Posts: 6
Joined: Wed Mar 04, 2020 6:51 pm

Re: Patapon 2 (GXT turned to PNG) font texture files

Post by VerMishelb »

Whoops, my bad. Fixed.
VerMishelb
Posts: 6
Joined: Wed Mar 04, 2020 6:51 pm

Re: Patapon 2 (GXT turned to PNG) font texture files

Post by VerMishelb »

I tried to use net template instead of checkerboard. Now it's more clear but I still have half of it missing somewhere. Added red colour to make it more contrast.
Image
VerMishelb
Posts: 6
Joined: Wed Mar 04, 2020 6:51 pm

Re: Patapon 2 [PSP] GXT font texture files

Post by VerMishelb »

Somehow made the game show the whole font instead of just one letter. It is indeed made out of two parts and you can see the beginning of both on picture I sent above. Looks like the tool I used to extract GXT can't work with these so I need to find the way to read them again.
Image
Allen
Posts: 156
Joined: Tue Sep 01, 2015 9:44 am

Re: Patapon 2 [PSP] GXT font texture files

Post by Allen »

They are 3 2BPP images, but they are stored in 8BPP.
1 8BPP = 4 2BPP.
The fourth image is not enabled.
If you know programming, please refer to my code. This script is for viewing only.

tex_Patapon2_PSP_font_gxt.zip

Image
Image
Image
VerMishelb
Posts: 6
Joined: Wed Mar 04, 2020 6:51 pm

Re: Patapon 2 [PSP] GXT font texture files

Post by VerMishelb »

Thank you so much! Works like a charm.