don't click here

Sonic 2 Clone Driver

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

  1. Tweaker

    Tweaker

    Banned
    12,387
    2
    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 SMPS 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—Sonic 2 Revamped, Sonic 2 SMTP, <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 Sonic 2 Retro Remix, 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 anyway, so this is very likely to be a non-issue.

    Sonic 2 Clone Driver

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

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

    doing more important things with my life Member
    2,120
    0
    16
    life
    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
    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

    <The Has-been Legend> Moderator
    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. Banned
    414
    10
    18
    Someplace somewhere
    Project S.A.M.G.
    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. Banned
    414
    10
    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?