Difference between revisions of "Sonic Adventure DX: PC/EXE Editing"
From Sonic Retro
MainMemory (talk | contribs) (This should help distinguish them.) |
MainMemory (talk | contribs) m (→Misc. Code) |
||
Line 423: | Line 423: | ||
|- | |- | ||
| 25AB0 | | 25AB0 | ||
− | | | + | | 25B00 |
| 66 c7 05 e4 f0 b0 03 00 00 | | 66 c7 05 e4 f0 b0 03 00 00 | ||
| mov word ptr [03b0f0e4],0000 | | mov word ptr [03b0f0e4],0000 | ||
Line 430: | Line 430: | ||
|- | |- | ||
| 25C03 | | 25C03 | ||
− | | | + | | 25C53 |
| 66 89 0d e4 f0 b0 03 | | 66 89 0d e4 f0 b0 03 | ||
| mov [03b0f0e4],ecx | | mov [03b0f0e4],ecx |
Revision as of 13:15, 27 September 2009
This short article is in need of work. You can help Sonic Retro by adding to it. |
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
This short section needs expansion. You can help Sonic Retro by adding to it. |
Sonic's Animations
Address (US) | Address (CR) | Description | Default(dec.) |
---|---|---|---|
917F9 | 91849 | Leaning forwards | 7 |
91807 | 91857 | Leaning back | 8 |
92F1C | 92F6C | 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's Animations
Shared with Sonic.
Address (US) | Address (CR) | Description | Default(dec.) |
---|---|---|---|
95B3A | Running 1 | 146 | |
95BEB | Running 2 | 13 |
Action Swapping
This short section needs expansion. You can help Sonic Retro by adding to it. |
Sonic's Actions
Address (US) | Address (CR) | Description | Default(dec.) |
---|---|---|---|
92F12 | Hurt | 16 | |
92F6A | 92FBA | 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's Actions
Shared with 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 | 25B00 | 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 | 25C53 | 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 |