GG errors

Ask questions and share info about GunGame 5

GG errors

Postby Jamese1991 » Sun Apr 24, 2011 11:44 pm

Is anyone else getting these errors. I'm only getting them every once in awhile. Just wondering why and wondering what I could do to get rid of them so we have an error free GG.

*******************************************************************************
* *
* GUNGAME v5.1 ERROR LOGGING *
* HTTP://FORUMS.GUNGAME.NET/ *
* *
* GG VERSION: 5.1.509 IP: 69.162.68.245 *
* SPE VERSION: 1.5.0f r85 PORT: 27015 *
* PLATFORM: NT DATE: 04-24-2011 *
* ES VERSION: 2.1.1.366 ES CORE VERSION: 2.1.1.336 *
* MM VERSION: 1.9.0-devV SM VERSION: 0 *
* MANI VERSION: 1.2vc VSP EST VERSION: 0 *
* *
*******************************************************************************


-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
LAST EVENT: [04/24/2011 @ 16:02:34] TOTAL OCCURENCES: [0001]
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

Traceback (most recent call last):
File "../eventscripts/es.py", line 272, in triggerEvent
self.EventListeners[eventname][listener](event_var)
File "../eventscripts/gungame51/core/addons/__init__.py", line 432, in call_event
current_event[name](event_var)
File "../eventscripts/gungame51/scripts/included/gg_spawn_protect/gg_spawn_protect.py", line 124, in player_spawn
startProtect(userid)
File "../eventscripts/gungame51/scripts/included/gg_spawn_protect/gg_spawn_protect.py", line 149, in startProtect
pPlayer = getPlayer(userid)
File "../eventscripts/_libs/python/playerlib.py", line 1310, in getPlayer
raise e

UseridError: '36' is an invalid userid
Jamese1991

Private
Private
 
Posts: 26
Joined: Wed Jul 07, 2010 12:26 am
Steam Friends Name: Jamese1973

Postby daggerclan » Mon Apr 25, 2011 5:18 pm

That error has been around a long time. We all get it. It's caused by a player who disconnects but the game still wants to give the player something, like spawn protection or a weapon. Since the player is no longer there the game sees it as an error. It's harmless but yes very annoying.
daggerclan

Corporal
Corporal
User avatar
 
Posts: 250
Joined: Mon Jul 13, 2009 7:54 pm
Location: United States

Postby satoon101 » Tue Apr 26, 2011 1:56 am

Try updating to 5.1.510 and run your server for a while. Let me know if you still see this error. I 'believe' the change I made will correct this, but I'm not 'certain' it did.

Satoon
satoon101

Site Admin
Site Admin
 
Posts: 1055
Joined: Thu Oct 09, 2008 4:27 pm

Postby daggerclan » Tue Apr 26, 2011 5:41 pm

I've been getting this error like forever, even with 5.1.510. I get it everyday several times a day. After upgrading to 5.1.510 I no longer get the "player has left server" error but I still get this one. In checking the timestamps of the console logs and the error logs I can confirm it always is because a bot is being kicked by console at round end because a real player has joined.

But I haven't gotten this error since April 19 !!

The only change I've made was on April 19 I edited Satoons looneybotping.py file because I was getting an excepthooks error. The change I made was the one suggested by Satoon to someone else who was getting the same error I was getting.


101satoon101 wrote:That's... odd... I'm thinking the only way that could occur is if player_activate fires for a bot as the script is loading. player_manager isn't created until after the gamethread.queue() .

Try this for me, make the following 2 changes and see if it fixes that issue:[syntax="python"]
def __init__(self):
self.BotList = {}
## add the following line
self.player_manager = None

config.text(self.cfgText('LooneyBotPing Options'))
self.max_ping = config.cvar('lbp_max_ping', 55,
'The highest ping that will be shown for Bots')
self.min_ping = config.cvar('lbp_min_ping', 25,
'The lowest ping that will be shown for Bots')
self.max_delay = config.cvar('lbp_max_delay', 3,
'Longest delay between ping updates for Bots')
self.min_delay = config.cvar('lbp_min_delay', 2,
'Shortest delay between ping updates for Bots')
config.write()
gamethread.queue(self.doLoad)





def playerActivate(self, userid):
## add the following 2 lines
if self.player_manager is None:
return

if es.isbot(userid):
self.getBot(userid).pingLoop()[/syntax]Satoon


Satoon, could adding those lines inadvertently fix the "Invalid UserID" error? It's the only thing I can think of. I haven't made any other changes and now the error is gone.
daggerclan

Corporal
Corporal
User avatar
 
Posts: 250
Joined: Mon Jul 13, 2009 7:54 pm
Location: United States

Postby satoon101 » Tue Apr 26, 2011 6:33 pm

I wouldn't think so. Those lines are used so that bots don't cause player_activate to fire prior to player_manager being set in my LooneyBotPing script. Due to an issue with loading the script via autoexec.cfg, I have to delay setting player_manager, since the values I use don't exist at server startup. Since bots can cause player_activate to be fired on the same tick as the server startup, the event fires too quickly, and player_manager hasn't been set yet. That really wouldn't have anything to do with this error in GunGame. I'll continue to try to find what causes these types of errors, and see if I can find a fix.

Satoon
satoon101

Site Admin
Site Admin
 
Posts: 1055
Joined: Thu Oct 09, 2008 4:27 pm

Postby daggerclan » Tue Apr 26, 2011 8:15 pm

Ok, thanks Satoon. If it helps, here's what the traceback looks like:

p.s. I should also note this is NOT a gungame51 error. I get the error on my gungame51 servers also but the traceback below is from one of my servers NOT running gungame51.
I think this error occurs only if you use bot quota.
Could this be used to suppress the error:
except playerlib.UseridError: return


Traceback (most recent call last):
  File "c:\userfiles\sarge\gameservers\tc53344181062147646870702\orangebox\cstrike\addons\eventscripts\es.py", line 279, in tick
    x()
  File "c:\userfiles\sarge\gameservers\tc53344181062147646870702\orangebox\cstrike\addons\eventscripts\_libs\python\gamethread.py", line 173, in tick
    _executenode(first)
  File "c:\userfiles\sarge\gameservers\tc53344181062147646870702\orangebox\cstrike\addons\eventscripts\_libs\python\gamethread.py", line 155, in _executenode
    function(*a, **kw)
  File "c:\userfiles\sarge\gameservers\tc53344181062147646870702\orangebox\cstrike\addons\eventscripts\_libs\python\popuplib.py", line 1549, in refreshPopup
    return self.updatePopup(p)
  File "c:\userfiles\sarge\gameservers\tc53344181062147646870702\orangebox\cstrike\addons\eventscripts\_libs\python\popuplib.py", line 1541, in updatePopup
    self.handleQueue()
  File "c:\userfiles\sarge\gameservers\tc53344181062147646870702\orangebox\cstrike\addons\eventscripts\_libs\python\popuplib.py", line 1418, in handleQueue
    menudisplay = qpopup.checkCache(self.userid)
  File "c:\userfiles\sarge\gameservers\tc53344181062147646870702\orangebox\cstrike\addons\eventscripts\_libs\python\popuplib.py", line 615, in checkCache
    userlang = self.i_userlang(int(userid))
  File "c:\userfiles\sarge\gameservers\tc53344181062147646870702\orangebox\cstrike\addons\eventscripts\_libs\python\popuplib.py", line 110, in i_userlang
    user = gUsers[int(userid)]
  File "c:\userfiles\sarge\gameservers\tc53344181062147646870702\orangebox\cstrike\addons\eventscripts\_libs\python\popuplib.py", line 1584, in __getitem__
    nuser = playerlib.getPlayer(userid)
  File "c:\userfiles\sarge\gameservers\tc53344181062147646870702\orangebox\cstrike\addons\eventscripts\_libs\python\playerlib.py", line 1310, in getPlayer
    raise e
UseridError: '232' is an invalid userid
02/19/11 06:42:37
UseridError: '122' is an invalid userid
02/27/11 16:29:46
UseridError: '494' is an invalid userid
03/02/11 14:09:53
UseridError: '914' is an invalid userid
03/03/11 15:40:20
UseridError: '961' is an invalid userid
03/03/11 18:11:01
UseridError: '138' is an invalid userid
03/04/11 18:11:41
UseridError: '114' is an invalid userid
03/06/11 16:19:52
UseridError: '781' is an invalid userid
03/12/11 19:28:11
UseridError: '11' is an invalid userid
03/13/11 10:03:51
UseridError: '124' is an invalid userid
03/14/11 19:45:54
UseridError: '455' is an invalid userid
03/15/11 14:15:29
UseridError: '1359' is an invalid userid
03/20/11 02:19:23
UseridError: '49' is an invalid userid
03/21/11 15:01:16
UseridError: '513' is an invalid userid
03/22/11 20:22:47
UseridError: '874' is an invalid userid
03/23/11 18:20:15
UseridError: '1449' is an invalid userid
04/10/11 03:23:17
UseridError: '168' is an invalid userid
04/16/11 19:17:28


Traceback (most recent call last):
  File "c:\userfiles\sarge\gameservers\tc53344181062147646870702\orangebox\cstrike\addons\eventscripts\es.py", line 279, in tick
    x()
  File "c:\userfiles\sarge\gameservers\tc53344181062147646870702\orangebox\cstrike\addons\eventscripts\_libs\python\gamethread.py", line 178, in tick
    _executenode(task)
  File "c:\userfiles\sarge\gameservers\tc53344181062147646870702\orangebox\cstrike\addons\eventscripts\_libs\python\gamethread.py", line 155, in _executenode
    function(*a, **kw)
  File "c:\userfiles\sarge\gameservers\tc53344181062147646870702\orangebox\cstrike\addons\eventscripts\_libs\python\popuplib.py", line 1549, in refreshPopup
    return self.updatePopup(p)
  File "c:\userfiles\sarge\gameservers\tc53344181062147646870702\orangebox\cstrike\addons\eventscripts\_libs\python\popuplib.py", line 1541, in updatePopup
    self.handleQueue()
  File "c:\userfiles\sarge\gameservers\tc53344181062147646870702\orangebox\cstrike\addons\eventscripts\_libs\python\popuplib.py", line 1418, in handleQueue
    menudisplay = qpopup.checkCache(self.userid)
  File "c:\userfiles\sarge\gameservers\tc53344181062147646870702\orangebox\cstrike\addons\eventscripts\_libs\python\popuplib.py", line 615, in checkCache
    userlang = self.i_userlang(int(userid))
  File "c:\userfiles\sarge\gameservers\tc53344181062147646870702\orangebox\cstrike\addons\eventscripts\_libs\python\popuplib.py", line 110, in i_userlang
    user = gUsers[int(userid)]
  File "c:\userfiles\sarge\gameservers\tc53344181062147646870702\orangebox\cstrike\addons\eventscripts\_libs\python\popuplib.py", line 1584, in __getitem__
    nuser = playerlib.getPlayer(userid)
  File "c:\userfiles\sarge\gameservers\tc53344181062147646870702\orangebox\cstrike\addons\eventscripts\_libs\python\playerlib.py", line 1310, in getPlayer
    raise e
UseridError: '93' is an invalid userid
03/16/11 22:29:46
UseridError: '485' is an invalid userid
03/17/11 22:05:41
UseridError: '122' is an invalid userid
04/03/11 15:31:33
UseridError: '239' is an invalid userid
04/17/11 22:09:58
daggerclan

Corporal
Corporal
User avatar
 
Posts: 250
Joined: Mon Jul 13, 2009 7:54 pm
Location: United States



Return to General Discussion

Who is online

Users browsing this forum: No registered users and 28 guests

cron