Warcraft-Source

General Content => Discussions => Topic started by: parajox on April 15, 2019, 12:46:01 AM

Title: SP Tracebacks
Post by: parajox on April 15, 2019, 12:46:01 AM
Hello,

I'm getting these tracebacks. I tried to edit several races in hope of fixing it but still nothing, atleast all races work normaly and dont caused any errors in the past. Someone who can get through it?


//EDIT

so i guess its a wcs command/server string issue, i get these errors with keylight en

Quote
[SP] Caught an Exception:
Traceback (most recent call last):
  File "../addons/source-python/plugins/wcs/xtell.py", line 99, in tell
    text = strings(text, tokens, langlib.getLangAbbreviation(player.language))
  File "../addons/source-python/plugins/es_emulator/eventscripts/_libs/python/langlib.py", line 71, in __call__
    return self.expand(text, opts, lang)
  File "../addons/source-python/plugins/es_emulator/eventscripts/_libs/python/langlib.py", line 51, in expand
    k = self[text]
  File "../addons/source-python/plugins/es_emulator/eventscripts/_libs/python/langlib.py", line 49, in __getitem__
    return super(Strings, self).__getitem__(self.fallback)
  File "../addons/source-python/packages/site-packages/configobj.py", line 554, in __getitem__
    val = dict.__getitem__(self, key)

KeyError: 'en'



[SP] Caught an Exception:
Traceback (most recent call last):
  File "../addons/source-python/plugins/wcs/xtell.py", line 99, in tell
    text = strings(text, tokens, langlib.getLangAbbreviation(player.language))
  File "../addons/source-python/plugins/es_emulator/eventscripts/_libs/python/langlib.py", line 71, in __call__
    return self.expand(text, opts, lang)
  File "../addons/source-python/plugins/es_emulator/eventscripts/_libs/python/langlib.py", line 51, in expand
    k = self[text]
  File "../addons/source-python/plugins/es_emulator/eventscripts/_libs/python/langlib.py", line 49, in __getitem__
    return super(Strings, self).__getitem__(self.fallback)
  File "../addons/source-python/packages/site-packages/configobj.py", line 554, in __getitem__
    val = dict.__getitem__(self, key)

KeyError: 'en'



[SP] Caught an Exception:
Traceback (most recent call last):
  File "../addons/source-python/plugins/wcs/xtell.py", line 99, in tell
    text = strings(text, tokens, langlib.getLangAbbreviation(player.language))
  File "../addons/source-python/plugins/es_emulator/eventscripts/_libs/python/langlib.py", line 71, in __call__
    return self.expand(text, opts, lang)
  File "../addons/source-python/plugins/es_emulator/eventscripts/_libs/python/langlib.py", line 51, in expand
    k = self[text]
  File "../addons/source-python/plugins/es_emulator/eventscripts/_libs/python/langlib.py", line 49, in __getitem__
    return super(Strings, self).__getitem__(self.fallback)
  File "../addons/source-python/packages/site-packages/configobj.py", line 554, in __getitem__
    val = dict.__getitem__(self, key)

KeyError: 'en'



[SP] Caught an Exception:
Traceback (most recent call last):
  File "../addons/source-python/plugins/wcs/xtell.py", line 99, in tell
    text = strings(text, tokens, langlib.getLangAbbreviation(player.language))
  File "../addons/source-python/plugins/es_emulator/eventscripts/_libs/python/langlib.py", line 71, in __call__
    return self.expand(text, opts, lang)
  File "../addons/source-python/plugins/es_emulator/eventscripts/_libs/python/langlib.py", line 51, in expand
    k = self[text]
  File "../addons/source-python/plugins/es_emulator/eventscripts/_libs/python/langlib.py", line 49, in __getitem__
    return super(Strings, self).__getitem__(self.fallback)
  File "../addons/source-python/packages/site-packages/configobj.py", line 554, in __getitem__
    val = dict.__getitem__(self, key)

KeyError: 'en'
Title: Re: SP Tracebacks
Post by: parajox on April 17, 2019, 06:40:37 PM
Code: [Select]
[SP] Caught an Exception:
Traceback (most recent call last):
  File "../addons/source-python/packages/source-python/events/listener.py", line 92, in fire_game_event
    callback(game_event)
  File "../addons/source-python/plugins/wcs/mana.py", line 93, in _player_death
    if mana_players[userid].regeneration_repeat.status != RepeatStatus.STOPPED:

KeyError: 3

Fixxed it, now I'm getting these after a player disconnect. Any ideas?