John Johnson
Non-League
- 20 August 2019
I have an instance of fiveserver running on linux. 1v1 games are fine but 2v2 games will regularly cause the server to disconnect at the point of selecting sides.
The server log reads:
File "/fiveserver/lib/fiveserver/model/lobby.py", line 378, in getHomeOrAway
if (usr.profile.id == self.away_captain.id or
exceptions.AttributeError: 'NoneType' object has no attribute 'id'
which points to this class in lobby.py:
class TeamSelection:
def __init__(self):
self.participants = dict()
self.home_team_id = None
self.away_team_id = None
self.home_captain = None
self.away_captain = None
# pes6 only: for 2v2, 2v1 or 3v1 matches
self.home_more_players = []
self.away_more_players = []
def getHomeOrAway(self, usr):
if (usr.profile.id == self.home_captain.id or
any(prof for prof in self.home_more_players
if prof.id == usr.profile.id)):
return 0x00
if (usr.profile.id == self.away_captain.id or
any(prof for prof in self.away_more_players
if prof.id == usr.profile.id)):
return 0x01
return 0xff
Has anyone else experienced this issue? Does anyone know how to resolve it?
The server log reads:
File "/fiveserver/lib/fiveserver/model/lobby.py", line 378, in getHomeOrAway
if (usr.profile.id == self.away_captain.id or
exceptions.AttributeError: 'NoneType' object has no attribute 'id'
which points to this class in lobby.py:
class TeamSelection:
def __init__(self):
self.participants = dict()
self.home_team_id = None
self.away_team_id = None
self.home_captain = None
self.away_captain = None
# pes6 only: for 2v2, 2v1 or 3v1 matches
self.home_more_players = []
self.away_more_players = []
def getHomeOrAway(self, usr):
if (usr.profile.id == self.home_captain.id or
any(prof for prof in self.home_more_players
if prof.id == usr.profile.id)):
return 0x00
if (usr.profile.id == self.away_captain.id or
any(prof for prof in self.away_more_players
if prof.id == usr.profile.id)):
return 0x01
return 0xff
Has anyone else experienced this issue? Does anyone know how to resolve it?