Quote:
Originally Posted by leogrecchi
Question: Somehow I messed with the songs in my rom hack. Some instruments sound... 8-bit'ish, that maybe works for describing. Not all songs are "corrupted" (and the ones which are have 1 (rarely, 2) instruments sounding weird), which makes me think it was a small override.
I've tried to hex-replace the whole song table and instrument table from a clean rom, without success. Is there anything I may be overlooking?
|
Eight-bit-ish? It sounds like the songs are using the wrong voicegroup offsets, or the tracks are using the wrong voices within their voicegroups.
Song voicegroups are specified in the song header, and track voices are specified using an instrument change instruction (BD XX, if memory serves) near the start of the track data (and also mid-track, for some of the official songs that change voices mid-song).
If I'm correct, then you will either need to change the voicegroup offsets in the song header, or you will need to restore the track data -- that is, you will need to use the song table to find the song headers, use the headers to find the tracks, and then transfer the unmodified headers and tracks from a clean ROM.
Quote:
Originally Posted by ipatix
You cannot use playsong & co.in an ASM routine.
Playsing is a Pokescript or XSE command.
|
I don't know if there is a way to start song playback from ASM code, but if there isn't, you could have your ASM load a compiled script into RAM and call it. I think JPAN's FireRed Hacked Engine does something very similar when dealing with the hacked item functionality he added.