If I would like to change the behaviour of AI-run countries, how do I do it?
In this case they are free allies (=not puppets) of my played country. Sometimes they are as small as having only 3-9 IC and some of them try to produce ridiculous stuff. Ideally they would produce garrisons instead of Inf with weird brigades, Fighters they have good tech in instead of INT they have low tech and can't use anyway due to too long distances in that area. Or even try to produce a Navy but using extremely outdated light cruisers instead of subs which they have good tech in and woud be smarter anyway.
I've tried to change the settings in the corresponding files I have found in the /ai folder.
But it either seems not to change anything or I am doing it wrong. Could anybody give me perhaps a few hints?
Specifically...
These are the first lines for India, and to be honest, I don't know what they do and even when I have an idea then I don't know what the given values mean:
switch = no # [yes/no]
max_front_ratio = 1.2
max_garrison_prop = 0.30
min_garrison_prop = 0.20
neutrality = 130.000
war = 0
reinforcement = 0.000
upgrading = 0.2500
strat_redeploy_threshold = 25
exp_force_ratio = 0.50
exp_force_ratios = { }
no_exp_forces_to = { }
Then this... I was trying to make India build factories but nothing seems to happen):
ic_at_war = yes
force_ic_until = 1941
ic_end_year = 1942
IC_provs = {
1459 # Delhi
1447 # Calcutta
1517 # Bombay
1518 # Ahmedabad
1476 # Ranchi
1472 # Jamshedpur
1521 # Baroda
1480 # Bhopal
1515 # Hubli
1498 # Bezawada
}
And the guidelines to produce military...
no idea what the first lines are about, the ones following "divisions" are giving percentages or ratios?
The idea was to make India produce a few Inf, mainly Gar, no air, some HSubs, no brigades for land but 100% FP for naval units.
military = {
relative_build_scheme = no
max_batch_peace = 680
max_batch_war = 320
max_batch_home_front = 180
extra_convoys_war = 0.0500
extra_convoys_peace = 0.0500
#### Divisions etc...
infantry = 15
cavalry = 0
motorized = 0
mechanized = 0
light_armor = 0
armor = 0
paratrooper = 0
marine = 0
bergsjaeger = 0
garrison = 60
hq = 0
militia = 0
# 75 %
interceptor = 0
multi_role = 0
cas = 0
strategic_bomber = 0
tactical_bomber = 0
naval_bomber = 0
transport_plane = 0
flying_bomb = 0
flying_rocket = 0
# 0 %
battleship = 0
carrier = 0
escort_carrier = 0
destroyer = 0
light_cruiser = 0
heavy_cruiser = 0
battlecruiser = 0
submarine = 0
nuclear_submarine = 25
transports = 0
# 25 %
#### Brigades
artillery = 0
sp_artillery = 0
cavalry_brigade = 0
sp_anti_air = 0
medium_armor = 0
tank_destroyer = 0
light_armor_brigade = 0
heavy_armor = 0
super_heavy_armor = 0
armored_car = 0
anti_air = 0
police = 0
engineer = 0
cag = 100.000
escort = 0.0000
naval_asw = 100.0000
naval_anti_air_s = 0.0000
naval_radar_s = 0.0000
naval_fire_controll_s = 0.0000
naval_improved_hull_s = 0.0000
naval_torpedoes_s = 0.0000
naval_anti_air_l = 0.0000
naval_radar_l = 0.0000
naval_fire_controll_l = 0.0000
naval_improved_hull_l = 0.0000
floatplane = 100.0000
}
In this case they are free allies (=not puppets) of my played country. Sometimes they are as small as having only 3-9 IC and some of them try to produce ridiculous stuff. Ideally they would produce garrisons instead of Inf with weird brigades, Fighters they have good tech in instead of INT they have low tech and can't use anyway due to too long distances in that area. Or even try to produce a Navy but using extremely outdated light cruisers instead of subs which they have good tech in and woud be smarter anyway.
I've tried to change the settings in the corresponding files I have found in the /ai folder.
But it either seems not to change anything or I am doing it wrong. Could anybody give me perhaps a few hints?
Specifically...
These are the first lines for India, and to be honest, I don't know what they do and even when I have an idea then I don't know what the given values mean:
switch = no # [yes/no]
max_front_ratio = 1.2
max_garrison_prop = 0.30
min_garrison_prop = 0.20
neutrality = 130.000
war = 0
reinforcement = 0.000
upgrading = 0.2500
strat_redeploy_threshold = 25
exp_force_ratio = 0.50
exp_force_ratios = { }
no_exp_forces_to = { }
Then this... I was trying to make India build factories but nothing seems to happen):
ic_at_war = yes
force_ic_until = 1941
ic_end_year = 1942
IC_provs = {
1459 # Delhi
1447 # Calcutta
1517 # Bombay
1518 # Ahmedabad
1476 # Ranchi
1472 # Jamshedpur
1521 # Baroda
1480 # Bhopal
1515 # Hubli
1498 # Bezawada
}
And the guidelines to produce military...
no idea what the first lines are about, the ones following "divisions" are giving percentages or ratios?
The idea was to make India produce a few Inf, mainly Gar, no air, some HSubs, no brigades for land but 100% FP for naval units.
military = {
relative_build_scheme = no
max_batch_peace = 680
max_batch_war = 320
max_batch_home_front = 180
extra_convoys_war = 0.0500
extra_convoys_peace = 0.0500
#### Divisions etc...
infantry = 15
cavalry = 0
motorized = 0
mechanized = 0
light_armor = 0
armor = 0
paratrooper = 0
marine = 0
bergsjaeger = 0
garrison = 60
hq = 0
militia = 0
# 75 %
interceptor = 0
multi_role = 0
cas = 0
strategic_bomber = 0
tactical_bomber = 0
naval_bomber = 0
transport_plane = 0
flying_bomb = 0
flying_rocket = 0
# 0 %
battleship = 0
carrier = 0
escort_carrier = 0
destroyer = 0
light_cruiser = 0
heavy_cruiser = 0
battlecruiser = 0
submarine = 0
nuclear_submarine = 25
transports = 0
# 25 %
#### Brigades
artillery = 0
sp_artillery = 0
cavalry_brigade = 0
sp_anti_air = 0
medium_armor = 0
tank_destroyer = 0
light_armor_brigade = 0
heavy_armor = 0
super_heavy_armor = 0
armored_car = 0
anti_air = 0
police = 0
engineer = 0
cag = 100.000
escort = 0.0000
naval_asw = 100.0000
naval_anti_air_s = 0.0000
naval_radar_s = 0.0000
naval_fire_controll_s = 0.0000
naval_improved_hull_s = 0.0000
naval_torpedoes_s = 0.0000
naval_anti_air_l = 0.0000
naval_radar_l = 0.0000
naval_fire_controll_l = 0.0000
naval_improved_hull_l = 0.0000
floatplane = 100.0000
}
Last edited: