don't click here

Disabling Music

Discussion in 'Engineering & Reverse Engineering' started by Mr Lange, Oct 11, 2010.

Thread Status:
Not open for further replies.
  1. Mr Lange

    Mr Lange

    A wise guy eh. I know how to DEAL with wise guys. Member
    1,286
    11
    18
    The Land of Waldos
    Sonic Utopia, Sonic Overture
    I'm working on some videos of the classic Sonic games. I'd like to use other music while preserving the sound effects. To do so I was wondering if there is a known method of disabling or silencing music in the legacy Sonic games. I'm aware that each game handles audio differently and to pull this off may be difficult. There is Sonic mp3 Tool, but I don't need such a specific program and it only works for Sonic 2. If there are already hacks, tutorials or information on this somewhere, please direct me to it and forgive me for wasting time. Such a general question is hard to search for.
     
  2. MarkeyJester

    MarkeyJester

    Original, No substitute Resident Jester
    2,202
    432
    63
    Japan
    While no tool exists specifically for MP3 playback on other games besides Sonic 2, having any music of your choice may be difficult, unless of course, you write your own tool or a plugin for one of the emulators to allow such an action.

    We can, however, advise methods of working with and altering game sound drivers, as Nineko, Tweaker, andlabs and a vast majority of others to note, have done a lot of research in this department and have proven the ability of porting music from game to game, and even the drivers themselves, we have got to the period now where we're able to place our own designed music in place of what's originally there.

    While you won't be able to use or produce any music/sound you want, you're at least provided with two sound chips which do their best to generate realistic enough sounds.

    Now, most Sonic games tend to use a provided sound driver known as SMPS, while I don't know the full function and locations to all of them, I can at least provide you with a way to disable the music perminantly, you'll require a hexadecimal editor to do this though:

    Sonic 1 (REV 00)

    Offset: 00000338
    Change "B2 51" to "60 04"
    Offset: 00001396
    Change "11 C0 F0 0A" to "4E 75 00 00"
    Offset: 00071FD2
    Change "0C 07 00 88" to "4E 75 00 00"

    Sonic 1 (REV 01)

    Offset: 00000338
    Change "B2 51" to "60 04"
    Offset: 0000138E
    Change "11 C0 F0 0A" to "4E 75 00 00"
    Offset: 00071FD2
    Change "0C 07 00 88" to "4E 75 00 00"

    Sonic 2 (REV 00)

    Offset: 00000338
    Change "B2 51" to "60 04"
    Offset: 00001352
    Change "4A 38 FF E0" to "4E 75 00 00"

    Sonic 2 (REV 01)

    Offset: 00000344
    Change "B2 51" to "60 04"
    Offset: 0000135E
    Change "4A 38 FF E0" to "4E 75 00 00"

    Sonic Crackers

    Offset: 00006402
    Change "33 FC 01 00 00 A1 11 00" to "4E 75 00 00 00 00 00 00"

    Sonic 3

    Offset: 000015E2
    Change "33 FC 01 00 00 A1 11 00" to "4E 75 00 00 00 00 00 00"

    Sonic & Knuckles

    Offset: 00001358
    Change "33 FC 01 00 00 A1 11 00" to "4E 75 00 00 00 00 00 00"

    Sonic 3 & Knuckles (Two parts)

    Offset: 00001358
    Change "33 FC 01 00 00 A1 11 00" to "4E 75 00 00 00 00 00 00"
    Offset: 002015E2
    Change "33 FC 01 00 00 A1 11 00" to "4E 75 00 00 00 00 00 00"

    Sonic 3D blast, flickies' island

    While I was considering looking through the Z80 code, I really couldn't be bothered on my part, so I could only recommend searching for some "00 A0 1C 0A" and changing them to "00 A0 70 00", some may be used for SFX, so I suggest being careful with which ones you change =P

    The other Sonic games? Beats me...
     
  3. LordOfSquad

    LordOfSquad

    bobs over baghdad Member
    5,201
    243
    43
    Winnipeg, MB
    making cool music no one gives a shit about
    Not yet. Cinossu's MP3 plugin he included in Retro Channel will eventually support Sonic 1, Sonic 2 and Sonic 3K. Dunno when that's gonna be ready for release, though.
     
  4. Super Egg

    Super Egg

    Master of MS Paint. Member
    313
    0
    16
    Tomball, TEXAS
    Sonic 2 beta 3 hoax
    Well if you actually go off and download the SAGE demo pack, you can get the mp3tool. In theory if you setup the mp3s, you should be able to run them, specifically Sonic 1 anyway. Good luck
     
  5. LordOfSquad

    LordOfSquad

    bobs over baghdad Member
    5,201
    243
    43
    Winnipeg, MB
    making cool music no one gives a shit about
    I believe only Sonic 1 is fully compatible at the moment, though.
     
  6. iojnekns

    iojnekns

    trouble keeps you runnin' faster Member
    148
    0
    16
    Correct me if I am wrong, but OP is simply making a video. He needs to disable the in-game music so that he can play his own tunes over the top - without having to mute the sound effects too. He doesn't want to put his music choices into the game and have them play instead. I'd have thought this would be as simple as replacing the necessary music files with blank ones? Then he can simply play through with sfx only, and dub his own music over the top for the video.
     
  7. nineko

    nineko

    I am the Holy Cat Tech Member
    6,308
    486
    63
    italy
    This is what I would do, actually. Not sure if he wants to bother with a split disassembly, though. Markey's suggestions can be converted to PAR codes and used directly in Gens instead.
     
  8. Cinossu

    Cinossu

    Administrator
    2,832
    44
    28
    London, UK
    Sonic the Hedgehog Extended Edition
    Sonic 1 support is there already, and Sonic 2 support is all-but-done. Sonic 3K is a different story right now, though. :P
     
  9. Impish

    Impish

    Member
    Darn, thats the one I want most, Project Chaos in-game is gonna be great!
     
  10. Mr Lange

    Mr Lange

    A wise guy eh. I know how to DEAL with wise guys. Member
    1,286
    11
    18
    The Land of Waldos
    Sonic Utopia, Sonic Overture
    You may have provided me with exactly what I needed. I didn't even need all those games. Thank you very much, I will give this a try later.

    Also, thank you iojnekns for the correction, that is what I want, to silence/disable music while preserving sound effects. I'll add the music by video editing or whatever externally. I'm not trying to replace the audio in-game.

    I will have to test MarkeyJester's hex later. May I request that this thread not be locked until I return triumphant?
     
  11. MarkeyJester

    MarkeyJester

    Original, No substitute Resident Jester
    2,202
    432
    63
    Japan
    Wait, something like this already exists? Man am I behind, I might check this out infact =O
     
  12. Mr Lange

    Mr Lange

    A wise guy eh. I know how to DEAL with wise guys. Member
    1,286
    11
    18
    The Land of Waldos
    Sonic Utopia, Sonic Overture
    Ok, I tried MarkeyJester's hex and it has worked for every game. Thank you Markey and Sonic Retro, this has helped me a lot.
     
  13. Chaos Rush

    Chaos Rush

    AKA J.Matz Member
    597
    70
    28
    This. Thank you. I've always wanted to know how to disable the music just so I could make videos of levels with different music, but with the sound effects left intact.

    This is why S3&K needs the mp3 tool.
     
Thread Status:
Not open for further replies.