don't click here

Sonic Adventure 2 Hacking

Discussion in 'Engineering & Reverse Engineering' started by Turbohog, Feb 20, 2012.

  1. Turbohog

    Turbohog

    Member
    966
    125
    43
    Since this is now a general SA2 Hacking Thread, here's some helpful links. PM me if you think I should add/change something on this list.
    Tools:
    SA2 Mod Loader - MainMemory
    SA Tools - MainMemory
    Decryped Executable - MainMemory
    IDA 5.5 Database - MainMemory
    SA2 Cheat Table - flarn2006

    Notable Mods:
    MainMemory's Mods
    SA2B - Network Mod - Morph
    Sonic Adventure 2: Pro Edition - Dude
    SA2: The New Challengers - Neo
    No Upgrades for Sonic or Shadow - darkspines35
    Fusion's Chao Editor
    Trial Sonic Mod - darkspines35
    Better Buttons - Morph
    Stache Fix - Morph
    No LoD - Morph


    Old Post:
     
  2. Aerosol

    Aerosol

    Not here. Moderator
    11,183
    594
    93
    Not where I want to be.
    Sonic (?): Coming summer of 2055...?
    What are the mlt files?
     
  3. Turbohog

    Turbohog

    Member
    966
    125
    43
    Ah, I completely forgot to mention that. The MLT files contain all of the voices/sound effects for the game. The ADX files just have the music and such.

    Edit: Turns out I'm a fool. The only .afs file contains all of the voices from the cut-scenes. However, I think the MLT files still contain the sound effects used in the game.
     
  4. Glaber

    Glaber

    Has Beaten Sonic Genesis for GBA Oldbie
    personally, I'd like to know how to get at the DLC models.
     
  5. Azu

    Azu

    I must be stupid. Member
    I'd like to see a Level editor, personally.
     
  6. MainMemory

    MainMemory

    Kate the Wolf Tech Member
    4,789
    370
    63
    SonLVL
    A Sonic Adventure 2 level editor would 1. likely be written by me and 2. have about the same features as SA1LVL did: only being able to move geometry, and edit SET and CAM files.

    Unless somebody can figure out how to add data to a stage file. Also I'd have to figure out all/most of the chunk types in SA2 models.
     
  7. Azu

    Azu

    I must be stupid. Member
    I though SA2 and SA has some similarities between them? I don't know if I heard it here or at X-Cult though.
     
  8. MainMemory

    MainMemory

    Kate the Wolf Tech Member
    4,789
    370
    63
    SonLVL
    It has several similarities to SA1. The models however are processed almost entirely differently.
     
  9. Dr. Kylstein

    Dr. Kylstein

    Member
    86
    0
    6
    I'm quite familiar with Python, but I can't find anything wrong with the highlighted line. What version of Python are you using? There are several in circulation.
     
  10. Turbohog

    Turbohog

    Member
    966
    125
    43
    I'm using 3.2.1. I think the original code was written with Python 2 though and I edited some of the code months ago to work with new syntax and such.
    Edit: Turns out I'm a fool. The only .afs file contains all of the voices from the cut-scenes. However, I think the MLT files still contain the sound effects used in the game...so it'd be great to extract them.
     
  11. Dr. Kylstein

    Dr. Kylstein

    Member
    86
    0
    6
    Python 2.7 is still supported, if that helps at all. It's still the default on Ubuntu. If I knew where to get the data, I might be of more help.
     
  12. darkspines35

    darkspines35

    It's Easy Actually. No, seriously. Tech Member
    248
    0
    16
    .V.
    Sanik Adevnt Casters
    A little late to the party, but I've been trying to break some ground in SA2B since I can at least hack it (sorry SA2 DC goers). Well, I did this.
    [​IMG]
    And this is a direct swap between Sonic and Super. Had to adjust IDs in his model to make it work, but hey, it worked, haha. I also have a big list of animations I was working on. Turns out the game uses practically the same animation format as SA1/DX. But just swapping some IDs in there does wonders for animation swapping.
     
  13. Ryuki

    Ryuki

    Member
    96
    0
    6
    Well you just answered my dreams as an 11 year old. Fucking GameWinners.com and Supercheats.com telling me you'd unlock Super Sonic/Shadow by obtaining 180 Emblems and A ranking every stage. I'd never been so dissapointed in my life. >:

    Fuck it, I'm downloading Dolphin and hunting down an SA2B iso simply in the hope you write a how-to or make a release. I'd play the fuck out of it. /11yearold

    EDIT: Out of interest, how does this swap affect the cutscenes? Does the head freak out like in SADX?
     
  14. darkspines35

    darkspines35

    It's Easy Actually. No, seriously. Tech Member
    248
    0
    16
    .V.
    Sanik Adevnt Casters
    Well, I haven't watched a cutscene with it. And I would release this if it weren't so crash prone. Due to Super Sonic lacking pretty much every single model, except for his body, he crashes. A lot. I mean, I should have probably shown a picture of what happens when you jump. With the swap, since Super has his own normal model too for when you run out of rings, that model is now part of the jump ball model. So to get this to fully work with some animation swaps and whatnot, I'd have to port some data between models. You know what? I'll just do a video later to show the crashy crashy the game is. I do think if someone could make some codes to eliminate some of the things that are borked, like items, jump ball model, that after shadow model, and the jumping and homing attack models, he might just work entirely. But until then, it's just a showing off that it's possible. I'll also check on the cutscenes for you. I'm pretty sure they're the same since the game includes the character models in the event files.
     
  15. MainMemory

    MainMemory

    Kate the Wolf Tech Member
    4,789
    370
    63
    SonLVL
    So I figured out why SAMDL fails to read SA2B models.
    The first piece of vertex data in Sonic's first model in SA2:
    29 00 19 00 6C 00 04 00
    The same data in SA2B:
    00 19 00 29 00 04 00 EE

    Not only is the chunk header treated as a word when our docs say it's two bytes (wouldn't be the first time), it looks like they switched the length and chunk type, and the index base and vertex count parameters. The floats following are the same in both (byteswapped obviously), so aside from one parameter being changed it's basically the same data.

    I'm not sure I have enough information to actually do anything about this though.
     
  16. darkspines35

    darkspines35

    It's Easy Actually. No, seriously. Tech Member
    248
    0
    16
    .V.
    Sanik Adevnt Casters
    What offset is that at if you don't mind me asking. I'd like to check it out myself, see what's up. I remember comparing the the data between the LSDash after shadow models and it seemed to match up.
     
  17. MainMemory

    MainMemory

    Kate the Wolf Tech Member
    4,789
    370
    63
    SonLVL
    In SA2: [first model] -> 9A80 -> 9A68 -> 99FC
    In SA2B: [first model] -> 10F2C -> 10F14 -> 10EA8
     
  18. Chemical Heat

    Chemical Heat

    Being the new guy is hard... Member
    7
    0
    0
    Iceland
    None at the moment
    It has begun..
    But seriously. Awesome progress! Can't wait to test it out, or mod SA2B myself to play as Super Sonic without crashing :3


     
  19. qwertysonic

    qwertysonic

    Member
    1,002
    360
    63
    creating the biggest sonic collection
    So have you tried any texture edits yet? I made a topic about a year back about it, but it never went anywhere.
     
  20. darkspines35

    darkspines35

    It's Easy Actually. No, seriously. Tech Member
    248
    0
    16
    .V.
    Sanik Adevnt Casters
    http://www.youtube.com/watch?v=0B0RZOD9fyY&feature=youtu.be
    There's the vid to go along with this.