Ayuto / EventScripts-Emulator

A Source.Python plugin that is able to run EventScripts addons.
16 stars 9 forks source link

KeyError 'settings' regarding weaponlib update #48

Closed NosferatuJoe closed 3 years ago

NosferatuJoe commented 3 years ago

Error: [SP] Loading plugin 'wcs'...

[SP] Caught an Exception: Traceback (most recent call last): File "..\addons\source-python\packages\source-python\plugins\command.py", line 164, in load_plugin plugin = self.manager.load(plugin_name) File "..\addons\source-python\packages\source-python\plugins\manager.py", line 207, in load plugin._load() File "..\addons\source-python\packages\source-python\plugins\instance.py", line 74, in _load self.module = import_module(self.import_name) File "..\addons\source-python\plugins\wcs\wcs.py", line 196, in from .core.helpers.esc.monkeypatch import cmd_manager # Just to load it File "..\addons\source-python\plugins\wcs\core\helpers\esc\monkeypatch.py", line 28, in from .commands import _format_message File "..\addons\source-python\plugins\wcs\core\helpers\esc\commands.py", line 91, in from playerlib import Player as _PLPlayer File "..\addons\source-python\plugins\es_emulator\eventscripts_libs\python\playerlib.py", line 5, in import weaponlib File "..\addons\source-python\plugins\es_emulator\eventscripts_libs\python\weaponlibinit.py", line 230, in currentgame = getGameWeapons(es.getGameName()) or NoWeaponManager(es.getGameName()) File "..\addons\source-python\plugins\es_emulator\eventscripts_libs\python\weaponlib\init.py", line 212, in getGameWeapons settings = ini['settings'] File "..\addons\source-python\packages\site-packages\configobj.py", line 554, in getitem val = dict.getitem(self, key)

KeyError: 'settings'

[SP] Plugin 'wcs' was unable to be loaded.

This error appears after latest update.

Temp solution provided by @ThaPwned: if you're still having that issue, you can modify the addons/source-python/plugins/es_emulator/eventscripts/_libs/python/weaponlib/csgo.ini file by changing [properties] to [settings] .

Thanks in advance!

Ayuto commented 3 years ago

Thanks! I forgot to change that name.

NosferatuJoe commented 3 years ago

Thank you for addressing the issue!