Issue Data
|
Issue #29452: Cleanup issues with DLC01:DLC01_TrackSystemMachine
When the Mechanist's Lair unloads, a cleanup function runs that is supposed to let the individual tracks clear all their script variables and finally remove themselves from the myMachines array on DLC01:DLC01_TrackSystemTrack. It was found earlier that this did not work, resulting in an infinite loop in the OnUnload() event of DLC01:DLC01_TrackSystemTrack because the array never got emptied, and a fix was provided by UFO4P 2.1.1 (see bug #28753). As it turned out now however, this fix may result in the tracks remeaining active even after the cell unloads and the related quest has shut down.
Investigation of the problem turned out that the actual culprit is an unbound script check added by UFO4P 2.0.6 for Bug #25199 (resp. 2.0.6a for Bug #25620) that skipped the whole cleanup function on DLC01:DLC01_TrackSystemMachine if the script was unbound, including the line that was supposed to remove the script from the my>Machines array on DLC01:DLC01_TrackSystemTrack. To fix this, the check added by UFO4P 2.0.6 was modified to only apply to a single line that will not work on unbound scripts for sure. The rest of the cleanup function however will now still be carried out. |