[0.10.22] FadeInProgress not set to true during Fast Travel [RESOLVED 0.10.24]
Posted: Sun May 03, 2020 3:41 pm
I just ran into a bug with my mod which took a little while to spot why was happening. Now, I've only done testing in the editor with the code for the upcoming build, so I can't say if this is still the case when the livebuild is actually compiled.
If you are inside a building, exit it, immediately go into the travelmap and fast travel, DaggerfallUI.Instance.FadeBehaviour.FadeInProgress will not be set to true.
I am assuming this is because the fade behaviour for transitioning out of the building is not finished when I activate the fast travel map. If I exit the building, wait a second and then fast travel; it works normally.
This naturally has little impact on the game normally but my mod uses FadeInProgress false/true to determine if the player is fast traveling or not. So when this is not set to true while fast traveling, the player starves to death during the journey
I assume all that's needed to fix it is a small check for the fast travel code to make sure FadeInProgress is set correctly.
If you are inside a building, exit it, immediately go into the travelmap and fast travel, DaggerfallUI.Instance.FadeBehaviour.FadeInProgress will not be set to true.
I am assuming this is because the fade behaviour for transitioning out of the building is not finished when I activate the fast travel map. If I exit the building, wait a second and then fast travel; it works normally.
This naturally has little impact on the game normally but my mod uses FadeInProgress false/true to determine if the player is fast traveling or not. So when this is not set to true while fast traveling, the player starves to death during the journey
I assume all that's needed to fix it is a small check for the fast travel code to make sure FadeInProgress is set correctly.