Coder Social home page Coder Social logo

Issue loading wcs about wcs HOT 23 CLOSED

thapwned avatar thapwned commented on June 12, 2024
Issue loading wcs

from wcs.

Comments (23)

NosferatuJoe avatar NosferatuJoe commented on June 12, 2024

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?

from wcs.

jsonburington avatar jsonburington commented on June 12, 2024

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

from wcs.

NosferatuJoe avatar NosferatuJoe commented on June 12, 2024

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

from wcs.

jsonburington avatar jsonburington commented on June 12, 2024

(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?

from wcs.

NosferatuJoe avatar NosferatuJoe commented on June 12, 2024

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?

from wcs.

jsonburington avatar jsonburington commented on June 12, 2024

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!

from wcs.

NosferatuJoe avatar NosferatuJoe commented on June 12, 2024

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.

from wcs.

jsonburington avatar jsonburington commented on June 12, 2024

serverlog.txt

I copied the log from server.bat

from wcs.

NosferatuJoe avatar NosferatuJoe commented on June 12, 2024

Hmm your loads might be wrong. Can you paste "sp load"'s and "es_load" here please? They're probably in your autoexec.cfg

from wcs.

jsonburington avatar jsonburington commented on June 12, 2024

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

from wcs.

NosferatuJoe avatar NosferatuJoe commented on June 12, 2024

Ok that is correct. Can you send me your races.ini and items.ini, and the location where you have placed those?

from wcs.

jsonburington avatar jsonburington commented on June 12, 2024

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)

from wcs.

jsonburington avatar jsonburington commented on June 12, 2024

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.

from wcs.

NosferatuJoe avatar NosferatuJoe commented on June 12, 2024

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.

from wcs.

jsonburington avatar jsonburington commented on June 12, 2024

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!

from wcs.

NosferatuJoe avatar NosferatuJoe commented on June 12, 2024

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 :/

from wcs.

NosferatuJoe avatar NosferatuJoe commented on June 12, 2024

Did it work?

from wcs.

jsonburington avatar jsonburington commented on June 12, 2024

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

from wcs.

NosferatuJoe avatar NosferatuJoe commented on June 12, 2024

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.

from wcs.

jsonburington avatar jsonburington commented on June 12, 2024

I’d gladly give that a try! I’ll feel like a novice but i’d be very happy if it works haha

from wcs.

NosferatuJoe avatar NosferatuJoe commented on June 12, 2024

Have you got it to work?

from wcs.

NosferatuJoe avatar NosferatuJoe commented on June 12, 2024

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.

from wcs.

ThaPwned avatar ThaPwned commented on June 12, 2024

If you're installing Manifest's racepack, you do not need to modify races.json or items.json. You can follow the instructions here.

from wcs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.