Dancing Hoskuld
Deity
I am getting the following error from CvCultureLinkInterface.py.
message:
Indicated line where error is occurring in red:
As far as I can tell it means that either one or more civs are not defined in the coordinates dictionary or they have not been defined in the enum CivilizationTypes returned by getCivilizationType().
Where is this enum CivilizationTypes defined? I assume both this code and the enum need to be updated whenever a new civ is added to a mod. Something I have never done.
Does anyone know who "owns" this code? I was thinking of putting an error message in there to give a better warning than "KeyError:0" which, I think, means that the index is out of range ie civ is not defined.
message:
Code:
Traceback (most recent call last):
File "CvCultureLinkInterface", line 262, in assignCulturallyLinkedStarts
File "CvCultureLinkInterface", line 277, in __init__
File "CvCultureLinkInterface", line 291, in __initRWCoordinatesList
KeyError: 0
ERR: Python function assignCulturallyLinkedStarts failed, module CvCultureLinkInterface
Indicated line where error is occurring in red:
Code:
def __initRWCoordinatesList(self):
iNumPlayers = game.countCivPlayersEverAlive()
for iPlayer in range(iNumPlayers):
pPlayer = gc.getPlayer(iPlayer)
eCivilization = pPlayer.getCivilizationType()
[COLOR="Red"] pCoordinate = CoordinatesDictionary[eCivilization][/COLOR]
CultureLink.pRWCoordinatesList.append(pCoordinate)
As far as I can tell it means that either one or more civs are not defined in the coordinates dictionary or they have not been defined in the enum CivilizationTypes returned by getCivilizationType().
Where is this enum CivilizationTypes defined? I assume both this code and the enum need to be updated whenever a new civ is added to a mod. Something I have never done.
Does anyone know who "owns" this code? I was thinking of putting an error message in there to give a better warning than "KeyError:0" which, I think, means that the index is out of range ie civ is not defined.