Dancing Hoskuld
Deity
I usually learn a new language by either building something new or doing maintenance, it has worked for the last 30 years so I have tried to modify RoM to add in two other mods "Great People" and "zEnslavement". Both had good descriptions of what I should do to merge them in.
I did the merge, one at a time. However nothing happend!
So I put what I thought were trace prints in. Even those did not work.
Then I started from scratch with just the trace prints and still nothing happens.
What am I doing wrong?
The code fragment from the where I should put "zEnslavement" follows.
Is there any documentation on the CvUtil class and its pyPrint method?
I did the merge, one at a time. However nothing happend!
So I put what I thought were trace prints in. Even those did not work.
Then I started from scratch with just the trace prints and still nothing happens.
What am I doing wrong?
The code fragment from the where I should put "zEnslavement" follows.
Spoiler :
def onCombatResult(self, argsList):
'Combat Result'
#Start - Trace
CvUtil.pyPrint( 'onCombatResult event in CvEventManager.py happens' )
#End - Trace
pWinner,pLoser = argsList
playerX = PyPlayer(pWinner.getOwner())
unitX = PyInfo.UnitInfo(pWinner.getUnitType())
playerY = PyPlayer(pLoser.getOwner())
unitY = PyInfo.UnitInfo(pLoser.getUnitType())
if (not self.__LOG_COMBAT):
return
if playerX and playerX and unitX and playerY:
CvUtil.pyPrint('Player %d Civilization %s Unit %s has defeated Player %d Civilization %s Unit %s'
%(playerX.getID(), playerX.getCivilizationName(), unitX.getDescription(),
playerY.getID(), playerY.getCivilizationName(), unitY.getDescription()))
'Combat Result'
#Start - Trace
CvUtil.pyPrint( 'onCombatResult event in CvEventManager.py happens' )
#End - Trace
pWinner,pLoser = argsList
playerX = PyPlayer(pWinner.getOwner())
unitX = PyInfo.UnitInfo(pWinner.getUnitType())
playerY = PyPlayer(pLoser.getOwner())
unitY = PyInfo.UnitInfo(pLoser.getUnitType())
if (not self.__LOG_COMBAT):
return
if playerX and playerX and unitX and playerY:
CvUtil.pyPrint('Player %d Civilization %s Unit %s has defeated Player %d Civilization %s Unit %s'
%(playerX.getID(), playerX.getCivilizationName(), unitX.getDescription(),
playerY.getID(), playerY.getCivilizationName(), unitY.getDescription()))
Is there any documentation on the CvUtil class and its pyPrint method?