mrrandomplayer
Hopeless Situation Warrior
I am right now trying to make a modmod for RFC that makes certain civs conditional. I'm a pretty awful programmer and I mostly copy-pasted the DoC conditional spawn coding into the RhyesandFall.py. When I opened it up, I got a bajillion errors, most of them not even in the python file I edited. Could someone please tell me what I did wrong and tell me how to fix it?
From part of the initBirth function:
From part of the initBirth function:
Code:
def initBirth(self, iCurrentTurn, iBirthYear, iCiv):
iHuman = utils.getHumanID()
if (iCurrentTurn == iBirthYear-1 + self.getSpawnDelay(iCiv) + self.getFlipsDelay(iCiv)):
if (iCurrentTurn >= con.tBirth[iVikings]-1 and iCurrentTurn <= con.tBirth[iTurkey]-1):
self.processConstantinople()
if (iCurrentTurn >= con.tBirth[iEngland]-1 and iCurrentTurn <= con.tBirth[iMali]-1):
self.processAfrica()
tCapital = tCapitals[iCiv]
tTopLeft = tCoreAreasTL[iCiv]
tBottomRight = tCoreAreasBR[iCiv]
tBroaderTopLeft = tBroaderAreasTL[iCiv]
tBroaderBottomRight = tBroaderAreasBR[iCiv]
if (self.getFlipsDelay(iCiv) == 0): #city hasn't already been founded
# mrrandomplayer: extra checks for conditional civs
lConditionalCivs = [iSpain, iFrance, iPortugal, iTurkey, iAmerica]
if iCiv in lConditionalCivs and utils.getHumanID() != iCiv:
if iCiv == iSpain;
if iRome in bSpain:
if utils.getStability(iRome) >= 20:
return
else if iCarthage in bSpain:
if utils.getStability(iCarthage) >= 20:
return
if iCiv == iFrance:
if iRome in tFrance:
if utils.getStability(iRome) >= 20:
return
if iCiv == iPortugal:
if not pSpain.isAlive:
return
if iCiv == iTurkey:
if utils.getStability(iArabia) >= 20:
return
if iCiv == iAmerica:
iColonyPlayer = utils.getColonyPlayer(iCiv)
if iColonyPlayer < 0: return
elif iColonyPlayer not in tNCAmerica:
if utils.getStability(iColonyPlayer) >= 20:
return