Are Constant Values Working Properly?
Posted: Tue Apr 24, 2007 9:48 pm
I'm trying to "understand" why the AI is doing certain things... by example why I have a 3-brigade "rogue" CSA Calvalry Division that has sieged/taken Kansas' cities and Springfield and Chicago without any type of response from the Union AI. Consequently, I looked at the acwConstants.txt file and reviewed the comments made by Erik in one of his posts. A few questions based on the following and my game experience:
1) AI_RefuseOddsx100 70
Below this power ratio the AI won't consider the move at all.
I have seen the Union AI attack on a 1:2 disadvantage in Strength. Now they did have far more artillery, but the way I read the formula the AI should not attack unless they have at least 70% Strength compared to the defender. This was not an isolated instance but happened three consecutive turns. Is the constant working properly or does something in the explanation require clarification or am I missing something...
2) AI_ReluctanceScalex100 100
Modifies the reluctance of the AI to fight battles in a province where it recently lost.
The way I interpret this formula is that it is available to modify, but with the "100" variable selected there is no impact on value. I tried lowering this to "75" to note any difference (with the hope reluctance would increase-- value would be established at 75% of calculated "norm"), and didn't see anything "new" occur. Is this variable working/worth tweaking? In the 3 battles noted in 1) above the Union AI lost each time but kept coming back for more.
3) AI_OutOfTheaterMultiplierOnValuex100 50
If the target is out of theater relative to the current unit, the AI lowers its value. Default is 50%.
This was noted in Erik's text but in the acwconstants file it is set to 20, not 50. Does this mean the value of an out of theatre target is 20% of the "norm?" I also noted in a different file that you have over a dozen theaters in FoF. Can this be reduced/revised in that file without screwing things up? With so many theatres and this reduction factor of 20, it seems that the AI might often ignore units in provinces effectively "right next door." Forgive me if I'm interpretting all of this wrong.
4) AI_ValueDistance0 1000
AI_ValueDistance4 100
These are multipliers to the value of a target based on distance from the currently moving unit.
Am I interpretting correctly that an target in-province with the attacker is essentially worth TEN TIMES the value of an equivalent target four provinces (or one month's march) away?
AI_EnemySiegex100 210
The presence of an ongoing enemy siege multiplies the value. The default is 2.1.
This circles me back to the intro where I'm wondering why my sieging cavalry is not being pursued. Based on this, a besieging unit is valued at just over 2x its normal worth. Incorporating the distance factors it would appear the AI would attack an equivalent unit in the same province NOT SIEGING as opposed to attacking a target two provinces away that was undertaking a Siege (AI_ValueDistance0 1000 versus AI_ValueDistance2 400*2.1). Am I interpretting this correctly? Given the game mechanics and the point value of sieges related to taking opponent cities, should the AI ignore a siege that is so close?
Based on Erik's post, I'm trying to tweak this file, but in doing so have not had much noticable difference in AI behavior. Do I have to start a new game for the new acwconstants.txt file to take effect? Given my questions, are some of these constants working as intended?
Thanks for the feedback,
Regards,
LeBlaque
1) AI_RefuseOddsx100 70
Below this power ratio the AI won't consider the move at all.
I have seen the Union AI attack on a 1:2 disadvantage in Strength. Now they did have far more artillery, but the way I read the formula the AI should not attack unless they have at least 70% Strength compared to the defender. This was not an isolated instance but happened three consecutive turns. Is the constant working properly or does something in the explanation require clarification or am I missing something...
2) AI_ReluctanceScalex100 100
Modifies the reluctance of the AI to fight battles in a province where it recently lost.
The way I interpret this formula is that it is available to modify, but with the "100" variable selected there is no impact on value. I tried lowering this to "75" to note any difference (with the hope reluctance would increase-- value would be established at 75% of calculated "norm"), and didn't see anything "new" occur. Is this variable working/worth tweaking? In the 3 battles noted in 1) above the Union AI lost each time but kept coming back for more.
3) AI_OutOfTheaterMultiplierOnValuex100 50
If the target is out of theater relative to the current unit, the AI lowers its value. Default is 50%.
This was noted in Erik's text but in the acwconstants file it is set to 20, not 50. Does this mean the value of an out of theatre target is 20% of the "norm?" I also noted in a different file that you have over a dozen theaters in FoF. Can this be reduced/revised in that file without screwing things up? With so many theatres and this reduction factor of 20, it seems that the AI might often ignore units in provinces effectively "right next door." Forgive me if I'm interpretting all of this wrong.
4) AI_ValueDistance0 1000
AI_ValueDistance4 100
These are multipliers to the value of a target based on distance from the currently moving unit.
Am I interpretting correctly that an target in-province with the attacker is essentially worth TEN TIMES the value of an equivalent target four provinces (or one month's march) away?
AI_EnemySiegex100 210
The presence of an ongoing enemy siege multiplies the value. The default is 2.1.
This circles me back to the intro where I'm wondering why my sieging cavalry is not being pursued. Based on this, a besieging unit is valued at just over 2x its normal worth. Incorporating the distance factors it would appear the AI would attack an equivalent unit in the same province NOT SIEGING as opposed to attacking a target two provinces away that was undertaking a Siege (AI_ValueDistance0 1000 versus AI_ValueDistance2 400*2.1). Am I interpretting this correctly? Given the game mechanics and the point value of sieges related to taking opponent cities, should the AI ignore a siege that is so close?
Based on Erik's post, I'm trying to tweak this file, but in doing so have not had much noticable difference in AI behavior. Do I have to start a new game for the new acwconstants.txt file to take effect? Given my questions, are some of these constants working as intended?
Thanks for the feedback,
Regards,
LeBlaque