RogerBacon
King
- Joined
- Nov 16, 2003
- Messages
- 649
This is a small addition to the CulturalInfluence mod. It crashes when I try to set the occupation timer but it works fine if that is removed.
The error is at objTradeCity.changeOccupationTimer(iRevoltTimeRoll)
RuntimeError: unidentifiable C++ exception
ERR: Python function onEvent failed, module CvEventInterface
Any ideas?
Roger Bacon
The error is at objTradeCity.changeOccupationTimer(iRevoltTimeRoll)
RuntimeError: unidentifiable C++ exception
ERR: Python function onEvent failed, module CvEventInterface
Code:
if (iCultureAttackRoll > iCultureDefenceRoll):
# We have subverted their city
objTradeCity.plot().setOwner(objCity.getOwner())
iRevoltTimeRoll = gc.getGame().getMapRand().get(3,"Revolt Time Roll")
iRevoltTimeRoll += 4
if (not (objCity == None or objTradeCity.isNone())):
objTradeCity.changeOccupationTimer(iRevoltTimeRoll)
else:
CvUtil.pyPrint("objTradeCity is none")
Any ideas?
Roger Bacon