Welcome to the AFK Mods bug tracker. In order to report an issue, you need to have a VALIDATED account to post one. Once you have followed the link the registration email sent you, please select a project from the drop down menu below. Select “Open New Issue” and fill out the form with as many details as possible.

Please also consider sending your bug report to Bethesda if you are reporting on an issue with Skyrim Special Edition, Fallout 4, or Starfield. Doing so will help everyone on all platforms.

Issue Data
Status: Closed
Issue Type: Bug Report
Project: Unofficial Fallout 4 Patch
Component: Unofficial Fallout 4 Patch
Category: Papyrus
Assigned To: Sclerocephalus
Platform: All
Severity: High
Votes: 0
Watching: N/A
Opened By Sclerocephalus on Nov 22, 2020 7:20 pm
Last Edited By Sclerocephalus on Nov 22, 2020 7:21 pm
Closed By Sclerocephalus on Nov 24, 2020 7:55 pm
Resolution: Fixed
Comment: Fixed for UFO4P 2.1.2

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.

Related Issues: 25199  25620  28753