don't click here

Putting new music in Sonic 2

Discussion in 'Engineering & Reverse Engineering' started by Tweaker, Apr 16, 2005.

Thread Status:
Not open for further replies.
  1. Tweaker

    Tweaker

    Banned
    12,387
    3
    0
    For those of you who have ever used Sonic QX before, you would groan at the fact that all your songs get overwritten when you put something in. This problem applies when porting music from other games as well. Well, I have found a solution that works extremely well, and is effective.

    First off, go to F000C (Remember, we are using the beta sound driver here). Copy 30 bytes in hex here and go to F0780. Paste these 30 bytes at F0780 and then goto F0000. Change the two bytes at F0000 to 8087. Finally, go back to F000C and replace 30 bytes there with F's.

    You have just extended the pointer list. You now have 30 extra bytes to put your pointers in. Now, there is a shitload of redundant data starting at F0780 where you can put new music. Put your music here and add the pointers to them in your new space.

    Finally, you need to activate the new music you put in. In order to do this, you need to edit the master playlist, located at ECE9F. Now, the pointer set you edited follows the master playlist values of 00 and up. The 1-up sound is 00, title is 01, etc. Follow these values on the pointer list up to your new music. If I remember correctly, the value for the first extended pointer is 06. I'm not entirely sure though. Sonic QX is unable to read this pointer set, but if you just change the pointer on the first set at F8000 to have your music be in the "same" location, then you can just straight copy and paste it over to the redundant data space I spoke of. Then, just change your pointers to point to the new music and you should be good to go.

    Any questions, just ask. I admit I'm not the best at writing tutorials.
     
Thread Status:
Not open for further replies.