| rstewart215804 User Crazed Mario 64 Hacker!!! Level: 11 ![]() Posts: 1/18 EXP: 5578 For next: 407 Since: 09-13-07 Since last post: 13.2 years Last activity: 11.7 years |
|
||
| Guess what? I found where the music files in SM64 are. I long time ago, someone in the old acome board posted a GameShark code for editing the speed of the game music. I looked into the address in NEMU and found that the code edited the master sound control. I was able to figure out that SM64 has 3 master controllers. One for sound effects, one for short clips such as boos merry-go-round, and one for the background music. (The Legend of Zelda�s for the N64, also have the 3 master controllers that are almost identical in format found in SM64. You can find the background music master controller at 0x80222618. There you will find something that looks like this there. C000 0000 8002 1100 0000 2040 23B8 0000 0000 0F77 801F 8250 3F21 4285 0000 0000 3F21 4285 3F00 0000 0000 0000 8022 29D8 8022 2A98 8022 5BD8 8022 2B58 8022 2C18 8022 2CD8 8022 2D98 8022 2E58 8022 2F18 8022 2FD8 8022 3098 8022 3158 8022 3218 8022 32D8 8022 5BD8 8022 5BD8 801F 8310 The data in blue are pointers to the instruments. The last pointer, which in highlighted in orange, is the one that is the most interesting. It points to the music data in memory. After checking that memory out I scanned for it in the Rom and found that the music data is uncompressed. Here is a table of addresses in the Rom that I have found so far. 7B3E10 End level 7B4080 SMB music title 7B60C0 Bob-omb's Battlefield 7B74D0 Inside Castle 7B7E90 Dire Dire Docks 7B9140 Lethal Laval land 7B9AE0 7BA840 Snow 7BC810 Slide 7BE520 BIG BOO'S HAUNT 7BFB50 7C00D0 Hazy Maze 7C13F0 Star select 7C1480 Wing cap 7C20C0 Metal cap 7C2BA0 7C2DD0 Bowser course 7C4060 7C4170 7C47F0 Start and End Race with Koopa the Quick 7C48C0 7C4B50 Boss fight 7C58C0 7C6260 7C7020 7CA810 7CA8F0 Toad 7CA9C0 7CAB70 7CB260 7CBA70 7CC1D0 File Select 7CC4E0 The values that don�t have a song name yet are ones I haven't figured out yet but do start with 0xD3. The songs are in the same order they are in the 0x36 level commands. I haven't been able to do much with the sound except charge a note here and there. _____________________________________________________________________ Speaking of level commands the 0x37 command, which isn�t in VL-Tone's document, also is a music command. [37] [04] 00 [00] [1]: 36= Music command. [2]: Length byte (dec 4). [4]: Song number (see table for 0x36). 0x37 commands are used in the select screen and the "Press Start" screen. _____________________________________________________________________ One last thing I was changing the behaviors around in the Rom and found that the animation for objects like a Bob-omb King are not in assembly code. They can be found in the same file as the vertex data. The data is called with the 0x2726 command. [2726] [00 00] [05 00 FE 30] [1,2]: 2736 = Animation command. [3,4]: Nothing. [4-8]: Bank and Offset. I found it not to long ago and still haven�t figured out how they work. The other command I know about is the 0x0C00 command. 0x0C00 command runs ASM script. The script controls how they chase Mario and such. [0C00] [00 00] [05 00 FE 30] [1,2]: 0x0C00 = Run ASM script [3,4]: Nothing [4-8]: Pointer to data in Ram. _____________________________________________________________________ Well this is enough information for now. I have quite a few commands that are not yet included in VL-Tone hacking document. If people have any questions I will try to answer them when school permits me. |






Seriously, welcome to the forum! Feel at home here
I know that you've done some pretty extensive SM64 hacking, your contribution will be needed!

If you read this, please come back, we need more smart people here 
