Latest Posts

Topic: is it normal that AI will go round and round with a boat before making a port?

king_of_nowhere
Avatar
Topic Opener
Joined: 2014-09-15, 17:35
Posts: 1668
Ranking
One Elder of Players
Posted at: 2015-08-13, 19:47

I was playtesting a map with 7485. in that map, several AI players each had a lake with impassable land on two sides, and they had to mmake a boat and settle on the other side of the lake. Each AI only has one port space to colonize, so the choice of port should be obvious. the colonized lland is large and full of metals, so the AI should not have any reason to not make a colony there.

And yet, each AI pleyer took several minutes to do so. they sent the boat around the lake, they arrived at the port space, they stopped for a few seconds, and they kept going around. over and over, so it can't just be a case of "explore the shore before settling". no, some player lost tens of minutes going around with a boat in a lake that is one screen large.

I jjust wanted to know if that was a normal behavior before opening a bug report.


Top Quote
king_of_nowhere
Avatar
Topic Opener
Joined: 2014-09-15, 17:35
Posts: 1668
Ranking
One Elder of Players
Posted at: 2015-08-14, 15:37

is it possible that the reason is that the starting port and the target port space are relatively close (10 steps) and they are actaully connected by impassable terrain? maybe the AI is instructed to not make two ports too close on the same island, and it does not recognize that the impassable terrain actually makes them two different islands


Top Quote
einstein13
Avatar
Joined: 2013-07-28, 23:01
Posts: 1118
Ranking
One Elder of Players
Location: Poland
Posted at: 2015-08-14, 18:33

king_of_nowhere wrote:

I jjust wanted to know if that was a normal behavior before opening a bug report.

As I know, Tibor made very easy way of getting "new port" available. AI doesn't consider now where is the best + closest portspace to start. You can make a bug report, but for sure you should have better algorithm in your mind. Implementing new idea can be very complicated face-wink.png


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

Top Quote
king_of_nowhere
Avatar
Topic Opener
Joined: 2014-09-15, 17:35
Posts: 1668
Ranking
One Elder of Players
Posted at: 2015-08-15, 01:11

king_of_nowhere wrote:

is it possible that the reason is that the starting port and the target port space are relatively close (10 steps) and they are actaully connected by impassable terrain? maybe the AI is instructed to not make two ports too close on the same island, and it does not recognize that the impassable terrain actually makes them two different islands

yes, it was actually that. i reworked the map a bit and made the ports a bit more distant (14-15 steps instead of 10), and the problem disappeared. or maybe i changed the nature of the unpassable terrain.


Top Quote
einstein13
Avatar
Joined: 2013-07-28, 23:01
Posts: 1118
Ranking
One Elder of Players
Location: Poland
Posted at: 2015-08-15, 09:59

Hmmm... This is a bit strange.

But better question for me is: what about distance ~3-5? When you can build a simple tower and reach enough terrain to build there a port? It is impossible to build (another island!), but you have needed territory to place there a port. The AI will try to build there a port, but it will fail. No connections between flags, but place for a building.


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

Top Quote