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.

Please also consider sending your bug report to Bethesda if you are reporting on an issue with Skyrim Special Edition, Fallout 4, Starfield, or Oblivion Remastered. Doing so will help everyone on all platforms.

Issue Data
Status: Closed
Issue Type: Bug Report
Project: Unofficial Fallout 4 Patch
Component: Fallout 4: Nuka-World DLC
Category: Papyrus
Assigned To: Nobody
Platform: Windows PC
Severity: Low
Votes: 0
Watching: N/A
Opened By Sclerocephalus on Jun 12, 2016 8:22 am
Last Edited By BlackPete on Jan 12, 2018 3:09 am
Closed By Arthmoor on Jun 18, 2016 5:40 pm
Resolution: Fixed

Issue #20626: TrapBreakableWalkway - Attempting to stop an invalid sound instance

 
[06/12/2016 - 12:57:03PM] error: Attempting to stop an invalid sound instance


stack:


<unknown self>.Sound.StopInstance() - "<native>" Line ?


[ (001A6FDA)].TrapBreakableWalkway.Done.OnBeginState() - "<unknown file>" Line ?


[ (001A6FDA)].TrapBreakableWalkway.GotoState() - "<unknown file>" Line ?


[ (001A6FDA)].TrapBreakableWalkway.OnCellAttach() - "<unknown file>" Line ?





The script tries to stop a sound that is not playing. There is already a tracking variable on the script to indicate whether the sound plays or not, but checking it has been forgotten in the OnBeginState event of state 'done'. Modify the latter event (starts at line 57) as follows:





<pre class="_prettyXprint _lang-">


State Done


Event OnBeginState(string asOldState)


;debug.Trace(self + ": All Boards Destroyed";)


CancelTimer(DamageTimerID)


;EDIT: Added check for soundActive (if called from OnCellAttach, soundActive may be false and an error will be thrown on the papyrus log for


;trying to stop an invalid sound instance):


If soundActive


Sound.StopInstance(soundID)


soundActive = false


EndIf


GetLinkedRef(LinkCustom01).enablenowait()


EndEvent


EndState


</pre>


Comments

1 comment(s) [Closed]
Arthmoor said:
 
Fixed for UFO4P 1.0.3.

Showing Comments 1 - 1 of 1