September 24, 2018, 04:40:18 AM

Author Topic: [Release] Warcraft Source 0.78 for Counterstrike Source & Global Offensive  (Read 17120 times)

Offline Kami

  • Developer
  • Level 7 Expert
  • *****
  • Posts: 886
  • Country: de
  • Pokemon Master!
Re: [Release] Warcraft Source 0.78 for Counterstrike Source & Global Offensive
« Reply #255 on: September 10, 2018, 07:19:16 AM »
The error has nothing to do with the code. Somewhere you are using wcs_getweapon without an "es" in front of it.

And the second Error comes from playerset clip.

Offline Hojjke

  • Level 4 Intermediate
  • ****
  • Posts: 91
  • Country: ru
  • I <3 WCS :)
Re: [Release] Warcraft Source 0.78 for Counterstrike Source & Global Offensive
« Reply #256 on: September 10, 2018, 05:10:23 PM »
The error has nothing to do with the code. Somewhere you are using wcs_getweapon without an "es" in front of it.

And the second Error comes from playerset clip.

love ya Kami <3


Offline Hojjke

  • Level 4 Intermediate
  • ****
  • Posts: 91
  • Country: ru
  • I <3 WCS :)
Re: [Release] Warcraft Source 0.78 for Counterstrike Source & Global Offensive
« Reply #257 on: September 11, 2018, 09:28:59 PM »
The error has nothing to do with the code. Somewhere you are using wcs_getweapon without an "es" in front of it.

And the second Error comes from playerset clip.

Hey Kami, getting this error when trying to set my SP to russian language and loading wcs:

Code: [Select]
Sep 11 19:26:26:  [SP] Загрузка плагина 'wcs'...
Sep 11 19:26:26:
Sep 11 19:26:26:  [SP] Перехвачено исключение:
Sep 11 19:26:26:  Traceback (most recent call last):
Sep 11 19:26:26:    File "../addons/source-python/packages/source-python/plugins/command.py", line 162, in load_plugin
Sep 11 19:26:26:      plugin = self.manager.load(plugin_name)
Sep 11 19:26:26:    File "../addons/source-python/packages/source-python/plugins/manager.py", line 194, in load
Sep 11 19:26:26:      plugin._load()
Sep 11 19:26:26:    File "../addons/source-python/packages/source-python/plugins/instance.py", line 74, in _load
Sep 11 19:26:26:      self.module = import_module(self.import_name)
Sep 11 19:26:26:    File "../addons/source-python/plugins/wcs/wcs.py", line 61, in <module>
Sep 11 19:26:26:      from wcs import admin
Sep 11 19:26:26:    File "../addons/source-python/plugins/wcs/admin.py", line 19, in <module>
Sep 11 19:26:26:      from wcs import changerace_admin
Sep 11 19:26:26:    File "../addons/source-python/plugins/wcs/changerace_admin.py", line 22, in <module>
Sep 11 19:26:26:      from wcs import changerace
Sep 11 19:26:26:    File "../addons/source-python/plugins/wcs/changerace.py", line 8, in <module>
Sep 11 19:26:26:      from wcs import config
Sep 11 19:26:26:    File "../addons/source-python/plugins/wcs/config.py", line 46, in <module>
Sep 11 19:26:26:      core_config.write()
Sep 11 19:26:26:    File "../addons/source-python/packages/source-python/config/manager.py", line 281, in write
Sep 11 19:26:26:      open_file, section, _old_config, spaces)
Sep 11 19:26:26:    File "../addons/source-python/packages/source-python/config/manager.py", line 487, in _write_cvar_section
Sep 11 19:26:26:      default.format(section.default))
Sep 11 19:26:26:
Sep 11 19:26:26:  UnicodeEncodeError: 'ascii' codec can't encode characters in position 3-13: ordinal not in range(128)
Sep 11 19:26:26:
Sep 11 19:26:26:
Sep 11 19:26:26:  [SP] Плагин 'wcs' не может быть загружен.

Offline Kami

  • Developer
  • Level 7 Expert
  • *****
  • Posts: 886
  • Country: de
  • Pokemon Master!
Re: [Release] Warcraft Source 0.78 for Counterstrike Source & Global Offensive
« Reply #258 on: September 14, 2018, 07:09:35 AM »
The fix for this will be ready by tonight :)

Offline Hojjke

  • Level 4 Intermediate
  • ****
  • Posts: 91
  • Country: ru
  • I <3 WCS :)
Re: [Release] Warcraft Source 0.78 for Counterstrike Source & Global Offensive
« Reply #259 on: September 14, 2018, 08:00:49 AM »
The fix for this will be ready by tonight :)
huuuuuuge Kami, thank you

Offline Kami

  • Developer
  • Level 7 Expert
  • *****
  • Posts: 886
  • Country: de
  • Pokemon Master!
Re: [Release] Warcraft Source 0.78 for Counterstrike Source & Global Offensive
« Reply #260 on: September 14, 2018, 08:53:46 PM »
The fix is beeing integrated into Source Python which can take a little while, but it should be included in the next version :)

Offline Hojjke

  • Level 4 Intermediate
  • ****
  • Posts: 91
  • Country: ru
  • I <3 WCS :)
Re: [Release] Warcraft Source 0.78 for Counterstrike Source & Global Offensive
« Reply #261 on: September 14, 2018, 10:56:00 PM »
The fix is beeing integrated into Source Python which can take a little while, but it should be included in the next version :)

great job on this

any news about popups?

btw: checked the changes for manager.py, worked for me, thank you again :p
« Last Edit: September 14, 2018, 11:14:46 PM by Hojjke »

Offline Hojjke

  • Level 4 Intermediate
  • ****
  • Posts: 91
  • Country: ru
  • I <3 WCS :)
Re: [Release] Warcraft Source 0.78 for Counterstrike Source & Global Offensive
« Reply #262 on: September 16, 2018, 11:47:54 AM »
hey Kami, are there any possibilities of getting player's level, xp, needed xp and current race?
I'm trying to make a panorama UI plugin showing this on the player's screen

Code: [Select]
@ServerCommand('wcs_getinfo')
def getinfo(command):
userid = int(command[1])
if exists(userid):
level = userid.all_races[userid.currace]['level']
needed = config.cfgdata['interval']*level if level else config.cfgdata['interval']
xp = userid.all_races[userid.currace]['xp']
race = userid.currace
wcs_giveinfo
queue_command_string('wcs_ultileft %s %s %s %s %s' % (userid, needed, xp, level, race))

Tryed smth like that, didn't work out :(
Could you help me, please?

Offline Kami

  • Developer
  • Level 7 Expert
  • *****
  • Posts: 886
  • Country: de
  • Pokemon Master!
Re: [Release] Warcraft Source 0.78 for Counterstrike Source & Global Offensive
« Reply #263 on: September 16, 2018, 12:34:13 PM »
That sounds a lot like the keyinfo menu I made.

Did you try to set "wcs_activate_keymenu" in the file csgo/cfg/source-python/wcs/wcs_core.cfg to 1?

Offline Hojjke

  • Level 4 Intermediate
  • ****
  • Posts: 91
  • Country: ru
  • I <3 WCS :)
Re: [Release] Warcraft Source 0.78 for Counterstrike Source & Global Offensive
« Reply #264 on: September 16, 2018, 12:41:45 PM »
That sounds a lot like the keyinfo menu I made.

Did you try to set "wcs_activate_keymenu" in the file csgo/cfg/source-python/wcs/wcs_core.cfg to 1?

if fck** works dude! woweee

and where can I find the keymenu for changes? like words, colors etc

nvm, found it ^^
« Last Edit: September 16, 2018, 12:44:31 PM by Hojjke »

Offline Hojjke

  • Level 4 Intermediate
  • ****
  • Posts: 91
  • Country: ru
  • I <3 WCS :)
Re: [Release] Warcraft Source 0.78 for Counterstrike Source & Global Offensive
« Reply #265 on: September 17, 2018, 08:22:05 AM »
Greets, Kami

It seems like es_exists doesn't work at all
Code: [Select]
es wcs_nearcoord wcs_targetid server_var(wcs_targetteam) server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1) server_var(wcs_radius) "es_exists exath userid server_var(wcs_targetid);if (server_var(exath) = 1) then  es_xdoblock wcs/tools/holliday/athena/shieldexe"
sends "Uknown command 'exath'" into the console, are there any workarounds for that? Maybe another command..
« Last Edit: September 17, 2018, 10:14:49 AM by Hojjke »

Offline Kami

  • Developer
  • Level 7 Expert
  • *****
  • Posts: 886
  • Country: de
  • Pokemon Master!
Re: [Release] Warcraft Source 0.78 for Counterstrike Source & Global Offensive
« Reply #266 on: September 17, 2018, 12:47:05 PM »
Just remove that whole es_exist part. wcs_nearcoord only targets Players that are in range and is also a check If they exist.

All you need is the es_doblock Part.

I'll have a Look at what is going on later but for now that should fix it!


Offline Hojjke

  • Level 4 Intermediate
  • ****
  • Posts: 91
  • Country: ru
  • I <3 WCS :)
Re: [Release] Warcraft Source 0.78 for Counterstrike Source & Global Offensive
« Reply #267 on: September 17, 2018, 05:06:08 PM »
Just remove that whole es_exist part. wcs_nearcoord only targets Players that are in range and is also a check If they exist.

All you need is the es_doblock Part.

I'll have a Look at what is going on later but for now that should fix it!

Oke, thank you man, as usual :)

Found a bug or smth, sometimes it spams really hard with smth like that when keymenu is enabled:

Code: [Select]
Sep 17 15:04:25:  message repeated 2 times: []
Sep 17 15:04:25:  [SP] Перехвачено исключение:
Sep 17 15:04:25:  Traceback (most recent call last):
Sep 17 15:04:25:    File "../addons/source-python/plugins/wcs/wcs.py", line 1480, in on_tick
Sep 17 15:04:25:      level = wcsplayers[userid].all_races[race]['level']
Sep 17 15:04:25:
Sep 17 15:04:25:  KeyError: 'Undead Scourge'
Sep 17 15:04:25:
Sep 17 15:04:25:  message repeated 2 times: []
Sep 17 15:04:25:  [SP] Перехвачено исключение:
Sep 17 15:04:25:  Traceback (most recent call last):
Sep 17 15:04:25:    File "../addons/source-python/plugins/wcs/wcs.py", line 1480, in on_tick
Sep 17 15:04:25:      level = wcsplayers[userid].all_races[race]['level']
Sep 17 15:04:25:
Sep 17 15:04:25:  KeyError: 'level'

it can happen with any race

Offline Kami

  • Developer
  • Level 7 Expert
  • *****
  • Posts: 886
  • Country: de
  • Pokemon Master!
Re: [Release] Warcraft Source 0.78 for Counterstrike Source & Global Offensive
« Reply #268 on: September 17, 2018, 05:57:29 PM »
newest version should fix those errors :)

For future problems, please make a new post in the "Submit your bugs!" post :)
« Last Edit: September 17, 2018, 06:00:00 PM by Kami »

Offline Hojjke

  • Level 4 Intermediate
  • ****
  • Posts: 91
  • Country: ru
  • I <3 WCS :)
Re: [Release] Warcraft Source 0.78 for Counterstrike Source & Global Offensive
« Reply #269 on: September 17, 2018, 06:57:02 PM »
newest version should fix those errors :)

For future problems, please make a new post in the "Submit your bugs!" post :)

thank you and ok, sorry :p