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 2010-11-04 (original capture). Home · Forum · All archived topics · Downloads

Author Topic: Approved~ [WCS Addon] WCSusers_menu  (Read 493 times)

MiB

  • Custom Coder
  • Level 7 Expert
  • Posts: 1022
Approved~ [WCS Addon] WCSusers_menu
« on: August 27, 2010, 10:56:54 AM »
This fixes the timing out and the special characters problems with the playerinfo menu.
Just unzip the zip file on your desktop then drag the newly unzipped wcs folder in your eventscripts folder then add WCSaddons_load WCSusers_menu to the end of your autoexec.

Requirements: WCS 1.76 B4 and UP



~MiB
« Last Edit: August 30, 2010, 10:18:06 AM by MiB »

~The Sig Changes Each Time~
~The Sigs Them Selfs Are By Hybrid Click The Sigs To See His Other Sigs~

Scyther

  • Level 5 Trained Intermediate
  • Posts: 113
  • <3 WCS :)
Re: [Addon] WCSusers_menu
« Reply #1 on: August 27, 2010, 11:03:09 AM »
Thanks once again for a great release! Leaning more and more towards wcs ;) i just hope someone finds a fix for raceinfo timing out (since thats the thing most people need time to read if you know what i mean)

MiB

  • Custom Coder
  • Level 7 Expert
  • Posts: 1022
Re: [WCS Addon] WCSusers_menu
« Reply #2 on: August 27, 2010, 11:03:51 AM »
The racemenus is what I'm planning on next.

~MiB

~The Sig Changes Each Time~
~The Sigs Them Selfs Are By Hybrid Click The Sigs To See His Other Sigs~

stormleader

  • Level 2 Apprentice
  • Posts: 55
  • <3 WCS :)
Re: [WCS Addon] WCSusers_menu
« Reply #3 on: August 27, 2010, 11:37:17 AM »
MIB, Thank you very much   ;D  and about the new levelbank, there are already new?

Tha Pwned

  • Custom Coder
  • Level 5 Trained Intermediate
  • Posts: 100
  • Free time coder
Re: [WCS Addon] WCSusers_menu
« Reply #4 on: August 27, 2010, 12:12:41 PM »
You have to convert es.keygetvalue() to an integer else it'll return as a string:

Code: [Select]
>>> import es
>>> es.keygroupcreate('WCSuserdata')
>>> es.keycreate('WCSuserdata', 'steamid')
>>> es.keysetvalue('WCSuserdata', 'steamid', 'id', '1')
>>> es.msg(type(es.keygetvalue('WCSuserdata', 'steamid', 'id')))
<type 'str'>
>>> es.keysetvalue('WCSuserdata', 'steamid', 'id', 1)
>>> es.msg(type(es.keygetvalue('WCSuserdata', 'steamid', 'id')))
<type 'str'>

MiB

  • Custom Coder
  • Level 7 Expert
  • Posts: 1022
Re: [WCS Addon] WCSusers_menu
« Reply #5 on: August 27, 2010, 12:19:18 PM »
I wasn't using anything as intergers.

~MiB

~The Sig Changes Each Time~
~The Sigs Them Selfs Are By Hybrid Click The Sigs To See His Other Sigs~

Tha Pwned

  • Custom Coder
  • Level 5 Trained Intermediate
  • Posts: 100
  • Free time coder
Re: [WCS Addon] WCSusers_menu
« Reply #6 on: August 27, 2010, 12:21:46 PM »
I wasn't using anything as intergers.

~MiB

Code: [Select]
speed = es.keygetvalue("WCSuserdata",choice,"speed")
#Always true
if speed and speed != 0:

gravity = es.keygetvalue("WCSuserdata",choice,"gravity")
#Always true
if gravity and gravity != 0:

longjump = es.keygetvalue("WCSuserdata",choice,"longjump")
#Always true
if longjump and longjump != 0:
And so on.

MiB

  • Custom Coder
  • Level 7 Expert
  • Posts: 1022
Re: [WCS Addon] WCSusers_menu
« Reply #7 on: August 27, 2010, 12:42:55 PM »
I wasn't using anything as intergers.

~MiB

Code: [Select]
speed = es.keygetvalue("WCSuserdata",choice,"speed")
#Always true
if speed and speed != 0:

gravity = es.keygetvalue("WCSuserdata",choice,"gravity")
#Always true
if gravity and gravity != 0:

longjump = es.keygetvalue("WCSuserdata",choice,"longjump")
#Always true
if longjump and longjump != 0:
And so on.
The first check is to see if its true.
But I see what you mean about the second check I'm fixing that at the moment.

~MiB

~The Sig Changes Each Time~
~The Sigs Them Selfs Are By Hybrid Click The Sigs To See His Other Sigs~

MiB

  • Custom Coder
  • Level 7 Expert
  • Posts: 1022
Re: [WCS Addon] WCSusers_menu
« Reply #8 on: August 27, 2010, 12:56:46 PM »
Reuploaded new version please redownload.

~MiB

~The Sig Changes Each Time~
~The Sigs Them Selfs Are By Hybrid Click The Sigs To See His Other Sigs~

^[Psycho]^

  • Level 7 Expert
  • Posts: 311
  • ~~~~~~~~
Re: [WCS Addon] WCSusers_menu Timeout fix
« Reply #9 on: August 29, 2010, 01:32:13 PM »
Much people on my server say this new playerinfo is bugged, and i saw too,
sometimes it just wont work, doesnt open, sometime you cant change to page 2, sometimes you cant choose people in playerinfo. it work on my server how it want ^^
did i do something wrong? my server is at all up to date

MiB

  • Custom Coder
  • Level 7 Expert
  • Posts: 1022
Re: [WCS Addon] WCSusers_menu Timeout fix
« Reply #10 on: August 29, 2010, 01:44:58 PM »
Hmmmmm.
So far I haven't had problems with it.
I'll look into it.

~MiB

~The Sig Changes Each Time~
~The Sigs Them Selfs Are By Hybrid Click The Sigs To See His Other Sigs~

^[Psycho]^

  • Level 7 Expert
  • Posts: 311
  • ~~~~~~~~
Re: [WCS Addon] WCSusers_menu Timeout fix
« Reply #11 on: August 29, 2010, 01:49:48 PM »
Hmmmmm.
So far I haven't had problems with it.
I'll look into it.

~MiB

i think this problem come when you stay long on server and many people are on it so that 2 pages are around there, sry for bad english hope ou know what i mean

stormleader

  • Level 2 Apprentice
  • Posts: 55
  • <3 WCS :)
Re: [WCS Addon] WCSusers_menu Timeout fix
« Reply #12 on: August 29, 2010, 02:10:19 PM »
Hi , On my server function playerinfo, also does not work!!

MiB

  • Custom Coder
  • Level 7 Expert
  • Posts: 1022
Re: [WCS Addon] WCSusers_menu Timeout fix
« Reply #13 on: August 29, 2010, 03:03:00 PM »
Stormleader did you put WCSaddons_load WCSusers_menu in your autoexec after es_load wcs?

~MiB

~The Sig Changes Each Time~
~The Sigs Them Selfs Are By Hybrid Click The Sigs To See His Other Sigs~

stormleader

  • Level 2 Apprentice
  • Posts: 55
  • <3 WCS :)
Re: [WCS Addon] WCSusers_menu Timeout fix
« Reply #14 on: August 29, 2010, 04:28:41 PM »
yes MIB

es_load estcommands
es_load wcs
es_load wcx
WCSaddons_load
WCSusers_menu
« Last Edit: August 29, 2010, 04:30:16 PM by stormleader »

Warcraft-Source.com

« on: »