Issue Data
|
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 stack: [ (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. |
You wouldn't get a 'none' error if it was only a 3D issue. Moreover, BlockActivation() does not require 3D.
Ah, ok. Probably not a vanilla issue then, though a waitfor3d check might still be useful for other safety checks in the OnCellAttach?
DN045_MonorailScript is only used on a single activator which has 2 references placed in West Roxbury Station. All 5 of the buttons are correctly configured, so changing this script is not warranted as it isn't a vanilla bug.
Whatever form ID 09010B77 belongs to hasn't set all the linked references up correctly.
Whatever form ID 09010B77 belongs to hasn't set all the linked references up correctly.
Showing Comments 1 - 3 of 3