Page 1 of 1

Inefficient AI pathing ?

Posted: Thu Mar 24, 2022 2:21 pm
by Darojax
Hello!

So I've noticed in several occasions the AI doesn't always present the maximum range movement possibilities, meaning sometimes units can actually reach further than the light blue highlights show. Let me show an example:

Here is the 158th Engineer Battalion

Image

It would like to move off to the south on the major road. Selecting the unit gives the following movement possibility:

Image

BUT, if I manually move the unit one hex to the north, remaining on the road, like so:

Image

Now the unit can move all the way to here, 2 hexes further due to more efficient action points usage:

Image


Is this a bug, or is it Working As Designed? If the latter, for what purpose?


Love the game, cheers

Dan

Re: Inefficient AI pathing ?

Posted: Thu Mar 24, 2022 7:33 pm
by vege1
This is interesting. I think I might have noticed similar behavior, but really hard to pinpoint the exact conditions when these pathfinding errors keeps happening. For some reason the pathfinding algorithm thinks you should go off-road as the first step. Maybe unit motorization can have an impact (i.e., could be the fastest route on foot, but not on wheels)?

Re: Inefficient AI pathing ?

Posted: Thu Mar 24, 2022 8:19 pm
by xtom
Maybe the elevation change is influencing it or it's preferring direct direction vs a bit of backtracking. If the unit was in combat mode I might prefer it to stick to the elevation for combat bonus and go more direct, whereas if it was in march mode I would probably prefer it to take the roads and maximize movement. Would be interesting to see if changing the modes had any effect on that situation or not.

Re: Inefficient AI pathing ?

Posted: Fri Mar 25, 2022 2:34 pm
by Capt Cliff
Yes, I agree with Darojax and have run into this problem too!