Re: [CSS/CSGO] Warcraft: Source
Posted: Tue May 14, 2019 5:03 pm
So, after talking to Pwned, I decided to delete my post, so he can take his time to make sure the commands work correctly instead of adding all of them untested.
Code: Select all
[SP] Caught an Exception:
Traceback (most recent call last):
File "<string>", line 1, in <lambda>
File "../addons/source-python/plugins/wcs/core/players/entity.py", line 1269, in on_client_disconnect
del Player._cache_indexes[wcsplayer.index]
KeyError: 1
Code: Select all
[SP] Caught an Exception:
Traceback (most recent call last):
File "<string>", line 1, in <lambda>
File "../addons/source-python/plugins/wcs/core/players/entity.py", line 1269, in on_client_disconnect
del Player._cache_indexes[wcsplayer.index]
KeyError: 1
[SP] Caught an Exception:
Traceback (most recent call last):
File "<string>", line 1, in <lambda>
File "../addons/source-python/plugins/wcs/core/players/entity.py", line 1269, in on_client_disconnect
del Player._cache_indexes[wcsplayer.index]
KeyError: 1
TPDerp wrote: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\packages\source-python\events\listener.py", line 92, in fire_game_event
callback(game_event)
File "..\addons\source-python\plugins\wcs\wcs.py", line 734, in player_jump
velocity = Vector(*player.get_property_vector('m_vecVelocity'))
File "..\addons\source-python\packages\source-python\entities\_base.py", line 489, in get_property_vector
return self._get_property(name, 'Vector')
File "..\addons\source-python\packages\source-python\entities\_base.py", line 494, in _get_property
for server_class in self.server_classes:
File "..\addons\source-python\packages\source-python\entities\_base.py", line 254, in server_classes
yield from server_classes.get_entity_server_classes(self)
File "..\addons\source-python\packages\source-python\entities\classes.py", line 137, in get_entity_server_classes
if entity.classname in self._entity_server_classes:
RuntimeError: Access violation - no RTTI data!
Code: Select all
[SP] Caught an Exception:
Traceback (most recent call last):
File "..\addons\source-python\packages\source-python\events\listener.py", line 92, in fire_game_event
callback(game_event)
File "..\addons\source-python\plugins\wcs\wcs.py", line 580, in player_hurt
if not wcsvictim.player.team_index == wcsattacker.player.team_index:
RuntimeError: Access violation - no RTTI data!
Ayuto wrote:That sounds like an invalid (cached?) player instance gets accessed. Did you update your WCS installation in the past 5 days? Because Tha Pwned commited a fix for that:
https://github.com/ThaPwned/WCS/commit/ ... 48da759ba4
Ayuto wrote:These "missing" commands?
https://github.com/ThaPwned/WCS/commit/ ... 926c95ad64
Ayuto wrote:These "missing" commands?
https://github.com/ThaPwned/WCS/commit/ ... 926c95ad64
para97 wrote:So somehow the server is crashing when you change the map. Steps to test this we're to install a fresh linux csgo server, install source.py and the emulator and change the map - works.
After adding wcs to the server, any mapchange will crash the server (regular mapchanges aswell as rcon or admin mapchanges)
This exception comes up directly after the mapchange/the player gets disconnected.Code: Select all
[SP] Caught an Exception:
Traceback (most recent call last):
File "<string>", line 1, in <lambda>
File "../addons/source-python/plugins/wcs/core/players/entity.py", line 1269, in on_client_disconnect
del Player._cache_indexes[wcsplayer.index]
KeyError: 1
/edit I've tried casual and competetive gamemode.
BackRaw wrote:TPDerp wrote: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*
All right, cool. I know ESS and Python, so I could try it. :)
Hirra wrote:Hello, Tha Pwned
(Google Translate ↓)
A way to combining a several ways of creating races is a great idea! Very helpful for people who are not strong in coding, for people like me.
I really liked this mod, and I would like to ask a couple questions about its development and about content for ES:P WCS races.
Hirra wrote:-Are you planning to create a level bank?
Hirra wrote:-Will there be Keyinfo addon like in ES:P mod, Wards, VIP-users system?
TPDerp wrote:Just a small update: I still have some stuff going on, so my time is still limited. Even though I'm not online here on the forums, I do read the posts in the thread, as well as try to fix the bugs you guys have been reporting here, as well as on Steam, (thank you!) whenever I have some time available. So thanks for being so patience!para97 wrote:So somehow the server is crashing when you change the map. Steps to test this we're to install a fresh linux csgo server, install source.py and the emulator and change the map - works.
After adding wcs to the server, any mapchange will crash the server (regular mapchanges aswell as rcon or admin mapchanges)
This exception comes up directly after the mapchange/the player gets disconnected.Code: Select all
[SP] Caught an Exception:
Traceback (most recent call last):
File "<string>", line 1, in <lambda>
File "../addons/source-python/plugins/wcs/core/players/entity.py", line 1269, in on_client_disconnect
del Player._cache_indexes[wcsplayer.index]
KeyError: 1
/edit I've tried casual and competetive gamemode.
I'm aware of this, and am trying to find out, why it's happening and finding a solution to it.
Code: Select all
[[anti]]
name = "Anti Serpent Ward Potion"
desc = "You become immune to serpent wards until you die"
cost = 1000
level = 0
dab = 1 #0=death, 1=alive, 2=both
duration = 1 #0=this round, 1=untill death
max = 1
cfg = "player_buy"
cmdbuy = ""
cmdactivate = ""
Code: Select all
[Damage Category]
desc = "..."
maxitems = 1
Hirra wrote:Hm, gravity is resetted to default after the climbing on ladders
Shopmenu items locks after buying. Even after death, I can not buy this item again if there is a maximum. ES:S/ES:PCode: Select all
[[anti]]
name = "Anti Serpent Ward Potion"
desc = "You become immune to serpent wards until you die"
cost = 1000
level = 0
dab = 1 #0=death, 1=alive, 2=both
duration = 1 #0=this round, 1=untill death
max = 1
cfg = "player_buy"
cmdbuy = ""
cmdactivate = ""
Same situation in categories of items if:Code: Select all
[Damage Category]
desc = "..."
maxitems = 1
Code: Select all
[[enbullet]]
name = "T"
desc = ""
cost = 3500
level = 0
dab = 1 #0=death, 1=alive, 2=both
duration = 1 #0=this round, 1=untill death
max = 1
cfg = "player_attacker"
cmdbuy = ""
cmdactivate = "es wcs_dealdamage event_var(userid) event_var(attacker) 1000"
Code: Select all
[[enbullet]]
name = "T"
desc = ""
cost = 3500
level = 0
dab = 1 #0=death, 1=alive, 2=both
duration = 1 #0=this round, 1=untill death
max = 1
cfg = "player_spawn"
cmdbuy = "es wcs_setfx health server_var(wcs_userid) + 75 0"
cmdactivate = "es wcs_setfx health event_var(userid) + 75 0"
Hirra wrote:Installed a new update, it works well.
New problem:
Item doesn’t work in "cmdactivate"Code: Select all
[[enbullet]]
name = "T"
desc = ""
cost = 3500
level = 0
dab = 1 #0=death, 1=alive, 2=both
duration = 1 #0=this round, 1=untill death
max = 1
cfg = "player_attacker"
cmdbuy = ""
cmdactivate = "es wcs_dealdamage event_var(userid) event_var(attacker) 1000"
Maybe I messed up something?
Hirra wrote:Same with player_spawn event. In the next round I do not get these 75 hp.Code: Select all
[[enbullet]]
name = "T"
desc = ""
cost = 3500
level = 0
dab = 1 #0=death, 1=alive, 2=both
duration = 1 #0=this round, 1=untill death
max = 1
cfg = "player_spawn"
cmdbuy = "es wcs_setfx health server_var(wcs_userid) + 75 0"
cmdactivate = "es wcs_setfx health event_var(userid) + 75 0"