AAI unit building problem (borked profile?)

AAI unit building problem (borked profile?)

Here is where ideas can be collected for the skirmish AI in development

Moderators: hoijui, Moderators

Post Reply
User avatar
FizWizz
Posts: 1998
Joined: 17 Aug 2005, 11:42

AAI unit building problem (borked profile?)

Post by FizWizz »

I've got a problem with AAI, for some reason my AA 1.44-F profile only builds construction units. I have customized the profile some, and I think that that might be the problem, but I've also done similar customization to my XTA PE profile, and it works normally.
This is my profile:

AASpring144F.cfg

Code: Select all

SIDES 2

START_UNITS ARMCOM CORCOM
SIDE_NAMES Arm Core

MAX_UNITS 5000
MAX_SCOUTS 3
MAX_BUILDERS 20
MAX_GROUP_SIZE 16
MIN_EFFICIENCY 0.05
MAX_XROW 10
MAX_YROW 10
X_SPACE 20
Y_SPACE 20
SECTOR_SIZE 100.0
MAX_SECTOR_IMPORTANCE 6
MAX_BASE_SIZE 8

SCOUT_SPEED 120.0
MOBILE_ARTY_RANGE 650.0
STATIONARY_ARTY_RANGE 2000.0
MIN_ENERGY 10
AIR_DEFENCE 8
MAX_BUILDERS_PER_TYPE 4
MAX_METAL_COST 5000

MIN_AIR_ATTACK_COST 200
MAX_AIR_TARGETS 20
AIRCRAFT_RATE 10
MAX_DEFENCES 10
METAL_ENERGY_RATIO 45
AIR_ONLY_MOD 0
MAX_METAL_MAKERS 20
MIN_METAL_MAKER_ENERGY 120
MAX_STORAGE 3
MAX_MEX_DISTANCE 4

SCOUTS 11 CORFAV ARMFAV ARMPEEP CORFINK ARMAWAC CORAWAC ARMFLEA ARMFAST
Here's my XTA profile, for comparison:

XTAPEv4.cfg

Code: Select all

SIDES 2

START_UNITS ARMCOM CORCOM
SIDE_NAMES Arm Core

SCOUTS 4 ARMPEEP CORFINK CORFAV ARMFAV

MAX_UNITS 5000
MAX_SCOUTS 4
MAX_BUILDERS 20
MAX_GROUP_SIZE 12
MIN_EFFICIENCY 0.05
MAX_XROW 12
MAX_YROW 12
X_SPACE 20
Y_SPACE 20
SECTOR_SIZE 100.0

MAX_SECTOR_IMPORTANCE 6
MAX_BASE_SIZE 10
SCOUT_SPEED 95.0
MOBILE_ARTY_RANGE 1000.0
STATIONARY_ARTY_RANGE 3000.0
MIN_ENERGY 18
MAX_BUILDERS_PER_TYPE 2
MAX_METAL_COST 5000

AIR_DEFENCE 10
AIRCRAFT_RATE 10
MIN_AIR_ATTACK_COST 200
MAX_AIR_TARGETS 20

MAX_DEFENCES 15
METAL_ENERGY_RATIO 40
AIR_ONLY_MOD 0
MAX_METAL_MAKERS 20
MIN_METAL_MAKER_ENERGY 100
MAX_STORAGE 1
MAX_MEX_DISTANCE 4
and finally, my general configuration, just in case.

general.cfg

Code: Select all

SCOUT_UPDATE_FREQUENCY 120 
LEARN_RATE 5
LEARN_SPEED 0.4
submarine
AI Developer
Posts: 834
Joined: 31 Jan 2005, 20:04

Post by submarine »

one remark: limiting the max number of onstruction units to 20 while allowing aai not to build more than 4 per type may in worst cause cause aai not to build more than 5 different builders...
submarine
AI Developer
Posts: 834
Joined: 31 Jan 2005, 20:04

Post by submarine »

i copied you config... it built units. however it takes some time because aai will first build scouts and builders an then start building units...
User avatar
FizWizz
Posts: 1998
Joined: 17 Aug 2005, 11:42

Post by FizWizz »

I should have been more patient... it builds attackers, but it only does so after first building 4 of each builder available in each factory (on green comet, this was about the 11 minute mark). If I reduce the max builders (per type), will that help alleviate the problem?

also, if I change the unit type of the amphibious builder, transports, and other undesirable units to "unknown" in BuildTable_AASpring144F.txt, will that keep the AI from building them?
[edit]nevermind, AAI rewrites the buildtable each time I run it, apparently.
submarine
AI Developer
Posts: 834
Joined: 31 Jan 2005, 20:04

Post by submarine »

the txt file is only for debugging purposes and to give the player the possibility to figure out aai's decisions. aai reads its data from the mod-learning file, i dont suggest to edit this manually.

since aai doesnt build more than one factory of each type it is not quite optimal for the forge-variant. i suggest playing aa standard version instead...
Post Reply

Return to “AI”