Comments (8)
Could you try with the newest version? I've changed the way the function execute, so that'd have fixed the issue you've been having.
from wcs.
Edit:
Seems like the new races actually works now but the key bindings are different than what was used in wc3 mod i 1.6. Also they seem to be different depending on new vs old race. Old human uses "ultimate" to teleport while the new one uses "+ability +1"
But also there are missing effects. Lightningchain/roots shows no effects from what I can tell.
Also the teleport on new human race is like two small steps on rank 8. Even if I go into the config and add an extra 0, its unchanged. I think also the lightning/root has the same distance problems..
Now if we try the old races/items. We run into problems. The default paths with 0.78 version are:
/source-python/plugins/es_emulator/eventscripts/wcs/races
/source-python/plugins/es_emulator/eventscripts/wcs/tools
But the server will crash. Because with your version they need to be in:
/source-python/plugins/es_emulator/eventscripts/wcs/modules/races
/source-python/plugins/es_emulator/eventscripts/wcs/modules/items
**And the race.ini (also the 0.78 version has this renamed to default_races.ini) and tools.ini all point to tools, not items and they are missing the modules folder aswell. And the old race files are also sometimes pointing to the wrong folders.
Im not sure, but maybe this is enough to change:**
# EventScripts module path
MODULE_PATH_ES = PLUGIN_PATH / 'es_emulator' / 'eventscripts' / 'wcs' / 'modules'
# EventScripts race path
RACE_PATH_ES = MODULE_PATH_ES / 'races'
# EventScripts item path
ITEM_PATH_ES = MODULE_PATH_ES / 'items'
**to:**
# EventScripts module path
MODULE_PATH_ES = PLUGIN_PATH / 'es_emulator' / 'eventscripts' / 'wcs'
# EventScripts race path
RACE_PATH_ES = MODULE_PATH_ES / 'races'
# EventScripts item path
ITEM_PATH_ES = MODULE_PATH_ES / 'tools'
Now when I run the server again and load everything I get this:
Initializing EventScripts...
[EventScripts] Temporary: Setting the host's IP variable from the command-line.
[EventScripts] Loaded esc
[SP] Successfully loaded plugin 'es_emulator'.
[SP] Loading plugin 'wcs'...
[SP] Encountered a Warning:
File '../addons/source-python/plugins/wcs/core/modules/races/manager.py', line 192: UserWarning
Unable to find the default race "". Using "undead_scourge" as temporary default
race.
[SP] Successfully loaded plugin 'wcs'.
[EventScripts] Loaded wcs/races
[EventScripts] Loaded wcs/races/warden
[EventScripts] Loaded wcs/races/archmage_proudmoore
[EventScripts] Loaded wcs/races/blood_mage
[EventScripts] Loaded wcs/races/human_alliance
[EventScripts] Loaded wcs/races/night_elves
[EventScripts] Loaded wcs/races/orcish_horde
[EventScripts] Loaded wcs/races/shadow_hunter
[EventScripts] Loaded wcs/races/undead_scourge
[EventScripts] Loaded wcs/races/crypt_lord
[EventScripts] Loaded wcs/races/flame_predator
[EventScripts] Loaded wcs/races/succubus_hunter
[EventScripts] Loaded wcs/tools
[EventScripts] Loaded wcs/tools/abilities
Can't load addon (wcs/tools/abilities/warden): cannot import name 'wcsgroup'
Can't load addon (wcs/tools/abilities/healingwarden): cannot import name 'wcsgroup'
Can't load addon (wcs/tools/abilities/trap): cannot import name 'wcsgroup'
Tried to look up command wcs_foreach as if it were a variable.
[SP] Caught an Exception:
Traceback (most recent call last):
File "../addons/source-python/plugins/es_emulator/eventscripts/esc/__init__.py", line 189, in command
command.run(argv, args, exp)
File "../addons/source-python/plugins/es_emulator/eventscripts/esc/cmds/__init__.py", line 140, in run
self.method(**_args)
File "../addons/source-python/plugins/es_emulator/eventscripts/esc/cmds/addons.py", line 20, in load
es.load(addonname)
File "../addons/source-python/plugins/es_emulator/eventscripts/esc/monkeypatch.py", line 28, in load
load(addonname)
File "../addons/source-python/plugins/es_emulator/helpers.py", line 206, in wrapper
return func(c)
File "../addons/source-python/plugins/es_emulator/eventscripts/es_C.py", line 2155, in load
es.loadModuleAddon(argv[1])
File "../addons/source-python/plugins/es_emulator/eventscripts/es.py", line 443, in loadModuleAddon
addons.load(newaddon)
File "../addons/source-python/plugins/es_emulator/eventscripts/es.py", line 242, in load
addon.load()
File "../addons/source-python/plugins/es_emulator/eventscripts/wcs/tools/foreach/foreach.py", line 7, in load
registerServerCommand('wcs_foreach', register, 'Syntax: wcs_foreach <player/weapon/token> <var> <identifier> <"command">')
File "../addons/source-python/plugins/es_emulator/eventscripts/_libs/python/cmdlib.py", line 141, in registerServerCommand
cmd_manager.registerServerCommand(*a, **kw)
File "../addons/source-python/plugins/es_emulator/eventscripts/_libs/python/cmdlib.py", line 37, in registerServerCommand
PreMinidumpCallback: updating dump comment
./srcds_run: line 318: 26682 Segmentation fault $HL_CMD
Add "-debug" to the ./srcds_run command line to generate a debug.log to help with solving this problem
Tue Jan 22 15:28:43 CET 2019: Server restart in 10 seconds
crash_20190122152841_1.dmp[26692]: Uploading dump (out-of-process)
/tmp/dumps/crash_20190122152841_1.dmp
crash_20190122152841_1.dmp[26692]: Finished uploading minidump (out-of-process): success = yes
crash_20190122152841_1.dmp[26692]: response: Discarded=1
crash_20190122152841_1.dmp[26692]: file ''/tmp/dumps/crash_20190122152841_1.dmp'', upload yes: ''Discarded=1''
So I edit the es_tools.txt And remove a few lines..
block load
{
es_load wcs/tools/ultimates
es_load wcs/tools/xcommands
es_load wcs/tools/trap
}
block unload
{
es_unload wcs/tools/ultimates
es_unload wcs/tools/xcommands
es_unload wcs/tools/trap
}
**Now the server starts, without a crash. Now when I teleport I actually get the message "You teleported" and also the message about cool downs.
And the log looks like this:**
[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/human_alliance/spawn 3] wcs_set_cooldown: The command 'wcs_set_cooldown' could not be found
from wcs.
I edited my first post.
from wcs.
Seems like the new races actually works now but the key bindings are different than what was used in wc3 mod i 1.6. Also they seem to be different depending on new vs old race. Old human uses "ultimate" to teleport while the new one uses "+ability +1"
That was a mistake on my part. It should've just been ability
(I plan to remove ultimate
at some point), and it's been updated in the latest commit to the races.
But also there are missing effects. Lightningchain/roots shows no effects from what I can tell.
Also the teleport on new human race is like two small steps on rank 8. Even if I go into the config and add an extra 0, its unchanged. I think also the lightning/root has the same distance problems..
I haven't gotten around to finding proper models for the effects in CSGO yet. If you have some models in mind, feel free to do a PR, and I'll see to them being added ASAP.
When you used Human Alliance
's Teleport
skill, did you look down, straight forward, or up? It takes the distance of where you're looking into account, so the further away you're looking, the further away you'll be pushed.
Now if we try the old races/items. We run into problems. The default paths with 0.78 version are:
/source-python/plugins/es_emulator/eventscripts/wcs/races
/source-python/plugins/es_emulator/eventscripts/wcs/toolsBut the server will crash. Because with your version they need to be in:
/source-python/plugins/es_emulator/eventscripts/wcs/modules/races
/source-python/plugins/es_emulator/eventscripts/wcs/modules/items**And the race.ini (also the 0.78 version has this renamed to default_races.ini) and tools.ini all point to tools, not items and they are missing the modules folder aswell. And the old race files are also sometimes pointing to the wrong folders.
Im not sure, but maybe this is enough to change:**
# EventScripts module path MODULE_PATH_ES = PLUGIN_PATH / 'es_emulator' / 'eventscripts' / 'wcs' / 'modules' # EventScripts race path RACE_PATH_ES = MODULE_PATH_ES / 'races' # EventScripts item path ITEM_PATH_ES = MODULE_PATH_ES / 'items' **to:** # EventScripts module path MODULE_PATH_ES = PLUGIN_PATH / 'es_emulator' / 'eventscripts' / 'wcs' # EventScripts race path RACE_PATH_ES = MODULE_PATH_ES / 'races' # EventScripts item path ITEM_PATH_ES = MODULE_PATH_ES / 'tools'
Only new-style races and items have to be there. All races in 0.78 are located in the races.ini
file (and default_races.ini
for the default races, as you mentioned). New-style races and items each have their own file (es_<race/item name>.txt
for ESS races/items and <race/item name>.py
for ESP races/items). Right now, there's no races nor items coded in this format, only pure Source.Python races. tools.ini
is just a separate file to load all kinds of commands or blocks for races/items to use, so that's the reason they aren't a part of the modules "package".
Now when I run the server again and load everything I get this:
Initializing EventScripts... [EventScripts] Temporary: Setting the host's IP variable from the command-line. [EventScripts] Loaded esc [SP] Successfully loaded plugin 'es_emulator'. [SP] Loading plugin 'wcs'... [SP] Encountered a Warning: File '../addons/source-python/plugins/wcs/core/modules/races/manager.py', line 192: UserWarning Unable to find the default race "". Using "undead_scourge" as temporary default race. [SP] Successfully loaded plugin 'wcs'. [EventScripts] Loaded wcs/races [EventScripts] Loaded wcs/races/warden [EventScripts] Loaded wcs/races/archmage_proudmoore [EventScripts] Loaded wcs/races/blood_mage [EventScripts] Loaded wcs/races/human_alliance [EventScripts] Loaded wcs/races/night_elves [EventScripts] Loaded wcs/races/orcish_horde [EventScripts] Loaded wcs/races/shadow_hunter [EventScripts] Loaded wcs/races/undead_scourge [EventScripts] Loaded wcs/races/crypt_lord [EventScripts] Loaded wcs/races/flame_predator [EventScripts] Loaded wcs/races/succubus_hunter [EventScripts] Loaded wcs/tools [EventScripts] Loaded wcs/tools/abilities Can't load addon (wcs/tools/abilities/warden): cannot import name 'wcsgroup' Can't load addon (wcs/tools/abilities/healingwarden): cannot import name 'wcsgroup' Can't load addon (wcs/tools/abilities/trap): cannot import name 'wcsgroup' Tried to look up command wcs_foreach as if it were a variable. [SP] Caught an Exception: Traceback (most recent call last): File "../addons/source-python/plugins/es_emulator/eventscripts/esc/__init__.py", line 189, in command command.run(argv, args, exp) File "../addons/source-python/plugins/es_emulator/eventscripts/esc/cmds/__init__.py", line 140, in run self.method(**_args) File "../addons/source-python/plugins/es_emulator/eventscripts/esc/cmds/addons.py", line 20, in load es.load(addonname) File "../addons/source-python/plugins/es_emulator/eventscripts/esc/monkeypatch.py", line 28, in load load(addonname) File "../addons/source-python/plugins/es_emulator/helpers.py", line 206, in wrapper return func(c) File "../addons/source-python/plugins/es_emulator/eventscripts/es_C.py", line 2155, in load es.loadModuleAddon(argv[1]) File "../addons/source-python/plugins/es_emulator/eventscripts/es.py", line 443, in loadModuleAddon addons.load(newaddon) File "../addons/source-python/plugins/es_emulator/eventscripts/es.py", line 242, in load addon.load() File "../addons/source-python/plugins/es_emulator/eventscripts/wcs/tools/foreach/foreach.py", line 7, in load registerServerCommand('wcs_foreach', register, 'Syntax: wcs_foreach <player/weapon/token> <var> <identifier> <"command">') File "../addons/source-python/plugins/es_emulator/eventscripts/_libs/python/cmdlib.py", line 141, in registerServerCommand cmd_manager.registerServerCommand(*a, **kw) File "../addons/source-python/plugins/es_emulator/eventscripts/_libs/python/cmdlib.py", line 37, in registerServerCommand PreMinidumpCallback: updating dump comment ./srcds_run: line 318: 26682 Segmentation fault $HL_CMD Add "-debug" to the ./srcds_run command line to generate a debug.log to help with solving this problem Tue Jan 22 15:28:43 CET 2019: Server restart in 10 seconds crash_20190122152841_1.dmp[26692]: Uploading dump (out-of-process) /tmp/dumps/crash_20190122152841_1.dmp crash_20190122152841_1.dmp[26692]: Finished uploading minidump (out-of-process): success = yes crash_20190122152841_1.dmp[26692]: response: Discarded=1 crash_20190122152841_1.dmp[26692]: file ''/tmp/dumps/crash_20190122152841_1.dmp'', upload yes: ''Discarded=1''
So I edit the es_tools.txt And remove a few lines..
block load { es_load wcs/tools/ultimates es_load wcs/tools/xcommands es_load wcs/tools/trap } block unload { es_unload wcs/tools/ultimates es_unload wcs/tools/xcommands es_unload wcs/tools/trap }
**Now the server starts, without a crash. Now when I teleport I actually get the message "You teleported" and also the message about cool downs.
Glad to hear it's working for you. Almost all ESP addons that's using 0.78's API most likely will not load due to the massive changes in the structure, so that's why you can't load wcs/tools/abilities/warden
, ../healingwarden
, and ../trap
.
And the log looks like this:**
[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/human_alliance/spawn 3] wcs_set_cooldown: The command 'wcs_set_cooldown' could not be found
I haven't added all wcs_*
commands yet (and some will not be added, as all they did was eg. set a key in wcsgroup
, which should be done instead) but they'll (hopefully) be added at some point. Because of this, not all races nor items will function 100%, however, I'll try and get it as close as possible.
from wcs.
Hm okay so I tested human teleport again. If I aim towards a wall straight infront of me, i get the small 2 step jump. But if I aim higher up i get that big jump. Seems like it should allow me to jump further when i aim straight forward?
Big:
https://gyazo.com/4c3b1128f2b187628d662033ce6534a8
Small:
https://gyazo.com/2ac679d60dbf405d89b106fa018ff796
Not sure about the effects, cant these be used?:
Effects:
This plugin contains the essential est_effects. The problem with CS:GO is, that most of the sprites are missing. If you want to use this version to its fullest:
Download the materials.zip from here: https://www.file-upload.net/download-12895000/materials.zip.html
Extract the materials.zip to your csgo folder
They have flames, lightning, laser beams etc.
from wcs.
Also levitation seems to bug sometimes giving you -gravity.
Edit: Possible a DM bug aswell, I can reproduce it without DM.
from wcs.
Also Human invisibilty not working (using sv_disable_immunity_alpha 1)
Works with the OLD human race tho, but again then teleport dont work. :D
from wcs.
Hm okay so I tested human teleport again. If I aim towards a wall straight infront of me, i get the small 2 step jump. But if I aim higher up i get that big jump. Seems like it should allow me to jump further when i aim straight forward?
It all depends on angles and what not. I made it this way to mimic WCS 0.77's version.
Big:
https://gyazo.com/4c3b1128f2b187628d662033ce6534a8Small:
https://gyazo.com/2ac679d60dbf405d89b106fa018ff796Not sure about the effects, cant these be used?:
Effects:
This plugin contains the essential est_effects. The problem with CS:GO is, that most of the sprites are missing. If you want to use this version to its fullest:
Download the materials.zip from here: https://www.file-upload.net/download-12895000/materials.zip.html
Extract the materials.zip to your csgo folderThey have flames, lightning, laser beams etc.
You're free to install them on your server. I'd rather not require the players to download additional materials if it can be avoided.
Also levitation seems to bug sometimes giving you -gravity.
Edit: Possible a DM bug aswell, I can reproduce it without DM.
Is this with Undead Scourge
's Levitation
skill? If that is the case, it only sets the value that's retrieved from the config.json
file, so make sure it's set correctly there. If it's another race, try to debug it and see if it's something there. Unfortunately, I cannot support races that's not on the contents repository.
Also Human invisibilty not working (using sv_disable_immunity_alpha 1)
Works with the OLD human race tho, but again then teleport dont work. :D
It appears to be a bug in CSGO, so not much I can do on my end, sorry.
I'd also appreciate it if you created a new issue instead of bundling them together here, as it makes it tricky to keep track on them. Thanks in advance.
from wcs.
Related Issues (20)
- WCS not parsing some races HOT 1
- Issue loading wcs HOT 23
- Conversion from index exceptions HOT 3
- [REQUEST] sound effect on levelup HOT 1
- [REQUEST] Old raceinfo/skillinfo system HOT 4
- Problems with mysql HOT 2
- Exception when player leaves the game HOT 1
- Bots keep getting kicked HOT 5
- WCS setmodel not working properly HOT 2
- setfx disguiser missing arms/gloves HOT 1
- Disguise/mole models do not match the models defined for the map HOT 3
- Slow load of database HOT 1
- [REQUEST] exclude bots from wcstop ranking HOT 1
- [QUESTION] Any way to use damage type DMG_FALL for damage commands? (Armor damage reduction) HOT 2
- Ultimates and abilities HOT 2
- Teamlimit errors preventing changerace with Zombie Reloaded V3 running HOT 1
- You do not die on changerace if you recently used kill or changed race HOT 4
- Weird option numbering for skills in old style raceinfo menu HOT 1
- WCS doesnt work on brand new server - CSGO HOT 8
- wcs cant load after using 0.78 race format HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wcs.