Zandronum Chat on our Discord Server Get the latest version: 3.2
Source Code

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0004211Zandronum[All Projects] Bugpublic2024-03-19 12:372024-04-09 03:05
ReporterFused 
Assigned ToKaminsky 
PrioritynormalSeverityminorReproducibilityalways
StatusresolvedResolutionfixed 
PlatformOSOS Version
Product Version3.1 
Target Version3.2Fixed in Version3.2 
Summary0004211: GAMEEVENT_ACTOR_SPAWNED event does not trigger with ResetMap()
DescriptionIt seems like this event does not trigger if a map implements the ResetMap() function, which causes maps to not be able to use a combination of these two things.

Additional Information'https://wiki.zandronum.com/ResetMap [^]'
'https://wiki.zandronum.com/EVENT_scripts [^]'
Attached Fileszip file icon Project.zip [^] (3,342 bytes) 2024-03-22 14:20

- Relationships

-  Notes
User avatar (0023428)
Kaminsky (developer)
2024-03-19 14:56
edited on: 2024-03-19 14:57

I created a merge request to fix this:'https://foss.heptapod.net/zandronum/zandronum-stable/-/merge_requests/71 [^]'

It seems that actors that didn't need to be respawned during a reset didn't trigger GAMEEVENT_ACTOR_SPAWNED normally, so I needed to separate the code that triggers the event into its own function and also call it in GAME_ResetMap when this is the case.

User avatar (0023438)
Fused (reporter)
2024-03-20 09:45

This did not fix it on my end, but I will be sure to supply a minimal example wad soon so this can be tested more easily
User avatar (0023460)
Fused (reporter)
2024-03-22 14:22
edited on: 2024-03-22 14:23

I have uploaded an example wad that reproduces the issue. By pressing fire you will use `ResetMap()`, and by pressing altfire you will use `ChangeLevel()`. Notice the string that is drawn starts with "True" if the event was triggered to change the boolean. This is not the case with `ResetMap` which suggests the event is never triggered.

I tested the minimal example wad with this build:'https://foss.heptapod.net/zandronum/zandronum-stable/-/pipelines/79150 [^]'

EDIT: The map included has the actor placed to call the event so please test using the map

User avatar (0023462)
Kaminsky (developer)
2024-03-22 15:02

Thanks for the feedback and the minimal example WAD! I overlooked one important detail in the original commit: GAME_ResetMap resets all ACS scripts at the end of the function, after the call to GAMEMODE_HandleSpawnEvent that I added. Thus, the GAMEEVENT_ACTOR_SPAWNED event scripts that were just triggered also got reset.

I amended the commit to trigger the event after all ACS scripts are reset. Please test the build(s) in this pipeline to confirm that it fixes the issue:'https://foss.heptapod.net/zandronum/zandronum-stable/-/pipelines/79280 [^]'
User avatar (0023463)
Fused (reporter)
2024-03-22 15:12

I tested this with the pk3 using the new build and the boolean is now `true`, which means the issue is fixed. Thank you :)
User avatar (0023464)
Kaminsky (developer)
2024-03-22 15:14

Thanks for checking!
User avatar (0023489)
Ru5tK1ng (updater)
2024-03-24 21:23

This was merged in:'https://foss.heptapod.net/zandronum/zandronum-stable/-/commit/6c7ecf69b8926207e56ddd4386707a9871a04bca [^]'
User avatar (0023568)
Ru5tK1ng (updater)
2024-04-09 03:05

Tested with latest beta and the results were consistent.

Issue Community Support
This issue is already marked as resolved.
If you feel that is not the case, please reopen it and explain why.
Supporters: No one explicitly supports this issue yet.
Opponents: No one explicitly opposes this issue yet.

- Issue History
Date Modified Username Field Change
2024-03-19 12:37 Fused New Issue
2024-03-19 14:56 Kaminsky Note Added: 0023428
2024-03-19 14:56 Kaminsky Assigned To => Kaminsky
2024-03-19 14:56 Kaminsky Status new => needs review
2024-03-19 14:56 Kaminsky Product Version => 3.1
2024-03-19 14:56 Kaminsky Target Version => 3.2
2024-03-19 14:57 Kaminsky Note Edited: 0023428 View Revisions
2024-03-19 14:57 Kaminsky Note Edited: 0023428 View Revisions
2024-03-20 09:45 Fused Note Added: 0023438
2024-03-22 14:20 Fused File Added: Project.zip
2024-03-22 14:22 Fused Note Added: 0023460
2024-03-22 14:22 Fused Note Edited: 0023460 View Revisions
2024-03-22 14:23 Fused Note Edited: 0023460 View Revisions
2024-03-22 15:02 Kaminsky Note Added: 0023462
2024-03-22 15:12 Fused Note Added: 0023463
2024-03-22 15:14 Kaminsky Note Added: 0023464
2024-03-24 21:23 Ru5tK1ng Note Added: 0023489
2024-03-24 21:23 Ru5tK1ng Status needs review => needs testing
2024-04-09 03:05 Ru5tK1ng Note Added: 0023568
2024-04-09 03:05 Ru5tK1ng Status needs testing => resolved
2024-04-09 03:05 Ru5tK1ng Resolution open => fixed
2024-04-09 03:05 Ru5tK1ng Fixed in Version => 3.2






Questions or other issues? Contact Us.

Links


Copyright © 2000 - 2025 MantisBT Team
Powered by Mantis Bugtracker