• 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.
Fernando Torres said:
Hi all !
How do you, modders, make for us/uk AI DDay ?
I've tried many changes but i've got a problem with this damn DDay.
So, can you show me changes or advice me for AI to DDay ?

(erf sorry for my bad english :( )


TRP mod ;)
 
nigo said:
What I would like to know is which specific lines on AI folders make that AI invades. example from my mod USA AI's folder :

###################################
# Invasions and Naval
###################################
invasion = {
invasion = yes
base = 0.1 #Relative modifier. (lower = specific targets much more important.)
random = 10.0 #How big a random range. (1.0 = 1%)
coastal = 0.1 #increase to avoid coastal forts more.
beach = 0.1 #higher, avoid worst beaches.
max_distance = 250.0 #About the distance from Japan to Batavia
max_staging_distance = 50 # How far should the staging area be from the target invasion point
distance = 0.1 #higher = avoid long distance.
pocket = 1.0 #prioritise pockets, ie provinces with no adjacent controlled by same.
island = 0.5 #prioritise taking pure islands.
enemy = 1.0 #higher = much more vary of troops in province.
adjacentenemy = 1.0 #higher = much more vary of troops nearby
air_base = 1.5
naval_base = 0.1
air_support = 3.0
redirect = priority
ignore = no
help_allies = yes
staging_province = {

600 # Boston
765 # San Francisco
23 # Plymouth
20
21
939
# 958 # Casablanca
# 600 # Boston
633 # Norfolk
651 # Miami
348
949 # Alger
}


target = {

#England
20 = 800 # Dover
17 = 600 # Norwich
21 = 600 # Portsmouth
23 = 600 # Plymouth
13 = 600 # Sheiffield
28 = 600 # Belfast
22 = 600 # Bristol
14 = 600 # Liverpool
12 = 600 # Blackpool
11 = 600 # Sunderland
10 = 600 # Edinburgh
9 = 600 # Glasgow

525 = 5000 # Palermo
521 = 5000 # Naples
523 = 5000 # Tarento
368 = 5000 # Gênes
378 = 5000 # Venecia

32 = 5000 # Brest
33 = 5000 # Rennes
39 = 5500 # Caen
41 = 5000 # Le Havre
42 = 5000 # Dieppe
18 = 5000 # Calais
43 = 5000 # Dunkerque
90 = 5000 # Kiel
34 = 700 # Lorient
35 = 700 # Nantes
59 = 700 # Cholet
325 = 700 # Bordeaux
326 = 700 # Dax
358 = 5000
362 = 5000
364 = 5000

#Japon metropole
1178 = 5000
1179 = 5000
1181 = 5000
1180 = 5000
1184 = 5000
1185 = 5000
1187 = 5000
1188 = 5000
1184 = 5000
1191 = 5000
1190 = 5000
}
}
admiral = {
min_org = 80 # NEW: Percent of org gained back before the unit can leave port
min_dmg = 90 # NEW: Percent of dmg gained back before the unit can leave port
return_org = 60 # NEW: PERCENT OF ORG LOST BEFORE RETURNING TO PORT applies to all fleets/ships
return_dmg = 70 # NEW: PERCENT OF DMG LOST BEFORE RETURNING TO PORT for repairs applies to all fleets/ships
min_core_attack_fleets = 1 # Minimum amount of attack fleets to defend CORE provinces (default 0)
num_attack_fleets = 4 # ENG/USA default 3, JAP default 2 everyone else is 1

ignore = {
"West Gulf of Mexico"
"East Gulf of Mexico"
"Yucatan Strait"
}

#Which provinces to use as bases..
base = {
683 # Hawaii
1756 # Samoa
765 # San Francisco
633 # Norfolk
651 # Miami
602 # Boston
1613 # Truk
1670 # Rabaul
1337 # Saigon
1353 # Singapore
1628 # Batavia
1737 # Manila
1624 # Guam
939 #Tunis
20 #Portsmouth
107 #Oslo
}
target = {

525 = 100 # Palermo
521 = 100 # Naples
523 = 100 # Tarento
368 = 100 # Gênes
378 = 100 # Venecia

32 = 100 # Brest
33 = 100 # Rennes
39 = 150 # Caen
41 = 100 # Le Havre
42 = 100 # Dieppe
18 = 100 # Calais
43 = 100 # Dunkerque
90 = 100 # Kiel

#Japon metropole
1178 = 100
1179 = 100
1181 = 100
1180 = 100
1184 = 100
1185 = 100
1187 = 100
1184 = 100
1191 = 100
1190 = 100

2349 = 200
2318 = 100
2350 = 200
2351 = 100
2351 = 100
2315 = 100
2316 = 100
2317 = 150
2579 = 200
2532 = 200
1923 = 200
1935 = 150
1920 = 150
1942 = 150
1934 = 100
1932 = 150
1944 = 200
2562 = 200
}
core = {
2348
2347
2346
2535
2534
2533
2531
2530
1922
1936
1937
1938
1943
1931
2564
2563
}
}

like this, the USA AI should invade Europe, right ?
 
Your max_distance is to large, that causes the AI to think to much

You are telling the AI to launch DDay from the USA which it can do but it will take a long time to reinforce the initial invasion. Tell it to invade from a UK province.

Your max_stagging_distance is to high if you want to launch the invasion from the UK and to low from the USA. It is about 150 from the USA to France and it is about 25 from Rostock to Narvik. If you want the AI to invade from the UK set it to 5.

You can look over the TRP AI files for DDay invasion for more information but your main problem are your weights. Also there is a major issue with the garrison AI for the USA which I fixed in TRP which prevents the USA AI from using all of its forces and garrisoning American to much.
 
Lothos said:
Your max_distance is to large, that causes the AI to think to much

You are telling the AI to launch DDay from the USA which it can do but it will take a long time to reinforce the initial invasion. Tell it to invade from a UK province.

Your max_stagging_distance is to high if you want to launch the invasion from the UK and to low from the USA. It is about 150 from the USA to France and it is about 25 from Rostock to Narvik. If you want the AI to invade from the UK set it to 5.

You can look over the TRP AI files for DDay invasion for more information but your main problem are your weights. Also there is a major issue with the garrison AI for the USA which I fixed in TRP which prevents the USA AI from using all of its forces and garrisoning American to much.
Okay, thanks a lot, i'll try how you said ;)
EDIT : in the TRP, the weights are also high :confused: :

(swith AI USA DDay folder)

###################################
# Invasions and Naval
###################################
invasion = {
invasion = yes
base = 1.1 #Relative modifier. (lower = specific targets much more important.)
random = 8.0 #How big a random range. (1.0 = 1%)
coastal = 0.1 #increase to avoid coastal forts more.
beach = 0.1 #higher, avoid worst beaches.
max_distance = 250.0 #About the distance from Japan to Batavia
max_staging_distance = 100 # How far should the staging area be from the target invasion point
distance = 0.1 #higher = avoid long distance.
pocket = 2.0 #prioritise pockets, ie provinces with no adjacent controlled by same.
island = 0.1 #prioritise taking pure islands.
enemy = 1.0 #higher = much more vary of troops in province.
adjacentenemy = 1.0 #higher = much more vary of troops nearby
air_base = 1.5
naval_base = 5.1
air_support = 3.0
redirect = priority
ignore = no
help_allies = no #[yes/no]

staging_province = {
# 958 # Casablanca
# 600 # Boston
633 # Norfolk
651 # Miami
23
348
949 # Alg.
}
 
Last edited:
You did not follow the install instructions for TRP or are looking at the wrong file the invasion parms for USA DDay in TRP are listed below. Please make sure you are using TRP v0.92.1 as well.

invasion = yes
base = 0.1 #Relative modifier. (lower = specific targets much more important.)
random = 5.0 #How big a random range. (1.0 = 1%)
coastal = 0.0 #increase to avoid coastal forts more.
beach = 0.0 #higher, avoid worst beaches.
distance = 0.0 #higher = avoid long distance.
max_distance = 150.0 #About the distance from Washington to Morocco
max_staging_distance = 5.0 # How far should the staging area be from the target invasion point
pocket = 0.0 #prioritise pockets, ie provinces with no adjacent controlled by same.
island = 0.0 #prioritise taking pure islands.
enemy = 0.0 #higher = much more vary of troops in province.
adjacentenemy = 0.0 #higher = much more vary of troops nearby
air_base = 0.0
naval_base = 0.0
air_support = 0.0
redirect = nearest
ignore = no
help_allies = no
 
It takes about 6 months for him to plan it all out. Also the garrison fix for the USA AI has to implemented right from the begining. If you do not then the USA AI keeps tons of divisions stuck defending beaches in the USA.

You are going to have to learn how to grind at it. DOing AI is not easy! It took me about 2 weeks to figure out what was wrong with the USA and in that time I put in over 100 hours easily trying to figure it out. I can share with you my experiences but in the end since it is your mod you are going to have to grind at it till you figure it out.
 
erf :(
The problem is that I don't know what is wrong on the files (i did not tried with my mod, but with TRP). Maybe is it because spain took gibraltar ?
Really, if you can just advice me, it would be great, i'll soon go back to work so those are my last free days for modding and playing. :(
 
Lothos said:
Well if Spain takes Gibraltar then North Africa invasion will not happen. DDay is a seperate story depending if England is still alive.
Spain took Gibraltar but was defeated by uk in africa. So, i think that the switch "invasionitaly" fired, because the whole africa was liberated but they did not land. :(
 
Hmm...will the ai file uploaded here effective without the full mod? I don't have the means to download 50mb+ files right now...blame 56k.

Oh, and on a side note, I've seen DAIm USA invade undefended Rennes with 3 divisions :eek: . Got reaaly excited and left them taking some provinces, and then waited for a full force to hammer their way in...
but it never happened...those three infantry division are all the US can spare for D-Day... :mad: