[08/23/2025 - 11:12:09AM] error: Array index 0 is out of range (0-0)
stack:
[alias GhoulBosses on quest MinRecruit07 (00186642)].DefaultCollectionAliasOnDeath.UFO4P_AddRefToTriggeredRefArray() - "C:\Users\Dr. Peter Haas\AppData\Local\Temp\PapyrusTemp\DefaultCollectionAlias.psc" Line 144
[alias GhoulBosses on quest MinRecruit07 (00186642)].DefaultCollectionAliasOnDeath.TryToSetStage() - "C:\Users\Dr. Peter Haas\AppData\Local\Temp\PapyrusTemp\DefaultCollectionAlias.psc" Line 78
[alias GhoulBosses on quest MinRecruit07 (00186642)].DefaultCollectionAliasOnDeath.OnDeath() - "F:\_F4\Art\Raw\Scripts\DefaultCollectionAliasOnDeath.psc" Line 11
This is the result of a race condition not being fully accounted for. Specifically, the alias in question has two different scripts running OnDeath events, and one of them removes the relevant reference from the alias as part of its processing. While the unofficial patch accounts for this at some points in the code, the reference can be removed from the alias at any point in TryToSetStage or the functions it calls due to the scripts running in parallel. In the case of this log, the reference was removed after validation on line 49 but before TriggeredRefArray could be set up on line 117.
When this error occurs, the quest winds up stuck on the current stage because there are no more bosses remaining for the player to kill.
As a note, the line numbers in the script log are incorrect. It would appear the compiled version included in the unofficial patch was not updated after comments were changed and code was rearranged, so the actual line numbers in the current source code would be 138 and 74, rather than 144 and 78.