Latest Posts

Topic: AI does not build up basic production chain

waldecker
Avatar
Topic Opener
Joined: 2020-05-31, 21:15
Posts: 77
OS: Ubuntu 20.04.x
Version: DailyBuild
Ranking
Likes to be here
Location: Waldeck
Posted at: 2022-12-06, 12:08

Hi AI-Developers,

I just recognized in a game on a map with limited resources that the AI did not build up basic production chain.

AI played Empire and did build a farm and a bakery, but did not build a mill.

Is that intended?

Cheers Waldecker


Yesterday I stood before an abyss, today I'm one step further

Top Quote
hessenfarmer
Avatar
Joined: 2014-12-11, 23:16
Posts: 2380
Ranking
One Elder of Players
Location: Bavaria
Posted at: 2022-12-06, 13:17

No it is not intended however it might happen in narrow cases.
To analyse this further a savegame would be nice. Maybe we can improve something.


Top Quote
waldecker
Avatar
Topic Opener
Joined: 2020-05-31, 21:15
Posts: 77
OS: Ubuntu 20.04.x
Version: DailyBuild
Ranking
Likes to be here
Location: Waldeck
Posted at: 2022-12-06, 13:35

unfortunately I only have a very late savegame. Does a replay also help?


Yesterday I stood before an abyss, today I'm one step further

Top Quote
hessenfarmer
Avatar
Joined: 2014-12-11, 23:16
Posts: 2380
Ranking
One Elder of Players
Location: Bavaria
Posted at: 2022-12-06, 14:11

waldecker wrote:

unfortunately I only have a very late savegame. Does a replay also help?

yes that would be even better


Top Quote
waldecker
Avatar
Topic Opener
Joined: 2020-05-31, 21:15
Posts: 77
OS: Ubuntu 20.04.x
Version: DailyBuild
Ranking
Likes to be here
Location: Waldeck
Posted at: 2022-12-06, 15:10

Here it is


Attachment:
replays.zip (389.7 KB)

Yesterday I stood before an abyss, today I'm one step further

Top Quote
hessenfarmer
Avatar
Joined: 2014-12-11, 23:16
Posts: 2380
Ranking
One Elder of Players
Location: Bavaria
Posted at: 2022-12-06, 21:12

ok checked the replay. this map is really hard for the AI with empire and it will run into a marble deadlock quite easy.
There is a possibility to improve but I am not sure whether it would fix it


Top Quote
waldecker
Avatar
Topic Opener
Joined: 2020-05-31, 21:15
Posts: 77
OS: Ubuntu 20.04.x
Version: DailyBuild
Ranking
Likes to be here
Location: Waldeck
Posted at: 2022-12-06, 21:21

Yes, its a challenging map, not only for the AI, but with leaving out a key building in the supply chain its getting impossible. I think when giving a bit more priority to the economy instead of military in the early phase of a game might fix it.


Yesterday I stood before an abyss, today I'm one step further

Top Quote
hessenfarmer
Avatar
Joined: 2014-12-11, 23:16
Posts: 2380
Ranking
One Elder of Players
Location: Bavaria
Posted at: 2022-12-06, 21:44

Adding basic economy status to military weighing might indeed be a good idea


Top Quote
arjunsuhass
Avatar
Joined: 2023-01-07, 13:36
Posts: 1
OS: Widowsa
Ranking
Just found this site
Location: United Kingdom
Posted at: 2023-01-07, 13:40

It is possible that the AI in the game was programmed to prioritize certain resources or strategies over others, and therefore did not choose to build a mill. In some cases, AIs may be designed to adapt to different situations and make decisions based on the resources and constraints they are facing.


APKLUB

Top Quote
hessenfarmer
Avatar
Joined: 2014-12-11, 23:16
Posts: 2380
Ranking
One Elder of Players
Location: Bavaria
Posted at: 2023-01-07, 16:00

The AI has no special strategy or something similar.
Waht it does is simply ti determine what building is needed most in the economy, based on a scoring system and including military buuldings.
then it checks a number of fields and scores them for being suited for the most needed buildings.
if expansion is needed Military buildin gs get a higher score, if the enemy is near as well.
Neededness for expansion is decided on available space and available mining fields and available build materials and some other factors.

That is (simplified of course) the concept of the AI.


Top Quote