After some analyzing of the savegame files, i found the following variables in the savegame:
Auto-Trade variables:
Expenses
Autoslider Settings
Starting Slider Settings
All of these variables have to be set in the .inc files, in the "country = {" section, e.g:
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.
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
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
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 }
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.