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,403
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: 251
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
  • ColdBlitz @ ColdBlitz:
    I'm avoiding buying from the big 3 at all atm
  • Psionic Roshambo @ Psionic Roshambo:
    At one point PC game pads where poorly supported, loading a game had setup, it was complicated. Now it's almost as easy as a console.
  • ColdBlitz @ ColdBlitz:
    nintendo needs to up their game soon
  • K3Nv2 @ K3Nv2:
    Yeah even bt support for Xbox one controllers are just as easy as pairing
    +1
  • ColdBlitz @ ColdBlitz:
    considering the steamdeck can emulate the switch (yikes) theres almost 0 reason to buy the switch apart from playing online and using cartridges
  • K3Nv2 @ K3Nv2:
    Xinput and 360 dongles were a driver nightmare
  • K3Nv2 @ K3Nv2:
    I remember having to manually put in drivers and what not
  • Psionic Roshambo @ Psionic Roshambo:
    Yeah the 360 dongles sucked
  • Psionic Roshambo @ Psionic Roshambo:
    But the new Xbox pads? PIr it up and if a game supports it it just works
  • K3Nv2 @ K3Nv2:
    Most emulators even automatically detect them now
  • Psionic Roshambo @ Psionic Roshambo:
    Yeah it's a good time to be alive lol
  • Psionic Roshambo @ Psionic Roshambo:
    Pi4 and Batocera works with them perfectly too
  • K3Nv2 @ K3Nv2:
    I'd like to see future tap to pair options like you hold it over a scanner and it just automatically pairs
  • K3Nv2 @ K3Nv2:
    No need for additional cords buttons or anything
  • Psionic Roshambo @ Psionic Roshambo:
    Hmmm yeah that is possible BT has an address like an IP
  • Psionic Roshambo @ Psionic Roshambo:
    Scan a QR code on your phone open a page with the controller and a QR code for the device, hit go and done
  • K3Nv2 @ K3Nv2:
    One less latency issue for radio frequency
  • K3Nv2 @ K3Nv2:
    Or even wifi pair opening just an app to sign is nice
  • Psionic Roshambo @ Psionic Roshambo:
    Yeah it could be hosted on the phone hmmm it's an idea Ken
  • K3Nv2 @ K3Nv2:
    But could be bad for people with lower speeds but how many mbs would it really need to detect a button press
  • Psionic Roshambo @ Psionic Roshambo:
    Nearly nothing
  • Psionic Roshambo @ Psionic Roshambo:
    Most of it BT used
  • BigOnYa @ BigOnYa:
    That's how I pair with uremum, I wave a $5 bill across her face, and instant link.
    Psionic Roshambo @ Psionic Roshambo: @The Real Jdbye, lol