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 2008-04-15 (original capture). Home · Forum · All archived topics · Downloads
Warcraft-Source.com - WCS mod for CSS
April 15, 2008, 11:54:28 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: WCS Tournament being opened for applications!

Post here for signups!
Google  
  Home   Forum   Help Search Login Register   *
Pages: 1 2 [3]   Go Down
  Print  
This topic has not yet been rated! You have not rated this topic. Select a rating:
Author Topic: Alpha Level keygroup race Adaptation  (Read 245 times)
cobaltflux
Level 2 Apprentice
**
Offline Offline

United States United States

Posts: 45



« Reply #30 on: April 09, 2008, 10:25:06 PM »

I played with the latest one again today, and there are some things that work, but still have encountered a bit of errors. I spawn, the player_spawn est_playplayer sound plays (which only played if you died and respawned. it would not play if you survived the previous round). raceinfo shows the skills etc, but I got a few errors with various commands I tried (showskills/spendskills/wcsadmin functions/playerinfo) and here is what the logger grabbed.

Code:
04/09/08 15:43:37
Traceback (most recent call last):
  File "C:\SRCDS\cstrike\addons\eventscripts\es.py", line 266, in callBlock
    self.Blocks[blockname]()
  File "C:\SRCDS\cstrike\addons\eventscripts\wcs\wcs.py", line 348, in wcsShowSkills
    skillsmenu.addline('%s : %s'%(skill, playerkey[skill]))
KeyError: 'Drought'

04/09/08 15:46:29
Traceback (most recent call last):
  File "C:\SRCDS\cstrike\addons\eventscripts\es.py", line 266, in callBlock
    self.Blocks[blockname]()
  File "C:\SRCDS\cstrike\addons\eventscripts\wcs\admin\admin.py", line 82, in GiveTheXp
    player.GiveXp(amount,' being liked by an administrator.') # Finalizes the command, and adds the xp
  File "C:\SRCDS\cstrike\addons\eventscripts\wcs\wcs.py", line 2120, in GiveXp
    self.GiveLevel(_amount_of_levels,text('levelup xp',lang=playerlib.getPlayer(self.userid).get('lang')))
  File "C:\SRCDS\cstrike\addons\eventscripts\wcs\wcs.py", line 2142, in GiveLevel
    spendskills(self.userid)
  File "C:\SRCDS\cstrike\addons\eventscripts\wcs\wcs.py", line 710, in spendskills
    currentranks = playerkey[skill]
KeyError: 'Drought'

04/09/08 15:46:52
Traceback (most recent call last):
  File "C:\SRCDS\cstrike\addons\eventscripts\es.py", line 266, in callBlock
    self.Blocks[blockname]()
  File "C:\SRCDS\cstrike\addons\eventscripts\wcs\wcs.py", line 318, in wcsSpendSkills
    spendskills(userid)
  File "C:\SRCDS\cstrike\addons\eventscripts\wcs\wcs.py", line 710, in spendskills
    currentranks = playerkey[skill]
KeyError: 'Drought'

04/09/08 15:49:10
Traceback (most recent call last):
  File "C:\SRCDS\cstrike\addons\eventscripts\es.py", line 266, in callBlock
    self.Blocks[blockname]()
  File "C:\SRCDS\cstrike\addons\eventscripts\wcs\admin\admin.py", line 101, in GiveTheLevel
    player.GiveLevel(amount,' being liked by an administrator.')
  File "C:\SRCDS\cstrike\addons\eventscripts\wcs\wcs.py", line 2142, in GiveLevel
    spendskills(self.userid)
  File "C:\SRCDS\cstrike\addons\eventscripts\wcs\wcs.py", line 710, in spendskills
    currentranks = playerkey[skill]
KeyError: 'Drought'

04/09/08 15:52:23
Traceback (most recent call last):
  File "C:\SRCDS\cstrike\addons\eventscripts\es.py", line 199, in triggerEvent
    self.EventListeners[eventname][listener](event_var)
  File "C:\SRCDS\cstrike\addons\eventscripts\_libs\python\popuplib.py", line 1664, in es_client_command
    active.handleChoice(choice, userid)
  File "C:\SRCDS\cstrike\addons\eventscripts\_libs\python\popuplib.py", line 1146, in handleChoice
    self.menuselectfb(userid, choiceval,self.name)
  File "C:\SRCDS\cstrike\addons\eventscripts\wcs\wcs.py", line 207, in TargetChosen
    skillsmenu.addline('%s : %s'%(skill, playerkey[skill]))
KeyError: 'Drought'

04/09/08 15:53:02
Traceback (most recent call last):
  File "C:\SRCDS\cstrike\addons\eventscripts\es.py", line 199, in triggerEvent
    self.EventListeners[eventname][listener](event_var)
  File "C:\SRCDS\cstrike\addons\eventscripts\_libs\python\popuplib.py", line 1664, in es_client_command
    active.handleChoice(choice, userid)
  File "C:\SRCDS\cstrike\addons\eventscripts\_libs\python\popuplib.py", line 1101, in handleChoice
    page = self.activepage[int(userid)]
KeyError: 2

04/09/08 15:53:13
Traceback (most recent call last):
  File "C:\SRCDS\cstrike\addons\eventscripts\es.py", line 199, in triggerEvent
    self.EventListeners[eventname][listener](event_var)
  File "C:\SRCDS\cstrike\addons\eventscripts\wcs\wcs.py", line 1240, in prep_hurt
    es.server.queuecmd(str(keygroupraces[race]['race']['skill%s_setting'%skillcount]).split('|')[GetLevel(atk,race,str(keygroupraces[race]['race']['skillnames']).split('|')[skillcount-1])])
  File "C:\SRCDS\cstrike\addons\eventscripts\wcs\wcs.py", line 1443, in GetLevel
    return getSteam(userid)[raceName][skillName]
KeyError: 'Drought'

04/09/08 15:53:13
Traceback (most recent call last):
  File "C:\SRCDS\cstrike\addons\eventscripts\es.py", line 199, in triggerEvent
    self.EventListeners[eventname][listener](event_var)
  File "C:\SRCDS\cstrike\addons\eventscripts\wcs\wcs.py", line 1240, in prep_hurt
    es.server.queuecmd(str(keygroupraces[race]['race']['skill%s_setting'%skillcount]).split('|')[GetLevel(atk,race,str(keygroupraces[race]['race']['skillnames']).split('|')[skillcount-1])])
  File "C:\SRCDS\cstrike\addons\eventscripts\wcs\wcs.py", line 1443, in GetLevel
    return getSteam(userid)[raceName][skillName]
KeyError: 'Drought'
Logged
Jeff
WCS ESP Dev Team
Level 7 Expert

Offline Offline

United States United States

Posts: 305



WWW
beastrace91
« Reply #31 on: April 09, 2008, 11:37:42 PM »

Useful info! Will look into getting this corrected shortly.

~J3ff
Logged

KaBoom
Level 2 Apprentice
**
Offline Offline

United States United States

Posts: 56



« Reply #32 on: April 10, 2008, 12:50:07 AM »

If this matters, as soon as the bugs with this get hammered out, I'm upgrading my server to Python. Hope this is an incentive for you.  That way, I don't have to recode EVERY race before uploading to get it working the way I like it.
Logged
Jeff
WCS ESP Dev Team
Level 7 Expert

Offline Offline

United States United States

Posts: 305



WWW
beastrace91
« Reply #33 on: April 10, 2008, 01:26:55 AM »

If this matters, as soon as the bugs with this get hammered out, I'm upgrading my server to Python. Hope this is an incentive for you.  That way, I don't have to recode EVERY race before uploading to get it working the way I like it.

Glad to hear it

As of 0.8.5f I was able to load a keygroup race, earn XP/levels and spend/resetskills with no errors or complaints in console!

Anyone willing to load up a box and play test some keygroup races to help me debug further I would love <3

(Was tested with the WeatherMan race which was linked to in an above post)

~J3ff
Logged

cobaltflux
Level 2 Apprentice
**
Offline Offline

United States United States

Posts: 45



« Reply #34 on: April 10, 2008, 03:18:27 AM »

Am I just really unlucky? I can't seem to get the same success as you. After updating to f I still can't get it working correctly. Same problems as my earlier posts, and I believe at first glance, many(if not all) of the same errors as my latest post.
Logged
Jeff
WCS ESP Dev Team
Level 7 Expert

Offline Offline

United States United States

Posts: 305



WWW
beastrace91
« Reply #35 on: April 10, 2008, 04:40:42 AM »

Try a fresh install of everything and let me know... I will look into them none the less.

~J3ff
Logged

cobaltflux
Level 2 Apprentice
**
Offline Offline

United States United States

Posts: 45



« Reply #36 on: April 10, 2008, 05:01:42 AM »

Ah, I should of known to do that. I deleted everything and reinstalled wcs and now it works! Some not so important bugs: the est_playplayer sound on spawn still only happens on spawn if you died the previous round. Another bug I saw is when I leveled and put in my only skill point into Drought it said: "Drought has advanced to level 1. Your Drought is already at it's max level. " This didn't affect the skill at all, it was still level 1, and I could still level it up further to the real max of 5 later on.

But yeah, I can confirm now that this is working. Now with just a little changes in the race file itself, most races should be working near perfectly huh?

Edit: Scratch that. I gave myself levels and maxed out all the skills and this error shows up when attacking:

Code:
Traceback (most recent call last):
File "C:\SRCDS\cstrike\addons\eventscripts\es.py", line 199, in triggerEvent
    self.EventListeners[eventname][listener](event_var)
File "C:\SRCDS\cstrike\addons\eventscripts\wcs\wcs.py", line 1240, in prep_hurt
    es.server.queuecmd(str(keygroupraces[race]['race']['skill%s_setting'%skillco
unt]).split('|')[GetLevel(atk,race,str(keygroupraces[race]['race']['skillnames']
).split('|')[skillcount-1])])
IndexError: list index out of range
« Last Edit: April 10, 2008, 05:06:56 AM by cobaltflux » Logged
Jeff
WCS ESP Dev Team
Level 7 Expert

Offline Offline

United States United States

Posts: 305



WWW
beastrace91
« Reply #37 on: April 10, 2008, 05:29:35 AM »

Yea I noticed that message bug (wasn't at the top of my list ) I'll fix it next patch.

As for that error looking into it. (Also great testing thus far you have been a big help!)

~J3ff
Logged

Jeff
WCS ESP Dev Team
Level 7 Expert

Offline Offline

United States United States

Posts: 305



WWW
beastrace91
« Reply #38 on: April 10, 2008, 05:55:48 AM »

0.8.5g posted! It should remedy those errors you found.

~J3ff
Logged

cobaltflux
Level 2 Apprentice
**
Offline Offline

United States United States

Posts: 45



« Reply #39 on: April 10, 2008, 10:30:15 PM »

Heh, almost there...

Code:
04/10/08 16:07:29
Traceback (most recent call last):
  File "C:\SRCDS\cstrike\addons\eventscripts\es.py", line 199, in triggerEvent
    self.EventListeners[eventname][listener](event_var)
  File "C:\SRCDS\cstrike\addons\eventscripts\wcs\wcs.py", line 1237, in prep_hurt
    es.server.queuecmd(str(keygroupraces[race]['race']['skill%s_setting'%skillcount]).split('|')[GetLevel(atk,race,str(keygroupraces[race]['race']['skillnames']).split('|')[skillcount-1])])
IndexError: list index out of range

I even completely removed wcs and put in the new g files, and that error still appears when trying to activate a skill I believe. Weird how when there are no skill points in any skills, I am seeing effects that are supposed to happen when a skill gets activated. But when skill points are in, I get that error message and no signs of the skills working.
Logged
Jeff
WCS ESP Dev Team
Level 7 Expert

Offline Offline

United States United States

Posts: 305



WWW
beastrace91
« Reply #40 on: April 10, 2008, 11:50:15 PM »

Not your fault... that line needed a '-1' at the end of it thus the out of range error.

0.8.5h has been posted (to correct this and one other thing) let me know if it works for you!

~J3ff
Logged

cobaltflux
Level 2 Apprentice
**
Offline Offline

United States United States

Posts: 45



« Reply #41 on: April 11, 2008, 01:15:11 AM »

Great news! No more errors! Some wcs_* commands I saw in my console that didn't work were wcs_setfx, wcs_getlanguage, and wcs_alive. I don't know if you already planned on adding these commands, but I can imagine people wouldn't have a hard time changing the race slightly to do what they want.

Great job getting this keygroup race working! I am really excited to see such fast progress on this idea. I am eager to await future versions to see what more will be supported.
Logged
Jeff
WCS ESP Dev Team
Level 7 Expert

Offline Offline

United States United States

Posts: 305



WWW
beastrace91
« Reply #42 on: April 11, 2008, 02:11:22 AM »

Awesome! If I get time I'll add those into the mod later on.

~J3ff
Logged

Pages: 1 2 [3]   Go Up
  Print  
 
Jump to:  

Last 7 Shouts:
April 14, 2008, 08:47:37 PM
Seconds u there
April 14, 2008, 06:57:57 PM
Ty see u there
April 13, 2008, 11:00:29 PM
@overfinch123, your application has been accepted
April 13, 2008, 10:10:47 PM
ESELADDEN I entered your WCS tournament i left a reply want me to send itt to you?
April 13, 2008, 10:09:54 PM
Eseladden u there?
April 13, 2008, 08:30:55 AM
WCSUsers db file, move that file
April 13, 2008, 06:24:38 AM
Hey guys how do I move levels to another server?
Recent
[Today at 11:21:51 PM]

[Today at 09:22:37 PM]

[Today at 08:18:30 PM]

by West
[Today at 08:14:12 PM]

by Jeff
[Today at 06:51:25 PM]

[Today at 06:08:09 PM]

[Today at 06:03:36 PM]

[Today at 05:50:59 PM]

[Today at 04:20:36 PM]

[Today at 02:50:39 PM]
Theme switch

Powered by MySQL Powered by PHP Powered by SMF 1.1.4 | SMF © 2006-2007, Simple Machines LLC
TinyPortal v0.9.8 © Bloc
Valid XHTML 1.0! Valid CSS!
Page created in 0.06 seconds with 26 queries.