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: Automatron DLC
Category: Papyrus
Assigned To: Sclerocephalus
Platform: All
Severity: Low
Votes: 0
Watching: N/A
Opened By BlackPete on Feb 7, 2018 7:32 am
Last Edited By BlackPete on May 18, 2018 10:29 pm
Closed By Sclerocephalus on May 18, 2018 10:00 pm
Resolution: Fixed
Comment: Fixed for UFO4P 2.0.4

Issue #23749: RobotSelfDestructScript: Cannot stop an effect shader on a None object

[02/07/2018 - 01:07:40AM] error: Cannot stop an effect shader on a None object
stack:
[ (00181B36)].EffectShader.Stop() - "<native>" Line ?
[Active effect 1 on (FF00979C)].DLC01:DLC01_CompanionSelfDestructScript.OnDying() - "C:\Users\Dr. Peter Haas\AppData\Local\Temp\PapyrusTemp\RobotSelfDestructScript.psc" Line 204
[02/07/2018 - 01:07:40AM] error: Cannot stop an effect shader on a None object
stack:
[ (00058C27)].EffectShader.Stop() - "<native>" Line ?
[Active effect 1 on (FF00979C)].DLC01:DLC01_CompanionSelfDestructScript.OnDying() - "C:\Users\Dr. Peter Haas\AppData\Local\Temp\PapyrusTemp\RobotSelfDestructScript.psc" Line 205


This looks a lot like Issue #20597. It says it's related to the Automatron DLC (DLC01), but I'm unsure if it's actually a vanilla game bug instead. If I put it in the wrong category, please change it.

       
Related Issues: 20597  

Comments

1 comment(s) [Closed]
Sclerocephalus said:
The issue is in fact cloesely related to 20597, since the error is thrown by RobotSelfDestructScript which this script extends.

The vanilla RobotSelfDestructScript was missing the code for the initialization of one of its script properties, and this was added to its otherwise empty OnEffectStart() event. Because the base game scripts that extend RobotSelfDestructScript do not override the OnEffectStart() event, this fixed the issue for both the base script and all of its extensions.

DLC01_CompanionSelfDestructScript extends RobotSelfDestructScript too, but it overrides the OnEffectStart() event and has no code to make otherwise sure that the property is initialized (it is still needed because all functions that are not overridden by DLC01_CompanionSelfDestructScript are still running on RobotSelfDestructScript). Thus, the error is clearly on the Automatron script.

Added a line to the OnEffectStart() event to initialize the offending property.
As it turned out,, DLC01_CompanionSelfDestructScript is also missing the soundID check that was corrected for the base script in ticket #23240. Fixed that one too.

       
Comment #1 Feb 10, 2018 4:12 am  Edited by BlackPete on Jun 12, 2018 6:50 am
Showing Comments 1 - 1 of 1