Archived copy of warcraft-source.com, the Warcraft: Source (WCS) forum (2007–2011), rebuilt from the Internet Archive by wc3mods.net. This page was captured on 2014-08-11 (original capture). Home · Forum · All archived topics · Downloads
August 10, 2014, 11:56:14 PM

Author Topic: WCS:Python released into Beta  (Read 9323 times)

Offline freddukes

  • Moderator
  • Level 7 Expert
  • *****
  • Posts: 359
WCS:Python released into Beta
« on: August 01, 2010, 10:36:05 AM »
Okay guys, here it is... I've finished the mod into "beta" standards. A lot of it hasn't been tested properly (heck, I haven't even tested up engine work since I made some huge changes) so I expect to be some bugs. If you are worried about it breaking, this version isn't for you; wait until it's in a more stable release.

This version should (hopefully) be backwards compatible with all of the old WCS:Python races. I've only recoded 1 race (Night Elf), and that isn't fully working yet due to the lack of the prep_hurt function which is required for one of her skills. Just a quick note, please don't notify me of any race bugs, they've still got to be recoded. I'm only releasing this as an engine test, and for you to see the features. I will be working on recoding the default 8 races and fixing bugs over the next week or so.

This mod comes with all the shop items recoded, so they will need to be tested. The engine should be running fine (database management etc). This also comes with 2 addons, mysql_connection and wcs_admin. They're pretty self explanatory, wcs_admin deals with the admin popup and the mysql_connection uses mysql databases instead of sqlite databases. The mysql_connection is untested, but I did rip it straight from SourceRPG (with a few changes), and it works for my SourceRPG.

To get the mod, follow these instructions:
  • Download tortoise SVN and install it.
  • If your server is on your local machine, browse to your ../addons/eventscripts/ folder, otherwise, just go to your desktop
  • Create a new folder called "wcs", if you already have one on your local server, rename it to "wcs_backup" and create a new "wcs" folder.
  • Right click the newly created folder, and go to SVN Checkout. A dialogue box will appear, input this URL: http://wcspython.googlecode.com/svn/trunk/addons/eventscripts/wcs. Select Okay and it will begin to download lots of files.
  • If your server is local, you can simply go ahead and load your server, and type "es_load wcs". The first time you load WCS, it will create all the necessary configuration files within ../cfg/wcs.
  • If your server is not local (i.e you need to upload the files), right click your wcs folder you created on your desktop, go to TortoiseSVN and select SVN Export. Export them to a new folder on your desktop called wcs_exported. Simply upload all the files in that folder to your game server, and repeat the previous step (load the mod, then config).
  • To load races, extensions and shop items, go to ../cfg/wcs/ and look in the files wcs_race_loader.cfg, wcs_extension_loader.cfg and wcs_item_loader.cfg respectively, there's instructions within those files to tell you how to add the races.

The reason I am asking you to do this over SVN is it makes it extremely easy for me to tell you to update your servers. Because I will be updating WCS a lot with small bug fixes which you report, all you need to do is right click the WCS folder, and select SVN Update. That's it, it will download the latest files etc. If your server is remote, you'll need to export and upload again, but it's still easier than me uploading a .zip file, you downloading, you extracting, then uploading again.

If you are having any issues, I could upload a .zip file for you, however, it would help us both if you got the SVN Repository working.

Just a note, this will also require popuplib2 and SPE.
SPE Download link
Popuplib2 download link

You'll need to install both of those before WCS will load.

Thank you, if you have any issues, just post here and I will try my best to answer them.

-freddukes
« Last Edit: August 05, 2010, 03:59:37 PM by La Muerte »

Offline freddukes

  • Moderator
  • Level 7 Expert
  • *****
  • Posts: 359
Re: WCS:Python released into Beta
« Reply #1 on: August 01, 2010, 10:36:29 AM »
-Reserved for any info I may need to add later-

Offline Strickened

  • Level 7 Expert
  • *****
  • Posts: 181
  • <3 WCS :)
    • WCS UK Official Website
Re: WCS:Python released into Beta
« Reply #2 on: August 04, 2010, 07:10:58 AM »
Need a public server to test on?

Offline freddukes

  • Moderator
  • Level 7 Expert
  • *****
  • Posts: 359
Re: WCS:Python released into Beta
« Reply #3 on: August 04, 2010, 09:26:47 AM »
Any help would be wonderful, currently I have 1 amazing beta tester (HooHaa) doing amazing work reporting bugs, but more testers would be so much more helpful!

I'm always wanting more beta testers to help me

-freddukes

Offline Strickened

  • Level 7 Expert
  • *****
  • Posts: 181
  • <3 WCS :)
    • WCS UK Official Website
Re: WCS:Python released into Beta
« Reply #4 on: August 04, 2010, 10:18:39 AM »
Well, I'll have a look when I get back home at setting it up.

Offline nekpek

  • Level 0 Beginner
  • Posts: 17
Re: WCS:Python released into Beta
« Reply #5 on: August 05, 2010, 11:08:52 AM »
ill try this on my server when i just have moved my hosts.
i heard somewhere that python dont make the server lag so much is it true
also have any of you tester experienced lag on there servers.
Dl'ng now

Offline MiBShidobu

  • Level 7 Expert
  • *****
  • Posts: 1629
Re: WCS:Python released into Beta
« Reply #6 on: August 05, 2010, 12:31:19 PM »
ill try this on my server when i just have moved my hosts.
i heard somewhere that python dont make the server lag so much is it true
also have any of you tester experienced lag on there servers.
Dl'ng now
Python is LAG free unless you code something wrong or use/make some function that does alot of things at once like for example getting a player list every "tick".

~MiB
Quote from: Tha Pwned
2:35 PM - La Muerte: pwned + forum = fail
2:36 PM - Tha Pwned: +1
2:36 PM - Tha Pwned: Don't quote

Offline freddukes

  • Moderator
  • Level 7 Expert
  • *****
  • Posts: 359
Re: WCS:Python released into Beta
« Reply #7 on: August 05, 2010, 12:35:13 PM »
ill try this on my server when i just have moved my hosts.
i heard somewhere that python dont make the server lag so much is it true
also have any of you tester experienced lag on there servers.
Dl'ng now
Python is LAG free unless you code something wrong or use/make some function that does alot of things at once like for example getting a player list every "tick".

~MiB

If you're referring to the mute function, that no longer lags. The reason why muting players using ES used to lag is the fact that each time you used the es.voicechat() function, ES spammed some text to console. On Linux servers, it's fine; it uses direct system output buffers for direct console output. On windows, it does some horrible buffering and string work which takes much longer to send an output message to console. If you had 24 players, and 2 muted players, then each tick is was spamming some console text 48 times. This was the things which lagged Windows servers, not the iterating. Now, Mattie has removed the console spam (he did that ages ago) and now mute works perfect without lag. As far as I'm aware, there's nothing I've seen which does "too much" to lag the server, unless of course, you're opening connections to hosts such as HTTP connections; but that has nothing to do with Python; that's just the generic internet :D

-freddukes

-freddukes

Offline MiBShidobu

  • Level 7 Expert
  • *****
  • Posts: 1629
Re: WCS:Python released into Beta
« Reply #8 on: August 05, 2010, 12:44:37 PM »
ill try this on my server when i just have moved my hosts.
i heard somewhere that python dont make the server lag so much is it true
also have any of you tester experienced lag on there servers.
Dl'ng now
Python is LAG free unless you code something wrong or use/make some function that does alot of things at once like for example getting a player list every "tick".

~MiB

If you're referring to the mute function, that no longer lags. The reason why muting players using ES used to lag is the fact that each time you used the es.voicechat() function, ES spammed some text to console. On Linux servers, it's fine; it uses direct system output buffers for direct console output. On windows, it does some horrible buffering and string work which takes much longer to send an output message to console. If you had 24 players, and 2 muted players, then each tick is was spamming some console text 48 times. This was the things which lagged Windows servers, not the iterating. Now, Mattie has removed the console spam (he did that ages ago) and now mute works perfect without lag. As far as I'm aware, there's nothing I've seen which does "too much" to lag the server, unless of course, you're opening connections to hosts such as HTTP connections; but that has nothing to do with Python; that's just the generic internet :D

-freddukes

-freddukes
Nah I wasn't referring to the voice chat function.
Now all I need is that es.remove/es_remove wasn't so crappy for me at times and remove the console message which from what I heard you couldn't remove the console message as currently its a wrapper around ent_remove.

~MiB
Quote from: Tha Pwned
2:35 PM - La Muerte: pwned + forum = fail
2:36 PM - Tha Pwned: +1
2:36 PM - Tha Pwned: Don't quote

Offline freddukes

  • Moderator
  • Level 7 Expert
  • *****
  • Posts: 359
Re: WCS:Python released into Beta
« Reply #9 on: August 05, 2010, 03:11:14 PM »
Quote from: MiB
Now all I need is that es.remove/es_remove wasn't so crappy for me at times and remove the console message which from what I heard you couldn't remove the console message as currently its a wrapper around ent_remove.

Yes, that's valve's doing; we can't alter that.

-freddukes

Offline La Muerte

  • Administrator
  • Level 7 Expert
  • *****
  • Posts: 1835
  • Carry On Wayward Son
    • Fortitude
Re: WCS:Python released into Beta
« Reply #10 on: August 05, 2010, 03:59:55 PM »
stickied topic, nice work
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 [Oddity]TeacherCreature

  • Level 7 Expert
  • *****
  • Posts: 1753
Re: WCS:Python released into Beta
« Reply #11 on: August 05, 2010, 10:46:39 PM »
looks good and jsut like I think W3S should have a seperate section of forum I think Python WCS should also!

Definitely deserves it.

Edward D'Andrea

Offline La Muerte

  • Administrator
  • Level 7 Expert
  • *****
  • Posts: 1835
  • Carry On Wayward Son
    • Fortitude
Re: WCS:Python released into Beta
« Reply #12 on: August 06, 2010, 02:42:51 AM »
yes, I agree.
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 necavi

  • Level 7 Expert
  • *****
  • Posts: 463
Re: WCS:Python released into Beta
« Reply #13 on: August 06, 2010, 02:45:08 AM »
Frankly it doesn't matter what you two agree on, ASK THE PEOPLE INVOLVED, if Ownz wants war3source on this forum, then by all means, if it were my decision, I would allow it, but he would not say yes, I am almost certain. Ask Freddukes if he wants his version of WCS to have a section here, by all means, give it to him.

Offline La Muerte

  • Administrator
  • Level 7 Expert
  • *****
  • Posts: 1835
  • Carry On Wayward Son
    • Fortitude
Re: WCS:Python released into Beta
« Reply #14 on: August 06, 2010, 02:47:41 AM »
Completely true necavi, thats the exact reason I didnt add a board yet by this time.
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??