Language…
3 users online: drkrdnk, monkey03297, unknownperson123 - Guests: 103 - Bots: 100
Users: 70,508 (2,454 active)
Latest user: lancejameslim

Multiple songs on main map

Here is the patch im going to talk about (https://www.smwcentral.net/?p=section&a=details&id=20814)

The main problem i have with this is the small knowledge i have on it. I mean, how the patch to makes effect? What does the readme means when it refers on MusicTBL? How do i configure the patch?
Not sure how to explain it any better than the readme and the description already do:

Quote
To set songs, scroll to the bottom of the .asm file and edit the table. Each entry ($XX) represents the song for that particular 32x32 box on the map.


Basically, the big box of numbers represents the entire overworld map, and each number represents a 32x32 square of it. That number is the number of the song to play there.


 
At the bottom of OWMusic.asm you'll find this block of code:


Each line corresponds to a 32x32 pixel square on the Overworld map for a total of 4 16x16 tiles. If you were to place a grid with these dimensions overtop of the overworld, it would look like this:

You'll notice there are a total of 16 squares in each row, and 16 entries per line in the code. The first entry in the code is Y0-X0, and the first square in the image above has an X of 0 and a Y of 0. Change the $xx at Y0-X0 to the hexadecimal value of the song you'd like playing when Mario is inside that square. Lets say I'd like to music to change when Mario reaches the 5th castle in the image above. We look for the X-Y coordinates, which are X30-Y24, then find that location in the code:

If I wanted to use my custom track Phantom Forest, I would use $3A. That value can be found in Lunar Magic by pressing the #lm{music} button.


Just repeat this process for each square, putting the correct hexadecimal value for the song you would like playing as Mario traverses your overworld.

If you have an image editing program like photoshop that supports layers, here is a blank grid I made that you could place over your overworld to have a better idea of what each square goes with.
https://bin.smwcentral.net/u/32624/overworld%2Bsong%2Bgrid%2Bsquares.png