Latest Posts

Topic: AI Barracks

OIPUN
Avatar
Topic Opener
Joined: 2020-11-17, 09:34
Posts: 211
Ranking
Widelands-Forum-Junkie
Location: Czech
Posted at: 2024-12-17, 11:19

Can someone who knows the AI script tell me under what circumstances the barracks are stopped and when are allowed to work? Thank you.


Top Quote
OIPUN
Avatar
Topic Opener
Joined: 2020-11-17, 09:34
Posts: 211
Ranking
Widelands-Forum-Junkie
Location: Czech
Posted at: 2024-12-17, 15:48

I see, it is probably territory size divided number of soldiers but I don't know the formula or if there are any other parameters. The answer should be pretty simple.


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

It is dependent of a bunch of input parameters controled by our AI genetic algorithm.

see
https://github.com/widelands/widelands/blob/ca53cba9345481babf4d6412f779417788c79b4d/src/ai/defaultai.cc#L4522


Top Quote
OIPUN
Avatar
Topic Opener
Joined: 2020-11-17, 09:34
Posts: 211
Ranking
Widelands-Forum-Junkie
Location: Czech
Posted at: 2024-12-17, 23:18

I deleted my previous post. I'll try to investigate on my own. The AI is fine for now. Thank you.


Top Quote
hessenfarmer
Avatar
Joined: 2014-12-11, 23:16
Posts: 2751
Ranking
One Elder of Players
Location: Bavaria
Posted at: 2024-12-17, 23:36

OIPUN wrote:

I deleted my previous post. I'll try to investigate on my own. The AI is fine for now. Thank you.

You're welcome.


Top Quote