| Anonymous | Login | Signup for a new account | 2025-11-03 11:58 UTC |
| My View | View Issues | Change Log | Roadmap | Zandronum Issue Support Ranking | Rules | My Account |
| View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||
| ID | Project | Category | View Status | Date Submitted | Last Update | ||||
| 0004211 | Zandronum | [All Projects] Bug | public | 2024-03-19 12:37 | 2024-04-09 03:05 | ||||
| Reporter | Fused | ||||||||
| Assigned To | Kaminsky | ||||||||
| Priority | normal | Severity | minor | Reproducibility | always | ||||
| Status | resolved | Resolution | fixed | ||||||
| Platform | OS | OS Version | |||||||
| Product Version | 3.1 | ||||||||
| Target Version | 3.2 | Fixed in Version | 3.2 | ||||||
| Summary | 0004211: GAMEEVENT_ACTOR_SPAWNED event does not trigger with ResetMap() | ||||||||
| Description | It 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 Files | |||||||||
Notes |
|
|
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. |
|
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 |
|
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 |
|
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 [^]' |
|
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 :) |
|
Kaminsky (developer) 2024-03-22 15:14 |
Thanks for checking! |
|
Ru5tK1ng (updater) 2024-03-24 21:23 |
This was merged in:'https://foss.heptapod.net/zandronum/zandronum-stable/-/commit/6c7ecf69b8926207e56ddd4386707a9871a04bca [^]' |
|
Ru5tK1ng (updater) 2024-04-09 03:05 |
Tested with latest beta and the results were consistent. |
|
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 |
| Copyright © 2000 - 2025 MantisBT Team |