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

Author Topic: Total level reset bug  (Read 52 times)

Offline bullshit

  • Level 0 Beginner
  • Posts: 14
  • <3 WCS :)
Total level reset bug
« on: April 25, 2010, 08:17:16 PM »
Hey bullshit here.
Im having a problem when i reset the total level of an account. the person is being moved to spec and cant join a team. The person cant either choose any race. They are simply gone.

I got this debug report:
Code: [Select]
************
WarCraft: Source Version: 0.8.7a Python
Created by Jeff Hoogland (Jeff91) and Steven Hartin (freddukes)
Log file started at Sunday 25 April 2010 - 12:10:03

System Info:
OS: Windows
Eventscripts Version: 2.0.0.250
Corelib Version: 2.0.0.250i
Eventscript Tools Version: 0.420
Eventscripts Noisy: 0
Popuplib version: oy30
ModEvents: False
************

Sunday 04 2010 - 12:21:02 - Bullshit | Ibis.A is trying to play without a race - Forcing race now.
I fixed this problem by one way. If its right or not it worked for me but still i wont to tell that somethings wrong.

I change so you got 1 xp when you got reset.
Code: [Select]
def resetTotalLevel(userid, choice, popupid):
    """ Clear the players current dictionary values, and re-assign default values """
    steamid = getDictInstance(choice)
    if steamid is not None:
        steamid.clear()
        steamid['getlevel'] = float(es.ServerVar('wcs_freelevels'))
        steamid['getxp']    = 1
        wcs.defaultrace(userid, playerlib.uniqueid(userid, True))
        if isOnline(choice):
            """ Slay the player and tell them a message if they are online """
            choice = es.getuserid(choice)
            es.server.queuecmd('damage %s %s'% (userid, es.getplayerprop(userid, 'CBasePlayer.m_iHealth') ) )
            es.tell(choice, '#multi', text('reset total level', {'admin' : es.getplayername(userid)}, playerlib.getPlayer(choice).get("lang") ) )
    else:
        sendUnkownError(userid)


Another thing is that im having trouble with my undead. It cant have more than 100 hp.

Offline david769

  • Level 0 Beginner
  • Posts: 2
  • <3 WCS :)
Re: Total level reset bug
« Reply #1 on: May 02, 2010, 04:28:10 AM »
Hi
i have the same problem how do you fix it?
thanks

Offline Yiyas

  • Level 7 Expert
  • *****
  • Posts: 303
  • The name's Bugger. De-Bugger.
Re: Total level reset bug
« Reply #2 on: May 02, 2010, 09:40:12 AM »
If they rejoin is it fixed?

What I'm guessing is that when it resets their levels it deletes their entire entry but doesn't create a blank one afterwards. Stuff to do this should be in player_activate where it checks if they have previous levels or not.

Offline bullshit

  • Level 0 Beginner
  • Posts: 14
  • <3 WCS :)
Re: Total level reset bug
« Reply #3 on: May 03, 2010, 10:55:36 AM »
Hi
i have the same problem how do you fix it?
thanks


what problem? i named 2 problem.

Offline bullshit

  • Level 0 Beginner
  • Posts: 14
  • <3 WCS :)
Re: Total level reset bug
« Reply #4 on: May 03, 2010, 10:57:09 AM »
If they rejoin is it fixed?

What I'm guessing is that when it resets their levels it deletes their entire entry but doesn't create a blank one afterwards. Stuff to do this should be in player_activate where it checks if they have previous levels or not.


When you rejoin the server its not fixed. But if you give them 1 xp it dont delete you entirely. then you still have ability to select races and play.