Alrik2002
Warlord
Hi,
it´s me again with some errors which occur in a Pitboss game with one human player in a team with an ai againts several ai teams.
Within the game, no python error occurs but at the beginning of a turn, I can´t choose any action with the unit which is chosen. I can´t even end the turn. When I open the log PythonErr on the Pitboss afterwards. I´ve several failures. No failures in the logs of the computer I use for plaing.
The 1st:
Error:
Line 151 in AIAutoPlay (in red):
Could please someone help me to understand what is checked there and what goes wrong, so I can try to fix it. Thank you.
it´s me again with some errors which occur in a Pitboss game with one human player in a team with an ai againts several ai teams.
Within the game, no python error occurs but at the beginning of a turn, I can´t choose any action with the unit which is chosen. I can´t even end the turn. When I open the log PythonErr on the Pitboss afterwards. I´ve several failures. No failures in the logs of the computer I use for plaing.
The 1st:
Error:
Code:
Traceback (most recent call last):
File "BugEventManager", line 362, in _handleDefaultEvent
File "AIAutoPlay", line 151, in onBeginPlayerTurn
AttributeError: 'NoneType' object has no attribute 'isAlive'
Line 151 in AIAutoPlay (in red):
Code:
def onBeginPlayerTurn( self, argsList ) :
iGameTurn, iPlayer = argsList
if( game.getAIAutoPlay() == 1 and iPlayer > game.getActivePlayer() and gc.getActivePlayer().isAlive() ) :
# Forces isHuman checks to come through positive for everything after human players turn
self.checkPlayer()
game.setAIAutoPlay(0)
elif( self.bSaveAllDeaths ) :
[COLOR="Red"]if( game.getAIAutoPlay() == 0 and not gc.getActivePlayer().isAlive() and iPlayer > game.getActivePlayer() ) :[/COLOR]
self.checkPlayer()
game.setAIAutoPlay(0)
Could please someone help me to understand what is checked there and what goes wrong, so I can try to fix it. Thank you.