Sonic 2 Clone Driver v2

Discussion in 'Tutorials' started by Clownacy, Aug 12, 2016.

  1. Sonbeta

    Sonbeta Newcomer Trialist

    Joined:
    Jul 2, 2023
    Messages:
    9
    Nice sound driver. Keep up the good work!
     
  2. AleDrawer2008

    AleDrawer2008 Active Member Member

    Joined:
    Jun 14, 2021
    Messages:
    44
    Location:
    Somewhere in South America
    Code:
    > > > Sonic-2-Clone-Driver-v2/engine/Sonic 2 Clone Driver v2.asm(1388):10: error #1505: addressing mode not supported on 68000
    > > > SFX_SFXChannelRAM(pc,d3.w)
    > > >  movea.w SFX_SFXChannelRAM(pc,d3.w),a5
    > > >          ~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    Trying to port the spindash sound to sonic 1 with this sound driver, and it seems like i put so much stuff between the engine and this direction. How could YOU fix it? After this is your sounddriver
     
  3. Delta

    Delta Newcomer Member

    Joined:
    Nov 27, 2022
    Messages:
    11
    How do i fix black screen on kega? im using a clean sonic 1 git dissasembly, and the build went on without errors.
     
    Last edited: Nov 12, 2023
  4. Hame

    Hame Peepee Poopoo Member

    Joined:
    Jan 12, 2021
    Messages:
    68
    Location:
    Spain
    nvm, I thought it was something about mega pcm, trash this
     
    nineko likes this.
  5. EddyTF

    EddyTF シンプル Member

    Joined:
    Jan 9, 2022
    Messages:
    72
    Location:
    village
    You wanted to do a Spin Dash REV, right? I have also encountered this. Thank you TheBlad768 for teaching me this. In short, replace this line from the error with this. It's just that the code doesn't reach:
    Code:
    lea  SFX_SFXChannelRAM(pc),a5
      movea.w  (a5,d3.w),a5
     
  6. NaylenFresh

    NaylenFresh I live under a rock Member

    Joined:
    Sep 30, 2022
    Messages:
    100
    Location:
    England
    Cheers for this, I was wondering why the REV sound setting caused an error within building the ROM so I just didn’t use the setting but finally I should be able to use it!
     
  7. Red2010 is now

    Red2010 is now A Normal RomHacker with occupations. Member

    Joined:
    Apr 24, 2023
    Messages:
    103
    Location:
    Somewhere in Spain
    Am I the only one confused by the function of the 32x's pwm?

    I know you have to turn on the 32x but how?
     
  8. RunninPigeon

    RunninPigeon i like to s1, s1 Member

    Joined:
    Jan 6, 2021
    Messages:
    14
    Location:
    Angel Island Zone
    This, fucking this wow this driver is amazing, im in awe in how the fade in sound, fades pretty much every sound, and i do mean EVERY SOUND.
    my only minor nitpick is it's not officially available in the hivebrain 2005 disam format
     
  9. Joao Gamer

    Joao Gamer Well-Known Member Member

    Joined:
    Nov 22, 2023
    Messages:
    95
    Location:
    Brazil
    This is a very cool driver however, it doenst seem to work on some android emulators (and blastEm, i didn't try on blastEm) I am using the TheBlad768 Clone driver implementation
     
  10. JGamer2151

    JGamer2151 Happy Snake Year Y'all Member

    Joined:
    Dec 1, 2020
    Messages:
    113
    It definitely wasn't (and it never will be) available for the legacy Hivebrain 2005 disassembly.

    Unless if you count the AS version of that, then...

    Honestly, such a very pointless post here to make myself, considering the fact that we're supposed to be talking about stuff related to this sound driver such as issues and such, but oh well.
    P.S. I'm back.
     
    Last edited: Jan 30, 2025
  11. Letonics

    Letonics The Lemon Core. (TLC) Trialist

    Joined:
    Oct 1, 2023
    Messages:
    150
    Location:
    HK
    I have a problem... does S1 with Z80 preinstalled be replaced with your clone driver?
     
  12. Clownacy

    Clownacy Retired Staff lolololo Member

    Joined:
    Aug 15, 2014
    Messages:
    1,116
    Probably not, as the instructions were written specifically for unmodified disassemblies. Pre-modified disassemblies complicate things.
     
    JGamer2151 likes this.
  13. Letonics

    Letonics The Lemon Core. (TLC) Trialist

    Joined:
    Oct 1, 2023
    Messages:
    150
    Location:
    HK
    I have a problem when installing this driver on a S1 AS disassembly. Incase, how do I fix it?
     
  14. Clownacy

    Clownacy Retired Staff lolololo Member

    Joined:
    Aug 15, 2014
    Messages:
    1,116
    Errors tend to cause other errors, meaning that fixing the first few errors would make all the subsequent errors go away. The video does not show the first few errors, so I do not know what to do to fix the other errors. The errors should be recorded to a file called 'sonic.log', so you can use that to get a complete list of errors.
     
  15. Blue Gamer

    Blue Gamer Autistic Member Member

    Joined:
    Aug 16, 2024
    Messages:
    209
    Location:
    Mysterious Marble Zone, Bird Hill Island
    How would I uninstall MegaPCM2 and replace it with Sonic 2 Clone driver?(I'm using a December 20th 2023 disasm)
     
  16. Letonics

    Letonics The Lemon Core. (TLC) Trialist

    Joined:
    Oct 1, 2023
    Messages:
    150
    Location:
    HK
    Sorry for the double post but another error and decided to show the full error. @Clownacy
     

    Attached Files:

  17. Clownacy

    Clownacy Retired Staff lolololo Member

    Joined:
    Aug 15, 2014
    Messages:
    1,116
    Those functions are in the 'sound/Sonic-2-Clone-Driver-v2/engine/Functions.asm' file, so it seems like that file isn't being included. The guide goes over including the file here.
     
  18. Letonics

    Letonics The Lemon Core. (TLC) Trialist

    Joined:
    Oct 1, 2023
    Messages:
    150
    Location:
    HK
    Fixed, and doesn't work on all emulators... (I only used Kega and Clowndemu)
    螢幕擷取畫面 2025-05-17 084031.png
    Edit: Also fixed the black screen.
     
    Last edited: May 17, 2025
  19. MrAnimingo

    MrAnimingo Newcomer Trialist

    Joined:
    Mar 16, 2025
    Messages:
    5
    bruu.PNG
    I followed what the tutorial told me to do and I got this error. Any help?
     
  20. Letonics

    Letonics The Lemon Core. (TLC) Trialist

    Joined:
    Oct 1, 2023
    Messages:
    150
    Location:
    HK
    1. flg_first is been double defined, find the copy of flg_first with a : and delete it.
    2. The "bra.s" should be renamed to just "bra".