MusicType stacking bugs

Post » Fri Mar 07, 2014 3:12 am

Maybe someone else can confirm this or shed some more light....

I'm running into a problem with my Smarter Combat Music mod. The short version is that when I add more than two MusicTypes to the "stack", the lowest one on the stack gets stuck playing and can't be removed with MusicType.Remove().

Here's the detailed version:

I have several MusicTypes that can be overlaid on to the default background music: Silence (a copy of MUSTavernSilence that just ducks lower priority tracks), the default MUSCombat track, and an optional victory fanfare track that sometimes plays at the end of battle. Here is the sequence

Player is spotted by an enemy -> Silence is overlaid on the background track

Player enters combat -> MUSCombat is added to the stack via script, as this mod replaces the engine's combat music system.

Player leaves combat -> Fanfare is added to the stack.

Here's the problem: When the Fanfare finishes, the combat music never plays its finale and never ends, no matter how many times I call MUSCombat.Remove(). Occasionally the Silence track also gets stuck on and can't be removed.

This even extends to weird things like the last battle's combat music continuing to play into the next combat session, and then both combat music tracks end up playing at the same time, one on top of the other. It's like the engine has completely "forgotten" about the combat track and doesn't even know it's there.

Anyone else run into this or something like it?

User avatar
Eire Charlotta
 
Posts: 3394
Joined: Thu Nov 09, 2006 6:00 pm

Return to V - Skyrim

cron