Actions

SCHG

Sonic Adventure DX: PC

From Sonic Retro

Revision as of 13:37, 30 August 2009 by MainMemory (talk | contribs) (Sound Editing)
Sonicretro-round.svg This short article is in need of work. You can help Sonic Retro by adding to it.

This is the Sonic Community Hacking Guide for the PC version of Sonic Adventure DX.
Note: There are multiple versions of SADXPC. Addresses in sonic.exe may not work for your version.

Objects

Sonic Retro emblem.svg Main page: SCHG:Sonic Adventure DX: PC/Object Editing

Model Editing

I HURD U LIEK TO EDIT MODALS?

Alright, so you want to edit models in SADX.

First off you need to think of what character you want to edit.

Let's say you want to do Sonic. His head model is name group5674388.

The 5674388 is the decimal offset in CHRMODELS.DLL you need to go to. Use a calculator to convert this number to hexadecimal; in this case the value is 569594.

Open CHRMODELS.DLL in a hex editor. Open the "go to" window (usually done by pressing Ctrl+G). If your editor supports decimal you can just paste in the original value, or you can choose hexadecimal and use that number. Most models end in something like _4 or _20; you only need the numbers before the dash.

Once you have gone to the offset for Sonic's head, you will see 04 00 00 00 (or 0400 0000, depending on how your hex editor is set up; every 2 numbers/letters is one hex byte).

So you want to skip the first 4 bytes, in this case that is 04 00 00 00. You should now see 68 95 56 10 (or another value for a different model). These four bytes are the next offset you want to go to, but they are in little endian and have had 10000000 added to them. Reverse the order of the bytes and subtract 10000000 to get 00569568, and then go to this address.

This time we do NOT skip the first 4 bytes, we select the first 4 bytes which are 78 73 56 10 and once again, reverse the byte order and subtract 10000000. You should get 00567378.

Go to this offset. You are now at the model =D. what you need to do now, is export your edited model in .obj format. (When editing the model do not use symmetry modifiers or mirror the model! You must edit each vertex by hand, you can't mirror it)

Drop your .obj file on obj2vt.exe and you will get an out.vt. Open the out.vt in a hex editor and check how many bytes it has. Off the top of my head, I believe sonic has around 4,000 something. well, check how many bytes that has, and go back to CHRMODELS.DLL. Select a block, the same size as the other file and hit the delete key. Go back to out.vt and select everything and copy it. Paste it in CHRMODELS.DLL were you deleted the old model.

Save, and it should work.

Sound Editing

Sonic Retro emblem.svg Main page: SCHG:Sonic Adventure DX: PC/Sound Editing

Animation Swapping

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

Note: to find these in RAM, add $400000.

Sonic

Address 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 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.

Note: To find these in RAM, add $400000.

Sonic

Address Description Default(dec.)
92F12 Hurt 16
92F6A Jump Cancel 12
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
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 Description Default(dec.)
9A3AF Jump Cancel 78

RAM Editing

Sonic Retro emblem.svg Main page: SCHG:Sonic Adventure DX: PC/RAM Editing
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