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: New
Issue Type: Bug Report
Project: Unofficial Fallout 4 Patch
Component: Fallout 4: Vanilla
Category: Papyrus
Assigned To: Nobody
Platform: All
Severity: Low
Votes: 0
Watching: N/A
Opened By Sclerocephalus on Jan 16, 2017 9:06 am

Issue #21890: DN015LaserEmmitterScript - Cannot call play() on a None object

[07/12/2016 - 09:05:28PM] error: Cannot call play() on a None object, aborting function call
stack:
[ (0016D8B3)].DN015LaserEmmitterScript.Disarmed.OnBeginState() - "g:\_F4\Art\Raw\ScriptsMilestone\DN015LaserEmmitterScript.psc" Line 76
[ (0016D8B3)].DN015LaserEmmitterScript.GotoState() - "g:\_F4\Art\Raw\ScriptsMilestone\ScriptObject.psc" Line 42
[ (0016D8B3)].DN015LaserEmmitterScript.SetArmed() - "g:\_F4\Art\Raw\ScriptsMilestone\DN015LaserEmmitterScript.psc" Line 86
[ (00092107)].DN015Fabricator.OnLoad() - "g:\_F4\Art\Raw\ScriptsMilestone\DN015Fabricator.psc" Line 35
[07/12/2016 - 09:05:28PM] warning: Assigning None to a non-object variable named "::temp7"
stack:
[ (0016D8B3)].DN015LaserEmmitterScript.Disarmed.OnBeginState() - "g:\_F4\Art\Raw\ScriptsMilestone\DN015LaserEmmitterScript.psc" Line 76
[ (0016D8B3)].DN015LaserEmmitterScript.GotoState() - "g:\_F4\Art\Raw\ScriptsMilestone\ScriptObject.psc" Line 42
[ (0016D8B3)].DN015LaserEmmitterScript.SetArmed() - "g:\_F4\Art\Raw\ScriptsMilestone\DN015LaserEmmitterScript.psc" Line 86
[ (00092107)].DN015Fabricator.OnLoad() - "g:\_F4\Art\Raw\ScriptsMilestone\DN015Fabricator.psc" Line 35
[07/12/2016 - 09:05:28PM] error: Cannot call play() on a None object, aborting function call
stack:
[ (0016D8B0)].DN015LaserEmmitterScript.Disarmed.OnBeginState() - "g:\_F4\Art\Raw\ScriptsMilestone\DN015LaserEmmitterScript.psc" Line 76
[ (0016D8B0)].DN015LaserEmmitterScript.GotoState() - "g:\_F4\Art\Raw\ScriptsMilestone\ScriptObject.psc" Line 42
[ (0016D8B0)].DN015LaserEmmitterScript.SetArmed() - "g:\_F4\Art\Raw\ScriptsMilestone\DN015LaserEmmitterScript.psc" Line 86
[ (00092107)].DN015Fabricator.OnLoad() - "g:\_F4\Art\Raw\ScriptsMilestone\DN015Fabricator.psc" Line 35
[07/12/2016 - 09:05:28PM] warning: Assigning None to a non-object variable named "::temp7"
stack:
[ (0016D8B0)].DN015LaserEmmitterScript.Disarmed.OnBeginState() - "g:\_F4\Art\Raw\ScriptsMilestone\DN015LaserEmmitterScript.psc" Line 76
[ (0016D8B0)].DN015LaserEmmitterScript.GotoState() - "g:\_F4\Art\Raw\ScriptsMilestone\ScriptObject.psc" Line 42
[ (0016D8B0)].DN015LaserEmmitterScript.SetArmed() - "g:\_F4\Art\Raw\ScriptsMilestone\DN015LaserEmmitterScript.psc" Line 86
[ (00092107)].DN015Fabricator.OnLoad() - "g:\_F4\Art\Raw\ScriptsMilestone\DN015Fabricator.psc" Line 35
[07/12/2016 - 09:05:28PM] error: Cannot call play() on a None object, aborting function call
stack:
[ (0016D8AF)].DN015LaserEmmitterScript.Disarmed.OnBeginState() - "g:\_F4\Art\Raw\ScriptsMilestone\DN015LaserEmmitterScript.psc" Line 76
[ (0016D8AF)].DN015LaserEmmitterScript.GotoState() - "g:\_F4\Art\Raw\ScriptsMilestone\ScriptObject.psc" Line 42
[ (0016D8AF)].DN015LaserEmmitterScript.SetArmed() - "g:\_F4\Art\Raw\ScriptsMilestone\DN015LaserEmmitterScript.psc" Line 86
[ (00092107)].DN015Fabricator.OnLoad() - "g:\_F4\Art\Raw\ScriptsMilestone\DN015Fabricator.psc" Line 35
[07/12/2016 - 09:05:28PM] warning: Assigning None to a non-object variable named "::temp7"
stack:
[ (0016D8AF)].DN015LaserEmmitterScript.Disarmed.OnBeginState() - "g:\_F4\Art\Raw\ScriptsMilestone\DN015LaserEmmitterScript.psc" Line 76
[ (0016D8AF)].DN015LaserEmmitterScript.GotoState() - "g:\_F4\Art\Raw\ScriptsMilestone\ScriptObject.psc" Line 42
[ (0016D8AF)].DN015LaserEmmitterScript.SetArmed() - "g:\_F4\Art\Raw\ScriptsMilestone\DN015LaserEmmitterScript.psc" Line 86
[ (00092107)].DN015Fabricator.OnLoad() - "g:\_F4\Art\Raw\ScriptsMilestone\DN015Fabricator.psc" Line 35


This is the OnBeginState event:

Event onBeginState(string previousState)
isArmed = false
PlayAnimation("Trip";)
ObjectReference ObjSelf = self as ObjectReference
DisarmSound.Play(ObjSelf)
setDestroyed()
;Self.Disable()
endEvent

Interestingly, the animation plays. The error is always thrown when the sound should be played. Maybe it works with 'DisarmSound.Play(self)' (the cast should not be needed anyway).