Re: [CSS/CSGO] Warcraft: Source
Posted: Thu Mar 28, 2019 1:44 pm
What the difference between Ability and +Ability btw?
WilfordPen wrote:What the difference between Ability and +Ability btw?
Budau wrote:Hi all,
I cant get the races to show up.
I tried to install the races from the 0.78 wcs release.
The shopmenu and the other stuff works.
Can some help me where to put all the stuff from 0.78 to get this to work with this version?
(I already tried to do it like here: https://github.com/ThaPwned/WCS#wcs but it would be nice to get it completly explained again for races)
Thanks in advance
TPDerp wrote:Budau wrote:Hi all,
I cant get the races to show up.
I tried to install the races from the 0.78 wcs release.
The shopmenu and the other stuff works.
Can some help me where to put all the stuff from 0.78 to get this to work with this version?
(I already tried to do it like here: https://github.com/ThaPwned/WCS#wcs but it would be nice to get it completly explained again for races)
Thanks in advance
The only thing you'd do to get races from 0.78 to work is installing Ayuto's EventScripts Emulator and copy your races.ini and strings.ini files to the cfg/source-python/wcs/ folder. Do you get any exceptions? They're located in logs/source-python/.
Code: Select all
[SP] Caught an Exception:
Traceback (most recent call last):
File "..\addons\source-python\packages\source-python\plugins\command.py", line 162, in load_plugin
plugin = self.manager.load(plugin_name)
File "..\addons\source-python\packages\source-python\plugins\manager.py", line 194, in load
plugin._load()
File "..\addons\source-python\packages\source-python\plugins\instance.py", line 76, in _load
self.module.load()
File "..\addons\source-python\plugins\wcs\wcs.py", line 240, in load
race_manager.update(parse_key_races())
File "..\addons\source-python\plugins\wcs\core\modules\oldesc.py", line 332, in parse_key_races
settings.strings['description'] = _LanguageString(_get_string(data['shortdescription']).replace(r'\n', ''))
File "..\addons\source-python\plugins\wcs\core\modules\oldesc.py", line 256, in _get_string
if text.startswith('wcs_lng_r_'):
AttributeError: 'int' object has no attribute 'startswith'
[SP] Plugin 'wcs' was unable to be loaded.
Budau wrote:TPDerp wrote:Budau wrote:Hi all,
I cant get the races to show up.
I tried to install the races from the 0.78 wcs release.
The shopmenu and the other stuff works.
Can some help me where to put all the stuff from 0.78 to get this to work with this version?
(I already tried to do it like here: https://github.com/ThaPwned/WCS#wcs but it would be nice to get it completly explained again for races)
Thanks in advance
The only thing you'd do to get races from 0.78 to work is installing Ayuto's EventScripts Emulator and copy your races.ini and strings.ini files to the cfg/source-python/wcs/ folder. Do you get any exceptions? They're located in logs/source-python/.
Thanks for the fast answer.
I messed something up.
I put the race.ini first in es_emulator.
But now I wanted to use the race/shop files from 0.77 because my old race list is written in the old format.
I tried it with cs go but I got this.Code: Select all
[SP] Caught an Exception:
Traceback (most recent call last):
File "..\addons\source-python\packages\source-python\plugins\command.py", line 162, in load_plugin
plugin = self.manager.load(plugin_name)
File "..\addons\source-python\packages\source-python\plugins\manager.py", line 194, in load
plugin._load()
File "..\addons\source-python\packages\source-python\plugins\instance.py", line 76, in _load
self.module.load()
File "..\addons\source-python\plugins\wcs\wcs.py", line 240, in load
race_manager.update(parse_key_races())
File "..\addons\source-python\plugins\wcs\core\modules\oldesc.py", line 332, in parse_key_races
settings.strings['description'] = _LanguageString(_get_string(data['shortdescription']).replace(r'\n', ''))
File "..\addons\source-python\plugins\wcs\core\modules\oldesc.py", line 256, in _get_string
if text.startswith('wcs_lng_r_'):
AttributeError: 'int' object has no attribute 'startswith'
[SP] Plugin 'wcs' was unable to be loaded.
TPDerp wrote:Budau wrote:TPDerp wrote:The only thing you'd do to get races from 0.78 to work is installing Ayuto's EventScripts Emulator and copy your races.ini and strings.ini files to the cfg/source-python/wcs/ folder. Do you get any exceptions? They're located in logs/source-python/.
Thanks for the fast answer.
I messed something up.
I put the race.ini first in es_emulator.
But now I wanted to use the race/shop files from 0.77 because my old race list is written in the old format.
I tried it with cs go but I got this.Code: Select all
[SP] Caught an Exception:
Traceback (most recent call last):
File "..\addons\source-python\packages\source-python\plugins\command.py", line 162, in load_plugin
plugin = self.manager.load(plugin_name)
File "..\addons\source-python\packages\source-python\plugins\manager.py", line 194, in load
plugin._load()
File "..\addons\source-python\packages\source-python\plugins\instance.py", line 76, in _load
self.module.load()
File "..\addons\source-python\plugins\wcs\wcs.py", line 240, in load
race_manager.update(parse_key_races())
File "..\addons\source-python\plugins\wcs\core\modules\oldesc.py", line 332, in parse_key_races
settings.strings['description'] = _LanguageString(_get_string(data['shortdescription']).replace(r'\n', ''))
File "..\addons\source-python\plugins\wcs\core\modules\oldesc.py", line 256, in _get_string
if text.startswith('wcs_lng_r_'):
AttributeError: 'int' object has no attribute 'startswith'
[SP] Plugin 'wcs' was unable to be loaded.
Thanks for reporting! That'd be fixed in the newest version.
Code: Select all
[SP] Encountered a Warning:
File '..\addons\source-python\plugins\wcs\core\modules\oldesc.py', line 358: UserWarning
Unable to find the "es_WCSshop_cat_db" file.
[SP] Caught an Exception:
Traceback (most recent call last):
File "..\addons\source-python\packages\source-python\plugins\command.py", line 162, in load_plugin
plugin = self.manager.load(plugin_name)
File "..\addons\source-python\packages\source-python\plugins\manager.py", line 194, in load
plugin._load()
File "..\addons\source-python\packages\source-python\plugins\instance.py", line 76, in _load
self.module.load()
File "..\addons\source-python\plugins\wcs\wcs.py", line 242, in load
item_manager.update(parse_key_items())
File "..\addons\source-python\plugins\wcs\core\modules\oldesc.py", line 400, in parse_key_items
categories[str(data['category'])]['items'].append(settings)
KeyError: '1'
[SP] Plugin 'wcs' was unable to be loaded.
Budau wrote:Thanks for updating it so fast.
Now it looks like that:Code: Select all
[SP] Encountered a Warning:
File '..\addons\source-python\plugins\wcs\core\modules\oldesc.py', line 358: UserWarning
Unable to find the "es_WCSshop_cat_db" file.
[SP] Caught an Exception:
Traceback (most recent call last):
File "..\addons\source-python\packages\source-python\plugins\command.py", line 162, in load_plugin
plugin = self.manager.load(plugin_name)
File "..\addons\source-python\packages\source-python\plugins\manager.py", line 194, in load
plugin._load()
File "..\addons\source-python\packages\source-python\plugins\instance.py", line 76, in _load
self.module.load()
File "..\addons\source-python\plugins\wcs\wcs.py", line 242, in load
item_manager.update(parse_key_items())
File "..\addons\source-python\plugins\wcs\core\modules\oldesc.py", line 400, in parse_key_items
categories[str(data['category'])]['items'].append(settings)
KeyError: '1'
[SP] Plugin 'wcs' was unable to be loaded.
Budau wrote:Do you know where to find the es_WCSshop_cat_db file?
Its not in the 0.77 release.
TPDerp wrote:Budau wrote:Thanks for updating it so fast.
Now it looks like that:Code: Select all
[SP] Encountered a Warning:
File '..\addons\source-python\plugins\wcs\core\modules\oldesc.py', line 358: UserWarning
Unable to find the "es_WCSshop_cat_db" file.
[SP] Caught an Exception:
Traceback (most recent call last):
File "..\addons\source-python\packages\source-python\plugins\command.py", line 162, in load_plugin
plugin = self.manager.load(plugin_name)
File "..\addons\source-python\packages\source-python\plugins\manager.py", line 194, in load
plugin._load()
File "..\addons\source-python\packages\source-python\plugins\instance.py", line 76, in _load
self.module.load()
File "..\addons\source-python\plugins\wcs\wcs.py", line 242, in load
item_manager.update(parse_key_items())
File "..\addons\source-python\plugins\wcs\core\modules\oldesc.py", line 400, in parse_key_items
categories[str(data['category'])]['items'].append(settings)
KeyError: '1'
[SP] Plugin 'wcs' was unable to be loaded.
Thanks! That'd be fixed.Budau wrote:Do you know where to find the es_WCSshop_cat_db file?
Its not in the 0.77 release.
The "es_WCSshop_cat_db.txt" file is located in the wcs/WCSshop/ folder.
BackRaw wrote:Would it make sense to convert all ESS/ESP races to the new SP races to get rid of the ES Emulator layer?
Budau wrote:Maybe someone other can help me till TPDerp comes back online.
I tried to load the tools files for the 0.78 races and i get this error.
If I dont put the wcsgroup and xtell file in from the 0.78 release I get the error: "Cant import wcsgroup".
Maybe I put the 0.78 files in the wrong place/ there are files missing?
Thanks in advance for answering
BackRaw wrote:Would it make sense to convert all ESS/ESP races to the new SP races to get rid of the ES Emulator layer?
TPDerp wrote:Sorry for the late reply. Had some stuff going on.Budau wrote:Maybe someone other can help me till TPDerp comes back online.
I tried to load the tools files for the 0.78 races and i get this error.
If I dont put the wcsgroup and xtell file in from the 0.78 release I get the error: "Cant import wcsgroup".
Maybe I put the 0.78 files in the wrong place/ there are files missing?
Thanks in advance for answering
All Python (*.py/.*pyc) from 0.78 are more than likely not compatible with this version, so you shouldn't move those around. The only files you'd move are those mentioned in the readme (and the associated files such as ultimates). But because those files might import things from other libraries that registers commands (such as wcs_xtell), you're getting those exception, so I've added a few monkeypatches that should fix the issues you're having. Let me know if you're getting more of those.BackRaw wrote:Would it make sense to convert all ESS/ESP races to the new SP races to get rid of the ES Emulator layer?
That'd be the best way of doing it, for sure. However, I have my doubts the ones who're interested in it have the time and interest in learning Python (and learn the basics of ESS to be able to understand what's going on), so, as the more likely thing to happen, is me trying to get it to work as hassle-free as possible. Having said that, I welcome any and all who want to create races or items in SP, and want to have them available on the repository, to do a pull request there. *wink* *wink* *throws a treat of some sort in the direction of BackRaw*
Code: Select all
[SP] Caught an Exception:
Traceback (most recent call last):
File "..\addons\source-python\plugins\es_emulator\logic.py", line 212, in fire_game_event
fill_event_vars(userid, 'user')
File "..\addons\source-python\plugins\es_emulator\logic.py", line 140, in fill_event_vars
current_event_vars['es_{}name'.format(type_str)] = player.name
File "..\addons\source-python\packages\source-python\entities\_base.py", line 116, in __getattr__
raise AttributeError('Attribute "{0}" not found'.format(attr))
AttributeError: Attribute "name" not found
Ayuto wrote:The warnings are fine. They are really just deprecation warnings and they appear since a long time.
The attribute errors are fixed with version 688:
https://github.com/Source-Python-Dev-Te ... 932dec5b8c
TPDerp wrote:All Python (*.py/.*pyc) from 0.78 are more than likely not compatible with this version, so you shouldn't move those around. The only files you'd move are those mentioned in the readme (and the associated files such as ultimates). But because those files might import things from other libraries that registers commands (such as wcs_xtell), you're getting those exception, so I've added a few monkeypatches that should fix the issues you're having. Let me know if you're getting more of those.
Code: Select all
[wcs/tools/ultimates/default/wcs_ulti_teleport 31] wcs_getviewcoords: The command 'wcs_getviewcoords' could not be found
[wcs/tools/ultimates/default/wcs_ulti_teleport 33] wcs_getdistance: The command 'wcs_getdistance' could not be found
[wcs/tools/ultimates/default/wcs_ulti_teleport 38] wcs_pushto: The command 'wcs_pushto' could not be found
[wcs/races/human_alliance/teleport 50] wcs_getviewcoords: The command 'wcs_getviewcoords' could not be found
[wcs/races/human_alliance/teleport 52] wcs_getdistance: The command 'wcs_getdistance' could not be found
".5" is an invalid value for "frame_rate:clamping".
[wcs/races/undead_scourge/bomb 81] wcs_explosion: The command 'wcs_explosion' could not be found
para97 wrote:Yup, that's the case at the moment. I would REALLY love to use this version, but many wcs commands are missing and so my races won't work. Still checking this thread on a daily basis to check whether updates are coming :)
Kami wrote:Hey guys,
I removed everything that needed wcsgroup (wcs_resist,wcs_absorb,wcs_noflash,wcs_regeneration,wcs_evade, maybe others) and some of my custom messages from the commands.py.
I did not test if all the commands still work, but it loads fine, so you can at least try it :)
@Pwned: If you are not okay with this kind of mixing of versions just let me know and I'll delete the file!
Code: Select all
[deque([]) 3] wcs_regeneration: The command 'wcs_regeneration' could not be found
[deque([]) 3] wcs_regeneration: The command 'wcs_regeneration' could not be found
[wcs/races/warden/health 75] wcs_cancelulti: The command 'wcs_cancelulti' could not be found
[wcs/races/shadow_hunter/immortal 183] wcs_evasion: The command 'wcs_evasion' could not be found
[deque([]) 191] es_stopsound: Syntax: es_stopsound <userid> <soundname>
[deque([]) 191] wcs_evasion: The command 'wcs_evasion' could not be found
Bad SetLocalOrigin(-504.239777,403.731262,18487.080078) on weaponworldmodel