Welcome to the AFK Mods bug tracker. In order to report an issue, 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.

An account will be required to submit an issue, so if you need one and are unable to register, please contact us via the forums at https://afkmods.iguanadons.net/
       

Issue Data
Status: Fix Pending
Issue Type: Bug Report
Project: Unofficial Fallout 4 Patch
Component: Fallout 4: Vanilla
Category: Papyrus
Assigned To: Sclerocephalus
Platform: All
Severity: Very Low
Votes: 0
Watching: N/A
Opened By Sclerocephalus on Dec 4, 2017 11:24 am
Last Edited By Sclerocephalus on Dec 4, 2017 11:42 am

Issue #23271: WorkshopParentScript - Cannot call bResetDone() on a None object etc.

[12/04/2017 - 07:33:31PM] error: Cannot call bResetDone() on a None object, aborting function call
stack:
[WorkshopParent (0002058E)].workshopparentscript.ResetWorkshop() - "C:\Users\Dr. Peter Haas\AppData\Local\Temp\PapyrusTemp\workshopparentscript.psc" Line 3749
[WorkshopParent (0002058E)].workshopparentscript.::remote_Actor_OnLocationChange() - "C:\Users\Dr. Peter Haas\AppData\Local\Temp\PapyrusTemp\workshopparentscript.psc" Line 1177

This error only occurs at Covenant, and only if the workshop is not player-owned. There are 9 actors registered at Covenant, but the array that is returned by the engine if GetWorkshopActors() is called,contains a 'none' entry. WorkshopParentScript has sanity checks for 'none' actors and thus won't handle any 'none' entries in the actor array - except for one operation at the end of the second loop through the workshop actors, where the check is missing.

Related:
[12/04/2017 - 07:34:06PM] error: Cannot call assignedMultiResource() on a None object, aborting function call
stack:
[WorkshopParent (0002058E)].workshopparentscript.TryToAssignResourceType() - "C:\Users\Dr. Peter Haas\AppData\Local\Temp\PapyrusTemp\workshopparentscript.psc" Line 2927
[WorkshopParent (0002058E)].workshopparentscript.ResetWorkshop() - "C:\Users\Dr. Peter Haas\AppData\Local\Temp\PapyrusTemp\workshopparentscript.psc" Line 3889
[WorkshopParent (0002058E)].workshopparentscript.::remote_Actor_OnLocationChange() - "C:\Users\Dr. Peter Haas\AppData\Local\Temp\PapyrusTemp\workshopparentscript.psc" Line 1177

This is another result of the 'none' actor in the Covenant workshop actor array. This error is only thrown if logging is turned on, because the sanity check is in the wrong line: the script first calls the trace, then checks whether the actor is 'none', but the trace already runs an operation on the actor that will fail if it is 'none'.