• We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.

Nelson007

8banner
35 Badges
Nov 18, 2005
543
5
  • Victoria 3 Sign Up
  • Surviving Mars
  • 500k Club
  • Europa Universalis IV
  • Crusader Kings II: Horse Lords
  • Stellaris: Leviathans Story Pack
  • Victoria 2
  • Cities: Skylines
  • Cities: Skylines Deluxe Edition
  • Pride of Nations
  • Stellaris
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV: Colonel
  • Sengoku
  • Knights of Honor
  • Stellaris: Synthetic Dawn
  • Age of Wonders III
  • Cities: Skylines - Parklife
  • Stellaris: Distant Stars
  • Crusader Kings III Referal
  • Arsenal of Democracy
  • Rome Gold
  • Victoria: Revolutions
  • Europa Universalis III Complete
  • Majesty 2 Collection
  • Iron Cross
  • Europa Universalis III Complete
  • Hearts of Iron III
  • For The Glory
  • Europa Universalis III Complete
  • Deus Vult
  • Darkest Hour
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II
  • Crusader Kings II: The Old Gods
I want to disable air unit auto upgrade from propellerairplane to jet plane,how?
I donot find a clear upgrade tag in tech files or unit files
 

MartinBG

Darkest Hour Developer
2 Badges
Nov 16, 2007
5.634
257
  • Hearts of Iron II: Beta
  • Hearts of Iron IV Sign-up
What game version/mod is that?
In DH Full interceptors and rocket interceptors are 2 different unit types that do not upgrade from one to the another on their own, but only if the player changes default upgrade path for each unit individually.
That can be disabled by removing this line from interceptor.txt:
upgrade = { type = rocket_interceptor upgrade_time_factor = 0.42 upgrade_cost_factor = 1.40 }
You can also remove this line from rocket_interceptor.txt:
upgrade = { type = interceptor upgrade_time_factor = 0.42 upgrade_cost_factor = 1.40 }

In DH Ligth/core there's no distinctive rocket_interceptor unit type, but those are incorporated into the regular interceptor models:

Code:
model = { # Advanced Interceptor - 4
	cost 					= 16
	buildtime	 			= 150
	defaultorganisation 		= 30
	morale					= 30
	manpower				= 1
	maxspeed				= 650
	surfacedetectioncapability	= 6
	airdetectioncapability		= 6
	surfacedefence				= 10
	airdefence				= 9
	airattack				= 15
	strategicattack				= 0
	softattack				= 2
	hardattack				= 2
	navalattack				= 1
	range					= 325
	supplyconsumption 			= 1.1
	fuelconsumption				= 1.9
	upgrade_time_factor = 0.5
	upgrade_cost_factor = 1.0
}
model = { # Basic Rocket Interceptor - 5
	cost 					= 20
	buildtime	 			= 150
	defaultorganisation 		= 30
	morale					= 30
	manpower				= 1
	maxspeed				= 1000
	surfacedetectioncapability		= 5
	airdetectioncapability			= 6
	surfacedefence				= 16
	airdefence				= 13
	airattack				= 18
	strategicattack				= 0
	softattack				= 0
	hardattack				= 0
	navalattack				= 0
	range					= 150
	supplyconsumption 			= 1.3
	fuelconsumption				= 2.2
	upgrade_time_factor = 0.5
	upgrade_cost_factor = 1.0
}
model = { # Improved Rocket Interceptor - 6
	cost 					= 25
	buildtime	 			= 150
	defaultorganisation 		= 30
	morale					= 30
	manpower				= 1
	maxspeed				= 1200
	surfacedetectioncapability		= 7
	airdetectioncapability			= 8
	surfacedefence				= 16
	airdefence				= 15
	airattack				= 20
	strategicattack				= 0
	softattack				= 0
	hardattack				= 0
	navalattack				= 0
	range					= 200
	supplyconsumption 			= 1.5
	fuelconsumption				= 2.5
	upgrade_time_factor = 0.5
	upgrade_cost_factor = 1.0
}
model = { # Basic Turbojet Interceptor - 7
	cost 					= 19
	buildtime	 			= 150
	defaultorganisation 		= 30
	morale					= 30
	manpower				= 1
	maxspeed				= 900
	surfacedetectioncapability		= 7
	airdetectioncapability			= 7
	surfacedefence				= 16
	airdefence				= 16
	airattack				= 22
	strategicattack				= 0
	softattack				= 2
	hardattack				= 2
	navalattack				= 2
	range					= 350
	supplyconsumption 			= 1.2
	fuelconsumption				= 2.1
	upgrade_time_factor = 0.5
	upgrade_cost_factor = 1.0
}

There's no simple way to "disable" those as more editing is involved and errors could be made along the way. Probably the fastest solution would be to edit techs that enable those models and comment-out lines that do so, effectively making those models unavailable for production and upgrade in new games.
secret_weapons_tech.txt:
Code:
  # Basic Rocket Interceptor
  application =
  { id        = 7010
...
    effects =
    { command = { type = new_model which = interceptor value = 5 }#REMOVE THAT LINE
    }
  }
  # Improved Rocket Interceptor
  application =
  { id        = 7020
....
    effects =
    { command = { type = new_model which = interceptor value = 6 } #REMOVE THAT LINE
    }
  }