Currently Online

Latest Posts

Topic: AI Barracks

OIPUN
Avatar
Topic Opener
Joined: 2020-11-17, 09:34
Posts: 162
Ranking
At home in WL-forums
Location: Czech
Posted at: Yesterday 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: 162
Ranking
At home in WL-forums
Location: Czech
Posted at: Yesterday 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: 2743
Ranking
One Elder of Players
Location: Bavaria
Posted at: Yesterday 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: 162
Ranking
At home in WL-forums
Location: Czech
Posted at: Yesterday 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: 2743
Ranking
One Elder of Players
Location: Bavaria
Posted at: Yesterday 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