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: Closed
Issue Type: Bug Report
Project: Unofficial Fallout 4 Patch
Component: Fallout 4: Vanilla
Category: Papyrus
Assigned To: Sclerocephalus
Platform: All
Severity: Low
Votes: 0
Watching: N/A
Opened By BlackPete on Jul 7, 2018 8:18 am
Last Edited By Sclerocephalus on Sep 9, 2018 11:14 am
Closed By Sclerocephalus on Sep 9, 2018 1:47 pm
Resolution: Fixed
Comment: Fixed for UFO4P 2.0.5

Issue #24771: BugSwarmFXScript: Unable to call GetAngleX/GetAngleY/GetAngleZ - no native object bound...

[07/06/2018 - 05:42:18PM] error: Unable to call GetAngleX - no native object bound to the script object, or object is of incorrect type
stack:
[<nullptr form> (FF02B6A9)].BugSwarmFXScript.GetAngleX() - "<native>" Line ?
[<nullptr form> (FF02B6A9)].BugSwarmFXScript.ResetHomeCoords() - "g:\_F4\Art\Raw\Scripts\BugSwarmFXScript.psc" Line 111
[<nullptr form> (FF02B6A9)].BugSwarmFXScript.OnInit() - "g:\_F4\Art\Raw\Scripts\BugSwarmFXScript.psc" Line 28
[07/06/2018 - 05:42:18PM] warning: Assigning None to a non-object variable named "myStartRX"
stack:
[<nullptr form> (FF02B6A9)].BugSwarmFXScript.ResetHomeCoords() - "g:\_F4\Art\Raw\Scripts\BugSwarmFXScript.psc" Line 111
[<nullptr form> (FF02B6A9)].BugSwarmFXScript.OnInit() - "g:\_F4\Art\Raw\Scripts\BugSwarmFXScript.psc" Line 28
[07/06/2018 - 05:42:18PM] error: Unable to call GetAngleY - no native object bound to the script object, or object is of incorrect type
stack:
[<nullptr form> (FF02B6A9)].BugSwarmFXScript.GetAngleY() - "<native>" Line ?
[<nullptr form> (FF02B6A9)].BugSwarmFXScript.ResetHomeCoords() - "g:\_F4\Art\Raw\Scripts\BugSwarmFXScript.psc" Line 112
[<nullptr form> (FF02B6A9)].BugSwarmFXScript.OnInit() - "g:\_F4\Art\Raw\Scripts\BugSwarmFXScript.psc" Line 28
[07/06/2018 - 05:42:18PM] warning: Assigning None to a non-object variable named "myStartRY"
stack:
[<nullptr form> (FF02B6A9)].BugSwarmFXScript.ResetHomeCoords() - "g:\_F4\Art\Raw\Scripts\BugSwarmFXScript.psc" Line 112
[<nullptr form> (FF02B6A9)].BugSwarmFXScript.OnInit() - "g:\_F4\Art\Raw\Scripts\BugSwarmFXScript.psc" Line 28
[07/06/2018 - 05:42:18PM] error: Unable to call GetAngleZ - no native object bound to the script object, or object is of incorrect type
stack:
[<nullptr form> (FF02B6A9)].BugSwarmFXScript.GetAngleZ() - "<native>" Line ?
[<nullptr form> (FF02B6A9)].BugSwarmFXScript.ResetHomeCoords() - "g:\_F4\Art\Raw\Scripts\BugSwarmFXScript.psc" Line 113
[<nullptr form> (FF02B6A9)].BugSwarmFXScript.OnInit() - "g:\_F4\Art\Raw\Scripts\BugSwarmFXScript.psc" Line 28
[07/06/2018 - 05:42:18PM] warning: Assigning None to a non-object variable named "myStartRZ"
stack:
[<nullptr form> (FF02B6A9)].BugSwarmFXScript.ResetHomeCoords() - "g:\_F4\Art\Raw\Scripts\BugSwarmFXScript.psc" Line 113
[<nullptr form> (FF02B6A9)].BugSwarmFXScript.OnInit() - "g:\_F4\Art\Raw\Scripts\BugSwarmFXScript.psc" Line 28

       

Comments

1 comment(s) [Closed]
Sclerocephalus said:
Apparently, functions that are called from the OnInit() event may run before the game has finished initializing a reference. That's pretty much the only explanation for an "unbound script" error to occur here.

ResetHomeCoords() should probably run before the ref loads, so I moved the function call to an OnCellAttach() event and made it dependent on a tracking bool that is set by OnInit(), to make sure that it only runs after OnInit() has fired [NB: OnInit() will fire again after a reset.]

       
Comment #1 Sep 9, 2018 10:49 am  Edited by Sclerocephalus on Sep 9, 2018 10:50 am
Showing Comments 1 - 1 of 1