• 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.

NiL_FisK|Urd

First Lieutenant
24 Badges
Mar 21, 2012
249
0
  • Arsenal of Democracy
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Federations
  • Stellaris: Lithoids
  • Stellaris: Ancient Relics
  • Stellaris: Megacorp
  • Stellaris: Distant Stars
  • Stellaris: Apocalypse
  • Stellaris: Humanoids Species Pack
  • Age of Wonders III
  • Stellaris - Path to Destruction bundle
  • Stellaris: Leviathans Story Pack
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Stellaris
  • 500k Club
  • Stellaris: Synthetic Dawn
  • Semper Fi
  • Hearts of Iron III Collection
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III
  • For the Motherland
  • Darkest Hour
  • Crusader Kings II
After some analyzing of the savegame files, i found the following variables in the savegame:

Auto-Trade variables:
Code:
blocked_export = { 0 0 0 0 0 0 } # 1 is blocked
blocked_import = { 0 0 0 0 0 0 } # 1 is blocked
FocusImportValue = { 5.0000 0.0000 0.0000 0.0000 0.0000 0.0000 } # Oil / Energy / Metal / Rares / ? Supplies / ? Money
Expenses
Code:
	expense_consumer_need = 0.7500 
	expense_military = 1.0000 
	expense_intelligence = 0.0000 
	expense_research = 1.0000 
	expense_nuclear = 1.0000 
	expense_nuclear_power = 1.0000 
	expense_synthetic = 1.0000 
	expense_synthetic_rares = 1.0000
Autoslider Settings
Code:
	autoslider_advanced_max = { 1.0000 1.0000 1.0000 0.1000 0.0500 1.0000 } # Consumer goods / Production / Supplies / Reinforcements / Upgrades / Repair provinces
	autoslider_advanced_min = { 0.0000 0.0000 0.1000 0.0020 0.0010 0.0020 }
Starting Slider Settings
Code:
	consumer = 0.500
	supply = 0.150
	production = 0.150 
	reinforcement = 0.0100 
	upgrading = 0.150 
	#Province Repair is 1 minus the sum of the others

All of these variables have to be set in the .inc files, in the "country = {" section, e.g:

Code:
country =
{ tag                    = GER
  capital                = 300

  manpower               = 1800 #850

  # Resource Reserves
  energy                 = 1000
  metal                  = 1000
  rare_materials         = 500
  oil                    = 500
  supplies               = 500
  money                  = 70
  
	expense_consumer_need = 1.0000 
	expense_military = 1.0000 
	expense_intelligence = 0.0100 
	expense_research = 1.0000 
	expense_nuclear = 1.0000 
	expense_nuclear_power = 1.0000 
	expense_synthetic = 1.0000 
	expense_synthetic_rares = 1.0000 
  
  	blocked_export = { 1 0 0 1 0 0 } 
  	blocked_import = { 0 0 0 0 0 0 }
	FocusImportValue = { 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 }

	autoslider_advanced_max = { 1.0000 1.0000 1.0000 0.1000 0.0500 1.0000 } 
	autoslider_advanced_min = { 0.0000 0.0000 0.0000 0.100 0.1000 0.1000 }

Note that changing these variables affects human players (who can change them manually), but the ai is stuck with these settings as there are no event commands to change them later.