ROM Hack Help Creating a tbl for Japanese Character in UTF-8

HeyImAmethyst

Member
OP
Newcomer
Joined
Dec 15, 2019
Messages
18
Trophies
0
Age
22
Website
heyimamethyst.deviantart.com
XP
159
Country
United States
I'm trying to make a table for the Japanese text in the ds game Tongari Boushi to Mahou no Omise. The text encoding is in UTF-8 and for the English letters I have them like this:

41=A
42=B
43=C
44=D
45=E
46=F
47=G
48=H
49=I
4A=J
4B=K
4C=L
4D=M
4E=N
4F=O
50=P
51=Q
52=R
53=S
54=T
55=U
56=V
57=W
58=X
59=Y
5A=Z

61=a
62=b
63=c
64=d
65=e
66=f
67=g
68=h
69=i
6A=j
6B=k
6C=l
6D=m
6E=n
6F=o
70=p
71=q
72=r
73=s
74=t
75=u
76=v
77=w
78=x
79=y
7A=z

but for the Japanese hiragana characters the hex is like e3 81 81 or e3 81 83 and so on. How do I format the table for these?
 

FAST6191

Techromancer
Editorial Team
Joined
Nov 21, 2005
Messages
36,798
Trophies
3
XP
28,375
Country
United Kingdom
You have a 3 byte/24 bit encoding for the Japanese on the DS? Very strange. It has happened before but it is super rare. Are you sure it is 24bit and not 16 and some kind of markup as the need for 24 is normally only a very specific case I would not expect to see in a handheld game.

Anyway that will depend upon your table program and its preferred encoding. Most will have the option to do 16 bit but I am not sure from what among the normal set is going to play nicely with 24bit. I know crystaltile2 has something ( https://www.romhacking.net/utilities/818/ ) but have not had cause to play much with it. If you can get it to add a character in that regime you can open it up and figure out how it likes its encoding to happen.

Getting from characters to hex is easy enough ( https://www.romhacking.net/utilities/504/ ), though going the other way might be harder, especially for Japanese.
 

HeyImAmethyst

Member
OP
Newcomer
Joined
Dec 15, 2019
Messages
18
Trophies
0
Age
22
Website
heyimamethyst.deviantart.com
XP
159
Country
United States
You have a 3 byte/24 bit encoding for the Japanese on the DS? Very strange. It has happened before but it is super rare. Are you sure it is 24bit and not 16 and some kind of markup as the need for 24 is normally only a very specific case I would not expect to see in a handheld game.

Anyway that will depend upon your table program and its preferred encoding. Most will have the option to do 16 bit but I am not sure from what among the normal set is going to play nicely with 24bit. I know crystaltile2 has something ( https://www.romhacking.net/utilities/818/ ) but have not had cause to play much with it. If you can get it to add a character in that regime you can open it up and figure out how it likes its encoding to happen.

Getting from characters to hex is easy enough ( https://www.romhacking.net/utilities/504/ ), though going the other way might be harder, especially for Japanese.


I'm not really sure about the bit size, when I was trying to find the text for this game I was trying different encodings on files that I suspected held the text until I found it. I even tried translating some text by manually editing the hex values and it showed up in game.

This is what it looks like in crystaltile2:

Screenshot (727).png

and getmyhex shows the same thing

Screenshot (729).png
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
  • BigOnYa @ BigOnYa:
    I went to auction at a mom/pops video game store few months ago that was closing, and bought 11 slims for $200, 1 was DOA but 10 work fine. so hella deal. Already rgh3'ed 8 of them. But most younger kids don't even want anymore, unless it plays stupid "fortnight", or newer shit.
  • K3Nv2 @ K3Nv2:
    Think I'm gonna use my giftcard balance on a nice pair of headphones but $100 is still limited
  • K3Nv2 @ K3Nv2:
    Soundcore q30s are nice but they leak so much sound it sounds like speakers
  • Psionic Roshambo @ Psionic Roshambo:
    Ken spend the 100 on a gun and skii mask, wait for a jogger at the park jewelry money and headphones!
    +1
  • K3Nv2 @ K3Nv2:
    If only Amazon sold guns
  • K3Nv2 @ K3Nv2:
    Fucking dick heads think it's a bad idea to get a gun 2 days later
  • BigOnYa @ BigOnYa:
    Wait, I thought you were the dickhe...nvm
  • K3Nv2 @ K3Nv2:
    I got balls on my chin and two dicks on my forehead sir
    +1
  • BigOnYa @ BigOnYa:
    Sorry, no offense there double dickhead chinballs.
  • K3Nv2 @ K3Nv2:
    Chicks still love it
    +1
  • BigOnYa @ BigOnYa:
    "Mommy, look, what is that?". "That's your soon to be daddy."
    +1
  • K3Nv2 @ K3Nv2:
    That you'll only see once
    +2
  • Veho @ Veho:
    Double dickhead chinballs is still better than double dickhead eyeballs.
  • Veho @ Veho:
    As in, the balls will grow in your eye sockets.
  • K3Nv2 @ K3Nv2:
    I paid 5 grand to get them moved to my chin
    +1
  • Veho @ Veho:
    This you?
  • K3Nv2 @ K3Nv2:
    My hair can't be that cool
  • Veho @ Veho:
    Ah, yes, portrait mode, surely the best way to film a row of people. If only there were some way to fit a wider shot, at the expense of height... if only...
  • K3Nv2 @ K3Nv2:
    4k portrait mode?
    +1
    K3Nv2 @ K3Nv2: https://youtu.be/Rx-KuevU4h4?si=1MoSvL-y5fFFHf58 Damn kinda sad for Iran