Help with some error messages needed

Alrik2002

Warlord
Joined
May 24, 2012
Messages
214
Location
Berlin, Germany
Hi,

I´ve an error messages which I can´t erase.
It only shows up at the beginning of the first game I start when I´ve just loaded the game. When I go back to the Main Menu and start a new game, it doesn´t show up again.

It refers to line 4 of the following code
Code:
## Sid Meier's Civilization 4
## Copyright Firaxis Games 2005
##
## Implementaion of miscellaneous game functions

import CvUtil
from CvPythonExtensions import *
import CvEventInterface
import PyHelpers
import Immigration

# for C++ compatibility
false=False
true=True

# globals
gc = CyGlobalContext()
PyPlayer = PyHelpers.PyPlayer
PyInfo = PyHelpers.PyInfo
PyCity = PyHelpers.PyCity
PyGame = PyHelpers.PyGame

class AlriksMultiModGameUtils:
	"Miscellaneous game functions"
	def __init__(self): 
		pass
	
	def isVictoryTest(self):
		if ( gc.getGame().getElapsedGameTurns() > 10 ):
			return True
		else:
			return False

Perhaps someone can give me a hint where the problem could be, since I´m really clueless.:confused:

Thank you very much.
 
A part of the code in the file was commented out incorrect. When I corrected it, the error didn´t show up again. But I´ve no idea why it has referred to line 4 of the code above.
 
Back
Top Bottom