The AI - units homogen units are built

Here you may find answers to your questions.
Post Reply
User avatar
Alpha
Posts: 1892
Joined: Sat Aug 20, 2016 5:51 pm
Location: Illnois, Niles

The AI - units homogen units are built

Post by Alpha »

How come the AI make only a specific type of units, In one account I literally had to fight a army of Light Cavalry and archers.
Epic Gamer Moment!
User avatar
DoomCarrot
Posts: 3096
Joined: Wed Mar 18, 2015 6:04 pm
Location: Commanding General's quarters, a tall keep above the mighty city of Carrot's Point

Re: The AI

Post by DoomCarrot »

Because the Ai thinks it can win by swarming with a single type of unit. :lol:
The day is coming when a single carrot, freshly observed, will set off a revolution.
User avatar
Disco
Posts: 219
Joined: Sat Feb 27, 2016 4:37 pm
Location: UK

Re: The AI

Post by Disco »

Hahaha

I actually lost to someone recently using those units lol. Well he did use fire archers too :oops:
User avatar
Alexander82
Posts: 7969
Joined: Thu Feb 26, 2015 8:18 pm

Re: The AI

Post by Alexander82 »

That is terrible, especially on AoF where the new units aren't used at all and they also never make mega buildings
Age of Fantasy design leader
User avatar
Alpha
Posts: 1892
Joined: Sat Aug 20, 2016 5:51 pm
Location: Illnois, Niles

Re: The AI

Post by Alpha »

No wonder they don't make castle's.....
Epic Gamer Moment!
Stratego (dev)
Site Admin
Posts: 15741
Joined: Fri Apr 25, 2014 9:28 pm

Re: The AI

Post by Stratego (dev) »

Alexander82 wrote:That is terrible, especially on AoF where the new units aren't used at all and they also never make mega buildings

Yes the only way to make ai to build them if we define which units they are good against so on every new unit if you help define i can set in json.
User avatar
Alexander82
Posts: 7969
Joined: Thu Feb 26, 2015 8:18 pm

Re: The AI

Post by Alexander82 »

Can you allow a certain % of random? Or maybe you might tag some units as "special" and the ai produce a fixed amount of special units
Also ai should build mega buildings or it will also have less units
Age of Fantasy design leader
Stratego (dev)
Site Admin
Posts: 15741
Joined: Fri Apr 25, 2014 9:28 pm

Re: The AI

Post by Stratego (dev) »

random: sure there is a list to let "default" production that is random, but that is used ONLY when there is no "best agains me" setting of the target unit.

castles: they are different problem: AI can not measure up mega building space yet, so it can build it partially over mountain - that is why i turned it off until i implement proper building logic.
User avatar
Alexander82
Posts: 7969
Joined: Thu Feb 26, 2015 8:18 pm

Re: The AI

Post by Alexander82 »

I see, but can't you let always a certain random amount?

Let's say i make cavalry
The ai will make every factory build pikemen

I wanted to suggest that if i make cavalry the ai should make 50% pikemen and 50% random units, cause if i start making cavalry and then switch to other units (as it is normal) the ai wouldn't end up with an army of useless pikemen
Age of Fantasy design leader
User avatar
Alpha
Posts: 1892
Joined: Sat Aug 20, 2016 5:51 pm
Location: Illnois, Niles

Re: The AI

Post by Alpha »

For a AI pikemen are a basic unit they use frequently in my opinion
Epic Gamer Moment!
Stratego (dev)
Site Admin
Posts: 15741
Joined: Fri Apr 25, 2014 9:28 pm

Re: The AI

Post by Stratego (dev) »

No. It is good if you only have cav. Than ai should build pikes. If you have swormen too ai will buld archers and pikes mixed. I think it is fine.
User avatar
Alexander82
Posts: 7969
Joined: Thu Feb 26, 2015 8:18 pm

Re: The AI

Post by Alexander82 »

I see. I find pretty easy defeating ai, cause it never make advanced units
Age of Fantasy design leader
Stratego (dev)
Site Admin
Posts: 15741
Joined: Fri Apr 25, 2014 9:28 pm

Re: The AI

Post by Stratego (dev) »

the reason is not the "randomization" but that not all units are set to be good against others (if more than one unit is set to be against some other unit category than they are chosed randomly)

eg.: against swordman good the archer and cavalry, so ai choses randomly to build from these (if i remember right to the setting)

so if you miss a unit, tell me which unit is that, and tell me against which unit shall i set it to be good against. and we will see how AI builsd them. lets make a try if you have in mind an example.
User avatar
Alexander82
Posts: 7969
Joined: Thu Feb 26, 2015 8:18 pm

Re: The AI

Post by Alexander82 »

I'm playing mostly AoF lately, i think i'll make a list of what is good against something else xD
Age of Fantasy design leader
Stratego (dev)
Site Admin
Posts: 15741
Joined: Fri Apr 25, 2014 9:28 pm

Re: The AI

Post by Stratego (dev) »

dont make list, write only one sample, and i will set it, and you can check if AI really builds that or not.
User avatar
Alexander82
Posts: 7969
Joined: Thu Feb 26, 2015 8:18 pm

Re: The AI

Post by Alexander82 »

Could you make the ai in a way that it calculates damage dealt to enemy units by the units that you can make and gives a certain % of production to the unit that makes the highest damage?

For example i'm simulating a war between 2 AI, undead vs orc (all automatics)

Orcs never build monster's cave and uruk tents

Against the enemy cavalry a uruk tent would be of great help thanks to uruk pikeman and against enemy casters (that undeads use a lot) uruk archers would be of great use
Age of Fantasy design leader
Stratego (dev)
Site Admin
Posts: 15741
Joined: Fri Apr 25, 2014 9:28 pm

Re: The AI

Post by Stratego (dev) »

Orcs never build monster's cave and uruk tents
ok, it is fixed (however it is still random that which bulding to build)
User avatar
Alexander82
Posts: 7969
Joined: Thu Feb 26, 2015 8:18 pm

Re: The AI

Post by Alexander82 »

uruk tent too?
Age of Fantasy design leader
Stratego (dev)
Site Admin
Posts: 15741
Joined: Fri Apr 25, 2014 9:28 pm

Re: The AI

Post by Stratego (dev) »

yes both.
Stratego (dev)
Site Admin
Posts: 15741
Joined: Fri Apr 25, 2014 9:28 pm

Re: The AI

Post by Stratego (dev) »

i t will be in in next update.
User avatar
Alexander82
Posts: 7969
Joined: Thu Feb 26, 2015 8:18 pm

Re: The AI

Post by Alexander82 »

I'm testing making ai fight each other

Right now they seems to make monster's cave in a decent amount but almost never make uruk tent (that should be one of priorities having at the same time infantry, archers and anti cavalry)
Also i'd like to suggest for the ai to give more priority to upgrades and to chain upgrades together.

For example if i make an upgrade to heavy wolf riders the other syngergic techs would be wolf rider to warg rider and orc armor (both would affect the same unit of the 1st tech and increase the effect of that strategy)

If you invest in orc warrior upgrade you should make also the 2nd upgrade and the orc armor increase

Also AI should have a higher % to produce upgraded units.

In a game i'm testing the computer upgraded the orc warriors but didn't made a single one in game producing the armored orc warrior instead. This is like a suicide strategy.
Age of Fantasy design leader
Stratego (dev)
Site Admin
Posts: 15741
Joined: Fri Apr 25, 2014 9:28 pm

Re: The AI

Post by Stratego (dev) »

Ok. But please different topics so later we can vote which ai logic should be implemented first
User avatar
Alexander82
Posts: 7969
Joined: Thu Feb 26, 2015 8:18 pm

Re: The AI

Post by Alexander82 »

Ok. Should i make a topic on the Aof board?
You might make a sub forum for AI behaviour
Age of Fantasy design leader
User avatar
Alpha
Posts: 1892
Joined: Sat Aug 20, 2016 5:51 pm
Location: Illnois, Niles

Re: The AI

Post by Alpha »

U think you should! Also I was playing a a random match with 5 other AI and the cyan started to spam Slingers...
Epic Gamer Moment!
superstrijder15
Posts: 46
Joined: Sat Jul 09, 2016 2:48 pm

Re: The AI

Post by superstrijder15 »

Is there a topic dedicated to these for aos? I've found an issue: red wait a whole turn with assinging units to be trained to it's towns, others might to
And island nations should make docks a priority
Stratego (dev)
Site Admin
Posts: 15741
Joined: Fri Apr 25, 2014 9:28 pm

Re: The AI - units homogen units are built

Post by Stratego (dev) »

please open new for each problem.
Stratego (dev)
Site Admin
Posts: 15741
Joined: Fri Apr 25, 2014 9:28 pm

Re: The AI - units homogen units are built

Post by Stratego (dev) »

please open new for each problem.
Post Reply

Return to “FAQ”