Defense - Remove/slow countdown

Putchuco

Addictionado
Joined
Jul 31, 2006
Messages
248
Defense was one of the last Mods I tried now in BtS, and I kind of like it, except for the countdown. If I wanted to play a hectic 'tactic' shooter I would buy one... Like in many of the other Mod in BtS Firaxis certainly has enriched the Civ4 world with many new features, most probably aimed at giving the Mod community new tools. But for playing the Defense Mod itself and still have fun, I'd prefer it without countdown.

Anyone tried disabling or modifying the countdown?
I would assume it can easily be upped to 5min per turn or something, where would I need to look?
 
i thought that when you put something down the countdown restarted, im not on my CIv comp so i cant check
 
you can pause the game between each your moves with the pause button
 
In order to make it so the turn timer never stops your turn change the following code. It is located in \Program Files\Firaxis Games\Sid Meier's Civilization 4\Beyond the Sword\Mods\Defense\Assets\Python\Screens\CvMainInterface.py. It is about line 750 of the file you can search for "here it ends".


Code:
		if Defense.bIsInAdvancedStart == 0 and Defense.bTurnTimerOff == 0:
			if 1 == 2: #Defense.iTurnTimer >= Defense.iTurnTimerTrigger:
				# here it ends the Turn
				CyMessageControl( ).sendTurnComplete( )
				Defense.iTurnTimer	= 0
				Defense.bTurnTimerOff = 1
				self.doHideTurnTimer()
				self.doHideEnemyCounter()
			else:
				if not self.isInCombat() and not CyGame().isPaused():
					Defense.iTurnTimer	+= 1
					self.doShowTurnTimer( Defense.iTurnTimer, Defense.iTurnTimerTrigger )
					self.doShowEnemyCounter( Defense.iTotalMobs, Defense.iMobsKilled )
		return 0

I changed the second line to say if 1==2 : #Defense.iTurnTimer >= Defense.iTurnTimerTrigger:

What that did was comment out the check for ending the turn and set a condition up that will never occur
 
In order to make it so the turn timer never stops your turn change the following code. It is located in \Program Files\Firaxis Games\Sid Meier's Civilization 4\Beyond the Sword\Mods\Defense\Assets\Python\Screens\CvMainInterface.py. It is about line 750 of the file you can search for "here it ends".


Code:
		if Defense.bIsInAdvancedStart == 0 and Defense.bTurnTimerOff == 0:
			if 1 == 2: #Defense.iTurnTimer >= Defense.iTurnTimerTrigger:
				# here it ends the Turn
				CyMessageControl( ).sendTurnComplete( )
				Defense.iTurnTimer	= 0
				Defense.bTurnTimerOff = 1
				self.doHideTurnTimer()
				self.doHideEnemyCounter()
			else:
				if not self.isInCombat() and not CyGame().isPaused():
					Defense.iTurnTimer	+= 1
					self.doShowTurnTimer( Defense.iTurnTimer, Defense.iTurnTimerTrigger )
					self.doShowEnemyCounter( Defense.iTotalMobs, Defense.iMobsKilled )
		return 0

I changed the second line to say if 1==2 : #Defense.iTurnTimer >= Defense.iTurnTimerTrigger:

What that did was comment out the check for ending the turn and set a condition up that will never occur

Super! Thx much for the effort, I cannot wait to get back home and try that!!
This would make Defense playable for me again.
 
Back
Top Bottom