Weird glitch
Weird glitch
I was playing compstomp without any improved ai and napoleon was spamming goons even though hes not supposed to. Is it in the programming? Can som1 check it out?
"We are kings or pawns" Napoleon Bonaparte
- edeholland
- ESOC Community Team
- Posts: 5033
- Joined: Feb 11, 2015
- ESO: edeholland
- GameRanger ID: 4053888
- Clan: ESOC
Re: Weird glitch
Why is he not supposed to? French can make dragoons.
- Challenger_Marco
- ESOC Media Team
- Posts: 2689
- Joined: Nov 23, 2015
- ESO: challenger_marco
Re: Weird glitch
From that we can confirm that AI is 0IQ.
- P i k i l i c
- Howdah
- Posts: 1271
- Joined: Nov 17, 2015
- ESO: Pikilic
- Location: Dijon, France
- GameRanger ID: 7497456
Re: Weird glitch
Well the AI have their habits and personalities, but usually if I really make mainly 1 type of unit the AI adapts and makes the counter unit
Re: Weird glitch
I've looked at the code once. From what i can remember the standard AI has different build plans, that change in accordance with the other teammembers. I wanted to know which units they exactly produce each time, but from what i know it's a bit random. It's in the aiMain.xs file.
Re: Weird glitch
kbUnitPickSetPreferenceWeight(upID, 1.0);
if (gSPC == false)
kbUnitPickSetCombatEfficiencyWeight(upID, 2.0);
I think its because of this. In theory if ai sees lot of units it tries to counter it. The main question is "how?". So far i didnt see any code in aiMain for that.
if (gSPC == false)
kbUnitPickSetCombatEfficiencyWeight(upID, 2.0);
I think its because of this. In theory if ai sees lot of units it tries to counter it. The main question is "how?". So far i didnt see any code in aiMain for that.
Re: Weird glitch
If you want to understand it i think it's best to compare it with the Draugur AI file: (i haven't done this yet in detail, i've just read it a bit, it takes quite some time to read)
Standard:
setUnitPickerPreference()
Updates the unit picker biases, arbitrates between the potentially conflicting sources.
Priority order is:
1) If control is from a trigger, that wins. The unit line specified in gCommandUnitLine gets a +.8, all others +.2
2) If control is ally command, ditto. (Can only be one unit due to UI limits.
3) If we're not under command, but cvPrimaryArmyUnit (and optionally cvSecondaryArmyUnit) are set, they rule.
If just primary, it gets .8 to .2 for other classes.
If primary and secondary, they get 1.0 and 0.5, others get 0.0.
4) If not under command and no cv's are set, we go with the btBiasCav, btBiasInf and btBiasArt line settings.
Draugur:
setUnitPickerPreference()
Updates the unit picker biases, arbitrates between the potentially conflicting sources.
Priority order is:
1) If control is from a trigger, that wins. The unit line specified in gCommandUnitLine gets a +.8, all others +.2
2) If control is ally command, ditto. (Can only be one unit due to UI limits.
3) If we're not under command, but cvPrimaryArmyUnit (and optionally cvSecondaryArmyUnit, cvTertiaryArmy Unit) are set, they rule.
If just primary, it gets 0.8, with 0.2 for other classes.
If primary and secondary, they get 1.0 and 0.5, others get 0.0.
If primary, secondary and tertiary, they get 0.8, 0.4 and 0.2, others get 0.0.
4) If enough enemy units have been spotted, bias towards appropriate counters
5) If not under command, no cv's are set, and no units have been spotted, we go with the btBiasCav, btBiasInf and btBiasArt line settings.
*Personality Napoleon: (Draugur, with change commentary)
[spoiler=click]case cCivFrench: // Napoleon: Cav oriented, balanced, favors natives
btRushBoom = 0.0;
btOffenseDefense = 0.0;
btBiasCav = 0.5;
btBiasInf = 0.0;
btBiasArt = 0.5; // was 0.0;
btBiasNative = 1.0;
btBiasTrade = 0.5; // was 0.0;[/spoiler]
Standard:
setUnitPickerPreference()
Updates the unit picker biases, arbitrates between the potentially conflicting sources.
Priority order is:
1) If control is from a trigger, that wins. The unit line specified in gCommandUnitLine gets a +.8, all others +.2
2) If control is ally command, ditto. (Can only be one unit due to UI limits.
3) If we're not under command, but cvPrimaryArmyUnit (and optionally cvSecondaryArmyUnit) are set, they rule.
If just primary, it gets .8 to .2 for other classes.
If primary and secondary, they get 1.0 and 0.5, others get 0.0.
4) If not under command and no cv's are set, we go with the btBiasCav, btBiasInf and btBiasArt line settings.
Draugur:
setUnitPickerPreference()
Updates the unit picker biases, arbitrates between the potentially conflicting sources.
Priority order is:
1) If control is from a trigger, that wins. The unit line specified in gCommandUnitLine gets a +.8, all others +.2
2) If control is ally command, ditto. (Can only be one unit due to UI limits.
3) If we're not under command, but cvPrimaryArmyUnit (and optionally cvSecondaryArmyUnit, cvTertiaryArmy Unit) are set, they rule.
If just primary, it gets 0.8, with 0.2 for other classes.
If primary and secondary, they get 1.0 and 0.5, others get 0.0.
If primary, secondary and tertiary, they get 0.8, 0.4 and 0.2, others get 0.0.
4) If enough enemy units have been spotted, bias towards appropriate counters
5) If not under command, no cv's are set, and no units have been spotted, we go with the btBiasCav, btBiasInf and btBiasArt line settings.
*Personality Napoleon: (Draugur, with change commentary)
[spoiler=click]case cCivFrench: // Napoleon: Cav oriented, balanced, favors natives
btRushBoom = 0.0;
btOffenseDefense = 0.0;
btBiasCav = 0.5;
btBiasInf = 0.0;
btBiasArt = 0.5; // was 0.0;
btBiasNative = 1.0;
btBiasTrade = 0.5; // was 0.0;[/spoiler]
Re: Weird glitch
edeholland wrote:Why is he not supposed to? French can make dragoons.
But his normal units r hussars and cuirs and art. The ai is not supposed to spam goons
"We are kings or pawns" Napoleon Bonaparte
Re: Weird glitch
Ok, AI taking over this world confirmed!!
- Makrokosmos12
- Skirmisher
- Posts: 199
- Joined: Aug 17, 2016
- ESO: Templer12
Re: Weird glitch
Ai never ever makes goons. That is weird. Could be a bug in the matrix.
Just move on, there is noting to see! Move on!
Just move on, there is noting to see! Move on!
Re: Weird glitch
Makrokosmos12 wrote:Ai never ever makes goons. That is weird. Could be a bug in the matrix.
Just move on, there is noting to see! Move on!
Yah and lmao suleiman uses cav archers now probably ai r obsessed with ranged cav?
"We are kings or pawns" Napoleon Bonaparte
- Makrokosmos12
- Skirmisher
- Posts: 199
- Joined: Aug 17, 2016
- ESO: Templer12
Re: Weird glitch
Naughty AI doesnt know how to behave.
Re: Weird glitch
Okey ive found a way to modifie AI to make units i advise.
Soon i will release an AI for sup players.
It will be much more stronger, but still far from pro level. I guess it will be a good prectice tool for pr10-15 players.
Soon i will release an AI for sup players.
It will be much more stronger, but still far from pro level. I guess it will be a good prectice tool for pr10-15 players.
Who is online
Users browsing this forum: No registered users and 7 guests