Pathfinding problem



  • It seems that the pathfinding doesn't deal well with swamps near exits, at least when heuristicWeight is low (I didn't try this kind of situation before the default was changed, but specifying a high value caused the creep to avoid this issue). The issue is that the creep will move onto an exit in order to avoid a swamp. Then it will be in the wrong room, and will go to the closest exit -- which is exactly where it came from. It will keep moving back and forth between the rooms without making any progress toward the goal, when all it needs to do is move over the swamp (or use a different exit position that avoids the swamp).


  • Dev Team

    Good point. We've made some fixes, please try this scenario again now.



  • Looks like this is fixed, thanks!