Hi everyone,
While playing the Desert War mod, you have to capture 6 cities and hold them for 10 turns. I did this in a multiplayer game, but the counter wouldn't count down. Upon looking at the code, you can find the counter code in CvDesertWar.py, line 1420:
# Event: Victory Timer
# Trigger: Whenever one tema controls all six Objectives
# Effect: Count down to victory
if ( (self.countAlliesObjectives() == 6 or self.countAxisObjectives() == 6) and iPlayer == iBritish ):
iCount = self.getVictoryTimer()
self.setVictoryTimer(iCount - 1)
The thing is, we destroyed the British empire. As a result, the statement was never true and the timer didn't count down. We patched it by changing iBritish into iGermans. I know a better solution is available, but we were getting somewhat frustrated by not getting the victory message. Anyway, it works and the counter will start running after the change.
While playing the Desert War mod, you have to capture 6 cities and hold them for 10 turns. I did this in a multiplayer game, but the counter wouldn't count down. Upon looking at the code, you can find the counter code in CvDesertWar.py, line 1420:
# Event: Victory Timer
# Trigger: Whenever one tema controls all six Objectives
# Effect: Count down to victory
if ( (self.countAlliesObjectives() == 6 or self.countAxisObjectives() == 6) and iPlayer == iBritish ):
iCount = self.getVictoryTimer()
self.setVictoryTimer(iCount - 1)
The thing is, we destroyed the British empire. As a result, the statement was never true and the timer didn't count down. We patched it by changing iBritish into iGermans. I know a better solution is available, but we were getting somewhat frustrated by not getting the victory message. Anyway, it works and the counter will start running after the change.
Comment