platyping
Sleeping Dragon
Hmm i replaced the original river.nif with this new _river.nif but it gives me this error though.
Any idea what else I need to change?
Any idea what else I need to change?
Post 1604 in my ttt: ma threadlike what lol?
self.PIXEL_INCREMENT = 7
self.BOX_INCREMENT_WIDTH = 48 # Used to be 33 #Should be a multiple of 3...
self.BOX_INCREMENT_HEIGHT = 9 #Should be a multiple of 3...
self.BOX_INCREMENT_Y_SPACING = 6 #Should be a multiple of 3...
self.BOX_INCREMENT_X_SPACING = 9 #Should be a multiple of 3...
def onBeginGameTurn(self, argsList):
'Called at the beginning of the end of each turn'
iGameTurn = argsList[0]
pPlayer = gc.getPlayer(iPlayer)
cPlayer = gc.getPlayer(iPlayer)
pCity = gc.getCity()
##start war
if CyMap().getMapScriptName () =="1914.CivBeyondSwordWBSave":
if iGameTurn == 5:
if pPlayer.getCivilizationType() == gc.getInfoTypeForString("CIVILIZATION_RUSSIA"):
iTeam = pPlayer.getTeam()
pTeam = gc.getTeam(iTeam)
if cPlayer.getCivilizationType()== gc.getInfoTypeForString("CIVILIZATION_INDIA"):
zTeam = cPlayer.getTeam()
xTeam = gc.getTeam(zTeam)
pTeam.declareWar(xTeam, true, -1)
##end war
##start peace
if CyMap().getMapScriptName () =="1914.CivBeyondSwordWBSave":
if iGameTurn == 10:
if pPlayer.getCivilizationType() == gc.getInfoTypeForString("CIVILIZATION_RUSSIA"):
if cPlayer.getCivilizationType()== gc.getInfoTypeForString("CIVILIZATION_INDIA"):
pPlayer.forcePeace(Cplayer)
##End Peace
def cannotConstruct(self,argsList):
pCity = argsList[0]
eBuilding = argsList[1]
bContinue = argsList[2]
bTestVisible = argsList[3]
bIgnoreCost = argsList[4]
## Swords of Qadisiyah Start ##
if eBuilding == gc.getInfoTypeForString("BUILDING_SWORDS_OF_QADISIYAH"):
if CyGame().getProjectCreatedCount(gc.getInfoTypeForString("PROJECT_MANHATTAN_PROJECT")) == 0:
return True
## Swords of Qadisiyah End ##
<Define>
<DefineName>USE_CANNOT_CONSTRUCT_CALLBACK</DefineName>
<iDefineIntVal>1</iDefineIntVal>
</Define>
Dacubz:
when making variables those lowercase letters are meant to represent their type.
c doesn't mean anything to a python programmer
iVar = a whole number Var
sVar = string Var
bVar = a Var with value True False
eVar = a Var which represents indexes in civ4
pVar = a pointer to a class
fVar = a floating (decimal) Var
so instead of z and x teams use more descript variables
iAttackingTeam
pAttackingTeam
iDefendingTeam
pDefendingTeam
these are not nessicary but it helps to keep code understandable