Sonic 2 Clone Driver

Discussion in 'Engineering & Reverse Engineering' started by Tweaker, Jan 4, 2010.

  1. Tweaker

    Tweaker

    Misfits
    12,389
    0
    0
    A couple of years back (the original file is dated 6/18/2007), me and Puto worked together to create something neat that would encourage music hacking a hundredfold for Sonic 2 hacks—a clone of Sonic 2's music and sound using Sonic 1's 68k <a href="http://info.sonicretro.org/SMPS" target="_blank" style="background: url(http://info.sonicretro.org/images/5/50/Reticon.png) right no-repeat; padding-right: 20px; border-bottom: 1px dotted #3366BB; color: #3366BB; cursor:pointer; text-decoration:none;" class="wiki">SMPS</a> sound driver. The idea was that it would make music hacking a bit more uniform and possible in Sonic 2 without the user having to fight with the compression, banking and specific alignment issues of the Z80 SMPS driver that are prominent unless you have specific knowledge of the Z80. For all intents and purposes, this job was accomplished fairly well with little-to-no longstanding issues. Today, we're going to present that work—work that was for the longest time limited to a case-by-case basis in regards to distribution. The observant may have noticed several hacks already use this for custom music—<a href="http://info.sonicretro.org/Sonic 2 Revamped" target="_blank" style="background: url(http://info.sonicretro.org/images/5/50/Reticon.png) right no-repeat; padding-right: 20px; border-bottom: 1px dotted #3366BB; color: #3366BB; cursor:pointer; text-decoration:none;" class="wiki">Sonic 2 Revamped</a>, <a href="http://info.sonicretro.org/Sonic 2 SMTP" target="_blank" style="background: url(http://info.sonicretro.org/images/5/50/Reticon.png) right no-repeat; padding-right: 20px; border-bottom: 1px dotted #3366BB; color: #3366BB; cursor:pointer; text-decoration:none;" class="wiki">Sonic 2 SMTP</a>, <a href="http://info.sonicretro.org/Sonic Boom (hack)" target="_blank" style="background: url(http://info.sonicretro.org/images/5/50/Reticon.png) right no-repeat; padding-right: 20px; border-bottom: 1px dotted #3366BB; color: #3366BB; cursor:pointer; text-decoration:none;" class="wiki">Sonic Boom (hack)</a>, and <a href="http://info.sonicretro.org/Sonic 2 Retro Remix" target="_blank" style="background: url(http://info.sonicretro.org/images/5/50/Reticon.png) right no-repeat; padding-right: 20px; border-bottom: 1px dotted #3366BB; color: #3366BB; cursor:pointer; text-decoration:none;" class="wiki">Sonic 2 Retro Remix</a>, just to name a few.

    In the following pack of files include every piece of music and sound effect from Sonic 2 ported to work in 68k SMPS format, as well as edits to the sound driver to include the extra DAC samples used in the game. Admittedly, not all of these are 100% perfect; in a few cases the tempo is off by a few ticks and a couple of sound effects have issues we were never able to fully work out for whatever reason. However, this is a very strong and acceptable basis to throw into any hack and have the results largely indistinguishable from the original game. Ideally speaking, anyone using this driver in their hack is going to replace the music <I>anyway</I>, so this is very likely to be a non-issue.

    <a href="http://tweaker.sonicretro.org/Sonic%202%20Clone%20Driver.rar" target="_blank">Sonic 2 Clone Driver</a>

    <b>NOTE: This requires having already ported the Sonic 1 sound driver to your hack to actually work.</b>

    To use the clone driver, simply replace the relevant files in your disassembly with the ones included in this pack. We used jman's custom DAC driver to simplify adding the new samples; you're free to replace this if you wish, but it should work fairly well for any given purpose.

    Credits go to myself and Puto for the music ports and driver edits, and jman for the custom DAC driver and 68k frontend. If you decide to use this in your hack, do us a favor and leave us a small mention—we'd appreciate it. :)

    Enjoy! Hope to see this put to good use.
     
  2. Spanner

    Spanner

    The Tool Member
    3,206
    0
    16
    United Kingdom
    Sonic Hacking Contest
    Good to see a public release of this (I got this in April 2008). Hopefully people'll make good use of this and create Sonic 2 hacks with decent music.
    The DAC table is excellent and easy to understand, although some form of extension will need to be done in order to use samples past $94. =P
     
  3. amphobius

    amphobius

    where are the japanese shaman girls, lintahlo? Member
    You said that you'd release it on Skype a while back—looks like it's today!

    Allthough I have already obtained it, it'll certainly get the drive up for Sonic 2 hacks once more.
     
  4. Mikel

    Mikel

    Member Member
    496
    0
    16
    Oklahoma
    MUGEN Stuff
    Well, it's great to see this released to the public, this will increase the popularity of music hacking in Sonic 2.

    And I got it a week after I announced Sonic Zeta Overdrive to the public.
     
  5. Aquaslash

    Aquaslash

    Emerald Dragoon Moderator
    2,818
    0
    0
    Hampton, VA
    The S Factor: Sonia and Silver
    It's nice to see a release. Here's hoping more S2 hacks take advantage of it.
     
  6. Blitz

    Blitz

    ¬.¬ Member
    37
    0
    0
    UK
    The HedgehogHack (On hold)
    Ahh, I was wondering where I would get a copy of this to use in my S2 hack, since the original sound driver was missing from the Wiki.
    This will be certainly useful to many S2 hackers, Including me.
     
  7. Eduardo Knuckles

    Eduardo Knuckles

    Not a loved one, but the most hated person. Member
    410
    3
    18
    Someplace somewhere
    Project S.A.M.G.
    <!--quoteo(post=391900:date=Jan 3 2010, 07:59 PM:name=SOTI)--><div class='quotetop'>QUOTE (SOTI @ Jan 3 2010, 07:59 PM) <a href="index.php?act=findpost&pid=391900"><img src="public/style_images/retro/snapback.png"></a></div><div class='quotemain'><!--quotec-->Hopefully people'll make good use of this and create Sonic 2 hacks with decent music.<!--QuoteEnd--></div><!--QuoteEEnd-->
    Not just the S2's hackers. The S1's romhackers too. Thanks Tweaker, this is absolutely the best news I seen on this year! <3
     
  8. Eduardo Knuckles

    Eduardo Knuckles

    Not a loved one, but the most hated person. Member
    410
    3
    18
    Someplace somewhere
    Project S.A.M.G.
    Sorry for double post. But I'm posting again only for ask about a problem I'm having. I added from $81 to $87 samples sucesfully. But when I add more other sample, it plays only a click or something for all samples after the sample $87. What I'm doing wrong?