PDA

View Full Version : Ai



Epistolary Richard
12-05-2006, 02:20
Thread for research on descr_campaign_ai_db.xml

Anything to do with descr_formation_ai.txt and config_ai_battle.xml should go in the formation thread.

______________________

Autoresolve


<min_capture_percent float="5.0"/>
<max_capture_percent float="30.0"/>
<lopsided_thresh float="1.5"/>
<lopsided_hn_mod float="3.0"/>
<separation_missile_add uint="1"/>
<naval_sink_modifier float="1.5"/>
<naval_sink_offset float="15.0"/>
<naval_sink_max float="80.0"/>

capture min/max is the % captured of the total 'killed'

lopsided - if one side is overwhelmingly more powerful than the other i.e. by this threshold (_thresh), then it takes fewer casualties - 500 men vs 50 men would take fewer casualties than 50 men vs 50 men, generally speaking. _hn_mod if the attacker:defender ratio is bigger than this then it gives the attacker additional attack stats.

Therefore, (ratio x a multiplier) would be added to the stats.

The actual autoresolve calculation is based upon difficulty level, unit experience, battle type (ambush, flank, rear), presence of elephants, charge bonus and armour level.

separation_missile is the conceptual distance the missile units start away from the enemy. The higher it is, the more shots they will get off and the lower their own casualties will be.

naval_sink influences the chances of actually sinking an enemy ship
(attacker strength - defender strength) x sink modifier + sink offset) which is ultimately capped at _max.

Sinuhet
12-06-2006, 09:34
Based on the files released today, we really should have a research thread about the AI as well, for files such as:

config_ai_battle
descr_campaign_ai_db

Anything to do with descr_formation_ai should go in the formation thread, though.

Ave ER!

Sorry, but I dont agree with your decision in this. I have done already research in this direction and from what I know from this, the AI formations are now very dependent on the config_ai_battle.xml file settings. In fact without definition the respective names of formatioans in this xml file there are ignored by the engine and are cusing only a problem in syntax. The problem is tarting already in a moment when you try add only the one new AI formation template in descr_formations_ai.txt file for mixed attack/defend purpose. From this reasons ther should be done research in close interrelations of these two files and it seems me logical to have one thread for them. Completely illogical seems to me then to have the other file here which is related to campaign AI.....

Bye Sinuhet

Epistolary Richard
12-06-2006, 20:41
I agree, I will change it to relate only to descr_campaign_ai_db.xml

Added Autoresolve section, info from CA Oz programmer I spoke to in Brisbane.