Actions

SCHG

Sonic Adventure DX: PC/EXE Editing/Function List

From Sonic Retro

Revision as of 13:54, 8 April 2010 by MainMemory (talk | contribs) (This might be useful.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Template:SCHG SADX:PC

The following is a list of functions in the US version of sonic.exe. For the EU version, adding $50 to the address usually works. All values are in hex unless explicitly specified otherwise.

Address Size Label Description Arguments Returns
25B0 8AD CheckSettings Checks settings in sonicDX.ini and checks for CD in drive. None Nothing
3070 19 SetTextures Sets the texture list to use when drawing models. pointer to texture list header Nothing
B860 D5 ObjLoad Loads an object. unknown char, unknown char, pointer to object's code pointer to master object struct for the loaded object, 0 if loading failed.
C090 92D GameMode Runs different parts of the game based on the current game mode. None Nothing
144D0 C SetCharacter Sets the character value. short character ID Nothing
144E0 8 GetCurrentCharacterID Returns the ID of the current character. None Current character ID
14570 34 SetLevelAndAct Sets the level and act values, and stores the previous level and act values. char level, char act Nothing
145B0 1A SetNextLevelAndAct Sets the level and act to use for the next area. char level, char act Nothing
14610 35 GoToNextLevel Sets the current level and act to the next level and act, and stores the previous level and act. None Nothing
14650 13 GetLevelAndAct Returns the current level and act values as a short. None (level << 8)
14670 13 GetPrevLevelAndAct Returns the previous level and act values as a short. None (prevlevel << 8)
14690 13 GetNextLevelAndAct Returns the next level and act values as a short. None (nextlevel << 8)
146B0 27 IsLevelChaoGarden Returns True (1) if the current level ID is 27, 28, 29, or 2A. None True (1) or False (0)
147F0 D SetLevelEntrance Sets the level entrance number. char entrance number Nothing
14800 6 GetLevelEntrance Returns the level entrance number. None level entrance number
157C0 1BC CharLoad Loads all the characters for the level. None Nothing
23D70 A9 PlaySound Plays a sound effect/voice clip. int ID, int unknown, int unknown, int unknown Unknown
25690 18 PlayMusic Plays a song. int song 0 if music is disabled, song if music is enabled
258F0 11 GetDebugMode Returns status of the debug mode flag. None 1 if debug is enabled, 0 otherwise
Sonic Community Hacking Guide
General
SonED2 Manual | Subroutine Equivalency List
Game-Specific
Sonic the Hedgehog (16-bit) | Sonic the Hedgehog (8-bit) | Sonic CD (prototype 510) | Sonic CD | Sonic CD (PC) | Sonic CD (2011) | Sonic 2 (Simon Wai prototype) | Sonic 2 (16-bit) | Sonic 2 (Master System) | Sonic 3 | Sonic 3 & Knuckles | Chaotix | Sonic Jam | Sonic Jam 6 | Sonic Adventure | Sonic Adventure DX: Director's Cut | Sonic Adventure DX: PC | Sonic Adventure (2010) | Sonic Adventure 2 | Sonic Adventure 2: Battle | Sonic Adventure 2 (PC) | Sonic Heroes | Sonic Riders | Sonic the Hedgehog (2006) | Sonic & Sega All-Stars Racing | Sonic Unleashed (Xbox 360/PS3) | Sonic Colours | Sonic Generations | Sonic Forces
Technical information
Sonic Eraser | Sonic 2 (Nick Arcade prototype) | Sonic CD (prototype; 1992-12-04) | Dr. Robotnik's Mean Bean Machine | Sonic Triple Trouble | Tails Adventures | Sonic Crackers | Sonic 3D: Flickies' Island | Sonic & Knuckles Collection | Sonic R | Sonic Shuffle | Sonic Advance | Sonic Advance 3 | Sonic Battle | Shadow the Hedgehog | Sonic Rush | Sonic Classic Collection | Sonic Free Riders | Sonic Lost World
Legacy Guides
The Nemesis Hacking Guides The Esrael Hacking Guides
ROM: Sonic 1 | Sonic 2 | Sonic 2 Beta | Sonic 3

Savestate: Sonic 1 | Sonic 2 Beta/Final | Sonic 3

Sonic 1 (English / Portuguese) | Sonic 2 Beta (English / Portuguese) | Sonic 2 and Knuckles (English / Portuguese)
Move to Sega Retro
Number Systems (or scrap) | Assembly Hacking Guide | 68000 Instruction Set | 68000 ASM-to-Hex Code Reference | SMPS Music Hacking Guide | Mega Drive technical information