From 523f9313bbb2338dd3a45eb92da50037893f5dab Mon Sep 17 00:00:00 2001 From: Cekis Date: Sun, 29 May 2016 07:49:27 +0100 Subject: [PATCH] Added logging for the GCW Updater to prevent issues. --- .../script/systems/gcw/gcw_data_updater.java | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) mode change 100644 => 100755 sku.0/sys.server/compiled/game/script/systems/gcw/gcw_data_updater.java diff --git a/sku.0/sys.server/compiled/game/script/systems/gcw/gcw_data_updater.java b/sku.0/sys.server/compiled/game/script/systems/gcw/gcw_data_updater.java old mode 100644 new mode 100755 index d884b75cc..5b65f76f9 --- a/sku.0/sys.server/compiled/game/script/systems/gcw/gcw_data_updater.java +++ b/sku.0/sys.server/compiled/game/script/systems/gcw/gcw_data_updater.java @@ -1,15 +1,8 @@ package script.systems.gcw; -import script.*; -import script.base_class.*; -import script.combat_engine.*; -import java.util.Arrays; -import java.util.Hashtable; -import java.util.Vector; -import script.base_script; - -import script.library.utils; +import script.dictionary; import script.library.gcw; +import script.obj_id; public class gcw_data_updater extends script.base_script { @@ -28,6 +21,13 @@ public class gcw_data_updater extends script.base_script } public int updateGCWInfo(obj_id self, dictionary params) throws InterruptedException { + if(!isIdValid(self) || !exists(self)){ + debugServerConsoleMsg(self, "Exception: Apparently, I'm not a valid thing for the GCW Data Updater. (gcw_data_updater)"); + debugServerConsoleMsg(self, "What I am: " + getTemplateName(self)); + debugServerConsoleMsg(self, "I'm located at " + getLocation(self)); + debugServerConsoleMsg(self, "My Scene is " + getLocation(self).area); + return SCRIPT_CONTINUE; + } int imperial = gcw.getImperialPercentileByRegion(self); int rebel = gcw.getRebelPercentileByRegion(self); int oldImperial = getIntObjVar(self, "Imperial.controlScore");