Pages: 1
Posted on 11-13-16, 09:17 pm (rev. 1 by ImageBot on 11-21-16, 03:25 am)


Karma: 19752
Posts: 808/1100
Since: 04-02-13
This lets you play an external SSEQ/SWAR/SBNK combo, essentially allowing for virtually unlimited music variation.


How to setup
1. Setup the ASM Hacking Template,
2. Copy the contents of the SOURCE folder in the zip into the source folder of the ASM Hacking Template.
3. Copy the symbols.x into ASM Hacking Template root
4. Replace any three (or two, which should be enough for most purposes) songs (their SSEQ/SWAR/SBNK) in the original SDAT with the ones provided in the SDATA folder.
6. Add some files to the rom. Import your custom theme SSEQ/SWAR/SBNK into three files in a row (in that order).
7. Open MusicModifier.c in a text editor. On lines 29, 32 and 35 change "FIRST SONG FILE ID HERE" to the ID of the first new file in the ROM
8. Compile the code in and replace the SDAT in the ROM.
9. Place sprite 143 into every zone you wish to swap the music in. The three last nybbles define the song ID. This means, if, for instance, your first song occupies slots 2000, 2001, 2002, it should be set to 0. If set to 1, it'll play a song occupying the files 2003, 2004, 2005. Etc.
10. Change the Music ID in the zone settings to that of the one of the replaced songs. If you wish to swap songs in between zones or areas, the IDs have to differ in each (which is why multiple songs were replaced with the dummy ones)


LIMITATIONS:
1. The external SSEQ, SWAR and SBNK have to be smaller than the ones included in the package. This isn't much of a problem, as the ones included are pretty much the maximum you can have anyway.
2. Doesn't work in levels that load the boss victory music.
3. Doesn't let you swap music mid-zone.


Download: http://nsmbhd.net/file/qUbYK0xTMq6Ofi43/MusicModifier.zip
Pages: 1