Originally posted by messiaen Haven't played the updates, however how did you fix the music-stopping bug? I guess it happens because something is corrupted in memory after the load music routines were changed, so what was your workaround? This is the kind of the thing that the level importer should automatically patch in newer versions.
The bug turns off the master volume of the music sequence when you zoom out from look-around view. I created an assembly code which resets the master volume when you zoom out from the look-around view (also used for signs/npcs), and hooked it off Mario's behavior. Here's the code:
//START
ADDIU R29, R29, $FFE8
SW R31, $0014 (R29)
//END IF VOLUME IS ON FULL
LUI R17, $8022
LH R17, $2630 (R17)
ADDIU R18, R0, $3F0D
SUB R18, R17, R18
BGEZ R18, END
//END IF IN LOOK-AROUND VIEW
LUI R17, $8022
LB R17, $261A (R17)
ADDIU R18, R0, $0004
BEQ R17, R18, END
//RESET VOLUME
LUI R17, $8022
ORI R17, R17, $2630
LUI R18, $3F21
ORI R18, R18, $4285
SW R18, $0000 (R17)
//END
LW R31, $0014 (R29)
JR R31
ADDIU R29, R29, $0018 |