Difference between revisions of "Sonic the Hedgehog (16-bit)/Object Editing"
From Sonic Retro
Scarred Sun (talk | contribs) m |
(Bit of cleanup) |
||
Line 1: | Line 1: | ||
{{SCHG S1}} | {{SCHG S1}} | ||
− | + | ==Object Pointer List== | |
− | |||
− | |||
− | |||
''SS Note: Code offsets for each actual pointer were taken from the Nemesis guides; they do not all appear to be accurate, but I don't have enough skill to go back and correct them yet. Someone else may take this task up.'' | ''SS Note: Code offsets for each actual pointer were taken from the Nemesis guides; they do not all appear to be accurate, but I don't have enough skill to go back and correct them yet. Someone else may take this task up.'' | ||
{|border="1" class="prettytable" | {|border="1" class="prettytable" | ||
Line 980: | Line 977: | ||
|} | |} | ||
− | + | ==Mappings Editing== | |
− | |||
Each mapping is 5 bytes long, taking the form TTTT TTTT 0000 WWHH PCCY XAAA AAAA AAAA LLLL LLLL. | Each mapping is 5 bytes long, taking the form TTTT TTTT 0000 WWHH PCCY XAAA AAAA AAAA LLLL LLLL. | ||
Revision as of 15:19, 14 August 2008
SCHG: Sonic the Hedgehog |
---|
|
Object Pointer List
SS Note: Code offsets for each actual pointer were taken from the Nemesis guides; they do not all appear to be accurate, but I don't have enough skill to go back and correct them yet. Someone else may take this task up.
ID # | Description | Code | Mappings | Subparameters |
---|---|---|---|---|
01 | Sonic | $12BD8 | $21292 | |
02 | ???? | $D5B2 | ?? | |
03 | ???? | $D5B2 | ?? | |
04 | ???? | $D5B2 | ?? | |
05 | ???? | $D5B2 | ?? | |
06 | ???? | $D5B2 | ?? | |
07 | ???? | $D5B2 | ?? | |
08 | LZ water splash | $142F0 | ?? | |
09 | Sonic in Special Stage | $1B984 | ?? | |
0A | Drowning countdown numbers | $13C98 | $14152 | |
0B | LZ vertical pole | $11206 | $11326
$11331 |
|
0C | LZ doors that open and close | $11346 | ?? | $02 |
0D | End of level signpost | $EB28 | ?? | |
0E | Sonic on the title screen | $A61C | ?? | |
0F | "PRESS START BUTTON" and "TM" from title screen | $A69C | ?? | |
10 | Blank object | $1C022 | ||
11 | GHZ Bridge | $7328 | ?? |
|
12 | Spinning light behind glass from SYZ | $E90C | ?? | |
13/14? | Fireball from MZ/SLZ | $E296 | $B37A |
|
15 | GHZ and MZ swinging platforms Spiked ball on a chain (SBZ) SLZ swinging platforms |
$E304 | $7C4E $10AA6 $7C6C |
|
16 | Spear from LZ | $11F04 | $11FA6 |
|
17 | Helix of spikes on a pole from GHZ | $7CA2 | $7E08 | $10 |
18 | GHZ platforms SLZ platforms SYZ platforms |
$7E32 | $8140 $819C $818A $80FE (unused) |
|
19 | Blank object | $81A8 | ||
1A | Collapsible cliff from GHZ | $8210 | $85A8 |
|
1B | Water surface from LZ | $110C6 | $11178 | |
1C | Fireball launcher from SLZ GHZ bridge stump |
$87CA | $8858 |
|
1D | ???? | $885E | $891E | |
1E | Ballhog | $8B4C | $8E6E | |
1F | Crabmeat | $94F0 | $975E | |
20 | Big red explosion | $8C1C | ???? | |
21 | SCORE, TIME, RINGS | $1C548 | $1C5BC | |
22 | Buzz bomber | $97DE | $9A42 | |
23 | Missile that Buzz Bomber throws | $9932 | $9B0E | |
24 | Explosion | $8CF2 | $8EAE | |
25 | Ring | $9B26 | $9FA2 | |
26 | Monitor | $A118 | $A5A2 |
|
27 | Normal explosion | $8D62 | ???? | |
28 | Freed animals | $8F22 | $946C $9484 $949C |
|
29 | Points upon destroying | $9412 | $94BC | |
2A | One way barrier from SBZ | $8934 | $89FE | |
2B | Chopper enemy | $AB20 | $ABCE | |
2C | Jaws enemy | $ABDA | $AC78 | |
2D | Burrobot enemy | $ACA4 | $AE6A | |
2E | Contents of monitor flying up from monitor being busted | $A302 | ???? | |
2F | Large platforms from MZ | $AEB8 | $B2DA |
|
30 | Large glassy blocks from MZ | $B39E | $B600 |
|
31 | Metal stomping blocks on chains | $B67C | $BB64 |
|
32 | Switch | $BD2E | $BEAC |
|
33 | Moveable block in MZ and LZ | $BED2 | $C2EA | |
34 | Title card | $C306 | ???? | |
35 | Fireball that sits on the floor (MZ) (appears when you walk on sinking platforms) |
$B1DC | ???? | |
36 | Spikes | $CE28 | $CFF4 |
|
37 | Rings flying out from being hit | $9CB6 | ???? | |
38 | Shield and invincibility stars | $14158 | $143C2 | |
39 | "Game over"/"Time over" sprite | $C4B8 | $CBAC | |
3A | End of level results screen | $C572 | ???? | |
3B | GHZ purple rock | $D050 | $D110 | |
3C | Breakable walls in GHZ, SLZ | $D11C | $D2BC |
|
3D | Robotnik in his primary ship | $17700 | $17D26 | |
3E | Egg prison | $1AB22 | $1AD82 | |
3F | Large explosion | $8DF6 | ???? | |
40 | Motobug | $F61A | $F7AE | |
41 | Springs | $DABE | $DD26 |
|
42 | Newtron enemy (GHZ) | $DD68 | $DF58 |
|
43 | Roller enemy (SYZ) | $DFFA | $E1AC | |
44 | Wall barrier from GHZ | $E1D4 | $E256 |
|
45 | Spiked metal block from beta version (MZ) | $B99A | $BC6C | |
46 | Solid blocks and blocks that fall from the ceiling (MZ) | $E7D0 | $E906 |
|
47 | Pinball bumper (SYZ) | $E9D0 | $EB06 | |
48 | Swinging ball on a chain from GHZ boss | $17AE4 | $81B2 | |
49 | Waterfall sound effect | $D0BE | ||
4A | Special stage entry from beta | $14254 | $1447C | |
4B | Giant ring | $9E06 | $9FDA | |
4C | Lava geyser / lava that falls from the ceiling trigger (MZ) | $ED84 | $F272 |
|
4D | Lava geyser / lava that falls from ceiling | $EE70 | ???? | Triggered by object $4C |
4E | Advancing wall of lava (MZ) | $F05E | $F538 | |
4F | Blank object used for object $50 | |||
50 | Yadrin enemy (SYZ) | $F83A | $F93A | |
51 | Smashable green block (MZ) | $FC92 | $FDD8 | |
52 | Moving blocks (MZ, LZ, SBZ) | $FDF8 | $10054 $100A2 |
|
53 | Collapsing floors (MZ, SLZ, SBZ) | $8320 | $874E |
|
54 | Invisible lava tag (MZ) | $F1B8 | $F212 | |
55 | Basaran enemy (MZ) | $100A8 | $10246 | |
56 | Moving blocks (SYZ/SLZ/LZ) | $10286 | $10710 |
|
57 | Spiked ball on a chain | $10782 | $10964 | Subparameters are set so the first half of the nybble sets the speed (lower is faster) and the second half determines the amount of links on the chain, starting with 2 at the 3 value. |
58 | Spikeball | $10976 | ???? |
|
59 | Raising platforms (SLZ) | $10AD2 | $10D4A |
|
5A | Platforms that move in circles (SLZ) | $10D5A | $10E84 |
|
5B | Blocks that form a staircase (SLZ) | $10E90 | $1103E |
|
5C | Metal girders in foreground (SLZ) | $11044 | $11098 | |
5D | Fans (SLZ) | $114FC | $1161A | $00-$02 |
5E | Seesaws (SLZ) | $1163C | $119AC $119EA |
|
5F | Walking bomb enemy (SLZ, SBZ) | $119F6 | $11C40 | |
60 | Orbinaut enemy (LZ, SLZ, SBZ) | $11CCE | $11EEC |
|
61 | Blocks (LZ) | $11FD4 | $121CA |
|
62 | Gargoyle head (LZ) | $121E8 | $12320 | $01-$04 |
63 | Platforms on a conveyor belt (LZ) | $1233C | $12686 |
|
64 | Bubbles (LZ) | $126A4 | $129FA | $80-82 |
65 | Waterfalls (LZ) | $12A9E | $12B6C |
|
66 | Rotating disc that grabs Sonic (SBZ) | $1509A | $152B4 |
|
67 | Disc that you run around (SBZ) (Small object; actual disc is in level tiles) |
$154E2 | $15688 | $40 |
68 | Conveyor belts (SBZ) (Small object; actual belt is in level tiles) |
???? | ???? |
|
69 | Spinning platforms and trapdoors (SBZ) | $15730 | $158E6 $15944 |
|
6A | Ground and ceiling saws (SBZ) | $1597C | $15BA0 |
|
6B | Stomper and platforms (SBZ) | $15C12 | $15F72 |
|
6C | Vanishing platforms (SBZ) | $15FF8 | $16132 | $00, $40, $80, $C0, $C6, $E6 |
6D | Flame thrower (SBZ) | $E4E0 | $E620 | $43 |
6E | Electrocution orbs (SBZ) | $16146 | $161EC |
|
6F | Spinning platforms that move around a conveyor belt (SBZ) | $1626A | ???? | $80-$85 |
70 | Large girder block (SBZ) | $1652A | $1662A | |
71 | Invisible solid blocks | $1141A | $114BC | Various |
72 | Teleporter (SBZ) | $16668 | ???? | $00-$08 |
73 | Eggman (MZ) | $18230 | ???? | |
74 | Lava that Eggman drops (MZ) | $186A4 | ???? | |
75 | Eggman (SYZ) | $190EE | ???? | |
76 | Blocks that Eggman picks up (SYZ) | $19692 | $19808 | |
77 | Eggman (LZ) | $17E36 | ???? | |
78 | Caterkiller enemy (MZ, SBZ) | $16934 | $16D9E | |
79 | Lamppost | $16E2E | $17100 | $00-$09 - Posts 0 through 9 |
7A | Eggman (SLZ) | $188B8 | ???? | |
7B | Exploding spikeys that the SLZ boss drops | $18CCE | $190E2 | |
7C | Special stage entry effect | $9ED6 | $A084 | |
7D | Hidden points at the end of a level | $1715E | $17250 |
|
7E | Special stage results screen | $C7AE | ???? | |
7F | Chaos Emeralds from the special stage results screen | $C956 | $CE02 | |
80 | Continue screen | $4E42 | $5066 | |
81 | Sonic on the continue screen | $4F5C | ???? | |
82 | Eggman (SBZ2) | $19832 | ???? | |
83 | Blocks that disintegrate when Eggman presses a switch | $19B60 | $19D1C | |
84 | Cylinders Eggman hides in (FZ) | $1A44E | $1A68E | |
85 | Eggman (FZ) | $19D58 | $1A3DE | |
86 | Energy balls/launcher (FZ) | $1A7DA | $1AA5E $1AABC |
|
87 | Sonic on the ending sequence | $53E2 | $5690 | |
88 | Chaos Emeralds on the ending sequence | $553C | $5788 | |
89 | "SONIC THE HEDGEHOG" text on the ending sequence | $5616 | $57B4 | |
8A | "SONIC TEAM PRESENTS" and credits | $17264 | $172F8 | |
8B | Robotnik on the "TRY AGAIN" and "END" screens | $59E2 | $5BCC | |
8C | Chaos Emeralds on the "TRY AGAIN" screen | $5AC2 | ???? |
Mappings Editing
Each mapping is 5 bytes long, taking the form TTTT TTTT 0000 WWHH PCCY XAAA AAAA AAAA LLLL LLLL.
- LLLL LLLL is the left co-ordinate of where the mapping appears.
- TTTT TTTT is the top co-ordinate of where the mapping appears.
- WW is the width of the mapping, in tiles minus one. So 0 means 8 pixels wide, 1 means 16 pixels wide, 2 means 24 pixels wide and 3 means 32 pixels wide.
- HH is the height of the mapping, in the same format as the width.
- P is the priority-flag. If P is set, the mapping will appear above everything else.
- CC is the palette line.
- X is the x-flip-flag. If X is set, the mapping will be flipped horizontally.
- Y is the y-flip-flag. If Y is set, the mapping will be flipped vertically.
- AAA AAAA AAAA is the tile index.
The VRAM offset specified in an object's SST will be added to the PCCY XAAA AAAA AAAA word.