Page 1 of 1
Please Explain the AI File
Posted: Fri Jan 01, 2010 12:16 am
by marcbarker
Can anyone break down the AI file in the meaning for each line
Thanks
Marc
RE: Please Explain the AI File
Posted: Tue Jan 05, 2010 10:10 pm
by simovitch
I assume you mean the main.ai file? I received snippets of code from John Tiller himself, back when I was working on a mega-mod for Matrix, although that deal has apparently fallen through. I spent countless hours modding this file; trying to determine the effects and actually got some fair results that improved the AI's abilities, dependent on the module.
I have since moved on and the mod lies unfinished, so I offer this up to you barker. My notes, based on my findings are included. Good luck:
For Civil War, respectfully:
Inf fire; range factor for engaging
Art fire; range factor for engaging
Hot max; effects supply closing range and causes early change to line from column if <"move column"
Melee diff; Minimum odds to initiate melee
fear;
safety; distance for column, supply, out of ammo and routing to keep from threat
Hot trigger; distance from where things “heat up” – effects breastwork const.
Min attack;
Supply dist; distance factor to keep supply from danger
Cav health; not sure
Inf health; not sure
Art health; not sure
breast [0]; probability that Union will const. breastwork if not threatened
breast [1]; probability that Rebel will const. breastwork if not threatened
Move column; distance modifier to stay in "column"
Move line; distance modifier to stay in "line"
Day indirect; Probability that the AI will fire IF capable unit (gunboats) in Daytime
Night indirect; Probability that the AI will fire IF capable unit (gunboats) in Nighttime
For Napoleon, I didn't get started, but the meanings are not too cryptic:
_inf_fire = 2;
_art_fire = 4;
_hot_max = 16;
_melee_diff = 2;
_fear = 300;
_safety = 5;
_hot_trigger = 8;
_min_attack = 80;
_supply_dist = 5;
_cav_health = 50;
_inf_health = 40;
_art_health = 50;
_breast [0] = 10;
_breast [1] = 10;
_goto_square = 6;
_init_charge = 4;
_art_range = 6;
_cav_threat = 4;
_move_column [0] = _move_column [1] = 12;
_move_line [0] = _move_line [1] = 12;
RE: Please Explain the AI File
Posted: Wed Jan 06, 2010 12:51 am
by marcbarker
Great info sim thanks