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: Fallout 4: Vanilla
Category: Papyrus
Assigned To: Sclerocephalus
Platform: All
Severity: Medium
Votes: 0
Watching: N/A
Opened By Sclerocephalus on Oct 23, 2017 11:53 am
Last Edited By Sclerocephalus on Oct 24, 2017 3:12 pm
Closed By Arthmoor on Oct 25, 2017 10:21 pm
Resolution: Fixed
Comment: Fixed for UFO4P 2.0.2.

Issue #23016: Property CurrentWorkshopID on WorkshopParentScript is not updated properly

 
Certain functions on WorkshopScript and WorkshopParentScript will skip certain operations if the workshop they run on is not the workshop the player is currently staying at.

This is handled by several properties that are set to the current workshop if the player activates a workbench or if a reset starts running:
- CurrentWorkshop: a refAlias on WorkshopParent quest; this holds the ref of the current workshop
- currentWorkshopID: an int property on WorkshopParentScript: this holds the workshopID of the current workshop
- WorkshopCurrentWorkshopID: a global: this holds the workshopID of the current workshop too

Having a global that stores the current workshop's ID too suggests that it may be used by condition checks (it is not used by any scripts though, other than WorkshopScript and WorkshopParentScript themselves)..

This is all done because certain operations (e.g. on resource objects or workshop stats) are unsafe if the respective workshop is not loaded. In the worst case, running operations on an unloaded workshop may result in certain workshop stats values becoming zero.

Consequently, the aforementioned properties should be reset to 'none' and -1, respectively, if the player leaves a workshop location - but they aren't. They always keep the values of the workshop last visited by the player.

Related Issues: 24122