Issue Data
|
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 |