[Help] porting sonic maps file from hivebrain to git disassembly

Discussion in 'Discussion and Q&A Archive' started by Ziro_, Sep 23, 2016.

  1. Ziro_

    Ziro_ Mentally Skewed Member

    Joined:
    Aug 1, 2016
    Messages:
    59
    Location:
    What are you a cop
    I replaced it with my modified sonic 1 map file and I got a lot of multiply defined errors. I am trying to port my hack from hivebrain to git because I want the sonic 2 clone driver v2. The error log and the map file will be listed below. If you can steer me in the right direction it would be much appreciated.
     

    Attached Files:

  2. Clownacy

    Clownacy Retired Staff lolololo Member

    Joined:
    Aug 15, 2014
    Messages:
    1,021
    Just a preemptive: make sure you're using the AS branch. My driver doesn't work with asm68k.
     
  3. Ziro_

    Ziro_ Mentally Skewed Member

    Joined:
    Aug 1, 2016
    Messages:
    59
    Location:
    What are you a cop
    Is project 128 using the AS branch because I am using the git version of that disassembly.
     
  4. Clownacy

    Clownacy Retired Staff lolololo Member

    Joined:
    Aug 15, 2014
    Messages:
    1,021
    No, ProjectSonic1TwoEight is based on the master branch, which uses asm68k. There's no branch that puts the two together. It is possible to do it manually with Git's merge feature, though, but you'd have to correct a bunch of conflicts.
     
  5. Ziro_

    Ziro_ Mentally Skewed Member

    Joined:
    Aug 1, 2016
    Messages:
    59
    Location:
    What are you a cop
    Okay thanks for the info. Will there ever be an asm68k version in the future because I just want better compatibility with sonic 3 and 2 songs.
     
  6. Clownacy

    Clownacy Retired Staff lolololo Member

    Joined:
    Aug 15, 2014
    Messages:
    1,021
    I've been considering making a binary-blob version, which should work with virtually any assembler, but I need to think it through more. I'm pretty sure the official SMPS drivers were binary blobs, too, so I already know most of what to do.
     
  7. Ziro_

    Ziro_ Mentally Skewed Member

    Joined:
    Aug 1, 2016
    Messages:
    59
    Location:
    What are you a cop
    Thanks for your input I'll stick with the hivebrain for now and I'll consider switching later.
     
  8. ProjectFM

    ProjectFM Optimistic and self-dependent Member

    Joined:
    Oct 4, 2014
    Messages:
    912
    Location:
    Orono, Maine
    You could install Sonic 3's driver which gives you access to all the songs in Sonic 3 and Knuckles. What you need to do is follow Kram1024's tutorial. The code for the driver itself doesn't seem to work so you need to install the driver from Tornado's Tutorial.

    You can also use songs from Sonic 3D Blast either by extracting them yourself or using pre-extracted files from part 1 of Valley Bell's SMPS Research Pack.

    One thing about Sonic 3's driver is that it uses the Z80 processor which, while it frees up the ram used by Sonic 1's driver, it uses absolute pointers, meaning that the pointers point to locations depending on the start of the sound bank rather than the start of the song file. You can learn more about it on Sonic Retro's SMPS hacking section. You can use Music Pointer Fixer to change a song's pointers when adding it to the driver.