• 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.
Does it have Cyprus as a target on the relevant switch file or general AI file?
 
I thought you were the one editing the AI files... Why post a 'bug' you can fix yourself :blink:
 
Code:
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 } 
			}

This is a quote from the ai in the savefile from the start of Barbarossa. Cyprus(444) has a priority. So the problem is more complicated than expected. The staging province 523 is Tarento. It appears to be more a problem of distance or general reluctance.
 
1) max_staging_distance is not explained in ai_file_doc.txt According to DD 1.1 patch notes it's
New ai file parameter max_staging_distance, controls the maximum distance from a staging province the ai can do invasions.
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.

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

The distance is a bit above 1000km. I increased the value to 15, those 1500 km should suffice. But it did not help, at least not yet.
 
As lower 'base' value makes specific targets more important for invasion AI, maybe you should try to decrease it (if the value can go below 0.1)? Or maybe decrease 'random' value as well? It should increase Cyprus's probabilities to become a target.

By the way, TRP mod has set max_distance and max_staging_distance values in ITA_1936.ai to 60.0 and 25.0 (although for Cyprus current lower values should do, but just a note).
 
What happens when one runs a test where Cyprus is the only specified invasion target for Italy (all other deleted or commented out)?

PS. Is Cyprus well defended/fortified? Maybe AI calculates that it doesn't pay to attack?
 
Question is, what counts more. Distance from capital or from staging prov, especially if target is only in range from staging prov.
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.
 
Hi,

My understanding of these commands is as follows:

max_distance is the distance from the nearest controlled province [correction, see below: nearest friendly naval base ]
max_staging_distance is the distance from the nearest staging_province as definde in the invasion = { } setting

Thus, max_staging should always be larger than max_distance.

Paradox has stated that 1 distance unit is 100 km. Whatever the code does, it is definitely not so. The only way I have identified is to keep trying different values.

I can give you one value:
In CORE I use 20 for the German Norway invasion, after a lot of testing. This is very easy to test, because the invasion always goes from Rostock or thereabout to Central/Northern Norway.
20 is enough to reach Trondheim, but too little to reach Narvik. The actual distance is 1500 km to Narvik.

Hope this helps.

Edit: Obviously, Cyprus must be on a province list of the invasion ai. To make it completely clear, put it on the garrison ai, too. Check for settings like evac_islands = yes/no ...
 
Last edited:
Hi,

Most of what I know about max_distance comes from lengthy discussions with Radu while he was active on 1.07. Here are some posts from our discussions on Terranova:

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.

This is from a guy who worked on the code, so I guess it´s pretty definite.