pathfinding

Post bug reports and ask for game support here.

Moderators: Paullus, Peter Fisla

Post Reply
User avatar
rico21
Posts: 3034
Joined: Fri Mar 11, 2016 8:05 am

pathfinding

Post by rico21 »

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


Image
Attachments
pathfinding1.jpg
pathfinding1.jpg (24.51 KiB) Viewed 82 times
User avatar
rico21
Posts: 3034
Joined: Fri Mar 11, 2016 8:05 am

RE: pathfinding

Post by rico21 »

the file :
Attachments
pathfinding.zip
(36.41 KiB) Downloaded 9 times
User avatar
Peter Fisla
Posts: 2574
Joined: Fri Oct 05, 2001 8:00 am
Location: Canada

RE: pathfinding

Post 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.
User avatar
rico21
Posts: 3034
Joined: Fri Mar 11, 2016 8:05 am

RE: pathfinding

Post by rico21 »

yes but the direct path to objective is not used so this is a AI problem !?
And thanks for all!
User avatar
Peter Fisla
Posts: 2574
Joined: Fri Oct 05, 2001 8:00 am
Location: Canada

RE: pathfinding

Post 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 ?
User avatar
rico21
Posts: 3034
Joined: Fri Mar 11, 2016 8:05 am

RE: pathfinding

Post 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!
[:)]
User avatar
Peter Fisla
Posts: 2574
Joined: Fri Oct 05, 2001 8:00 am
Location: Canada

RE: pathfinding

Post 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].

Post Reply

Return to “Tech Support”