Actions

Difference between revisions of "Sonic & Knuckles Collection/Technical information"

From Sonic Retro

(Content)
(16 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{stub}}
+
{{back}}[[Category:Technical information]]
__NOTOC__
+
{{cleanup}}
This is the '''[[Sonic Community Hacking Guide]] for ''[[Sonic & Knuckles Collection]]'', the PC version of ''[[Sonic 3 & Knuckles]]''.''' <br>
+
 
All data except for music is identical to the Genesis version but byteswapped (order goes 1,0 instead of 0,1).
+
All data except for music is identical to the Mega Drive version but byteswapped (order goes 1,0,3,2 instead of 0,1,2,3).
==Level Data==
+
==Level data==
===Level Layout===
+
===Level layout===
:''Main Article: [[SCHG:Sonic 3 & Knuckles/Level Editing#Layout]]''
+
:''Main Article: [[SCHG:Sonic the Hedgehog 3 & Knuckles/Level Editing#Level Layout]]''
{| class="prettytable"
+
{|class="prettytable" style="width:auto;"
 
!Location||Level
 
!Location||Level
 
|-
 
|-
Line 15: Line 15:
 
| Angel Island Zone Act 2
 
| Angel Island Zone Act 2
 
|}
 
|}
 +
 
==Graphics==
 
==Graphics==
===Art Tiles===
+
===Art tiles===
These use the standard Genesis format and can be edited with any tile editor.
+
These use the standard Mega Drive format and can be edited with any tile editor.
{| class="prettytable"
+
{|class="prettytable" style="width:auto;"
 
!Start Address||End Address||Description
 
!Start Address||End Address||Description
 
|-
 
|-
Line 40: Line 41:
 
| 7A2DB
 
| 7A2DB
 
| Mini Knuckles
 
| Mini Knuckles
 +
|-
 
| 7A46C
 
| 7A46C
 
| 7D28B
 
| 7D28B
Line 132: Line 134:
 
| Tails Extra
 
| Tails Extra
 
|}
 
|}
==RAM Editing==
+
 
:''Main Article: [[SCHG:Sonic 3 & Knuckles/RAM Editing]]''
+
==RAM editing==
 +
:''Main Article: [[SCHG:Sonic the Hedgehog 3 & Knuckles/RAM Editing]]''
 
The RAM starts at 08FF0000.
 
The RAM starts at 08FF0000.
{{SCHGuides}}
+
 
[[Category:Sonic Community Hacking Guide]]
+
==Save file==
 +
{|class="prettytable" style="width:auto;"
 +
!Offset||Type||Description
 +
|-
 +
| 180
 +
| $54 bytes
 +
| Sonic the Hedgehog 3 & Knuckles save slots (8 slots, $A bytes each)
 +
{| class="prettytable" style="width:auto;"
 +
!  Offset  || Value  ||Description
 +
|-
 +
|$00-$01 ||  Word  ||Slot State
 +
|-
 +
|        ||  $8000  ||New Game
 +
|-
 +
|        ||  $0000  ||Game in Progress
 +
|-
 +
|        ||  $0100  ||Game Complete
 +
|-
 +
|        ||  $0200  ||Game Complete with all Chaos Emeralds
 +
|-
 +
|        ||  $0300  ||Game Complete with all Super Emeralds
 +
|-
 +
|$02    ||  Byte  ||Current Character
 +
|-
 +
|        ||  $00    ||Sonic And Tails
 +
|-
 +
|        ||  $10    ||Sonic
 +
|-
 +
|        ||  $20    ||Tails
 +
|-
 +
|        ||  $30    ||Knuckles
 +
|-
 +
|$03    ||  Byte  ||Current Level
 +
|-
 +
|        ||  $0C    ||Last level for knuckles
 +
|-
 +
|        ||  $0D    ||Last level for Sonic without chaos/super emeralds, or Tails
 +
|-
 +
|        ||  $0E    ||Last level for Sonic with at least all Chaos Emeralds
 +
|-
 +
|$04    ||  Byte  ||Unknown
 +
|-
 +
|$05    ||  Byte  ||Something with Special Stages Array
 +
|-
 +
|$06    ||  Byte  ||Something with Collecting a Chaos Emerald
 +
|-
 +
|$07    ||  Byte  ||Something with Collecting a Super Emerald
 +
|-
 +
|$08    ||  Byte  || Current Number of lives
 +
|-
 +
|$09    ||  Byte  || Current Number of Continues
 +
|}
 +
* Note that byte $02 also keeps a record of special stages played through, whether you won or lost it. It updates by $01s.
 +
|}
 +
 
 +
==References==
 +
<references />
 +
 
 +
{{SKCOmni}}

Revision as of 05:37, 25 March 2020

Back to: Sonic & Knuckles Collection.
Sonicretro-round.svg This article needs cleanup.

This article needs to be edited to conform to a higher standard of article quality.
After the article has been cleaned up, you may remove this message. See How to Edit a Page for help.

All data except for music is identical to the Mega Drive version but byteswapped (order goes 1,0,3,2 instead of 0,1,2,3).

Level data

Level layout

Main Article: SCHG:Sonic the Hedgehog 3 & Knuckles/Level Editing#Level Layout
Location Level
259F34 Angel Island Zone Act 1
25A780 Angel Island Zone Act 2

Graphics

Art tiles

These use the standard Mega Drive format and can be edited with any tile editor.

Start Address End Address Description
1302B 1374A HUD Numbers, Debug Numbers
593DC 70A7B Tails
70A7C 73B3B Mini Sonic
73B3C 76E5B Mini Tails
76E5C 7A2DB Mini Knuckles
7A46C 7D28B Sonic Surfing (Unused)
7E180 84A3F Invincibility Stars, Puff of Smoke, Shields
95118 95AD7 CNZ Cannon
95AD8 96257 Drowning Countdown
96258 96757 SONIC/MILES BG
E7654 E7CB3 Some Knuckles Sprites
E91F4 EAD93 Butterdroid and Cluckoid
EC4D8 ECD43 Some Knuckles Sprites?
EE198 EF838 Hyudoro
F50F0 F776F Knuckles from HPZ cutscene
100F78 101AB7 Knuckles from SSZ
117244 117CE3 Rhinobot
11D5DC 11DFFB Bubbles
11EE54 11FF93 Clamer
1240A8 125087 Penguinator
127E28 129147 Flybot767
1313DC 1320DB Signpost
132D40 137C1F more Knuckles
137CF4 13A993 Big Ring
1A2EAC 1C2DCB Sonic
1C2F8C 1E2D0B Knuckles
1E2F0C 1E6BAB Sonic Extra
1E6BAC 1E94CB Tails Extra

RAM editing

Main Article: SCHG:Sonic the Hedgehog 3 & Knuckles/RAM Editing

The RAM starts at 08FF0000.

Save file

Offset Type Description
180 $54 bytes Sonic the Hedgehog 3 & Knuckles save slots (8 slots, $A bytes each)
Offset Value Description
$00-$01 Word Slot State
$8000 New Game
$0000 Game in Progress
$0100 Game Complete
$0200 Game Complete with all Chaos Emeralds
$0300 Game Complete with all Super Emeralds
$02 Byte Current Character
$00 Sonic And Tails
$10 Sonic
$20 Tails
$30 Knuckles
$03 Byte Current Level
$0C Last level for knuckles
$0D Last level for Sonic without chaos/super emeralds, or Tails
$0E Last level for Sonic with at least all Chaos Emeralds
$04 Byte Unknown
$05 Byte Something with Special Stages Array
$06 Byte Something with Collecting a Chaos Emerald
$07 Byte Something with Collecting a Super Emerald
$08 Byte Current Number of lives
$09 Byte Current Number of Continues
  • Note that byte $02 also keeps a record of special stages played through, whether you won or lost it. It updates by $01s.

References


Sonic & Knuckles Collection
SKC Title.png

Main page | Hidden content | Magazine articles | Video coverage | Reception | Technical information