Even in 1952 AI Italy has still not invaded Cyyprus. This allows the USA to deliver a A-bombs to Sofia, South Italy, South Hungary etc..
Upvote
0
invasion = {
base = 0.1000
random = 8.0000
coastal = 0.1000
beach = 0.1000
distance = 0.1000
max_distance = 20.0000
max_staging_distance = 10.0000
pocket = 20.0000
island = 0.1000
enemy = 2.0000
adjacentenemy = 2.0000
air_base = 1.5000
naval_base = 0.1000
air_support = 3.0000
ignore = no
invasion = yes
help_allies = yes
redirect = priority
staging_province = { 523 }
target = { 390 = 400 534 = 400 31 = 400 444 = 300 396 = 300 388 = 200 384 = 200 400 = 100 393 = 50 394 = 50 916 = 220 919 = 220 924 = 220 932 = 220 933 = 220 900 = 200 901 = 200 906 = 200 909 = 200 910 = 200 404 = 100 406 = 100 1793 = 100 1794 = 100 1798 = 100 1799 = 100 1800 = 100 1801 = 100 1862 = 100 }
}
In CORE we use the text "How far should the staging area be from the target invasion point" and in many (offensive?) AI files it's value is double than max_distance. Tegethoff tested with a lot of value combination to get the Ai perform desired landing operation, he should know more about this.New ai file parameter max_staging_distance, controls the maximum distance from a staging province the ai can do invasions.
2) The value of 10 may be too low from Taranto to reach Cyprus so the AI does what it's instructed to do - do not start landings exceeding 1000km from staging area.
Both count - if the distance from capital is exceeded, it will not be invaded, and if the distance from the staging province is exceeded, it will not be invaded. If no staging province is specified, the ai selects a suitable province in range as staging province.Question is, what counts more. Distance from capital or from staging prov, especially if target is only in range from staging prov.
I disagree with you on this - when i modded the JAP invasion AI (see this thread), the max_distance was set to 40. Indonesia is (on the E3 map) about 4200km away from Tokyo. When i set max_distance to 45, JAP invaded Indonesia.max_distance is the distance from the nearest controlled province
Paradox has stated that 1 distance unit is 100 km. Whatever the code does, it is definitely not so.
Regarding the distances issue you posted a while back. The scale is 1 = 100km, but there is another factor that can reduce it to 1 to 5.
distance = 20.0 #higher = avoid long distance.
I can't give internal details of the code but "distance" lowers the desirability of an invasion depending on the distance. At high enough values like 20 it can act as a veritable "barrier" against invasions. A superfluous one given the tools at hand,but there you have it.
For CORE I'd recommend removing this factor ( distance = 0 ) and play with max_distance and max_staging_distance.
Ok,here is how it works.
The distances have a scale of 1.0 = 100km.
The code itself limits the range,albeit in a crude way. Invasion ranges are limited to the longest range of buildable transport models. Yes,this does mean the AI can still launch far away invasions with converted coastal trading ships unfortunately. That's the nature of the code. This limit trumps both limits below.
"max_distance" is indeed the remnant from the unlimited range days. What this means is that no invasion will be launched against a province further than the distance from the nearest friendly naval base.
"max_staging_distance" is the same kind of limit but for distances between the nearest staging province ( as opposed to the nearest naval base ) and the targeted province.