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.

Issue Data
Status: New
Issue Type: Bug Report
Project: Unofficial Fallout 4 Patch
Component: Fallout 4: Vanilla
Category: Papyrus
Assigned To: Nobody
Platform: All
Severity: Very Low
Votes: 0
Watching: N/A
Opened By DarthVitrial on Jul 30, 2022 5:39 pm

Issue #32550: Possible papyrus error in DN045_MonorailScript

Errors tend to be along the lines of
error: Cannot call BlockActivation() on a None object, aborting function call
[ (09010B77)].DN045_MonorailScript.BlockButtons() - "g:\_F4\Art\Raw\Scripts\DN045_MonorailScript.psc" Line 129
[ (09010B77)].DN045_MonorailScript.StartTrain() - "g:\_F4\Art\Raw\Scripts\DN045_MonorailScript.psc" Line 143
[ (09010B77)].DN045_MonorailScript.OnCellAttach() - "g:\_F4\Art\Raw\Scripts\DN045_MonorailScript.psc" Line 54

While this is a mod-added version I think it applies to vanilla as well, because the "OnCellAttach" code calls those functions without making sure the monorail has actually loaded first. I think it just needs a self.waitfor3DLoad() call at the start of the OnCellAttach function to resolve these errors.


2 comment(s)
Sclerocephalus said:
You wouldn't get a 'none' error if it was only a 3D issue. Moreover, BlockActivation() does not require 3D.

DarthVitrial said:
Ah, ok. Probably not a vanilla issue then, though a waitfor3d check might still be useful for other safety checks in the OnCellAttach?

Showing Comments 1 - 2 of 2