Actions

SCHG

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

From Sonic Retro

(Misc. Code)
(Misc. Code)
Line 412: Line 412:
 
!Address (US)||Address (CR)||Bytes||ASM||Description||Result when disabled
 
!Address (US)||Address (CR)||Bytes||ASM||Description||Result when disabled
 
|-
 
|-
| 00425AB0
+
| 13D9E
 +
|
 +
| c6 05 40 ef b0 03 00
 +
| mov byte ptr [03b0ef40],00
 +
| Show the HUD
 +
| Allow hiding the HUD
 +
|-
 +
| 25AB0
 
|  
 
|  
 
| 66 c7 05 e4 f0 b0 03 00 00
 
| 66 c7 05 e4 f0 b0 03 00 00
Line 419: Line 426:
 
| Don't lose rings when hit
 
| Don't lose rings when hit
 
|-
 
|-
| 00425C03
+
| 25C03
 
|  
 
|  
 
| 66 89 0d e4 f0 b0 03
 
| 66 89 0d e4 f0 b0 03
 
| mov [03b0f0e4],ecx
 
| mov [03b0f0e4],ecx
 
| Ring collection
 
| Ring collection
| Collecting rings doesn't add to total
+
| Collecting rings doesn't add to total. Also disables Super Sonic's ring drain.
 
|-
 
|-
| 00425CC0
+
| 25CC0
 
|  
 
|  
 
| 66 a1 e4 f0 b0 03
 
| 66 a1 e4 f0 b0 03

Revision as of 11:27, 27 September 2009

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

Note: There are multiple versions of SADXPC. Addresses in sonic.exe may not work for your version. Make sure the values given match your exe before editing it! Addresses that only work for the US Retail version will be marked with US. Addresses that only work for the Cracked version will be marked with CR. These have not been tested with the European version. Please fix that.
Note: to find these in RAM, add $400000.

Animation Swapping

Sonicretro-round.svg This short section needs expansion. You can help Sonic Retro by adding to it.

Sonic

Address (US) Address (CR) Description Default(dec.)
917F9 Leaning forwards 7
91807 Leaning back 8
92F1C Hurt 23
92F7A Jump Cancel 18
93053 Light Speed Dash 64
94FDC Falling 18
951D3 Rolling 15
95B44 Running 1 12
95B97 Springing 16
95BDA Walking 3 11
95C27 Running 2 13
95C77 Jumping/Spindashing 14
95E2C Walking 2 10
95E46 Walking 1 9
961DB Victory! 75
9675C Drowning 85
97CC0 After Jump Dash 18
97F4B Hurt Landing 24
9BDC1 Dying 87

Metal Sonic

Address (US) Address (CR) Description Default(dec.)
95B3A Running 1 146
95BEB Running 2 13

Action Swapping

Sonicretro-round.svg This short section needs expansion. You can help Sonic Retro by adding to it.

Sonic

Address (US) Address (CR) Description Default(dec.)
92F12 Hurt 16
92F6A Jump Cancel 12
94848 After Hurt 1
94F8F Falling After Rolling 8
94FD3 Falling 12
95063 Standing 1
951C0 Rolling 5
95F11 Jumping 8
96001 Vertical Spring 9
96048 Spring 10
96353 Falling down building 48
9676D Dying 86
96EFA Spindash 4
97771 Landing and moving after rolling 2
977B9 Homing Attack/Jump Dash 14
97843 After Vertical Spring 12
978D0 After Spring 12
979A1 Landing and moving 2
97CB8 After Jump Dash 12
97CDB After Homing Attack 8
9936B Jumping down building 49
99393 Rolling down building 47
994B1 Running down building after jumping 46
99522 Running down building after falling 46
9A83E Walking/Running 2
9ABE5 Level start 1
9B47A Hit while running down building 50

Super Sonic

Address (US) Address (CR) Description Default(dec.)
94EC2 Dying 86
9A3AF Jump Cancel 78

Physics

Locations

These are indexed by $5154E8 + (Character * $84).

Character Address
Sonic 5154E8
Tails 5155F0
Knuckles 515674
Amy 51577C
Gamma 515800
Big 515884

Offsets

These are in the same locations as in RAM. These are all Floats except Hang Time, which is 4 Bytes, measured in frames.

Offset Description
0 Hang Time
4 Amount of grip on floor
8 Horizontal Speed Cap
C Vertical Speed Cap
10 Something to do with the maximum speed Sonic can accelerate to on his own?
14  ?
18 Initial Jump Speed
1C Spring Control?
20  ?
24 Rolling Cancel Speed
28 Rolling End Speed
2C Running 1 Speed
30  ?
34 Running 2 Speed
38 While jump is held, add this to speed.
3C Ground Acceleration?
40 Air Acceleration
44 Ground Deceleration
48 Brake Speed
4C Air Brake Speed
50 Air Deceleration
54 Rolling Deceleration
58 Speed to add to normal gravity?
5C Speed when Sonic hits something?
60  ?
64  ?
68  ?
6C  ?
70 Ripple Size?
74 Collision Size
78 Gravity (Multiplied by Gravity values)
7C Y Offset for camera
80 Y Offset

Misc. Code

This section is for code that doesn't fit into any of the above sections. To disable code, replace it with nop instructions ($90)

Address (US) Address (CR) Bytes ASM Description Result when disabled
13D9E c6 05 40 ef b0 03 00 mov byte ptr [03b0ef40],00 Show the HUD Allow hiding the HUD
25AB0 66 c7 05 e4 f0 b0 03 00 00 mov word ptr [03b0f0e4],0000 Set rings to 0 when hit Don't lose rings when hit
25C03 66 89 0d e4 f0 b0 03 mov [03b0f0e4],ecx Ring collection Collecting rings doesn't add to total. Also disables Super Sonic's ring drain.
25CC0 66 a1 e4 f0 b0 03 mov ax,[03b0f0e4] Copy rings value when hit Always spill 20 rings and can't die when hit
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