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 Skyrim Special Edition Patch
Component: Skyrim SE: Vanilla
Category: Papyrus
Assigned To: Garthand
Platform: All
Severity: Very Low
Votes: 1
Watching: N/A
Opened By Garthand on Mar 16, 2019 9:53 pm
Last Edited By Garthand on Mar 16, 2019 9:53 pm
Closed By Arthmoor on May 25, 2019 6:19 pm
Resolution: Fixed
Comment: Fixed for USSEP 4.1.8.

Issue #26371: defaultDisableHavokOnLoad race condition

 
defaultDisableHavokOnLoad received a fix in USKP 2.0.1 with the following description, "Added event to deal with Papyrus spam caused by the player picking these things up since the game cannot process that properly."

This created the event OnContainerChanged that sets the beenSimmed bool to True, which prevents the other events from firing off. However, when picking up an object with the defaultDisableHavokOnLoad script attached to it, a race condition may occur where the OnActivate event fires off before the USKP-created OnContainerChanged event. Thus, beenSimmed is still false, and several no 3d errors occur as the object is in your inventory.

Most of the other events prevent this race condition by including the Self.Is3DLoaded() test in their if statement; I propose we add this to the OnActivate event if statement to prevent this race condition.

Example fix attached.



Attached Files:

defaultDisableHavokOnLoadFix.zip