Page 1 of 1

Holiday text, temp. wrong music when loading dungeon save [RESOLVED]

Posted: Sun Feb 11, 2018 4:18 pm
by R.D.
This issue has been around as long as I know, but sometimes when loading a saved game in a dungeon DF Unity the music will play for the wrong type of environment.

A specific way that seems to always reproduce this is to load a game in an outdoor environment, then load a game in a dungeon environment. The dungeon save will play outdoor music. Also, if it is a holiday, holiday text will show, which is only supposed to happen if you are outdoors.

I think there might also be an issue that after loading a game music from the "safe" throne room areas of the main castles plays in dungeons, or dungeon-music playing in the safe areas, when switching between these two areas.

Re: Outdoor music playing in dungeons after loading a save

Posted: Sun Feb 11, 2018 4:26 pm
by R.D.
It seems to even be a little more weird than I thought. Loading between non-palace block dungeon save, outdoor area (in a town), and palace-block save, I sometimes was getting correct music, sometimes getting wrong ones, in a non-obvious pattern.

About the steps to reproduce in the above post, this only seems to reliably reproduce the issue if the you load the outdoor save (in a town in my test case) from the menu as the first save you load after starting the program, and then load the dungeon save as the 2nd. If you have been loading other saves and then load an outdoor followed by a dungeon, the problem doesn't necessarily appear.

Re: Outdoor music playing in dungeons after loading a save

Posted: Mon Feb 12, 2018 10:31 pm
by Interkarma
Yes, this one has bothered me for a while. I've taken a few chops at fixing it, but always had trouble reproducing reliably. Your comments around load order are a good clue and might help me solve this next time I take a look at it.

Cheers. :)

Re: Holiday text, temp. wrong music when loading dungeon save

Posted: Sat Aug 04, 2018 8:01 am
by R.D.
Wrong music after loading into a dungeon is fixed.

Updated the title to the remaining issues.
Holiday text can still incorrectly show and wrong music can play for a moment while loading a save, which I think is involved with the player first being relocated to the exterior pixel before being placed in the dungeon. Only happens when you are in an exterior and then load a dungeon save. I think it will also happen when loading a save in a building.