I got a little Prob, and i dont know whats the reason for this error message.
Here is the basic code, pretty simple:
I played around a bit, and i get this message with all boolean cycity commands i tested.
I also turned pCity from a cycity into a pycity. Didn't help, same error.
Any Ideas what could be going wrong?
Here is the basic code, pretty simple:
Code:
def cannotConstruct(self,argsList):
pCity = argsList[0]
eBuilding = argsList[1]
bContinue = argsList[2]
bTestVisible = argsList[3]
bIgnoreCost = argsList[4]
if pCity.getOwner() == CyGame().getActivePlayer():
if eBuilding == gc.getInfoTypeForString('BUILDING_BARRACKS'):
if pCity.hasBuilding(gc.getInfoTypeForString("BUILDING_OBELISK")):
return True
return False
I played around a bit, and i get this message with all boolean cycity commands i tested.
I also turned pCity from a cycity into a pycity. Didn't help, same error.
Any Ideas what could be going wrong?