whatwhenwhy Posted November 30, 2018 Posted November 30, 2018 Hey! My game constantly crashing after a couple of minutes and lvlpredatorscript spamming my log. Tried to find a fix to this but most of the forums that I found are really old and none of the solutions worked for me. Hope someone knows what can cause this and how to fix it. Thanks in advance!
yatol Posted November 30, 2018 Posted November 30, 2018 as if your ctd have something to do with that script.... ;/ Decompiled by Champollion V1.0.1 Source : LvlPredatorScript.psc Modified : 2013-11-20 22:30:40 Compiled : 2013-11-20 22:30:55 User : Samson Computer : ARTHMOOR1 /; scriptName lvlpredatorscript extends Actor ;-- Properties -------------------------------------- keyword property LinkCustom10 auto faction property SoloFaction3 auto faction property SoloFaction2 auto keyword property SoloKeyword auto keyword property LinkCustom09 auto faction property SoloFaction1 auto ;-- Variables --------------------------------------- ;-- Functions --------------------------------------- function OnCellLoad() Bool DisabledByParent = false objectreference EnableParent = self.GetLinkedRef(LinkCustom09) objectreference InverseEnableParent = self.GetLinkedRef(LinkCustom10) if EnableParent if EnableParent.IsDisabled() DisabledByParent = true endIf elseIf InverseEnableParent if InverseEnableParent.IsEnabled() DisabledByParent = true endIf endIf if DisabledByParent self.Disable(false) elseIf self.CheckForDisable() self.Disable(false) else self.Enable(false) endIf endFunction Bool function CheckForDisable() Bool DisableMe = false Actor Predator = self as Actor if SoloKeyword as Bool && self.GetLinkedRef(SoloKeyword) as Bool if SoloFaction1 as Bool && Predator.IsInFaction(SoloFaction1) || SoloFaction2 as Bool && Predator.IsInFaction(SoloFaction2) || SoloFaction3 as Bool && Predator.IsInFaction(SoloFaction3) DisableMe = true else Actor LinkedPredator = self.GetLinkedRef(SoloKeyword) as Actor if self.GetRace() != LinkedPredator.GetRace() DisableMe = true endIf endIf endIf return DisableMe endFunction ; Skipped compiler generated GotoState ; Skipped compiler generated GetState computer arthoor? you have unof patch, that replace a lot of scripts, and lose all conflics with your load order that's why you have some scripts that are spamming the log and that doesn't matter, if it get in the log, that mean the game don't care, it say there's this or that and keep going as for the error spamming... property linkcustom09 and 10, what about 01,02,03,04,05.... ? strange script anyway, why check if the parent actor is there to load that npc? you give flag disabled to that npc remove lvlpredator from him give lvlpredator to the parent actor, with actor property child auto and that script just become function onload() child.enabled endfunction result is the same, the actor that required the other actor to be load, won't be load if the other actor isn't there
Recommended Posts
Archived
This topic is now archived and is closed to further replies.