as i am trying to learn modding,, i tried to add to Holistic Culture Mod
to:
CvCustomEventManager
i added this :
cMap = CyMap()
cG = cyGame()
and this event:
def onRouteBuilt(self, argsList):
iRoute = argsList[0]
iX = argsList[1]
iY = argsList[2]
pPlayer = cG.getActivePlayer()
pPlot = cMap.getPlot(iX,iY)
plotOwner = pPlot.getOwner()
if plotOwner == -1:
pPlot.setOwner(pPlayer)
===
i am trying to let player OWN the unowned tile by building a road on it !!!
nothing happen
Q2: how can i debug python on CIV 4
to:
CvCustomEventManager
i added this :
cMap = CyMap()
cG = cyGame()
and this event:
def onRouteBuilt(self, argsList):
iRoute = argsList[0]
iX = argsList[1]
iY = argsList[2]
pPlayer = cG.getActivePlayer()
pPlot = cMap.getPlot(iX,iY)
plotOwner = pPlot.getOwner()
if plotOwner == -1:
pPlot.setOwner(pPlayer)
===
i am trying to let player OWN the unowned tile by building a road on it !!!
nothing happen
Q2: how can i debug python on CIV 4