Actions

SCHG

Difference between revisions of "Sonic the Hedgehog 2 (16-bit)/Object Editing/Pointers"

From Sonic Retro

m
 
Line 406: Line 406:
 
|-
 
|-
 
|3C
 
|3C
|Breakable wall (unused)
+
|Breakable wall (leftover from GHZ, S1)
 
|$15D44
 
|$15D44
 
|$15ECC
 
|$15ECC

Revision as of 22:54, 11 August 2006

Sonic 2 guide | Main SCHG page

This pointer index can be found at $1600C-$1637C. Each pointer is an absolute longword value. Every object has exactly one pointer associated with it, and this pointer leads to the start of the object's code.

The ID number is hex, and denotes the object's position in the list. Code is value of the actual pointer. Mappings tells where to find the object's sprite mappings, and Subparameters tells what arguments, if any, the object can take when it's placed on the playfield.

FIXME: More subparameters! 
ID # Description Code Mappings Subparameters
01 Sonic $19F50 $6FBE0
02 Tails $1B8A4 $7446C
03 Collision plane switch, switches Sonic to high or low collision plane $1FCDC $1FFB8
04 Water surface $208DC $20A0E
05 Tails' tails $1D200 $739E2
06 Rotating cylinder in Metropolis Zone, twisting pathway in Emerald Hill Zone $214C4 $?????
07 Oil (stretches across entire map) $24020 $?????
08 Water splash in Aquatic Ruin Zone, Spindash dust $1DD20 $1DF5E
09 Don't use - causes game to crash $338EC $34212
0A Small bubbles from Sonic's face while underwater $1D320 $1FBF6
0B Section of pipe from Chemical Plant Zone $2009C $201A0
0C Small floating platform (unused) $20210 $202FA
0D End of level sign post $191B8 $19656
0E Flashing stars from intro $12E18 $136A8
0F Title screen menu $13600 $13B70
10 (unknown) Only affects Tails, he cannot move $347EC $34B3E
11 Bridge in Emerald Hill Zone and Hidden Palace Zone $F66C $FC70
$FC28
  • $08 - 8 block bridge
  • $0A - 10 block bridge
  • $0C - 12 block bridge
  • $0E - 14 block bridge
  • $10 - 16 block bridge
12 "Master Emerald" from Hidden Palace Zone $2031C $20382
13 Waterfall in Hidden Palace Zone $203AC $20528
14 See saw from Hill Top Zone $21928 $21CF0
15 Swinging platform from Aquatic Ruin Zone $FC9C $101E8
16 Diagonally moving lift from Hill Top Zone $21DAC $21F14
17 ??????? $10310 $10452
18 Moving platform from Emerald Hill Zone and Aquatic Ruin Zone $104AC $107F6
$1084E
  • $00 - Static
  • $01 - Move left and right
  • $02 - Moves up and down
  • $03 - Falling
19 Platform from Chemical Plant Zone, Oil Ocean Zone and Wing Fortress Zone $22018 $2222A
  • $00 - Move left and right (CPZ)
  • $01 - Move left and right (CPZ)
  • $02 - Move up and down slowly (CPZ)
  • $03 - Moves up when stepped on (CPZ)
  • $04 - Moves up automatically (CPZ)
  • $05 - Still (CPZ)
  • $06 - Move up and down quickly (CPZ)
  • $07 - Move down and up quickly (CPZ)
  • $08 - Move in a circle #1 (CPZ)
  • $09 - Move in a circle #2 (CPZ)
  • $0A - Move in a circle #3 (CPZ)
  • $0B - Move in a circle #4 (CPZ)
  • $0C - Move in a circle #1 (clockwise) (CPZ)
  • $0D - Move in a circle #2 (clockwise) (CPZ)
  • $0E - Move in a circle #3 (clockwise) (CPZ)
  • $0F - Move in a circle #4 (clockwise) (CPZ)
  • $10-$1F (Same as $00 to 0F, but smaller platform) (CPZ)
  • $20-$2F (Same as $00 to 0F, but longer platform) (OOZ)
  • $30-$3F (Same as $00 to 0F) (WFZ)
1A Collapsing platform in Oil Ocean Zone $108BC $10C6C
1B Speed booster from Chemical Plant Zone $222AC $223E2 $00
1C Bridge stake in Emerald Hill Zone and Hill Top Zone, Falling oil in Oil Ocean Zone $111D4 $?????
1D Blue balls in Chemical Plant Zone $22408 $22576
1E Spin tube from Chemical Plant Zone $2259C $?????
1F Collapsing platform $10A08 $10F0C
$110C6
$11106
$1115E
20 Lava bubble from Hill Top Zone $22FF8 $23254
21 HUD (Seems to be the TIME display when the clock reaches 9:00, but I haven't tested it) $80BE $8146
22 Arrow shooter from Aquatic Ruin Zone $25694 $25804
23 Pillar that drops it's lower part from Aquatic Ruin Zone $2588C $259E6
24 Bubbles in Aquatic Ruin Zone $1F8A8 $1FBF6
25 Ring $11F44 $12382
26 Monitor $12670 $12D36
  • $00 - Static (harms Sonic)
  • $01 - Sonic 1-up
  • $02 - Tails 1-up
  • $03 - Robotnik
  • $04 - Super Ring
  • $05 - Super Shoes
  • $06 - Shield
  • $07 - Invincibility
  • $08 - Teleport
  • $09 - Question mark (random)
  • $0A - Broken
27 Explosion of an enemy $21088 $21120
28 Animal and the 100 points from a badnik $1188C $?????
29 "100 points" text $11DC6 $11ED0
2A Stomper from Mystic Cave Zone (the moving wall?) $115C4 $11666
2B Rising pillar from Aquatic Ruin Zone $25A5A $25C6E
2C Falling leaves from Aquatic Ruin Zone $26104 $20E74
2D One way barrier $1169A $11822
2E Monitor contents (code for power-up behavior and rising image) $12854 $12D36
2F Smashable ground in Hill Top Zone $23300 $236FA
30 Large rising lava during earthquake in Hill Top Zone $238DC $?????
31 Lava collision marker $20DEC $20E6E
32 Breakable rock from Chemical Plant Zone and Hill Top Zone $2351A $23852
$23886
33 Green platform from Oil Ocean Zone $23AF4 $23DDC
34 Title card $13C48 $147BA
35 ??????? $1D97E $?????
36 Spikes $15900 $15B68 The first nybble can be set in the range $0-$3 and sets the spike style. The second nybble is a flag - if set, the spikes shift up and down, if clear, the spikes are static.
37 Scattering rings (generated when Sonic is hurt and has rings) $12078 $12382
38 Shield $1D8F2 $1DBE4
39 Game/Time Over text $13F74 $14C6C
3A End of level result screen $14086 $14CBC
3B Solid block (any specific block?) $15CC8 $15D2E
3C Breakable wall (leftover from GHZ, S1) $15D44 $15ECC
3D Oil Ocean Zone sphere transporter launcher $24DD0 $250BA
3E Egg prison $3F1E4 $3F436 $00
3F Fan from Oil Ocean Zone $2A7B0 $2AA12
40 Pressure spring from CPZ and ARZ (the red "diving board" spring) $26370 $265F4
41 Spring $18888 $1901C
$19032
The first nybble determines the orientation:
  • $0 - facing up
  • $1 - facing to the side
  • $2 - facing down
  • $3 - facing diagonally up and to the right
  • $4 - facing diagonally down and to the right

The second nybble docs still need to be written.

42 Steam Spring from Metropolis Zone $26634 $2686C
43 Sliding spike obsticle thing from Oil Ocean Zone $23E40 $23FE0
44 Round bumper from Casino Night Zone $1F730 $1F85A
45 Pressure spring from Oil Ocean Zone $240F8 $2451A
46 Ball from Oil Ocean Zone (unused, beta leftover) $24A16 $24C52
47 Button $24CF4 $24D96
48 Sphere Transporter from Oil Ocean Zone $25244 $254FE
49 Unused large vertical laser from Wing Fortress Zone $20B9E $20C50
4A Octus (octopus badnik) from Oil Ocean Zone $2CA14 $2CBFE
4B Buzz Bomber (badnik) $2D068 $2D2EA $00
4C Removed object from HPZ (Bat type badnik) $1637C $?????
4D Removed object from HPZ (???????) $1637C $?????
4E Removed object from HPZ (???????) $1637C $?????
4F Removed object from HPZ (Dinosaur type badnik) $1637C $?????
50 Aquis (seahorse badnik) from OOZ $2CCC8 $2CF94
51 Casino Night Zone boss $318F0 $320EA
52 Hill Top Zone boss $2FC50 $302BC
53 Shield orbs that surround Metropolis Zone boss $32940 $32DC6
54 Metropolis Zone boss $32288 $32DC6
55 Oil Ocean Zone boss $32F90 $33756
56 Emerald Hill Zone boss $2EF18 $2FAF8
57 Mystic Cave Zone boss $30FA4 $316EC
58 Boss explosion $2D494 $2D50A
59 ??????? (possibly the "get emerald" object) $35FBC $3625A
5A ??????? $35554 $3632A
5B ??????? $353FE $?????
5C Masher (jumping pirahna badnik) from Emerald Hill Zone $2D394 $2D442 $00
5D Chemical Plant Zone boss $2D734 $2ED8C
5E ??????? $6FC0 $7070
5F ??????? $70F0 $?????
60 ??????? $34FA0 $?????
61 ??????? $34EB0 $36508
62 Removed object (???????) $1637C $?????
63 ??????? $340A4 $?????
64 Twin stompers from Metropolis Zone $26920 $26A5C
65 Long moving platform from Metropolis Zone $26AE0 $26EC8
66 Yellow spring walls from Metropolis Zone $26F58 $27120
67 Warp tubes from Metropolis Zone $2715C $27548
68 Block with four retracting spikes from Metropolis Zone $27594 $27750
69 Nut from Metropolis Zone $27884 $27A26
6A Platform from Metropolis Zone, moves when you walk off $27AB0 $26EC8
6B Platform from Metropolis Zone, doesn't move $27D6C $26EC8
6C Small platform, going up and right (unused) $28034 $28372
6D Floor spike from Metropolis Zone $27794 $27750
6E Small platform, moving in a circle (unused) $283AC $2852C
6F End of special stage result screen $143C0 $147BA
70 Giant rotating cog from Metropolis Zone $285C0 $28786
71 Bridge stake and pulsing orb from Hidden Palace Zone $112F0 $11396
$11576
72 Conveyor belt from Casino Night Zone $2893C $?????
73 Solid rotating ring thing from Mystic Cave Zone (unused, can be seen in debug mode) $289D4 $28B9C
74 Invisible solid block $20EE0 $20F66 (blocks = 16x16)
  • $00 - 1 block
  • $11 - 2 blocks vertical
  • $17 - 4 blocks vertical
  • $21 - 2 blocks horizonatal
  • $41 - 3 blocks horizontal
  • $71 - 4 blocks horizontal

These may be a bit off, because it's hard to measure something that's invisible.

75 Brick from Mystic Cave Zone $28BC8 $28D8A
76 Spike block from Mystic Cave Zone (slides out of wall when Sonic gets near) $28DF8 $28F3A
77 Bridge from Mystic Cave Zone $28F88 $29064
78 Stairs from Chemical Plant Zone that move down to open the way $291CC $2800E
  • $00 - Moves down after sonic stands on it
  • $01 - Moves down automatically
  • $02 - Horizontal, non moving
  • $04 - Moves up after Sonic stands on it
  • $05 - Moves up automatically
79 Star pole $1F0B4 $1F424 The designation number of the star pole, from $00-$09. Used to determine order - if you hit pole $04 before you've hit $03, the game will behave as if you did hit $03, even if you never actually go near it.
7A Small yellow platform in Chemical Plant Zone $293A0 $29564
$10256
7B Warp pipe exit spring from Chemical Plant Zone $29590 $29780
7C Big poylon thing that's in the foreground in Chemical Plant Zone $20FD2 $2103C
7D Left over from Sonic 1 (points that can be gotten at the end of an act) $1F624 $1F6FE
7E ??????? $1E0F0 $1E1BE
7F Vine switch that you hang off in Mystic Cave Zone $297E4 $29938
80 Elevator vine from Mystic Cave Zone and Wing Fortress Zone (lifts or lowers Sonic) $2997C $29DD0
81 Long invisible vertical barrier $2A000 $2A24E
82 Swinging platform in Aquatic Ruin Zone $2A290 $2A476
83 3 adjoined platforms from Aquatic Ruin Zone $2A4FC $1021E
84 Pinball mode enable/disable (used in Casino Night Zone to determine when Sonic should stay in a ball) $2115C $1FFB8
85 Pressure spring from Casino Night Zone (Impulse spring?) $2AB84 $2B07E
$2B0EC
86 Flipper from Casino Night Zone $2B140 $2B45A
87 ??????? $7356 $72D2
88 ??????? $34A5C $?????
89 Aquatic Ruin Zone boss $30480 $30E04
8A Text that appears in the middle of the screen.(unknown) $3EAC8 $3EB4E
8B ??????? from Wing Fortress Zone $21392 $1FFB8
8C Whisp (blowfly badnik) from Aquatic Ruin Zone $36924 $36A4E
8D Grounder in Wall $36A76 $36CF0
8E Grounder badnik from Aquatic Ruin Zone $36A76 $36CF0
8F ??????? $36B88 $?????
90 ??????? (Grounder badnik?) $36BD4 $36CF0
$36D00
$36CFA
91 Chop Chop (pirahna badnik) from Aquatic Ruin Zone $36DAC $36EF6
92 Spiker (drill badnik) from Hill Top Zone $36F0E $?????
93 ??????? $36FE6 $37092
94 Rexon (lava snake badnik) from Hill Top Zone $37322 $?????
95 Sol (fireball-trowing badnik) from Hill Top Zone $370FE $372E6
96 Rexon (lava snake badnik) from Hill Top Zone (again) $37322 $?????
97 ??????? $373D0 $37678
98 ??????? $376E8 Too many to list
99 Nebula (bomber badnik) from Sky Chase Zone $377C8 $3789A
9A Turtloid (turtle badnik) from Sky Chase Zone $37936 $?????
9B ??????? $37A06 $?????
9C ??????? $37A82 $37B62
9D Coconuts (monkey badnick) from Emerald Hill Zone $37BFA $37D96 $1E
9E Crawlton (snake badnik) from Mystic Cave Zone $37E16 $37FF2 $22
9F Shellcraker (crab badnik) from Metropolis Zone $3800C $?????
A0 ??????? $3815C $38314
A1 Slicer (praying manits badnik) from Metropolis Zone $383B4 $?????
A2 ??????? $384A2 $385E2
A3 Flasher (firefly badnik) from Mystic Cave Zone $3873E $388F0
A4 Asteron (exploding star badnik) from Metropolis Zone $3899C $38A96
A5 Spiny (crawling badnik) from Chemical Plant Zone $38AEA $?????
A6 Spiny (on wall) from Chemical Plant Zone $38B86 $38CCA
A7 Grabber (spider badnik) from Chemical Plant Zone $38DBA $?????
A8 (unknown) can burst like a badnik, but dissapears immediately $38F66 $?????
A9 ??????? $39032 $?????
AA ??????? $39066 $?????
AB ??????? $390A2 $3921A
$39228
AC Balkiry (jet badnik) from Sky Chase Zone $3937A $393CC
AD block that Clucker badnik sits on $3941C $?????
AE Clucker (chicken badnik) from Wing Fortress Zone $39452 $395B4
AF Silver Sonic $3972C $39E68 (Body, Flame)
$3A08C (Eggman remote control window)
B0 ??????? $3A1DC $?????
B1 ??????? $3A3F8 $3A5A6
B2 The Tornado $3A790 $3AFF2
$3B292
B3 ??????? from Sky Chase Zone $3B2DE $3B32C
B4 Vertical Propeller from Wing Fortress Zone $3B36A $3B3BE
B5 Horizontal Propeller from Wing Fortress Zone $3B3FA $3B548
B6 Tilting platform from Wing Fortress Zone $3B5D0 $3B856
B7 ??????? $3B8A6 $3B8E4
B8 Wall turret from Wing Fortress Zone $3B968 $3BA46
B9 Laser from Wing Fortress Zone that shoots down the Tornado $3BABA $3BB18
BA Wheel from Wing Fortress Zone $3BB4C $3BB70
BB ??????? $3BB7C $3BBA0
BC ??????? $3BBBC $3BC08
BD Elevator type thing from Wing Fortress Zone $3BC1C $3BD3E
BE Platform that pops in and out from Wing Fortress Zone $3BD7A $3BE46
BF ??????? $3BEAA $3BEE0
C0 Catapult thing that pushes you from Wing Fortress Zone $3BF04 $3C098
C1 Breakable plating from Wing Fortress Zone $3C0AC $3C280
C2 Wing Fortress Zone boss chamber entry switch $3C328 $3C3C2
C3 ??????? $3C3D6 $21120
C4 ??????? $3C3D6 $21120
C5 Wing Fortress Zone boss $3C442 $3CCD8
$3CEBC
C6 Eggman $3CED0 $3D0EE
$3D1DE
C7 Eggrobo (final boss) $3D4C8 $2D50A
$3E318
$3E3D8
$3E438
C8 Crawl (badnik) from Casino Night Zone $3D23E $3D450
C9 ??????? $132F0 $136A8
CA Movie sequence at end of game $A1D6 $906E0
$906F8
$90722
$9073C (compressed)
CB ??????? $A9F2 $?????
CC ??????? $A3C8 $9076E
$907C0 (compressed)
CD ??????? $AAAE $11E1C
CE ??????? $A894 $?????
CF ??????? $A988 $ADA2
D0 Removed object $1637C $?????
D1 Removed object $1637C $?????
D2 Flashing blocks in Casino Night Zone $2B528 $2B694
D3 ??????? $2B84C $2B8D4
D4 Big moving block from Casino Night Zone and Chemical Plant Zone $2B8EC $2B9CA
D5 Elevator from Casino Night Zone $2BA08 $2BB40
D6 Cage that gives out points from Casino Night Zone $2BB6C $2BEBC
D7 Bumper from Casino Night Zone $2C448 $2C626
D8 Thing in Casino Night Zone that changes colour when you hit it $2C6AC $2C8C4
D9 Rail that Sonic holds onto from Wing Fortress Zone $2C92C $?????
DA Continue text $7A68 $7CB6
DB Sprite of Sonic lying down from Continue screen $7B82 $6FBE0
DC ??????? $125E6 $?????