August 15, 2018, 06:38:57 PM

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

Offline Kami

  • Developer
  • Level 7 Expert
  • *****
  • Posts: 862
  • Country: de
  • Pokemon Master!
Warcraft: Source for Counterstrike Source & Global Offensive

This is the newest version of my attempt to make Tha Pwned's version of Warcraft Source work for Counterstrike Source & Global Offensive, by using SourcePython


Description:

This is the WCS version Tha Pwned made which has been edited by me to work with CS:GO and with Ayuto's great Eventscripts Emulator. It aims to make all your old content work just like it does with Counterstrike Source.
There are some races included in this release, but all your races should work by simply adding them like you would have with the old WCS version.
If there should be any problems, any missing commands, just let me know and I'll see if that can be fixed.


Installation:

Code: [Select]
sp plugin load es_emulator
sp plugin load wcs
es_load wcs/tools
es_load wcs/races






Content:

  • wcs/admins - Contains the admins.ini file which allows you to give certain steamids wcs admin rights
  • wcs/data - Contains the databases
  • wcs/items - Contains the items.ini which contains all the shopitems
  • wcs/races - Contains the races.ini where all the races are stored
  • wcs/resources - Contains the custom WCS events
  • wcs/strings - Contains the strings.ini where the strings for wcs_xtell and wcs_xcentertell are stored
  • wcs/svar - Contains the svar.txt where you can add variables you want to be set
  • es_emulator/eventscripts/races - Contains the blocks for the races that come with this release
  • es_emulator/eventscripts/wcs - Contains files from the original WCS that were needed or covenient for this version


Custom commands:

Source-Python:
Code: [Select]
wcs_getindex <userid> <variable>
wcs_fade <userid> <red> <green> <blue> <alpha> <time>
wcs_randplayer <variable> <identifier>
wcs_getviewentity <userid> <variable>
wcs_getviewplayer <userid> <variable>
wcs_setgravity <userid> <amount>
wcs_drop <userid> <weapon/slot>
wcs_strip <userid>
wcs_spawn <userid> <force 0/1>
wcs_color <userid> <red> <green> <blue> <alpha>
wcs_getdistance <variable> <x1> <y1> <z1> <x2> <y2> <z2>
wcs_decimal <variable> <amount>
wcs_explosion <userid> <magnitude> <radius> <[damage 0/1]>
wcs_regeneration <userid> <amount> <time> <maxhp> <maxheal> <radius>
wcs_drug <userid> <time>
wcs_getweapon <userid> <var> <slot>
wcs_set_cooldown <userid> <amount>
wcs_getviewcoords <userid> <xvar> <yvar> <zvar>
wcs_pushto <userid> <x> <y> <z>
wcs_pushed <userid> <xforce> <yforce> <zforce>
removeweapon <userid> <weapon/slot>
wcs_changeteam <userid< <teamindex>
wcs_centermsg <message>
wcs_centertell <userid> <message>
wcs damage/spawn/strip/drop/push/pushto/gravity/removeweapon/getviewplayer/getviewentity/give/fire/extinguish/drug/drunk/poison/changeteam
wcs_setfx blind/invisp/invis/longjump/speed/jetpack/gravity/health/freeze/cash/money/burn
wcs_givelevel <userid> <amount>
wcs_givexp <userid> <amount>
wcs_get_skill_level <userid> <var> <skillnumber>
wcs_getinfo <userid> <var> <info> <race/player>
wcs_xtell <userid> <string-text>
wcs_xcentertell <userid> <string-text>
wcs_restrict <userid> <weapon or all>
wcs_unrestrict <userid> <weapon or all>

Sourcemod:

Code: [Select]
wcs_give <userid> <item>
wcs_dealdamage <userid> <attacker> <damage>
wcs_getwallbetween <var <userid1> <userid2>
wcs_getgravity <userid> <var>
wcs_getgun <userid> <var>
wcs_getdistance <var> <x> <y> <z> <x2> <y2> <z2>
wcs_teleport <userid> <x> <y> <z>
wcs_slap <userid> <damage>
wcs_thirdperson <userid> <0/1>
wcs_getdeaths <userid> <var>
wcs_setdeaths <userid> <amount>
wcs_getscore <userid> <var>
wcs_setscore <userid> <amount>
wcs_shake <userid> <amplitude> <frequency> <duration>
wcs_getsmadmin <userid> <var>
wcs_entitygethealth <entity> <var>
wcs_entitysethealth <entity> <amount>
wcs_entitytakehealth <entity> <amount>
wcs_create_prop <userid> <prop> <prophealth>
wcs_evasion <userid> <0/1> <chance0-100>
wcs_steal <userid> <attacker> <amount>
wcs_leech <userid> <min> <max>
wcs_effect_prop <x> <y> <z> <prop> <duration>
wcs_geteyecoords <userid> <x> <y> <z>

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:


If you want to do the extracting of the files yourself:

  • Download GCFScape from Nem's Tools at http://nemesis.thewavelength.net/index.php?p=26
  • Install a Counter Strike Source Dedicated Server
  • Open GCFScape and with it open the file hl2_misc_dir.vpk in the hl2 folder of the Dedicated Server
  • Extract all the files you want and add them to your csgo folder at the same place they were on the CS:S Dedicated Server

Right now the automatic downloader downloads:

Code: [Select]
materials/sprites
materials/particles
materials/effects

The automatic downloader should now add all the files to your download queue.


Admin Configuration:

To add admins go to wcs/admins/admins.ini.

First of all you need to get your steamid.

For Counterstrike Global Offensive it looks something like this:

Code: [Select]
STEAM_1:1:xxxxx
For Counterstrike Source it looks like this:

Code: [Select]
[U:1::xxxxxx]
Now you add that steamid to the admins.ini with the desired flags.

Counterstrike Global Offensive example:

Code: [Select]
[STEAM_1:1:8770268]
wcsadmin = 1
wcsadmin_settings = 1
wcsadmin_givexp = 1
wcsadmin_givelevels = 1
wcsadmin_givecash = 1
wcsadmin_resetrace = 1
wcsadmin_resetplayer = 1
wcsadmin_bank = 1

Counterstrike Source example:

Code: [Select]
["[U:1:17540537]"]
wcsadmin = 1
wcsadmin_settings = 1
wcsadmin_givexp = 1
wcsadmin_givelevels = 1
wcsadmin_givecash = 1
wcsadmin_resetrace = 1
wcsadmin_resetplayer = 1
wcsadmin_bank = 1

Its important to notice the " " around your steamid in CS:S. If you leave out the "" your steamid will be handled as an ConfigObj key, not a string.




A big Thank you! goes to Ayuto for making the Eventscripts Emulator. Without this my WCS version would not be as close to the original as it is right now!




« Last Edit: January 28, 2018, 11:34:13 PM by Manifest »

Offline Ayuto

  • Level 1 Trained Beginner
  • *
  • Posts: 39
  • Country: de
    • Source.Python
Re: [Release] Warcraft Source 0.78 for Counterstrike Global Offenisve
« Reply #1 on: December 30, 2017, 05:04:55 PM »
It's nice to see this emulator being used! FYI, I just added csgo.ini and fixed the queryreg*cmd error messages. They were not using the correct error level.

Edit: Since es_mathparse is now also implemented, all of the recommended changes are not required anymore.
« Last Edit: January 02, 2018, 10:37:00 PM by Ayuto »

Offline Muerte

  • Administrator
  • Level 7 Expert
  • *****
  • Posts: 1855
  • Country: be
    • Fortitude
Re: [Release] Warcraft Source 0.78 for Counterstrike Global Offenisve
« Reply #2 on: December 30, 2017, 05:22:33 PM »
Nice! Going to need to get myself a dedicated server again :)

Edit: If it works well, I'm going to have to re-arrange the forums again hehe.
« Last Edit: December 30, 2017, 05:51:11 PM by Muerte »
Anyways why you all code so late? Or early? Don't you guys sleep at all?
Sleep? What's that? Just put a wire up your arse and charge while you code during the night. Doesn't all do that, or is it just me??

Offline Kami

  • Developer
  • Level 7 Expert
  • *****
  • Posts: 862
  • Country: de
  • Pokemon Master!
Re: [Release] Warcraft Source 0.78 for Counterstrike Global Offenisve
« Reply #3 on: December 30, 2017, 10:07:45 PM »
Update:

  • Fixed shopmenu, as it was completely broken
  • Added 'showitems' command which will show you all your items in a menu

As this update takes place in multiple files I recommend to download the whole plugin again and unpack it and overwrite old files. This way you can be sure you got all the changes.
« Last Edit: December 30, 2017, 10:09:18 PM by Kami »

Offline Legacy32

  • Level 0 Beginner
  • Posts: 2
Re: [Release] Warcraft Source 0.78 for Counterstrike Global Offenisve
« Reply #4 on: January 01, 2018, 11:43:20 AM »
Dumb Question, Couldn't find it in the help or anything, but what is the ultimate and ability command lmao

Offline Kami

  • Developer
  • Level 7 Expert
  • *****
  • Posts: 862
  • Country: de
  • Pokemon Master!
Re: [Release] Warcraft Source 0.78 for Counterstrike Global Offenisve
« Reply #5 on: January 01, 2018, 07:54:57 PM »
Update:

  • Fixed broken skills: Phoenix, Suicide Bomb, Serpent Ward, Evasion, Burn and some other things
  • Removed menu extension

Offline phixious

  • Level 1 Trained Beginner
  • *
  • Posts: 26
  • Country: us
  • <3 WCS :)
Re: [Release] Warcraft Source 0.78 for Counterstrike Global Offenisve
« Reply #6 on: January 02, 2018, 04:13:33 PM »
it looks like I am getting 2 errors. I am assuming one is caused by the other:

This is happening on a freshly installed server on Linux (NFO Managed Linux - CentOS 5 i believe)

Quote
[SP] Loading plugin 'es_emulator'...

[SP] Caught an Exception:
Traceback (most recent call last):
File "../addons/source-python/packages/source-python/plugins/command.py", line 162, in load_plugin
plugin = self.manager.load(plugin_name)
File "../addons/source-python/packages/source-python/plugins/manager.py", line 193, in load
plugin._load()
File "../addons/source-python/packages/source-python/plugins/instance.py", line 76, in _load
self.module.load()
File "../addons/source-python/plugins/es_emulator/es_emulator.py", line 32, in load
raise ValueError('EventScripts is already loaded.')

ValueError: EventScripts is already loaded.


[SP] Plugin 'es_emulator' was unable to be loaded.
[SP] Loading plugin 'wcs'...

[SP] Caught an Exception:
Traceback (most recent call last):
File "../addons/source-python/packages/source-python/plugins/command.py", line 162, in load_plugin
plugin = self.manager.load(plugin_name)
File "../addons/source-python/packages/source-python/plugins/manager.py", line 193, in load
plugin._load()
File "../addons/source-python/packages/source-python/plugins/instance.py", line 74, in _load
self.module = import_module(self.import_name)
File "../addons/source-python/plugins/wcs/wcs.py", line 35, in <module>
import es
File "../addons/source-python/plugins/es_emulator/eventscripts/es.py", line 12, in <module>
from es_C import *
File "../addons/source-python/plugins/es_emulator/eventscripts/es_C.py", line 75, in <module>
from es_emulator.logic import current_event_vars
File "../addons/source-python/plugins/es_emulator/logic.py", line 57, in <module>
from .helpers import _is_dead
File "../addons/source-python/plugins/es_emulator/helpers.py", line 115, in <module>
tier1 = memory.find_binary('bin/libtier0')

OSError: Unable to find ../bin/bin/libtier0_srv.so

Offline Ayuto

  • Level 1 Trained Beginner
  • *
  • Posts: 39
  • Country: de
    • Source.Python
Re: [Release] Warcraft Source 0.78 for Counterstrike Global Offenisve
« Reply #7 on: January 02, 2018, 05:36:27 PM »
The error messages are not related to each other.

The first one can be caused by 2 reasons:
  • The original EventScripts is loaded.
  • You unloaded the emulator and then loaded it again (unloading is not supported yet).
Since ES doesn't work on CS:GO, the exception is probably caused by #2.

The other error was a bug in the emulator. It's now fixed:
https://github.com/Ayuto/EventScripts-Emulator/commit/e3cbc89033c3038359b03a85c9fb4d1c612a949d

Offline phixious

  • Level 1 Trained Beginner
  • *
  • Posts: 26
  • Country: us
  • <3 WCS :)
Re: [Release] Warcraft Source 0.78 for Counterstrike Global Offenisve
« Reply #8 on: January 02, 2018, 05:56:07 PM »
alright. i'll grab that updated file. I haven't done any additional loading or unloading, only load is happening through autoexec.cfg

Quote from: Autoexec.cfg
sp plugin load es_emulator
sp plugin load wcs
es_load wcs/tools
es_load wcs/addons/effect
es_load races

I'll let you know if I continue to face those issues after i update the file you mentioned.

Offline Jareth

  • Wcs-Lagerhaus.net / Deutscher forum Helfer
  • Level 7 Expert
  • *****
  • Posts: 701
  • Country: de
  • Wcs-Lagerhaus/Ich helfe Gernen allen Deutschen =)
    • Server#1 Wcs Home
Re: [Release] Warcraft Source 0.78 for Counterstrike Global Offenisve
« Reply #9 on: January 02, 2018, 08:34:42 PM »
Thanks i love this mod ;)

just created some effects quickly to the test xD

20180102201610_1 by Wcs-Lagerhaus, auf Flickr

20180102201759_1 by Wcs-Lagerhaus, auf Flickr

20180102201723_1 by Wcs-Lagerhaus, auf Flickr
« Last Edit: January 02, 2018, 08:36:14 PM by Jareth »


;)

Offline Jareth

  • Wcs-Lagerhaus.net / Deutscher forum Helfer
  • Level 7 Expert
  • *****
  • Posts: 701
  • Country: de
  • Wcs-Lagerhaus/Ich helfe Gernen allen Deutschen =)
    • Server#1 Wcs Home
Re: [Release] Warcraft Source 0.78 for Counterstrike Global Offenisve
« Reply #10 on: January 02, 2018, 11:12:15 PM »
Is this a Error?   

Running on Windows Dedicated Server

[Spoiler]
Code: [Select]
[SP] Caught an Exception:
Traceback (most recent call last):
  File "..\addons\source-python\packages\source-python\plugins\command.py", line 162, in load_plugin
    plugin = self.manager.load(plugin_name)
  File "..\addons\source-python\packages\source-python\plugins\manager.py", line 193, in load
    plugin._load()
  File "..\addons\source-python\packages\source-python\plugins\instance.py", line 76, in _load
    self.module.load()
  File "..\addons\source-python\plugins\es_emulator\es_emulator.py", line 44, in load
    from . import cmds
  File "..\addons\source-python\plugins\es_emulator\cmds.py", line 20, in <module>
    from .logic import cfg_scripts
  File "..\addons\source-python\plugins\es_emulator\logic.py", line 57, in <module>
    from .helpers import _is_dead
  File "..\addons\source-python\plugins\es_emulator\helpers.py", line 110
    if PLATFORM == 'windows':
     ^

SyntaxError: invalid syntax


[SP] Plugin 'es_emulator' was unable to be loaded.
[SP] Loading plugin 'wcs'...

[SP] Caught an Exception:
Traceback (most recent call last):
  File "..\addons\source-python\packages\source-python\plugins\command.py", line 162, in load_plugin
    plugin = self.manager.load(plugin_name)
  File "..\addons\source-python\packages\source-python\plugins\manager.py", line 193, in load
    plugin._load()
  File "..\addons\source-python\packages\source-python\plugins\instance.py", line 74, in _load
    self.module = import_module(self.import_name)
  File "..\addons\source-python\plugins\wcs\wcs.py", line 35, in <module>
    import es
  File "..\addons\source-python\plugins\es_emulator\eventscripts\es.py", line 12, in <module>
    from es_C import *
  File "..\addons\source-python\plugins\es_emulator\eventscripts\es_C.py", line 77, in <module>
    from es_emulator.logic import current_event_vars
  File "..\addons\source-python\plugins\es_emulator\logic.py", line 57, in <module>
    from .helpers import _is_dead
  File "..\addons\source-python\plugins\es_emulator\helpers.py", line 110
    if PLATFORM == 'windows':
     ^

SyntaxError: invalid syntax


[SP] Plugin 'wcs' was unable to be loaded.


;)

Offline Ayuto

  • Level 1 Trained Beginner
  • *
  • Posts: 39
  • Country: de
    • Source.Python
Re: [Release] Warcraft Source 0.78 for Counterstrike Global Offenisve
« Reply #11 on: January 02, 2018, 11:24:47 PM »
Yes, it it, but the error doesn't exist in the original ES Emulator file. Did you made any changes to this file?:
addons\source-python\plugins\es_emulator\helpers.py

Offline Jareth

  • Wcs-Lagerhaus.net / Deutscher forum Helfer
  • Level 7 Expert
  • *****
  • Posts: 701
  • Country: de
  • Wcs-Lagerhaus/Ich helfe Gernen allen Deutschen =)
    • Server#1 Wcs Home
Re: [Release] Warcraft Source 0.78 for Counterstrike Global Offenisve
« Reply #12 on: January 02, 2018, 11:32:47 PM »
The error messages are not related to each other.

The first one can be caused by 2 reasons:
  • The original EventScripts is loaded.
  • You unloaded the emulator and then loaded it again (unloading is not supported yet).
Since ES doesn't work on CS:GO, the exception is probably caused by #2.

The other error was a bug in the emulator. It's now fixed:
https://github.com/Ayuto/EventScripts-Emulator/commit/e3cbc89033c3038359b03a85c9fb4d1c612a949d

Have only changed this line


;)

Offline Ayuto

  • Level 1 Trained Beginner
  • *
  • Posts: 39
  • Country: de
    • Source.Python
Re: [Release] Warcraft Source 0.78 for Counterstrike Global Offenisve
« Reply #13 on: January 03, 2018, 07:45:55 AM »
It seems like you didn't properly updated the file. You should also never just apply changes from a single commit. Just update the whole emulator by uploading the files again and you are fine.

Offline Manifest

  • Race & effect creator
  • Moderator
  • Level 7 Expert
  • *****
  • Posts: 1040
  • Country: dk
  • Content creator for the new WCS version by Kami.
Re: [Release] Warcraft Source 0.78 for Counterstrike Global Offenisve
« Reply #14 on: January 03, 2018, 08:35:46 AM »
Nice! Going to need to get myself a dedicated server again :)

Edit: If it works well, I'm going to have to re-arrange the forums again hehe.

It should, as far as I am concerned this was tested to work with all the prevously default WCS races, along with a bunch of the races of my old server for testing purposes.
It should be able to handle most of the old races and also a bit of the more complex ones aswell.

Also Kami I will be making a list of materials, particles and so, for this mod so that people can use their old races from the forum in their WCS servers, without experiencing texture errors. It will of course increase the size of the mod, but I do not think it will be all bad. :-)

Also I will be releasing an in-depth guide (Tutorial) on how to create races for the new modification, along with multiple functional races all coded in blocks, with a block skill catalog as well.
I plan on supporting this mod to the best of my extent for time being at least.

Big ups Kami, it was nice to be able to help you out with the mod aswell. :-)
"BRAVORA: Bruh it is fucking operation crystal night when you are approving races."