Sonic the Hedgehog (16-bit)/Miscellaneous Hacking
From Sonic Retro
(Redirected from SCHG:Sonic the Hedgehog/Miscellaneous Hacking)
|This short article is in need of work. You can help Sonic Retro by.|
|SCHG: Sonic the Hedgehog|
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.
lvl_ord.bin (or Level Order.bin in the HG dissembly) specifies the level to load at the end of each level. Each two bytes 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 bytes 05-08 as follows:
00 03 02 00
For those who're not sure of the original zone order, zone IDs are as follows:
Same format as the level order- each two bytes are for one act. First is X, second is Y. Easy-peasy.
Each byte represents one Zone according to the original zone order. Simply set it to the ID of the music file to be played.