Thank-you for your attention to this. I did change that line in PythonCallbackDefines.xml to 1. I know this will turn out to be something annoyingly simple but I cannot figure it out.
The code in CvGameUtils.py is:
Code:
def canDeclareWar(self,argsList):
iAttackingTeam, iDefendingTeam = argsList
if CyGame().getGameTurn() <= 221:
return False
else:
return True
The indenting appears exactly the same as in other mods that work.
What I am getting in the log file PythonErr2.log is:
Traceback (most recent call last):
File "<string>", line 1, in ?
File "<string>", line 52, in load_module
File "CvEventInterface", line 17, in ?
File "<string>", line 52, in load_module
File "BugEventManager", line 102, in ?
File "<string>", line 52, in load_module
File "CvEventManager", line 12, in ?
File "<string>", line 52, in load_module
File "CvScreensInterface", line 21, in ?
File "<string>", line 52, in load_module
File "CvDanQuayle", line 8, in ?
File "<string>", line 35, in load_module
File "<string>", line 13, in _get_code
File "CvGameUtils", line 66
SyntaxError: 'return' outside function