Topic: Training sites

Tibor

Topic Opener
Joined: 2009-03-23, 23:24 UTC+1.0
Posts: 1377
Ranking
One Elder of Players
Location: Slovakia
Posted at: 2015-03-22, 15:04 UTC+1.0

@king of nowhere

the AI keeps all own military sites in a list (ordered one), and every 8 second takes next one and checks it. It can decide to dismantle it - all right. So to dismantle f.e. 5 military sited it would need 5*8=40 seconds. But we cannot presume that these dismantled sites were first in the list. So actual time when AI controlled the game must have been couple of minutes not secconds.

Ai can be responsible for dismantlement of these "back fortresses" - perhaps the logic here can be tweaked a bit.

re: Border with allies - this is something I have not tested specifically. AI can dismantle a militarysite if
- there are other military sites (so no ground is lost)
- no enemy is nearby

In my testing games I never noticed a tendency to withdraw from ally - I will look at the code though, because this is such a grey zone...

scouts are still not built so AI can indeed be blocked by far military site. As we are discussing it - does scouts send an message when a militarysite is found?

Overall - the problem should be fixed there where it occurs - in network architecture of the game. Minimum that can be done, is that widelands would do game save before AI is initialized to replace disconnected player - to allow a restart in right point of time.

Of course I will check that "border with ally" behaviour

EDIT:

I looked at that "border with ally" behaviour and indeed, territory of alies are considered as own teritory when considering dismantle of own military sites, but the difference should not be that big I think. But I will modify the code (in ai-military-changes branch)

Edited: 2015-03-22, 21:41 UTC+1.0

Top Quote
einstein13
Avatar
Joined: 2013-07-29, 00:01 UTC+2.0
Posts: 1116
Ranking
One Elder of Players
Location: Poland
Posted at: 2015-03-23, 14:07 UTC+1.0

@Tibor !

I can't see hunters in any of the tribes. Especially for barbarians: they simply run out of meat and don't produce any.

EDIT:

The hunters are built after some hours. Definatelly too late.

Also there is dozens of gamekeepers and a few hunters.

Edited: 2015-03-23, 14:26 UTC+1.0

einstein13
calculations & maps packages: http://wuatek.no-ip.org/~rak/widelands/
backup website files: http://kartezjusz.ddns.net/upload/widelands/

Top Quote
Tibor

Topic Opener
Joined: 2009-03-23, 23:24 UTC+1.0
Posts: 1377
Ranking
One Elder of Players
Location: Slovakia
Posted at: 2015-03-23, 21:00 UTC+1.0

@einstein13

I modified a code - scoring of hunters so AI should be more willing to built them. But I have not tested it face-sad.png

It is a part of ai-military-changes branch - I am going to propose it for merge soon.


Top Quote