Difference between revisions of "Sonic the Hedgehog (16-bit)/Miscellaneous Hacking"
From Sonic Retro
(It begins.) |
(No difference)
|
Revision as of 19:32, 30 November 2009
This short article is in need of work. You can help Sonic Retro by adding to it. |
SCHG: Sonic the Hedgehog |
---|
|
Level Order
Level order in Sonic 1 is stored as a set of values in the following format:
Assume Z is the zone number and A is the act number.
ZZAA
lvl_ord.bin specifies the level to load at the end of each level. Each two bits are reserved for a different level slot.
So, the format of lvl_ord.bin is as follows, based on the original level order.
GHZ1 GHZ2 GHZ3 GHZ4 LZ1 LZ2 LZ3 LZ4(SBZ3) MZ1 MZ2 MZ3 MZ4 SLZ1 SLZ2 SLZ3 SLZ4 SYZ1 SYZ2 SYZ3 SYZ4 SBZ1 SBZ2 SBZ3(FZ) SBZ4
Say you wanted to USE GHZ4. In that case, assuming an otherwise normal level order, you'd have bits 05-08 as follows:
00 03 02 00
For those who're not sure of the original zone order, zone IDs are as follows:
ID | Level |
---|---|
00 | Green Hill |
01 | Labyrinth |
02 | Marble |
03 | Star Light |
04 | Spring Yard |
05 | Scrap Brain |
06 | Ending |