# Vandal UHV2 control 9 ports in 550AD
if iGameTurn == getTurnForYear(550):
PortList = []
apCityList = PyPlayer(iVandals).getCityList()
for pCity in apCityList:
if pCity.GetCy().isCoastal(gc.getMIN_WATER_SIZE_FOR_OCEAN()):
PortList.append(pCity)
if len (PortList) >= 9:
sd.setGoal(iVandals, 2, 1)
else:
sd.setGoal(iVandals, 2, 0)
int CvCity::getReligionCount() const
{
int iCount;
int iI;
iCount = 0;
for (iI = 0; iI < GC.getNumReligionInfos(); iI++)
{
if (isHasReligion((ReligionTypes)iI))
{
iCount++;
}
}
return iCount;
}
I have access to the source code now and isHasReligion(con.iOrthodoxy) is indeed correct.
What exactly doesn't work? Do you get error messages?
If I remember correctly, it's the elevation of the tile.
Peak = 0
Hill = 1
Plains = 2
Water = 3
for x in range(124):
for y in range(68):
plot = gc.getMap().plot(x, y)
if plot.isWater(): continue
for iPlayer in range(con.iNumPlayers):
if utils.isPlotInArea((x, y), con.tCoreAreasTL[0][iPlayer], con.tCoreAreasBR[0][iPlayer], con.tExceptions[0][iPlayer]):
plot.setCore(iPlayer, False, True)
if utils.isPlotInArea((x, y), con.tCoreAreasTL[1][iPlayer], con.tCoreAreasBR[1][iPlayer], con.tExceptions[1][iPlayer]):
plot.setCore(iPlayer, True, True)
return 0
load_module BugEventManager
load_module InputUtil
01:47:48 DEBUG: BugUtil - extending BugEventManager.preGameStart instead CvAppInterface
01:47:48 DEBUG: BugEventManager - adding event 'PreGameStart'
01:47:48 DEBUG: BugEventManager - adding event 'BeginActivePlayerTurn'
01:47:48 DEBUG: BugEventManager - adding event 'SwitchHotSeatPlayer'
01:47:48 DEBUG: BugEventManager - adding event 'LanguageChanged'
01:47:48 DEBUG: BugEventManager - adding event 'ResolutionChanged'
01:47:48 DEBUG: BugEventManager - adding event 'PythonReloaded'
01:47:48 DEBUG: BugEventManager - adding event 'unitUpgraded'
01:47:48 DEBUG: BugEventManager - adding event 'unitCaptured'
01:47:48 DEBUG: BugEventManager - adding event 'combatWithdrawal'
01:47:48 DEBUG: BugEventManager - adding event 'combatRetreat'
01:47:48 DEBUG: BugEventManager - adding event 'combatLogCollateral'
01:47:48 DEBUG: BugEventManager - adding event 'combatLogFlanking'
01:47:48 DEBUG: BugEventManager - adding event 'playerRevolution'
01:47:48 DEBUG: BugInit - game not fully initialized
PY:OnInit
either an integer or a constant, if you have constants defined for feature types, followed by a 0. follow the order of feature types in the xml, calling the first one 0. I guess setting the feature type to -1 just removes any feature thats there. the 2nd integer is for the feature variety, as in the 3 types of forest.
Thanks!
Where is coded initial stack of a spawning civ?
RiseAndFall.py, at "def createStartingUnits"