Weird glitch

User avatar
India TNT333
Lancer
Posts: 530
Joined: Sep 13, 2018
ESO: TNT333

Weird glitch

Post by TNT333 »

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
User avatar
Netherlands edeholland
ESOC Community Team
Donator 01
Posts: 5033
Joined: Feb 11, 2015
ESO: edeholland
GameRanger ID: 4053888
Clan: ESOC

Re: Weird glitch

Post by edeholland »

Why is he not supposed to? French can make dragoons. :huh:
User avatar
India Challenger_Marco
ESOC Media Team
Posts: 2689
Joined: Nov 23, 2015
ESO: challenger_marco

Re: Weird glitch

Post by Challenger_Marco »

From that we can confirm that AI is 0IQ.
:nwc:
User avatar
France 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

Post by P i k i l i c »

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
Consider not the one who speaks the truth, but the truth that is said

:hmm: AoE logic :hmm:
User avatar
Austria supahons
Dragoon
Posts: 357
Joined: Feb 11, 2018
ESO: supahons

Re: Weird glitch

Post by supahons »

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.
User avatar
Hungary Dsy
Lancer
Posts: 994
Joined: Jun 27, 2015

Re: Weird glitch

Post by Dsy »

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.
User avatar
Austria supahons
Dragoon
Posts: 357
Joined: Feb 11, 2018
ESO: supahons

Re: Weird glitch

Post by supahons »

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]
User avatar
India TNT333
Lancer
Posts: 530
Joined: Sep 13, 2018
ESO: TNT333

Re: Weird glitch

Post by TNT333 »

edeholland wrote:Why is he not supposed to? French can make dragoons. :huh:

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
Sweden Challe
Musketeer
Posts: 95
Joined: Nov 11, 2018
ESO: Challe

Re: Weird glitch

Post by Challe »

Ok, AI taking over this world confirmed!!
User avatar
Germany Makrokosmos12
Skirmisher
Posts: 199
Joined: Aug 17, 2016
ESO: Templer12

Re: Weird glitch

Post by Makrokosmos12 »

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!
User avatar
India TNT333
Lancer
Posts: 530
Joined: Sep 13, 2018
ESO: TNT333

Re: Weird glitch

Post by TNT333 »

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
User avatar
Germany Makrokosmos12
Skirmisher
Posts: 199
Joined: Aug 17, 2016
ESO: Templer12

Re: Weird glitch

Post by Makrokosmos12 »

Naughty AI doesnt know how to behave.
User avatar
Hungary Dsy
Lancer
Posts: 994
Joined: Jun 27, 2015

Re: Weird glitch

Post by Dsy »

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.

Who is online

Users browsing this forum: No registered users and 23 guests

Which top 10 players do you wish to see listed?

All-time

Active last two weeks

Active last month

Supremacy

Treaty

Official

ESOC Patch

Treaty Patch

1v1 Elo

2v2 Elo

3v3 Elo

Power Rating

Which streams do you wish to see listed?

Twitch

Age of Empires III

Age of Empires IV