Please Explain the AI File

John Tiller's Battleground Series is a Hall of Fame lineup of games covering the Civil War and Napoleonic Wars. We've compiled these classic games into two new affordable collections, incorporating updated versions of these legendary titles. Incredible historical gameplay and great value!
Post Reply
User avatar
marcbarker
Posts: 1213
Joined: Sun Jul 06, 2008 4:58 pm

Please Explain the AI File

Post by marcbarker »

Can anyone break down the AI file in the meaning for each line

Thanks
Marc
games:
1. AGEOD Blue and Gray
2. John Tiller's Battleground Series
3. Combat Mission: Beyond Overlord
4. Combat Mission: Barbarossa to Berlin
5. V for Victory Games
6. Silent Hunter III
7. Silent Hunter IV
8. Rise and Fall of the Third Re
User avatar
simovitch
Posts: 5873
Joined: Tue Feb 14, 2006 7:01 pm

RE: Please Explain the AI File

Post 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;
simovitch

User avatar
marcbarker
Posts: 1213
Joined: Sun Jul 06, 2008 4:58 pm

RE: Please Explain the AI File

Post by marcbarker »

Great info sim thanks
games:
1. AGEOD Blue and Gray
2. John Tiller's Battleground Series
3. Combat Mission: Beyond Overlord
4. Combat Mission: Barbarossa to Berlin
5. V for Victory Games
6. Silent Hunter III
7. Silent Hunter IV
8. Rise and Fall of the Third Re
Post Reply

Return to “John Tiller's Battleground Series”