AI upgrade
- Sunrise Samurai
- Posts: 2678
- Joined: Thu Jun 18, 2015 11:21 pm
- Location: Florida, U.S.
AI upgrade
In the interest of building a better ai, I have a suggestion to improve its base building ability. The current ai has a simple, effective routine that many players, including myself, often copy for it's ease of building and capability for protecting tcs. My suggestion is that the ai should start out prioritizing factory buildings, same as now, until it can build no more. Then, prioritize castles next, wherever possible. Most maps won't fit many, especially since the ai will attempt to build them adjacent to tcs, as usual. This at least ensured the ai will try to have castles. Finally, towers are built when factories and castles are no longer possible. Towers are built first in empty places adjacent to tcs, then in empty places adjacent to factory buildings. When these are all done, workers will attempt to build siege equipment in a location adjacent to themselves or assist other workers.
So in short, order of priority and location is
1. Factories, adjacent to tc
2. Castles, adjacent to tc
3. Towers, adjacent to tc
4. Towers, adjacent to any factory building
5. Catapult/battering ram, adjacent to any worker.
So in short, order of priority and location is
1. Factories, adjacent to tc
2. Castles, adjacent to tc
3. Towers, adjacent to tc
4. Towers, adjacent to any factory building
5. Catapult/battering ram, adjacent to any worker.
The glorious sun rises again
- Alexander82
- Posts: 7969
- Joined: Thu Feb 26, 2015 8:18 pm
- Sunrise Samurai
- Posts: 2678
- Joined: Thu Jun 18, 2015 11:21 pm
- Location: Florida, U.S.
Re: AI upgrade
Is that simple enough to program? Also, have the ai prefer stronger towers, namely fortress in human, rather than the flimsy, lower range thing it currently builds.
The glorious sun rises again
Re: AI upgrade
Sounds reasonable. Even better could be to have AIs with several strategies of what to prefer building in which order and randomly pick at the start of some maps.
But shouldn't this be a general change to the AI at AoS and then, if successful, transferred to other variants?
But shouldn't this be a general change to the AI at AoS and then, if successful, transferred to other variants?
- Alexander82
- Posts: 7969
- Joined: Thu Feb 26, 2015 8:18 pm
Re: AI upgrade
Also we shoul make sure that ai research upgrades for the units that is using
Age of Fantasy design leader
- Sunrise Samurai
- Posts: 2678
- Joined: Thu Jun 18, 2015 11:21 pm
- Location: Florida, U.S.
Re: AI upgrade
I can't say that is a bad idea at all, but the first part I want to see is just some extension to it's overall building process, without specific strategies. My suggestion was merely an expanded layout of the original, which gives a higher chance for castles, fortification around factories, and then keeps workers busy on basic siege equipment.
The glorious sun rises again
- Puss_in_Boots
- Posts: 3217
- Joined: Fri Apr 21, 2017 1:23 am
- Location: New Jersey
Re: AI upgrade
I think AI has trouble recognizing the definitions of the castle, thus causing them to create castles on an unavailable space.
It was from an old topic I remember reading a few months ago. Don't know if it is still not possible, but it would be nice if they could.
It was from an old topic I remember reading a few months ago. Don't know if it is still not possible, but it would be nice if they could.
OLÉ
- Sunrise Samurai
- Posts: 2678
- Joined: Thu Jun 18, 2015 11:21 pm
- Location: Florida, U.S.
Re: AI upgrade
I've seen it happen. The ai on rare occasion attempts to make one as a "factory" and has the space available to do so, resulting in a successful attempt.
The glorious sun rises again
- Puss_in_Boots
- Posts: 3217
- Joined: Fri Apr 21, 2017 1:23 am
- Location: New Jersey
- Sunrise Samurai
- Posts: 2678
- Joined: Thu Jun 18, 2015 11:21 pm
- Location: Florida, U.S.
Re: AI upgrade
Lol I think I've only seen it twice, maybe three times. Out of probably thousands of games.
The glorious sun rises again
- LordOfAles
- Posts: 3694
- Joined: Tue Jul 18, 2017 12:27 pm
- Location: Balkans, Montenegro
- Sunrise Samurai
- Posts: 2678
- Joined: Thu Jun 18, 2015 11:21 pm
- Location: Florida, U.S.
Re: AI upgrade
At the very least, setting castles in their own category with a higher priority than towers would mean more locations are checked. If none work, the ai moves on to towers. And adding towers next to any factory means ai bases are far more fortified.
The glorious sun rises again
- Sunrise Samurai
- Posts: 2678
- Joined: Thu Jun 18, 2015 11:21 pm
- Location: Florida, U.S.
Re: AI upgrade
Well I finally got that screenshot, but it won't upload because it says the file size is too big. Any ideas how to shrink it on an Android phone?Puss_in_Boots wrote:I believe you, but I still want a screenshot.
It's rather surprising to see the rare occasion when it happens. This time it's a mansion, and the ai started it turn 1 lol.
The glorious sun rises again
- Puss_in_Boots
- Posts: 3217
- Joined: Fri Apr 21, 2017 1:23 am
- Location: New Jersey
- Sunrise Samurai
- Posts: 2678
- Joined: Thu Jun 18, 2015 11:21 pm
- Location: Florida, U.S.
Re: AI upgrade
The glorious sun rises again
- Puss_in_Boots
- Posts: 3217
- Joined: Fri Apr 21, 2017 1:23 am
- Location: New Jersey
Re: AI upgrade
Its great!
But the terrain and placement is kinda weird.
I notice the mountain bear.
But the terrain and placement is kinda weird.
I notice the mountain bear.
OLÉ
- Sunrise Samurai
- Posts: 2678
- Joined: Thu Jun 18, 2015 11:21 pm
- Location: Florida, U.S.
Re: AI upgrade
Well I didn't exactly expect the ai to start making a great building. It was in the map "mountains" with a 3ai orc/human/undead vs me as elves.
The glorious sun rises again
-
Stratego (dev)
- Site Admin
- Posts: 15822
- Joined: Fri Apr 25, 2014 9:28 pm
Re: AI upgrade
yes, in AOF i let AI toi build mega structures to see if they work right (placed properly)
- Sunrise Samurai
- Posts: 2678
- Joined: Thu Jun 18, 2015 11:21 pm
- Location: Florida, U.S.
Re: AI upgrade
Currently it's rare. That's why I was suggesting the order of placement outlined in the original post. There's no point in the ai making towers if there's a single location it can build in, even if it only checks adjacent to tcs.
The glorious sun rises again
- Puss_in_Boots
- Posts: 3217
- Joined: Fri Apr 21, 2017 1:23 am
- Location: New Jersey
Re: AI upgrade
I think it should start building fortresses around TCs and buildings if the nearest enemy unit is no less than 15 tiles away.
OLÉ
- Puss_in_Boots
- Posts: 3217
- Joined: Fri Apr 21, 2017 1:23 am
- Location: New Jersey
Re: AI upgrade
However, it should be whenever a worker is next to a tower/fortress, so that we don't see workers charge into battle.Sunrise Samurai wrote:5. Catapult/battering ram, adjacent to any worker.
OLÉ
- Puss_in_Boots
- Posts: 3217
- Joined: Fri Apr 21, 2017 1:23 am
- Location: New Jersey
Re: AI upgrade
And then more builders will start to build wagons beside the catapults to transport them if the nearest enemy is further than 9 tiles away from its location.
OLÉ
- Sunrise Samurai
- Posts: 2678
- Joined: Thu Jun 18, 2015 11:21 pm
- Location: Florida, U.S.
Re: AI upgrade
No for the proximity rule, best not to complicate it. The ai always starts with rear tcs first, but if it can't build based on enemy proximity, this means it will never build castles on small maps.
I actually said catapult/battering ram adjacent to any worker to keep from needing a specified space. This means the ai would never go on a worker kamikaze, since once a worker has a free adjacent space new seige equipment can be built, making it able to utilize any random space.
I actually said catapult/battering ram adjacent to any worker to keep from needing a specified space. This means the ai would never go on a worker kamikaze, since once a worker has a free adjacent space new seige equipment can be built, making it able to utilize any random space.
The glorious sun rises again
- Sunrise Samurai
- Posts: 2678
- Joined: Thu Jun 18, 2015 11:21 pm
- Location: Florida, U.S.
Re: AI upgrade
This would be nice, except the ai isn't likely to plot out how to use a wagon as anything other than a 1 power melee unit.Puss_in_Boots wrote:And then more builders will start to build wagons beside the catapults to transport them if the nearest enemy is further than 9 tiles away from its location.
Besides
viewtopic.php?f=115&t=4254&p=41675&hili ... gon#p41675
The glorious sun rises again
- Puss_in_Boots
- Posts: 3217
- Joined: Fri Apr 21, 2017 1:23 am
- Location: New Jersey
- Sunrise Samurai
- Posts: 2678
- Joined: Thu Jun 18, 2015 11:21 pm
- Location: Florida, U.S.
Re: AI upgrade
Lol well, I've missed things like that myself. Besides, the ai is as good with wagons as it is workers with no more space to build.
The glorious sun rises again