[CSS/CSGO] Warcraft: Source

Release your plugins here!
User avatar
Kami
Global Moderator
Posts: 264
Joined: Wed Aug 15, 2012 1:24 am
Location: Germany

Re: [CSS/CSGO] Warcraft: Source

Postby Kami » 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.
para97
Junior Member
Posts: 24
Joined: Thu Mar 07, 2019 1:24 pm

Re: [CSS/CSGO] Warcraft: Source

Postby para97 » Wed May 22, 2019 11:41 am

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.
para97
Junior Member
Posts: 24
Joined: Thu Mar 07, 2019 1:24 pm

Re: [CSS/CSGO] Warcraft: Source

Postby para97 » Thu May 23, 2019 9:13 pm

The issue seems to be related to source.python - after replacing addons/source-python/packages/source-python/players/_base.py and addons/source-python/packages/source-python/weapons/_base.py to the previous commit mapchange works, but any action related to wcs will still crash the server. If you update source.py to the newest version, it won't load any other maps except the default one on startup.

-> some sort sp.hooks exceptions?
-> related to the modified commands.py - just a notice for ThaPwnd
Last edited by para97 on Fri May 24, 2019 4:50 pm, edited 1 time in total.
para97
Junior Member
Posts: 24
Joined: Thu Mar 07, 2019 1:24 pm

Re: [CSS/CSGO] Warcraft: Source

Postby para97 » Fri May 24, 2019 4:50 pm

Full console log :

And this RIGHT after the mapchange with a older version ---- sp.hooks.exceptions :
para97
Junior Member
Posts: 24
Joined: Thu Mar 07, 2019 1:24 pm

Re: [CSS/CSGO] Warcraft: Source

Postby para97 » Sat May 25, 2019 2:54 pm

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


Looks like this is causing the crashes after a mapchange.
Last edited by Ayuto on Sat May 25, 2019 3:13 pm, edited 1 time in total.
Reason: Added missing code tags
User avatar
BackRaw
Senior Member
Posts: 537
Joined: Sun Jul 15, 2012 1:46 am
Location: Germany
Contact:

Re: [CSS/CSGO] Warcraft: Source

Postby BackRaw » Mon May 27, 2019 6:07 pm

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. :)
Budau
Junior Member
Posts: 15
Joined: Thu Apr 25, 2019 11:15 am
Location: Germany
Contact:

Re: [CSS/CSGO] Warcraft: Source

Postby Budau » Tue May 28, 2019 6:52 pm

Hi Pwned,

after map change I get this error

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!


The wcs menu still works but it doenst do anything when i change the race or whatever.
User avatar
Ayuto
Project Leader
Posts: 2195
Joined: Sat Jul 07, 2012 8:17 am
Location: Germany

Re: [CSS/CSGO] Warcraft: Source

Postby Ayuto » Tue May 28, 2019 7:09 pm

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
Budau
Junior Member
Posts: 15
Joined: Thu Apr 25, 2019 11:15 am
Location: Germany
Contact:

Re: [CSS/CSGO] Warcraft: Source

Postby Budau » Tue May 28, 2019 7:44 pm

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


Ah thanks!

Didnt see that, now it works.
Now we just have to wait for the missing wcs commands :)
User avatar
Ayuto
Project Leader
Posts: 2195
Joined: Sat Jul 07, 2012 8:17 am
Location: Germany

Re: [CSS/CSGO] Warcraft: Source

Postby Ayuto » Tue May 28, 2019 8:27 pm

Budau
Junior Member
Posts: 15
Joined: Thu Apr 25, 2019 11:15 am
Location: Germany
Contact:

Re: [CSS/CSGO] Warcraft: Source

Postby Budau » Tue May 28, 2019 8:52 pm

Ayuto wrote:These "missing" commands? :grin:
https://github.com/ThaPwned/WCS/commit/ ... 926c95ad64


Yea but this is only a part of the missing commands :D
And some commands need fixing like mole (doesnt change the model to the enemy team model)
Last edited by Budau on Tue May 28, 2019 9:15 pm, edited 2 times in total.
Hirra
Junior Member
Posts: 5
Joined: Mon Apr 01, 2019 2:06 pm

Re: [CSS/CSGO] Warcraft: Source

Postby Hirra » Tue May 28, 2019 9:04 pm

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.

-Are you planning to create a level bank?
-Will there be Keyinfo addon like in ES:P mod, Wards, VIP-users system?
Budau
Junior Member
Posts: 15
Joined: Thu Apr 25, 2019 11:15 am
Location: Germany
Contact:

Re: [CSS/CSGO] Warcraft: Source

Postby Budau » Wed May 29, 2019 9:55 am

Ayuto wrote:These "missing" commands? :grin:
https://github.com/ThaPwned/WCS/commit/ ... 926c95ad64


I deleted the commands from kamis commands.py that got added.
But when I teleport it only pushes me downwards.
When I want to teleport upwards nothing happens.
I didnt test wcs_explsion yet.
para97
Junior Member
Posts: 24
Joined: Thu Mar 07, 2019 1:24 pm

Re: [CSS/CSGO] Warcraft: Source

Postby para97 » Thu May 30, 2019 12:30 pm

New commands don't seem to work with the new version. (in CS:GO)

Getting these exceptions aswell



Seems to be caused by the new converts.py
User avatar
TPDerp
Junior Member
Posts: 29
Joined: Mon Jul 09, 2012 7:51 pm

Re: [CSS/CSGO] Warcraft: Source

Postby TPDerp » Thu May 30, 2019 8:19 pm

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.

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. :)

Kewl! Let me know if you have any questions and/or need help with something.
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.

Feel free to ask whatever questions you may have!

Hirra wrote:-Are you planning to create a level bank?

Right now, there's no plan to adding level bank. I'm not ruling it out in the future but right now, it's not a priority.


Hirra wrote:-Will there be Keyinfo addon like in ES:P mod, Wards, VIP-users system?

As with level bank, there's no plan to add any of these, but I won't rule out the possibility. With "wards", do you mean, having an easy way of creating ward skills? Just to have it clarified. What exactly do you mean with "VIP-users system"? If it's to allow VIP-users access to certain races, there's already the option of adding them to privileges.json and setting the "vip_raceaccess" to 1
User avatar
TPDerp
Junior Member
Posts: 29
Joined: Mon Jul 09, 2012 7:51 pm

Re: [CSS/CSGO] Warcraft: Source

Postby TPDerp » Fri Jun 14, 2019 12:08 pm

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.

This should be fixed in the newest version.
Hirra
Junior Member
Posts: 5
Joined: Mon Apr 01, 2019 2:06 pm

Re: [CSS/CSGO] Warcraft: Source

Postby Hirra » Thu Jun 20, 2019 12:01 am

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

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 = ""


Same situation in categories of items if:

Code: Select all

[Damage Category]
   desc            = "..."
   maxitems        = 1
User avatar
TPDerp
Junior Member
Posts: 29
Joined: Mon Jul 09, 2012 7:51 pm

Re: [CSS/CSGO] Warcraft: Source

Postby TPDerp » Thu Jun 20, 2019 8:35 pm

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

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 = ""


Same situation in categories of items if:

Code: Select all

[Damage Category]
   desc            = "..."
   maxitems        = 1

Thanks for reporting! Those should be fixed in the newest version.
Hirra
Junior Member
Posts: 5
Joined: Mon Apr 01, 2019 2:06 pm

Re: [CSS/CSGO] Warcraft: Source

Postby Hirra » Thu Jun 20, 2019 10:26 pm

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?

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"
User avatar
TPDerp
Junior Member
Posts: 29
Joined: Mon Jul 09, 2012 7:51 pm

Re: [CSS/CSGO] Warcraft: Source

Postby TPDerp » Mon Jun 24, 2019 4:33 pm

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?

Nothing wrong with it. I messed up with how items should be executed but that'd be fixed now. Thanks for reporting!

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"

Some player_spawn skills/items that modify a player's health (etc.) might not work correctly on CS:GO. Try to change it to post_player_spawn and see if that solves the problem.

Return to “Plugin Releases”

Who is online

Users browsing this forum: No registered users and 0 guests