MantisBT - Zandronum
View Issue Details
0004244Zandronum[All Projects] Bugpublic2024-05-10 04:112024-11-15 07:20
Codesphere 
Kaminsky 
normalminoralways
resolvedfixed 
MicrosoftWindows10
3.1 
3.23.2 
0004244: Pitch for custom Decorate actors does not transfer when a map reset is initiated
If a custom actor created in DECORATE code and given a DoomEdNum is placed into a map, and then given a Pitch value (from the UDMF map format), that pitch value will be lost when the map is reset by any means, including the ACS command ResetMap(), as well as any countdown expiration for gamemodes which then reset the map such as Survival.
Attached is a sample wad file that can reliably reproduce the bug.

- Load up the wad file and set the game parameters in the console to one that supports map resets (I used "survival 1" in my tests)

- Go to map01. There is a Print message that appears displaying the current pitch value of the custom actor placed in the map.

- The switch on the left changes the camera to that of a custom actor from Decorate that was placed in the map with a 45-degree pitch value (EdNum 7950). Simply move the player to reset the camera.

- Press the switch on the right to call ResetMap(). Alternatively, allow the game mode's countdown timer to expire and the map to reset on its own.

- Behold, the actor's pitch value is now 0.
This does not seem to affect actors already built into the game, only custom Decorate actors. I tried this with the brown stalagmite actor earlier and it actually worked fine, but once I placed a custom actor instead, it broke. I even went so far as to make the custom actor a complete clone of said stalagmite actor, just with a custom DoomEdNum, and it still broke. So it seems to be something with Decorate actors in particular.

If you check the Decorate code within the Wad file, the commented out portions are some of the various flags and such that I originally used on the actor...but even just giving it some basic properties like Height and Radius, and making it Solid, and it still does not receive pitch upon resetting the map.
No tags attached.
zip PitchBug.zip (1,904) 2024-05-10 04:11
https://zandronum.com/tracker/file_download.php?file_id=2974&type=bug
Issue History
2024-05-10 04:11CodesphereNew Issue
2024-05-10 04:11CodesphereFile Added: PitchBug.zip
2024-05-10 04:13CodesphereNote Added: 0023660
2024-05-14 03:14unknownnaStatusnew => confirmed
2024-09-09 03:01KaminskyNote Added: 0024027
2024-09-09 03:01KaminskyStatusconfirmed => needs review
2024-09-09 03:01KaminskyTarget Version => 3.2
2024-10-24 15:59KaminskyNote Added: 0024092
2024-10-24 15:59KaminskyStatusneeds review => needs testing
2024-10-26 05:03unknownnaNote Added: 0024102
2024-10-26 05:03unknownnaStatusneeds testing => feedback
2024-11-10 23:06KaminskyNote Added: 0024132
2024-11-10 23:06KaminskyStatusfeedback => needs testing
2024-11-15 07:20unknownnaNote Added: 0024143
2024-11-15 07:20unknownnaStatusneeds testing => resolved
2024-11-15 07:20unknownnaFixed in Version => 3.2
2024-11-15 07:20unknownnaResolutionopen => fixed
2024-11-15 07:20unknownnaAssigned To => Kaminsky

Notes
(0023660)
Codesphere   
2024-05-10 04:13   
I should have mentioned this as well, but this occurs in both Zandronum 3.1 as well as the latest 3.2 beta.
(0024027)
Kaminsky   
2024-09-09 03:01   
This issue's being addressed in this merge request:'https://foss.heptapod.net/zandronum/zandronum-stable/-/merge_requests/182 [^]'
(0024092)
Kaminsky   
2024-10-24 15:59   
This commit was pushed into the repository:'https://foss.heptapod.net/zandronum/zandronum-stable/-/commit/b026d28c6ce4b5d693fb6e5a9579d98187419134 [^]'
(0024102)
unknownna   
2024-10-26 05:03   
I tested it, and the view of the camera is still at 0 before & after map resets online. It works properly offline however.
(0024132)
Kaminsky   
2024-11-10 23:06   
Quote from "unknownna"
I tested it, and the view of the camera is still at 0 before & after map resets online. It works properly offline however.


This should've been fixed by'https://foss.heptapod.net/zandronum/zandronum-stable/-/commit/4e8342339656a2dbe6538c2276769866481c298f [^]'
(0024143)
unknownna   
2024-11-15 07:20   
I can confirm that it fixed it, thanks.