problems since update 24/08/12

Ask questions and share info about GunGame 5

problems since update 24/08/12

Postby Serialkiller » Fri Aug 24, 2012 11:28 pm

hi peeps!

Got some problems with the gg since the recent steam update.

Errors are as followS!

# ================================================
# >> GunGame 5.1 Exception Caught!
# ================================================
Traceback (most recent call last):
File "../eventscripts/es.py", line 272, in triggerEvent
self.EventListeners[eventname][listener](event_var)
File "../eventscripts/gungame51/gungame51.py", line 635, in player_team
Player(int(event_var['userid'])).playsound('welcome')
File "../eventscripts/gungame51/core/players/__init__.py", line 893, in __new__
return PlayerManager().__getitem__(userid)
File "../eventscripts/gungame51/core/players/__init__.py", line 816, in __getitem__
' instance for userid "%s".' % userid)
ValueError: Unable to retrieve or create a player instance for userid "2".
# ================================================




# ================================================
# >> GunGame 5.1 Exception Caught!
# ================================================
Traceback (most recent call last):
File "../eventscripts/es.py", line 272, in triggerEvent
self.EventListeners[eventname][listener](event_var)
File "../eventscripts/gungame51/gungame51.py", line 484, in player_spawn
if getPlayer(userid).isdead:
File "../eventscripts/_libs/python/playerlib.py", line 1310, in getPlayer
raise e
UseridError: '2' is an invalid userid
# ================================================




# ================================================
# >> GunGame 5.1 Exception Caught!
# ================================================
Traceback (most recent call last):
File "../eventscripts/es.py", line 272, in triggerEvent
self.EventListeners[eventname][listener](event_var)
File "../eventscripts/gungame51/gungame51.py", line 484, in player_spawn
if getPlayer(userid).isdead:
File "../eventscripts/_libs/python/playerlib.py", line 1310, in getPlayer
raise e
UseridError: '2' is an invalid userid
# ================================================




# ================================================
# >> GunGame 5.1 Exception Caught!
# ================================================
Traceback (most recent call last):
File "../eventscripts/es.py", line 272, in triggerEvent
self.EventListeners[eventname][listener](event_var)
File "../eventscripts/gungame51/gungame51.py", line 751, in player_activate
Player(userid).database_update()
File "../eventscripts/gungame51/core/players/__init__.py", line 893, in __new__
return PlayerManager().__getitem__(userid)
File "../eventscripts/gungame51/core/players/__init__.py", line 816, in __getitem__
' instance for userid "%s".' % userid)
ValueError: Unable to retrieve or create a player instance for userid "2".
# ================================================

Are we waiting for an eventscripts update?
If so, where do I go to get it?

Thanks in advance for any help! :)

SK
Serialkiller

Private
Private
 
Posts: 40
Joined: Tue Apr 07, 2009 7:51 pm
Steam Friends Name: serial1.killer

Postby satoon101 » Sat Aug 25, 2012 1:37 am

I updated SPE, so if you are crashing, that should fix it up for you:
viewtopic.php?p=11227#p11227

Satoon
satoon101

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

Postby Serialkiller » Sat Aug 25, 2012 1:59 am

Still getting these errors with spe update! :(



# ================================================
# >> GunGame 5.1 Exception Caught!
# ================================================
Traceback (most recent call last):
File "../eventscripts/es.py", line 272, in triggerEvent
self.EventListeners[eventname][listener](event_var)
File "../eventscripts/gungame51/gungame51.py", line 635, in player_team
Player(int(event_var['userid'])).playsound('welcome')
File "../eventscripts/gungame51/core/players/__init__.py", line 893, in __new__
return PlayerManager().__getitem__(userid)
File "../eventscripts/gungame51/core/players/__init__.py", line 816, in __getitem__
' instance for userid "%s".' % userid)
ValueError: Unable to retrieve or create a player instance for userid "2".
# ================================================




# ================================================
# >> GunGame 5.1 Exception Caught!
# ================================================
Traceback (most recent call last):
File "../eventscripts/es.py", line 272, in triggerEvent
self.EventListeners[eventname][listener](event_var)
File "../eventscripts/gungame51/gungame51.py", line 484, in player_spawn
if getPlayer(userid).isdead:
File "../eventscripts/_libs/python/playerlib.py", line 1310, in getPlayer
raise e
UseridError: '2' is an invalid userid
# ================================================




# ================================================
# >> GunGame 5.1 Exception Caught!
# ================================================
Traceback (most recent call last):
File "../eventscripts/es.py", line 272, in triggerEvent
self.EventListeners[eventname][listener](event_var)
File "../eventscripts/gungame51/gungame51.py", line 484, in player_spawn
if getPlayer(userid).isdead:
File "../eventscripts/_libs/python/playerlib.py", line 1310, in getPlayer
raise e
UseridError: '2' is an invalid userid
# ================================================




# ================================================
# >> GunGame 5.1 Exception Caught!
# ================================================
Traceback (most recent call last):
File "../eventscripts/es.py", line 272, in triggerEvent
self.EventListeners[eventname][listener](event_var)
File "../eventscripts/gungame51/gungame51.py", line 751, in player_activate
Player(userid).database_update()
File "../eventscripts/gungame51/core/players/__init__.py", line 893, in __new__
return PlayerManager().__getitem__(userid)
File "../eventscripts/gungame51/core/players/__init__.py", line 816, in __getitem__
' instance for userid "%s".' % userid)
ValueError: Unable to retrieve or create a player instance for userid "2".
# ================================================
Serialkiller

Private
Private
 
Posts: 40
Joined: Tue Apr 07, 2009 7:51 pm
Steam Friends Name: serial1.killer

Postby Serialkiller » Sat Aug 25, 2012 2:01 am

Server crashes as well, before coming online.
Serialkiller

Private
Private
 
Posts: 40
Joined: Tue Apr 07, 2009 7:51 pm
Steam Friends Name: serial1.killer

Postby satoon101 » Sat Aug 25, 2012 2:09 am

Those errors won't cause crashing. Did you ever install the Unofficial patch for EventScripts?
http://forums.eventscripts.com/viewtopi ... 28&t=45806

That fixes crashing in regards to sounds being played on the server.

Also, how do you load GunGame? In your server.cfg? In your autoexec.cfg? Where at, exactly, in which of those files (top/bottom or somewhere in the middle)? Do you use es_delayed to load it, or just es_load?

Satoon
satoon101

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

Postby Serialkiller » Sat Aug 25, 2012 2:19 am

Server runs without gg5.1
Seems to be a problem with gameme as well, could that be an eventscripts issue?
Running mani and that has updated with no issues!

SK
Serialkiller

Private
Private
 
Posts: 40
Joined: Tue Apr 07, 2009 7:51 pm
Steam Friends Name: serial1.killer

Postby Serialkiller » Sat Aug 25, 2012 2:20 am

es_load in autoexec
Did add the unofficial patch.

SK
Serialkiller

Private
Private
 
Posts: 40
Joined: Tue Apr 07, 2009 7:51 pm
Steam Friends Name: serial1.killer

Postby satoon101 » Sat Aug 25, 2012 2:22 am

Could you answer my questions?:
satoon101 wrote:how do you load GunGame? In your server.cfg? In your autoexec.cfg? Where at, exactly, in which of those files (top/bottom or somewhere in the middle)? Do you use es_delayed to load it, or just es_load?
Knowing this will help. Also, once your server has started, without GunGame loaded, try loading it manually and see if it crashes. Does the crashing happen when a player joins the game? Do you have bots that spawn when the server starts?

Satoon
satoon101

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

Postby Serialkiller » Sat Aug 25, 2012 2:35 am

UPDATE:
re-doing the es patch, may have become corrupted cos the sizes are different!


Thanks for all your help satoon!
Seems one of my "helpers" updated it on the hosts website and it got overwritten.

gg now loads, still getting these error messages though:



# ================================================
# >> GunGame 5.1 Exception Caught!
# ================================================
Traceback (most recent call last):
File "../eventscripts/es.py", line 272, in triggerEvent
self.EventListeners[eventname][listener](event_var)
File "../eventscripts/gungame51/gungame51.py", line 635, in player_team
Player(int(event_var['userid'])).playsound('welcome')
File "../eventscripts/gungame51/core/players/__init__.py", line 893, in __new__
return PlayerManager().__getitem__(userid)
File "../eventscripts/gungame51/core/players/__init__.py", line 816, in __getitem__
' instance for userid "%s".' % userid)
ValueError: Unable to retrieve or create a player instance for userid "2".
# ================================================




# ================================================
# >> GunGame 5.1 Exception Caught!
# ================================================
Traceback (most recent call last):
File "../eventscripts/es.py", line 272, in triggerEvent
self.EventListeners[eventname][listener](event_var)
File "../eventscripts/gungame51/gungame51.py", line 484, in player_spawn
if getPlayer(userid).isdead:
File "../eventscripts/_libs/python/playerlib.py", line 1310, in getPlayer
raise e
UseridError: '2' is an invalid userid
# ================================================




# ================================================
# >> GunGame 5.1 Exception Caught!
# ================================================
Traceback (most recent call last):
File "../eventscripts/es.py", line 272, in triggerEvent
self.EventListeners[eventname][listener](event_var)
File "../eventscripts/gungame51/gungame51.py", line 484, in player_spawn
if getPlayer(userid).isdead:
File "../eventscripts/_libs/python/playerlib.py", line 1310, in getPlayer
raise e
UseridError: '2' is an invalid userid
# ================================================




# ================================================
# >> GunGame 5.1 Exception Caught!
# ================================================
Traceback (most recent call last):
File "../eventscripts/es.py", line 272, in triggerEvent
self.EventListeners[eventname][listener](event_var)
File "../eventscripts/gungame51/gungame51.py", line 751, in player_activate
Player(userid).database_update()
File "../eventscripts/gungame51/core/players/__init__.py", line 893, in __new__
return PlayerManager().__getitem__(userid)
File "../eventscripts/gungame51/core/players/__init__.py", line 816, in __getitem__
' instance for userid "%s".' % userid)
ValueError: Unable to retrieve or create a player instance for userid "2".
# ================================================
Serialkiller

Private
Private
 
Posts: 40
Joined: Tue Apr 07, 2009 7:51 pm
Steam Friends Name: serial1.killer

Postby Serialkiller » Sat Aug 25, 2012 2:38 am

my autoexec is this:


sv_allow_wait_command 1 // Required for EventScripts for the time being

stuffcmds // This is the line that fixes the IP issue & other strange issues

es_load gungame51

***************************************************
gungame is now loaded and running,.............. just the weird error messages are a puzzle?

SK
Serialkiller

Private
Private
 
Posts: 40
Joined: Tue Apr 07, 2009 7:51 pm
Steam Friends Name: serial1.killer

Postby satoon101 » Sat Aug 25, 2012 2:52 am

I am fairly certain you have bots being added and removed from your server in the first game frame. This causes player_spawn to be fired for the userid "2" (the first userid given on a server). Since the bot is removed immediately, GunGame has issues creating the instance for it, since the userid no longer exists. I always advise people to not use bot_add, bot_add_t, or bot_add_ct on their server, and simply set the bot_quota_mode, bot_join_after_player, and bot_quota values instead, as this issue will be avoided doing so.

Satoon
satoon101

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

Postby Serialkiller » Sat Aug 25, 2012 3:06 am

OK, will take a look at that!
Thanks for all your help Satoon!
Really appreciated!

SK
Serialkiller

Private
Private
 
Posts: 40
Joined: Tue Apr 07, 2009 7:51 pm
Steam Friends Name: serial1.killer



Return to General Discussion

Who is online

Users browsing this forum: No registered users and 16 guests

cron