ruff_hi
Live 4ever! Or die trying
Well - for what it is worth, here are the vanilla and warlords versions. Both of them give me errors that I haven't been able to track down.
The code in question ...
I think the error has something to do with being out of range but that makes no sense to me.
Note: the above warlords version might still have some advancestart code in it. I did remove it and got the same error, not sure if I correctly saved the version with that part removed.
Code:
ERR: Python function showTechChooser failed, module CvScreensInterface
Traceback (most recent call last):
File "CvScreensInterface", line 612, in forceScreenUpdate
File "CvTechChooser", line 644, in updateTechRecords
IndexError
:
list index out of range
The code in question ...
Code:
def updateTechRecords (self, bForce):
# If we are the Pitboss, we don't want to put up an interface at all
if ( CyGame().isPitbossHost() ):
return
# Get the screen
screen = CyGInterfaceScreen( "TechChooser", CvScreenEnums.TECH_CHOOSER )
abChanged = []
bAnyChanged = 0
# Go through all the techs
for i in range(gc.getNumTechInfos()):
abChanged.append(0)
if ( gc.getTeam(gc.getPlayer(self.iCivSelected).getTeam()).isHasTech(i) ):
if ( self.aiCurrentState[i] != CIV_HAS_TECH ):
self.aiCurrentState[i] = CIV_HAS_TECH
abChanged[i] = 1
bAnyChanged = 1
elif ( gc.getPlayer(self.iCivSelected).getCurrentResearch() == i ):
if ( self.aiCurrentState[i] != CIV_IS_RESEARCHING ):
self.aiCurrentState[i] = CIV_IS_RESEARCHING
abChanged[i] = 1
bAnyChanged = 1
I think the error has something to do with being out of range but that makes no sense to me.
Note: the above warlords version might still have some advancestart code in it. I did remove it and got the same error, not sure if I correctly saved the version with that part removed.