Code:def doGrowth(self,argsList): pCity = argsList[0] ## Avoid Growth ## sScript = pCity.getScriptData() if len(sScript) == 2: sHappy = sScript[0] sHealth = sScript[1] if sHappy == "1": if pCity.happyLevel() < pCity.unhappyLevel(0): return True if pCity.happyLevel() == pCity.unhappyLevel(0): if pCity.getFoodTurnsLeft() < 2: return True if sHealth == "1": if pCity.goodHealth() < pCity.badHealth(False): return True if pCity.goodHealth() == pCity.badHealth(False): if pCity.getFoodTurnsLeft() < 2: return True ## Avoid Growth ## return False
Isn't that what the code is doing?
just curious, on your new building pedia screen shot the list is on the left, before it was on the right, what's the reason for the shift?
it may be a left handed verses right handed thing. "down with the tyranny of the right handers!"
added function to alternate left/right view
self.iRankDivisor = 3 ## For teams ranked last 1/X portion
self.fBase = 0.50 ## Base Transfer Rate
self.fOpenBorderBoost = 0.50 ## + X if Open Borders
self.fEraBoost = 1.00 ## + X Per Era Advance of Transferee
self.fAttitudeMultiplier = 0.50 ## Furious: 0x, Annoyed: 1x, Cautious: 2x, Pleased: 3x, Friendly: 4x
fBase = self.fBase + (pPlayerX.getCurrentEra() + 1 - iEra) * self.fEraBoost
fBase += self.fOpenBorderBoost * pTeam.isOpenBorders(iTeamX)
fBase *= pPlayerX.AI_getAttitude(iPlayer) * self.fAttitudeMultiplier
fBasePercent += fBase * 100 / gc.getHandicapInfo(pPlayer.getHandicapType()).getResearchPercent()
Sorry, don't worry about it. In RoM:AND Afforess added code that if you wanted the city to grow you needed to return False and if you wanted the city not to grow you need to return True reversing the meaning of the call back. Any mod using your mod wont be using Afforess dll mod so there is no problem.
That one is too troublesome because that requires callback
Load it just like any other mod or any other mod components here.
It may ctd if there are conflicting stuff in custom assets like bug
Try loading something else like pedia or wb standalone.
If they also ctd without reason, your bts may have been modified.
Just you