naf4ever
Dread Lord
This pops up if im in debugmode and start a new game:
It doesnt seem to actually affect gameplay but im thinking it cant be good. The problem seems to stem from when i call up a pyhelpers function in my mod.
The line 46 in my mod it refers to looks like this:
The code for the PyHelpers that is causing problems looks like this:
I of course havent touched pyhelpers.py at all and this code is straight from the default files in civ4 with version 1.61.
Should i be worried about this problem?

It doesnt seem to actually affect gameplay but im thinking it cant be good. The problem seems to stem from when i call up a pyhelpers function in my mod.
The line 46 in my mod it refers to looks like this:
Code:
def onImprovementBuilt(self, argsList):
'Improvement Built'
iImprovement, iX, iY = argsList
quarry = gc.getInfoTypeForString("IMPROVEMENT_QUARRY")
pMap = CyMap()
pPlot = pMap.plot(iX, iY)
pPlayer = pPlot.getOwner()
player = gc.getPlayer(pPlayer)
line 46 unitList = PyPlayer(pPlayer).getUnitList()
The code for the PyHelpers that is causing problems looks like this:
Code:
def getUnitList(self):
' UnitList - All of the players alive units '
lUnit = []
line 256 (loopUnit, iter) = self.player.firstUnit(false)
while( loopUnit ):
if ( not loopUnit.isDead() ): #is the unit alive and valid?
lUnit.append(loopUnit) #add unit instance to list
(loopUnit, iter) = self.player.nextUnit(iter, false)
return lUnit
I of course havent touched pyhelpers.py at all and this code is straight from the default files in civ4 with version 1.61.
Should i be worried about this problem?