MantisBT - Zandronum
View Issue Details
0004166Zandronum[All Projects] Bugpublic2023-10-06 09:522023-10-31 09:05
Fused 
 
urgentmajorhave not tried
newopen 
 
 
0004166: SwitchableDecoration is broken online
See example. Offline the candle is active as expected. Online it's inactive but it should be active no matter what.
Load BrokenLight.pk3. map is `test`.
No tags attached.
? BrokenLight.pk3 (8,140) 2023-10-06 09:52
/tracker/file_download.php?file_id=2864&type=bug
? BrokenExplanation.pk3 (4,056) 2023-10-31 08:32
/tracker/file_download.php?file_id=2868&type=bug
Issue History
2023-10-06 09:52FusedNew Issue
2023-10-06 09:52FusedFile Added: BrokenLight.pk3
2023-10-31 08:32FusedFile Added: BrokenExplanation.pk3
2023-10-31 08:36FusedNote Added: 0022918
2023-10-31 08:45FusedNote Edited: 0022918bug_revision_view_page.php?bugnote_id=22918#r14007
2023-10-31 09:05FusedNote Added: 0022920
2023-10-31 09:07FusedNote Deleted: 0022920

Notes
(0022918)
Fused   
2023-10-31 08:36   
(edited on: 2023-10-31 08:45)
Hi,
I have gone and tried to find a reasonable explanation for this issue, and it seems like I have found a workaround for the issue.

The thing that continued to stump me was the fact that some of my SwitchableDecorations worked, and some did not. I have uploaded `BrokenExplanation.pk3` which will be used to explain how to work around the issue.

Map: map01

Navigate to `actors/lightsources/candlestick.dec`
This file has three blocks of code, one uncommented and two commented.

1.1 Keep the file as it is with the top part uncommented and test online.
1.2 The candle stick will be inactive regardless of the dormant state.

2.1 Comment the first block and uncomment the second block. Test online.
2.2 Notice the candlestick now correctly shows its active state and dormant state.

3.1 Comment the second block and uncomment the third block. Test online.
3.2 Notice the candlestick now correctly shows its active state and dormant state.

So, for some reason the negative frame state causes this issue, and either properly looping the state or adding a death state fixes the issue.
I can understand the negative frame as this is properly just synching not being quick enough, but why would the death state fix this?

EDIT: It appears the third block hard a bright keyword added by accident. I can confirm that the candlestick still properly works without it.