Page 1 of 1

problems since update 24/08/12

PostPosted: Fri Aug 24, 2012 11:28 pm
by Serialkiller
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

PostPosted: Sat Aug 25, 2012 1:37 am
by satoon101
I updated SPE, so if you are crashing, that should fix it up for you:
viewtopic.php?p=11227#p11227

Satoon

PostPosted: Sat Aug 25, 2012 1:59 am
by Serialkiller
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".
# ================================================

PostPosted: Sat Aug 25, 2012 2:01 am
by Serialkiller
Server crashes as well, before coming online.

PostPosted: Sat Aug 25, 2012 2:09 am
by satoon101
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

PostPosted: Sat Aug 25, 2012 2:19 am
by Serialkiller
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

PostPosted: Sat Aug 25, 2012 2:20 am
by Serialkiller
es_load in autoexec
Did add the unofficial patch.

SK

PostPosted: Sat Aug 25, 2012 2:22 am
by satoon101
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

PostPosted: Sat Aug 25, 2012 2:35 am
by Serialkiller
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".
# ================================================

PostPosted: Sat Aug 25, 2012 2:38 am
by Serialkiller
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

PostPosted: Sat Aug 25, 2012 2:52 am
by satoon101
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

PostPosted: Sat Aug 25, 2012 3:06 am
by Serialkiller
OK, will take a look at that!
Thanks for all your help Satoon!
Really appreciated!

SK