Page 1 of 1

pathfinding

Posted: Wed Oct 12, 2016 12:55 pm
by rico21
Hi Peter,
When a unit is on level 0 wants to move, it's blocking by level 4 hill near it.


Image

RE: pathfinding

Posted: Wed Oct 12, 2016 12:56 pm
by rico21
the file :

RE: pathfinding

Posted: Wed Oct 12, 2016 4:09 pm
by Peter Fisla
ORIGINAL: rico21

Hi Peter,
When a unit is on level 0 wants to move, it's blocking by level 4 hill near it.


Image

Not enough movement points for the Infantry Squad to go from Level 0 to Level 4.

RE: pathfinding

Posted: Wed Oct 12, 2016 4:24 pm
by rico21
yes but the direct path to objective is not used so this is a AI problem !?
And thanks for all!

RE: pathfinding

Posted: Wed Oct 12, 2016 4:55 pm
by Peter Fisla
ORIGINAL: rico21

yes but the direct path to objective is not used so this is a AI problem !?
And thanks for all!

Sorry, I'm at work so I didn't have a chance to load the saved game file. What is the issue here ?

RE: pathfinding

Posted: Wed Oct 12, 2016 6:02 pm
by rico21
The issue is that unit try to go on the hill(it can not because not enough movement points OK) but the unit should go to the objective point because it can (with enough movement point). The result is the unit doesn't move as if AI is blocking.
Not a bug, just a AI choice it seems!
[:)]

RE: pathfinding

Posted: Wed Oct 12, 2016 7:00 pm
by Peter Fisla
ORIGINAL: rico21

The issue is that unit try to go on the hill(it can not because not enough movement points OK) but the unit should go to the objective point because it can (with enough movement point). The result is the unit doesn't move as if AI is blocking.
Not a bug, just a AI choice it seems!
[:)]


Hi Rico221 you found a bug :) Thank you for your feedback, much appreciated!

I just got home and I was able to reproduce the error and fix the code. The fix will be part of UPDATE2 that I'm currently working on.

So now with the fix, the AI infantry unit will not move through the Hill Level 4 and use the open terrain in hex[3,3] to get to the German VPO in hex [3,4].