ROM Hack making table with 2 bytes = 1 symbol

ashinigami

Member
OP
Newcomer
Joined
Jun 28, 2008
Messages
9
Trophies
0
Location
Cottekill, NY
XP
25
Country
United States
I'm trying to learn how to translate roms and i'm learning alot but how can i make a table when
1 symbol/letter is two bytes long?

I can only find references to it but not anything telling how to go about it.
 

FAST6191

Techromancer
Editorial Team
Joined
Nov 21, 2005
Messages
36,798
Trophies
3
XP
28,348
Country
United Kingdom
Your main problem with reading guides is they will be for SNES era games and software is probably not far off. They did use such things in SNES games but far more infrequently due to space issues.

Long story short if you have the correct viewers and formats (or viewer that supports a hack to the formats) you have no worries. Most modern tools (such as those people around here and http://www.romhacking.net/utils/ will suggest) will support this and most table formats are really basic:
0000=A
0001=B
0002=C
...
...
...
...

The above is the tbl file format used just about everywhere these days (as many bytes as you need on the left in hex, an equals sign and the character you are representing with it). You can edit it in a text editor if you wanted to.

The hardest part would likely be to remember use wildcards when you are playing with a relative search for 16 bit character sets (rarely will the upper byte change for a given subset of characters (it is generally considered bad practice) and if you are dealing with characters that do not have an order (kanji for instance: few will include the entire set and even if they do have a near complete one there are numerous ordering systems or none at all)) you can generally add in an order of your own.
 

Celice

Well-Known Member
Member
Joined
Jan 1, 2008
Messages
1,920
Trophies
1
XP
628
Country
United States
You create a list with Notepad or your hex editor (Windhex32 has this feature), and list which hex ID is what relative to the game. Usually the first entry in a list will be $00, or $0000 is they use words, or however many necessary. Here's an example from some of my old projects:
CODE46=a
47=b
48=c
49=d
4A=e
4B=f
4C=g
4D=h
4E=i
4F=j
50=k
51=l
52=m
53=n
54=o
55=p
56=q
57=r
58=s
59=t
5A=u
5B=v
5C=w
5D=x
5E=y
5F=z
60=0
61=1
62=2
63=3
64=4
65=5
66=6
67=7
68=8
69=9
6A=A
6B=B
6C=C
6D=D
6E=E
6F=F
70=G
71=H
72=I
73=J
74=K
75=L
76=M
77=N
78=O
79=P
7A=Q
7B=R
7C=S
7D=T
7E=U
7F=V
80=W
81=X
82=Y
83=Z
8C=;
8D=:
8E=,
8F=.
9C=?
9D=!
EF=
AD=/
9E=
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    Psionic Roshambo @ Psionic Roshambo: This parrot is no more it has ceased to be!