Page 1 of 1

Exceptions on load

PostPosted: Sun Jan 25, 2009 9:40 pm
by mikezs
When the server starts, the following errors are shown in the log. These various commands have actually been working in the past and have stopped working.

It's as if the script is loading things in the wrong order and not registering some of the variables.

Anyone got any ideas as to why this would happen?
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  Exception caught: 25/01/2009 @ [19:05:04] [Occurences: 1]
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

Traceback (most recent call last):

  File "/home/objector/85.234.149.133-27140/cstrike/addons/eventscripts/es.py", line 334, in loadModuleAddon
    newaddon = __import__(importname)

  File "/home/objector/85.234.149.133-27140/cstrike/addons/eventscripts/gungame/included_addons/gg_knife_pro/gg_knife_pro.py", line 34, in <module>
    proLimit = gungamelib.getVariable('gg_knife_pro_limit')

  File "/home/objector/85.234.149.133-27140/cstrike/addons/eventscripts/_libs/python/gungamelib.py", line 2237, in getVariable
    raise ValueError('Unable to get variable object (%s): not registered.' % variableName)

ValueError: Unable to get variable object (gg_knife_pro_limit): not registered.



-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  Exception caught: 25/01/2009 @ [19:05:04] [Occurences: 1]
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

Traceback (most recent call last):

  File "/home/objector/85.234.149.133-27140/cstrike/addons/eventscripts/es.py", line 334, in loadModuleAddon
    newaddon = __import__(importname)

  File "/home/objector/85.234.149.133-27140/cstrike/addons/eventscripts/gungame/included_addons/gg_turbo/gg_turbo.py", line 39, in <module>
    gg_dead_strip = gungamelib.getVariable('gg_dead_strip')

  File "/home/objector/85.234.149.133-27140/cstrike/addons/eventscripts/_libs/python/gungamelib.py", line 2237, in getVariable
    raise ValueError('Unable to get variable object (%s): not registered.' % variableName)

ValueError: Unable to get variable object (gg_dead_strip): not registered.



-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  Exception caught: 25/01/2009 @ [19:05:04] [Occurences: 1]
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

Traceback (most recent call last):

  File "/home/objector/85.234.149.133-27140/cstrike/addons/eventscripts/es.py", line 356, in loadModuleAddon
    addons.load(newaddon)

  File "/home/objector/85.234.149.133-27140/cstrike/addons/eventscripts/es.py", line 156, in load
    addon.load()

  File "/home/objector/85.234.149.133-27140/cstrike/addons/eventscripts/gungame/included_addons/gg_deathmatch/gg_deathmatch.py", line 51, in load
    gg_deathmatch.addDependency('gg_dissolver', 1)

  File "/home/objector/85.234.149.133-27140/cstrike/addons/eventscripts/_libs/python/gungamelib.py", line 1169, in addDependency
    raise AddonError('Cannot add dependency (%s): variable not registered.' % dependencyName)

AddonError: Cannot add dependency (gg_dissolver): variable not registered.



-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  Exception caught: 25/01/2009 @ [19:05:04] [Occurences: 1]
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

Traceback (most recent call last):

  File "/home/objector/85.234.149.133-27140/cstrike/addons/eventscripts/es.py", line 356, in loadModuleAddon
    addons.load(newaddon)

  File "/home/objector/85.234.149.133-27140/cstrike/addons/eventscripts/es.py", line 156, in load
    addon.load()

  File "/home/objector/85.234.149.133-27140/cstrike/addons/eventscripts/gungame/included_addons/gg_spawn_protect/gg_spawn_protect.py", line 49, in load
    if gungamelib.getVariableValue('gg_spawn_protect_cancelonfire'):

  File "/home/objector/85.234.149.133-27140/cstrike/addons/eventscripts/_libs/python/gungamelib.py", line 2248, in getVariableValue
    raise ValueError('Unable to get variable value (%s): not registered.' % variableName)

ValueError: Unable to get variable value (gg_spawn_protect_cancelonfire): not registered.



-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  Exception caught: 25/01/2009 @ [19:05:04] [Occurences: 1]
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

Traceback (most recent call last):

  File "/home/objector/85.234.149.133-27140/cstrike/addons/eventscripts/es.py", line 334, in loadModuleAddon
    newaddon = __import__(importname)

  File "/home/objector/85.234.149.133-27140/cstrike/addons/eventscripts/gungame/included_addons/gg_dissolver/gg_dissolver.py", line 36, in <module>
    gg_dissolver_effect = gungamelib.getVariable('gg_dissolver_effect')

  File "/home/objector/85.234.149.133-27140/cstrike/addons/eventscripts/_libs/python/gungamelib.py", line 2237, in getVariable
    raise ValueError('Unable to get variable object (%s): not registered.' % variableName)

ValueError: Unable to get variable object (gg_dissolver_effect): not registered.



-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  Exception caught: 25/01/2009 @ [19:05:04] [Occurences: 1]
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

Traceback (most recent call last):

  File "/home/objector/85.234.149.133-27140/cstrike/addons/eventscripts/es.py", line 334, in loadModuleAddon
    newaddon = __import__(importname)

  File "/home/objector/85.234.149.133-27140/cstrike/addons/eventscripts/gungame/included_addons/gg_handicap/gg_handicap.py", line 38, in <module>
    updateTime = gungamelib.getVariable('gg_handicap_update')

  File "/home/objector/85.234.149.133-27140/cstrike/addons/eventscripts/_libs/python/gungamelib.py", line 2237, in getVariable
    raise ValueError('Unable to get variable object (%s): not registered.' % variableName)

ValueError: Unable to get variable object (gg_handicap_update): not registered.

PostPosted: Sun Jan 25, 2009 10:06 pm
by mikezs
Just solved this problem.

The order in which the variables are in the config files matters. If gg_dissolve was not set before gg_deathmatch then the module was not loaded.

This is a bug, so I shall report it after more testing.