Closed jsonburington closed 2 years ago
Hey Json, in what order do you load your plugins? And is this a fresh installation with nothing added to it or did you modify anything?
I’m not at home so the naming will be worded incorrect but it loads event scripts first, then the sp load wcs. It’s a fresh server and i have no issue restarting if i made any mistakes. Currently it only has source python, sourcemod, meta mod, event scripts and wcs. Wcs loaded fine before i added eventscripts and a race pack to play around with. It loaded but the race list was empty, so I added es and an old holliday 200 race pack. Now wcs fails to load with the error above
At the moment it is very important in which order you load your plugins. If you're gonna use eventscripts, you need to make sure you load it BEFORE wcs.
So in my autoexec.cfg at the bottom it looks like this:
sp plugin load es_emulator
sp plugin load wcs
sp plugin load commandsx //Loads various custom commands required for some races' skills to work
es_load wcs/tools/wcs_essentials //Loads the eventscripts part of the WCS essentials
es_load wcs/loaders/itempack_shopmenu
es_load wcs/loaders/racepack_standard
es_load wcs/loaders/racepack_kamiqawa
es_load wcs/loaders/racepack_novakiller
es_load wcs/loaders/racepack_holliday
es_load wcs/loaders/racepack_naiken
es_load wcs/loaders/racepack_various_authors
es_load wcs/loaders/racepack_damakex
es_load wcs/loaders/racepack_darkeden
es_load wcs/loaders/racepack_eareland
es_load wcs/loaders/racepack_eareland_v2
es_load wcs/loaders/racepack_hypa
es_load wcs/loaders/racepack_holliday_v2
es_load wcs/loaders/racepack_holliday_v3
es_load wcs/loaders/racepack_teachercreature
es_load wcs/loaders/racepack_various_authors_v2
where's the emulator, wcs, commandsx and wcs_essentials are necessary for WCS to work properly with the emulator. You can find the essentials & commandsx in Manifest' repo: https://github.com/ManifestManah?tab=repositories
Alternatively you could use Manifest's newly assembled "eventscripts emulator" which should include everything you need to get WCS to run properly, it makes it a bit easier for installation.
Good luck :D
(In advance I'd like to say sorry I don't know where best to ask, and don't want to flood your repository with issues :B ) I've restarted everything and am now able to load in all the plugins including your recommended "commandx" & wcs essentials. I downloaded the Standard Race Pack & Shop Menu from ManifestManah's page and followed the instructions to a T (adding it to autoexec & creating a races.ini file) however now I'm having an issue where if I type "changerace" or "shopmenu" I then see the message : [WCS] Not ready; Please wait.
Any clue how to fix?
We're aware of that issue and I'll provide some code updates you could perform to get rid of that issue. Delete or comment (#) out these lines in this file on your installation: https://github.com/ThaPwned/WCS/blob/master/addons/source-python/plugins/wcs/wcs.py#L995-L1005
There are some other things we removed with tracing this bug. Although the one above might fix the issue right away. Can you please provide feedback if this fixed it?
Same issue with the message : [WCS] Not ready; Please wait. Tried both deleting the entire line and commenting it out, then changing it back to normal. Unloaded and reloaded es & wcs (along with the other lines) I have access to the races through the in game "wcs" command but am unable to changerace or use the shop. The only notable thing I've done strangely (that I can think of) is deleting some textures/models/etc that wouldn't install when wcs loaded and I connected in game for the first time through my lan server.
I will gladly try any other fixes that come to mind and appreciate the help!
Could you send me your console.log so I can see what's happening? Also one important note, never reload the eventscripts emulator as the reload doesn't work properly. If any changes made please restart the server to make sure it's loading your new code correctly.
I copied the log from server.bat
Hmm your loads might be wrong. Can you paste "sp load"'s and "es_load" here please? They're probably in your autoexec.cfg
sp plugin load es_emulator sp plugin load wcs sp plugin load commandsx //Loads various custom commands required for some races' skills to work es_load wcs/tools/wcs_essentials //Loads the eventscripts part of the WCS essentials es_load wcs/loaders/itempack_shopmenu es_load wcs/loaders/racepack_standard
Ok that is correct. Can you send me your races.ini and items.ini, and the location where you have placed those?
Probably the wrong call but I was messing around trying to get it to work and have the same races.ini in two spots as of last night : csgo\addons\source-python\plugins\wcs\modules\races .. for races.ini csgo\cfg\source-python\wcs .. for another races.ini & same thing with items.ini csgo\addons\source-python\plugins\wcs\modules\items csgo\cfg\source-python\wcs
I filled in the races.json located in cfg\source-python\wcs like this
(removed cause so much space)
A couple things of note (maybe useful?) : The bots spawn in as a race, so I feel races are active?
In console there are skills that appear to be firing off correctly : [Feature] : Phoenix Skill - [Block] Event Round_End ( START ) [Feature] : Phoenix Skill - [Block] Skill : Phoenix_Round_End ( EXECUTED START ) [Feature] : Phoenix Skill - [Block] Skill : Phoenix_Round_End ( EXECUTED END ) [Feature] : Phoenix Skill - [Block] Skill : Phoenix_Round_End ( EXECUTED START ) [Feature] : Phoenix Skill - [Block] Skill : Phoenix_Round_End ( EXECUTED END ) [Feature] : Phoenix Skill - [Block] Event Round_End ( END ) L 04/13/2021 - 11:17:00: Starting Freeze period [Race] : Orcish Horde - [Block] Spawn ( START ) [Race] : Orcish Horde - [Block] Spawn ( END )
& this appearing in the server log : [SP] Encountered a Warning: File '..\addons\source-python\plugins\wcs\core\modules\races\manager.py', line 227: UserWarning Unable to find the default race "". Using "undead_scourge" as temporary default race.
I feels like I have access to wcs if I could just get past the message : [WCS] Not ready; Please wait.
The races.ini and items.ini should be in csgo\cfg\source-python\wcs\ , nowhere else cuz that might give problems. So you should delete the races.ini & items.ini in the csgo\addons\source-python\plugins\wcs\modules, the modules folder should have an items & races folder that are empty.
Also since you mixed them up the database might have gotten corrupted. To be sure it's a fresh one you could always delete the players.sqlite in csgo/addons/source-python/data/plugins/wcs/. It will automatically create a new one on server restart.
Alright I removed them from csgo\addons\source-python\plugins\wcs\modules. Deleting players.sqlite didn't work either.
Also I think I understood how to fill in the "races.json" that accompanies "races.ini" in csgo\cfg\source-python\wcs { "categories": { "standard": [ "wcs_lng_undead_scourge", "wcs_lng_human_alliance", "wcs_lng_orcish_horde", "wcs_lng_night_elves", "wcs_lng_blood_mage", "wcs_lng_archmage_proudmoore", "wcs_lng_shadow_hunter", "wcs_lng_warden", "wcs_lng_crypt_lord", "wcs_lng_flame_predator", "wcs_lng_succubus_hunter" ] }, "races": [ "wcs_lng_undead_scourge", "wcs_lng_human_alliance", "wcs_lng_orcish_horde", "wcs_lng_night_elves", "wcs_lng_blood_mage", "wcs_lng_archmage_proudmoore", "wcs_lng_shadow_hunter", "wcs_lng_warden", "wcs_lng_crypt_lord", "wcs_lng_flame_predator", "wcs_lng_succubus_hunter" ] } but am a little confused on "items.json"
also wcsadmin won't work either, even after setting my steam id in privileges
when I type "wcs" in game, it shows the menu and changerace / shopmenu are greyed out
Sorry for the hassle!
If you're using the emulator I suggest to not use items.json & races.json yet since that might confuse the mod. So I suggest deleting items.json & races.json aswell. For wcsadmin you need to add your steamid to privileges.json, there is documentation on how to on this github readme. If it still doesn't work I'll provide you a code snippet with a working one.
And I'm very sorry for the late reply but I was quite busy :/
Did it work?
No worries! I've been distracted myself lol. I had to update the server before deleting the json files, and now none of the wcs commands work. It probably sounds ridiculous but it may be better for me to restart the whole thing a 3rd time
Let me know how it went. If it still is causing you issues, I'll setup a "plug n play" directory for you that you just have to copy over.
I’d gladly give that a try! I’ll feel like a novice but i’d be very happy if it works haha
Have you got it to work?
In the meanwhile source.python has been updated and the issues you were having might've been fixed. Please reinstall and report back how it went if you're still interested.
Hello I'm trying to throw together a warcraft server on CSGO and am getting this issue when I try and load in wcs plugin. Any help or pointers would be appreciated
[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 76, in _load self.module.load() File "..\addons\source-python\plugins\wcs\wcs.py", line 301, in load race_manager.load_all() File "..\addons\source-python\plugins\wcs\core\modules\races\manager.py", line 215, in load_all config = self._get_or_create_config() File "..\addons\source-python\plugins\wcs\core\modules\base.py", line 125, in _get_or_create_config config = json_load(inputfile) File "..\addons\source-python\Python3\json__init.py", line 299, in load parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw) File "..\addons\source-python\Python3\json\init__.py", line 354, in loads return _default_decoder.decode(s) File "..\addons\source-python\Python3\json\decoder.py", line 342, in decode raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 3 column 1 (char 12)