Jump to content
  • Advertisement
Sign in to follow this  
lucky6969b

Guidance Based AStar can give rise to some problem

This topic is 1081 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Sometimes when I want to open less node in the opened list,

I would give the higher g cost node a higher rank, but the result is less nodes get opened,

the problem is that the agent is unable to find alternative path.

This problem is indeed a problem.

 

Thanks

Jack

Edited by lucky6969b

Share this post


Link to post
Share on other sites
Advertisement

Post code.

Many different things can be wrong; your problem description sounds like typical A* errors, like wrong node priorities or inadmissible heuristics or both, but they would normally cause the search to return a suboptimal path; additional or worse defects are needed to fail to find a path.

Share this post


Link to post
Share on other sites
Not finding a path, means you have exhausted the open list completely. (Would be worth checking that, probably.)
The reason for that is because the A* algorithm will continue expanding open nodes until a) found the destination, or b) running out of nodes to expand.

So if you are indeed running out of open nodes while you see a solution, you must be missing some nodes that should have been in there. If you can point out one, set a break point on the neighbour that should add it, and find out why the missing node is not added.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!