Skeetendo

’Cause all games were better on the GBC

You are not logged in.

#1 2014-09-17 20:08:07

supershadow64ds
Member
Registered: 2014-07-13
Post 7/11

Pokered - Music Repointing?

Starting back up on my Pokemon Red thingy, I wanted to add my own custom music, however upon doing so the file was unfortunately too large. Now, with repointing Pokemon sprite data all you had to do was change it's bank location, but how do I repoint old music or add new music to empty space in the game?

Offline

#2 2014-09-18 02:36:39

Danny-E 33
Administrator
Registered: 2012-06-09
Post 818/1,023

Re: Pokered - Music Repointing?

Repointing music data by hand through hex editing could be tedious because in addition to the song's header, the song data itself contains pointers to loop point addresses.
Have you considered using the disassembly? There would be no repointing required.

If you still want to repoint by hand, you need to modify the pointers in the song's header (here, here, and here) and then modify the pointers inside the song data that come after each call and loop music command (0xfd and 0xfe)


Red Hack: Pokémon Prototype

Total number of registered users: 7000+
Total number of active users: ~12

Offline

#3 2014-09-18 03:02:59

supershadow64ds
Member
Registered: 2014-07-13
Post 8/11

Re: Pokered - Music Repointing?

Danny-E 33 wrote:

Have you considered using the disassembly? There would be no repointing required.

I am actually using the disassembly (perhaps I didn't make the topic clear enough), I just really have no idea how to move music to an unused bank. I'm entirely sure at one point I tried to make an entire copy of one of the Sound Engines or something. I had no idea what I was doing and really didn't want to screw up my hack too badly.

How would I go about moving the music?

Last edited by supershadow64ds (2014-09-18 03:03:26)

Offline

#4 2014-09-18 05:43:01

comet
Member
Registered: 2012-04-09
Post 480/672

Re: Pokered - Music Repointing?

There are three clones of the sound engine with separate music for each (but the sfx are the same). They're all packed to the brim.

Rather than clone a fourth engine, I recommend backporting Crystal's sound engine and converting the audio to Crystal's command set. All the music has been converted already. Sound effects only use a handful of commands, so they're relatively easy to convert.

Offline

#5 2014-09-18 13:49:27

supershadow64ds
Member
Registered: 2014-07-13
Post 9/11

Re: Pokered - Music Repointing?

comet wrote:

I recommend backporting Crystal's sound engine and converting the audio to Crystal's command set.

I... eh... What?
To be honest I have no idea what you just said, but I have a feeling if I tried doing this without some kind of tutorial I'd blow up the universe or worse, corrupt my data.

Offline

Board footer

Powered by FluxBB