Actions

SCHG

Difference between revisions of "Sonic Adventure DX: PC/RAM Editing"

From Sonic Retro

m (Global Variables)
Line 489: Line 489:
 
*0x03C56210 Sonic
 
*0x03C56210 Sonic
 
|}
 
|}
 +
{{SCHGuides}}
 +
[[Category:Sonic Community Hacking Guide]]

Revision as of 10:54, 19 August 2009

Sonicretro-round.svg This short article is in need of work. You can help Sonic Retro by adding to it.


Note: All values are signed.

Global Variables

Address (hex) Type Description
00912698 Byte Currently playing music
03B0EF34 Byte Lives
03B0EF35 Byte Time in frames. Max 60.
03B0EF38 Byte Voice Language
  • 0 Japanese
  • 1 English
03B0EF40 Byte Setting this to -1 will hide the HUD. However, it is constantly being written to by code at 00413D9E. It will have no effect unless you disable that code.
03B0EF48 Byte Time in minutes
03B0F0E4 2 Bytes Rings. Allowing this to reach a negative value (over 32767) will crash the game.
03B0F0E8 Byte Text Language
  • 0 Japanese
  • 1 English
  • 2 French
  • 3 Spanish
  • 4 German
03B0F0EC Byte Debug. Setting this to a non-negative value displays collision spheres around both characters when on the ground and highlights bottomless pits in white.
03B0F0F8 Float X Gravity
03B0F0FC Float Y Gravity
03B0F100 Float Z Gravity
03B0F104 4 Bytes Enemy Bonus
03B0F104 4 Bytes Level Frame Counter
03B0F128 Byte Time in seconds.
03B0F13C 4 Bytes Frame Counter
03B18895 Byte Light Speed Shoes obtained
03B18896 Byte Crystal Ring obtained
03B188D5 Byte Jet Anklet obtained
03B18DB5 Byte Metal Sonic. Set this to 1 to replace Sonic with Metal Sonic. May crash if you set this during a level.
03B18DB8 Byte Selection on Pause Menu
  • 0 Conitinue
  • 1 Restart
  • 2 Set Up Pad
  • 3 Quit
  • 4 Map
  • 5 Camera
03B22DC0 Byte Current Character
  • 0 Sonic
  • 2 Tails
  • 3 Knuckles
  • 5 Amy
  • 6 E-102 Gamma
  • 7 Big
03B22DC4 Byte Level Copy. Doesn't appear to do anything.
03B22DC8 Byte Entrance Number. Only applies to Adventure Fields.
03B22DCC Byte Current Level
03B22DD0 4 Bytes Set this to any non-zero value to speed up level transitions.
03B22DD4 Byte Adventure Field Act
03B22DD8 Byte Adventure Field Level
03B22DE4 Byte Game Status. (Bad Textures) means that the level will load incorrect textures. This has no effect on the menu.
  • 0 Reset Level (Bad Textures)
  • 1 Clear Screen, disable movement
  • 2 Crash if used directly (Used when dying/restarting)
  • 3 Clear Screen, disable movement
  • 4 Show Level, enable movement
  • 5 Load Adventure Field
  • 6 Die
  • 7 Restart
  • 8 Crash
  • 9 Transition w/ fadeout
  • 10 Clear Screen, disable movement
  • 11 Restart Copy
  • 12 Restart Copy
  • 13 Crash
  • 14 Credits
  • 15 Normal
  • 16 Paused
  • 17 Load Level w/ Loading Screen
  • 18 Crash
  • 19 Return to Title Screen Copy
  • 20 Return to Title Screen
  • 21 Loading Screen (Bad Textures)/Menu
  • 22 Restart Level (Bad Textures)
  • 23 Return to Title Screen Copy
  • 24 Load Level w/ Loading Screen
03B22DEC Byte Current Act
03B22DF0 Byte Next Level. Change this while the screen is fading out.
03B22E18 Byte Next Act. Change this while the screen is fading out.
03B29D08 Byte Debug. Setting this to 1 displays collision spheres around objects and activates free movement mode. (Except for Tails.)
03B2A2F2 Byte Menu voice
  • 0 Default
  • 1 Sonic
  • 2 Tails
  • 3 Knuckles
  • 4 Amy
  • 5 Gamma
  • 6 Big
  • 7 Eggman
  • 8 Tikal
03B2A2FD Byte Selected character in character select
  • 0 Sonic
  • 1 Tails
  • 2 Knuckles
  • 3 Amy
  • 4 Big
  • 5 Gamma
  • 6 Super/Metal Sonic
03C74880 4 Bytes Rings in vault in Casinopolis

Character Object 1

A pointer to this data for player 1 is at 03B42E10. A pointer for player 2 is at 03B25980. Length: $180

Offset (hex) Type Description
0 Byte Action. Varies by character.
4 Bitfield Status 1
Bit Value Description
0 1 On Ground
2 4 Hurt
5 Bitfield Status 2
Bit Value Description
0 1 Ball mode
1 2 Light Speed Dash charged (Sonic only)
2 4 Attacking
3 8 Holding object
4 16 Makes the character stop what they're doing.
6 2 Bytes Invulnerable timer
8 Bitfield Unknown
Bit Value Description
0 1 CPU controlled
9 Byte Set this to a character ID and you'll jump as high as that character.
18 2 Bytes X Rotation
1C 2 Bytes Y Rotation
20 Float X Position
24 Float Y Position
28 Float Z Position
2C Float Shield magnification factor
38 4 Bytes Pointer to more data. Possibly movement related?

Character Object 2

A pointer to this data for player 1 is at 03B3CDF0. A pointer for player 2 is at 3B3CDF4.

Offset (hex) Type Description
4 Bitfield Upgrades 1
Bit Value Description
0 1 Crystal Ring
1 2 Light Shoes
2 4 Ancient Light
3 8 Jet Anklet
4 16 Rhythym Badge
5 32 Fighting Gloves
6 64 Shovel Claw
7 128 Long Hammer
5 Bitfield Upgrades 2
Bit Value Description
0 1 Warrior Feather
1 2 Laser Blaster
2 4 Jet Booster
3 8 Power Rod
7 128 Super Sonic
6 Bitfield Powerups 1
Bit Value Description
0 1 Shield
1 2 Magnetic Shield (also protects you)
7 Bitfield Powerups 2
Bit Value Description
6 64 Rings don't add to total
7 128 Invincible
C 4 Bytes Idle Timer. Max 120000000.
38 Float Horizontal Speed
3C Float Vertical Speed
9C 4 Bytes Hang Time
A4 Float Horizontal Speed Cap
A8 Float Vertical Speed Cap
C4 Float Minimum Rolling Speed
D0 Float Minimum Running Speed
D8 Float Ground Acceleration
DC Float Air Acceleration
E0 Float Ground Deceleration
E4 Float Brake Speed
E8 Float Air Brake Speed
EC Float Air Deceleration
110 Float Collision Size
11C Float Y Offset
124 Byte Animation
140 4 Bytes Animation Address
  • 0x03C49D90 Tails
  • 0x03C532A0 Knuckles
  • 0x03C53FA8 Gamma
  • 0x03C54880 Amy
  • 0x03C556A0 Big
  • 0x03C56210 Sonic
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