Hacking [REVERSE ENGINEERING] Finding the correct encoding for hiragana text

Serberker

Well-Known Member
OP
Member
Joined
Jan 13, 2019
Messages
105
Trophies
0
XP
1,181
Country
Hungary
Hi all!

I'm kinda stuck with the encoding of a game.
The ingame text is hiragana, but the hex values don't match up.

What is the typical encoding of japan psp games?
It seems the characters are stored on 2 bytes, but UTF16-LE, and shift-jis doesn't return the correct characters.

I doubt that they have put an offset in the encoding or that they used custom encoding.

Any help / hint / idea is greatly appreciated.
 
Last edited by Serberker,

FAST6191

Techromancer
Editorial Team
Joined
Nov 21, 2005
Messages
36,798
Trophies
3
XP
28,348
Country
United Kingdom
Also I think it's unlikely that they used custom encoding.
Why? The vast majority of console games in history have used custom encodings, and while the PSP was in an era where we started to see more common encodings used by default it was so very far from unheard of for custom encodings to be used.
 

Serberker

Well-Known Member
OP
Member
Joined
Jan 13, 2019
Messages
105
Trophies
0
XP
1,181
Country
Hungary
You won :D
Found the custom encoding table, and it works flawlessly.
Feeling confident as it has latin characters too.
 

Attachments

  • x3.png
    x3.png
    111.2 KB · Views: 250
Last edited by Serberker,
  • Like
Reactions: crimsonwolf8439

Serberker

Well-Known Member
OP
Member
Joined
Jan 13, 2019
Messages
105
Trophies
0
XP
1,181
Country
Hungary
Statistics :D

The game itself have like 22k files. I modified my extraction script to group by and count the file extensions.
The result was ~16 (or 18 can't recall atm) different extensions.
I checked the files with the lowest count and the encoding table was there, with the extension of .TTL

In my case the files with the highest count were texture and model files.
That was followed by the animation files. This count was lower because static models (like trees, houses) don't have an animation.
And then varius script and other files.
 
Last edited by Serberker,

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    SylverReZ @ SylverReZ: https://www.youtube.com/watch?v=kaQqCfuxKoE