Best Way to Use Navigation.py?

I’m trying to incorporate the functions in Navigation.py. Aside from some minor bug fixes in the server side of navigation, I’m hoping it’ll mimic the live servers. I got it working(?), but my implementation is janky (creates a member navigation variable and uses the pathfinder as an initializer). It works when I upload it, but I’m just wondering if there’s a better way to incorporate those functions as helper functions.

The game_state.find_path_to_edge() is all you really need if you are just trying to get the path a unit takes (It uses shortestpathfinder to generate the path).

On the engine, I am hoping to solve the current pathfinding bug by the end of the day, but have alot on my plate right now, so it looks like it might be in the game over the weekend until i’m back in on monday :frowning:

Hahaha. Guess I really need to read up on game_state. Thanks!

1 Like