Help with RiseAnd Fall.py

jdb3e

Chieftain
Joined
Jan 12, 2008
Messages
14
I have Python Exceptions on and when the game is loading I get an attribute error. The message says 'Nonetype" object has no attribute 'GetTeam' It says that the error occurs on line 148.

When I check line 148, I see this: teamBarbarian = gc.getTeam(pBarbarian.getTeam())

Is there anything wrong with that? I looks the same as the ones above it except it says Barbarian instead of Egypt or what have you. Any help would be appreciated. I apologize in advance if this should be posted elsewhere.
 
have you made any changes anywhere?

the error could be caused by there not being enough team slots defined in the WBS. (yes the barbs are a team)

the civs lists in the WBS, in Conts.py and in Civilizations.xml must all match
 
I did add a civ in there. I will check the WBs. I thought I added all the needed stuff but I guess not. Thanks for the advice.
 
That's what I have been using but I will definitely go through it again because I obviously missed something. Haha Thank you.
 
Okay, I've checked everything that was listed in the document and I still get the error. I know that I have to be missing something.
 
Problem solved. I had some indention mistakes. Thank you to all who helped.
 
Top Bottom