Sonic the hedgehog 2
HUD editing (SCORE - TIME - RINGS)
Submitted by Guifrog on May 19 2005.
This will make you able to edit things like the actions of the SCORE
and the RINGS & TIME mappings when you have little time or no rings
in a level, where they will be located when flashing, etc.
The format for the texts is the following:
YY NN RR GG (??) (??) (??) XX
Obs.: The (??) things have unknown action.
YY - The Y (or vertical) position on the screen
NN - How many sprites on the current object won't flash
RR - Red Flash. For this one, you can input several values, 8 per 8 in
hex. Examples: if the mappings you are editing are for the TIME red
flash (second frame of TIME, appears when you have little time in the
level), you can input a "08" for mirroring the text while flashing,
"10" for flipping, "18" for flip/mirroring, "20" to disable the flash.
You can also input other values that will cause many interesting
effects, like doin' all of these with flash disabled ("28", "30", "38",
"40") and so on.
GG - Graphics read position. Usually "00", to read the mappings from
the beginnin'.
XX - The X (horizontal) position on the screen.
Note: If you want the Time/Rings to disappear instead of flashing when
Sonic or Tails have no rings or little time, you can randomicly input
values for all the bytes that compose this format for hud editing, in
the Time/Rings second frames ("flashing" frames, no rings/little time)
offsets, of course.
Thanks to Saxman Sonic 2 Hacking Guide.
Offsets:
When you have time and rings:
0x40AA4 - SCOR
0x40AAC - Exxx
0x40AB4 - xxx0
0x40ABC - TIME
0x40AC4 - x:xx
0x40ACC - RING
0x40AD4 - S
0x40ADC - xxxx
0x40AE4 - (Player picture)
0x40AEC - (Player name / Lives)
When you have time, but no rings:
0x40AF6 - SCOR
0x40AFE - Exxx
0x40B06 - xxx0
0x40B0E - TIME
0x40B16 - x:xx
0x40B1E - RING
0x40B26 - S
0x40B2E - xxxx
0x40B36 - (Player picture)
0x40B3E - (Player name / Lives)
When you have little time, but you have rings:
0x40B48 - SCOR
0x40B50 - Exxx
0x40B58 - xxx0
0x40B60 - TIME
0x40B68 - x:xx
0x40B70 - RING
0x40B78 - S
0x40B80 - xxxx
0x40B88 - (Player picture)
0x40B90 - (Player name / Lives)
When you have little time and no rings:
0x40B9A - SCOR
0x40BA2 - Exxx
0x40BAA - xxx0
0x40BB2 - TIME
0x40BBA - x:xx
0x40BC2 - RING
0x40BCA - S
0x40BD2 - xxxx
0x40BDA - (Player picture)
0x40BE2 - (Player name / Lives)
And that's about it for the 1 player game part. Now, let's go for the
addresses of the 2 Player (vs):
When you have time and rings:
0x40BF8 - TIME
0x40C00 - RING
0x40C08 - S
When you have time but no rings:
0x40C12 - TIME
0x40C1A - RING
0x40C22 - S
When you have little time but you have rings:
0x40C2C - TIME
0x40C34 - RING
0x40C3C - S
When you have little time and no rings:
0x40C46 - TIME
0x40C4E - RING
0x40C56 - S
And that's about it for what i wanted to explain about hud editing.
Phew!
Back to: Sonic the hedgehog 2
Table of contents