Talk:Disable - ObjectReference

From the CreationKit Wiki
Revision as of 21:01, 25 September 2016 by imported>Wbunkey2244
Jump to navigation Jump to search

I don't know if I have the right page ... but

I have had this issue for over a year now with the Enable() Disable() (latent functions) EnableNoWait() DisableNoWait() Non-latent functions. Using these simple functions in a small interior space has CONSISTENTLY caused CTD's. After a year, I have proven that it is precisely this, that causes a CTD. I have used Vanilla Skyrim, one mod - Skyrim with DLC and one mod - Skyrim w/DLC's and 28 mods. I am a programmer analyst, not unfamiliar with programming in papyrus. I have used a small ONE item enable/disable script in a room with NO containers or other scripts - I have used the same small script in homes with containers and other scripts - I have verified my game, I have re-installed my skyrim - I have used BOSS to ensure proper load order, I have re-arranged my load order - I have used TES5EDIT to clean all mods - I have examined the papyrus logs meticulously ... I am at my wit's end.

No errors in TES5EDIT - no missing assets - no conflicts ... no errors in papyrus, the log simply 'ends' with the last entry prior to re-entering the room or house - no errors in the CK. And I make good use of occlusion planes.

Now for the wrench in the works .. I created a LARGE interior space (home) with three floors, several occlusion planes (as usual), three quests and MANY enable/disable scripts - one the EXACT same one I'm having a problem with now (and the one I had a problem with last year)... it NEVER crashes. What the heck? Two significant differences - a very large home, and I had an NPC in the shower who activated it (disabling it) prior to the player killing the NPC and receiving the home as a reward. This mod has never failed - it has never crashed.

I don't understand. I don't drink ... but if I can't found out WHY this is happening ... I may have to start. Here is my very simple script that CTD's my player's home. If I remove the script - I have entered/exited the home SUCCESSIVELY over 40 times in/out/in/out with NO CTD.

Scriptname SeaPointShowerActivatorScript extends ObjectReference

ObjectReference Property SPShowerWaterfall Auto ObjectReference Property SPShowerSound Auto ObjectReference Property SPShowerLight Auto ObjectReference Property SPShowerFX Auto ObjectReference Property SPShowerPuddle Auto

Bool bToggle

Event OnActivate(ObjectReference akActionRef) bToggle = !bToggle If bToggle ; True ; Turn off shower SPShowerWaterfall.DisableNoWait() SPShowerSound.DisableNoWait() SPShowerLight.DisableNoWait() SPShowerFX.DisableNoWait() SPShowerPuddle.DisableNoWait() Else ; False ; Turn on Shower SPShowerWaterfall.EnableNoWait() SPShowerSound.EnableNoWait() SPShowerLight.EnableNoWait() SPShowerFX.EnableNoWait() SPShowerPuddle.EnableNoWait() Endif EndEvent


With all appropriate properties set correctly. This script is in a room, with 4 containers and one other enable/disable script for ambient sunbeams (that works fine). I have re-written this script to use the non-latency functions - as well as using an xmarker parent script / trigger script / linked ref script - just about EVERY way you can write an enable/disable. All to no avail.

Please note: I've used a simple enable/disable on other mods I've created, given an enable/disable script to friends for their player home mods and ALL of them CTD.

Please .. please help me.

--------------------------------------------------------------------------------------------------------------------

Hi!, try removing the line to disable the sound file and get back to me. - Wbunkey2244