AI deployment of units issue

Post Reply
User avatar
Lothos
Posts: 1304
Joined: Tue May 23, 2006 8:22 pm

AI deployment of units issue

Post by Lothos »

Running tons of sims and I noticed something on how the AI puts out its units

The AI will only put out reinforcements in areas designated as Industrial centers. The Editor also forces you to do that.

However a human player can deploy in any city and is not limited to Industrial centers.

I also noticed that in the AI production script if you set no destination the AI will deploy units in different industrial center points (not sure how it determines where to put them). However if no industrial point is designated it will put everything in the capital.

I am now in the process of adding more Industrial Centers in Russia to see how the AI handles it and if it helps it distribut its troops better instead of putting them all down in the capital an then having to move them out from their.
User avatar
Hubert Cater
Posts: 6063
Joined: Mon Jul 22, 2013 11:42 am
Contact:

Re: AI deployment of units issue

Post by Hubert Cater »

The way the AI will deploy new purchases should be as the following.


a) if no purchase destination position is set, primary destination will be calculated outwards from the capital and any available industrial centers. After that it will:
- look for GUARD positions to fill
- look for OFFENSIVE/DEFENSIVE positions to fill
- look for BUILD_UP_OFFENSIVE positions to fill

Then it tries to get as close as possible to any of these positions from the full valid purchase position list (same list a human player will be presented with when clicking on New Unit).

What may hinder exact placement is dependent on build options, e.g. is it home builds only etc., and any possible restrictions on placement due to the location and presence or strength of enemy units, e.g. AI unit placement will try and avoid suicide placements.


b) if a purchase destination position is set, primary destination will be calculated outwards from that position.

Similar restrictions as found in a) may apply.



Let me know if this helps,
Hubert
User avatar
Lothos
Posts: 1304
Joined: Tue May 23, 2006 8:22 pm

Re: AI deployment of units issue

Post by Lothos »

Hubert Cater wrote: Fri Sep 16, 2022 5:49 pm The way the AI will deploy new purchases should be as the following.


a) if no purchase destination position is set, primary destination will be calculated outwards from the capital and any available industrial centers. After that it will:
- look for GUARD positions to fill
- look for OFFENSIVE/DEFENSIVE positions to fill
- look for BUILD_UP_OFFENSIVE positions to fill

Then it tries to get as close as possible to any of these positions from the full valid purchase position list (same list a human player will be presented with when clicking on New Unit).

What may hinder exact placement is dependent on build options, e.g. is it home builds only etc., and any possible restrictions on placement due to the location and presence or strength of enemy units, e.g. AI unit placement will try and avoid suicide placements.


b) if a purchase destination position is set, primary destination will be calculated outwards from that position.

Similar restrictions as found in a) may apply.



Let me know if this helps,
Hubert
Thank you

Only issue is that a human player can deploy into any home country city but the AI cannot.
Post Reply

Return to “MODS and Scenarios”