Hi,rokit boy wrote:hey i have a problem
in game.luai get an error saying it needs a grid object when initializing finder. so "gr" isn't a grid object for some reason.Code: Select all
gr = grid(map) finder = pathfinder('JPS', gr, 0)
help?
You might be using the latest 1.8.1 version. As I said in the relevant post, and also in the Readme, the grid object must come first.
This is due to a little change I pushed since the previous version, as it was making more sense.
So the correct syntax would be :
Code: Select all
gr = grid(map)
finder = pathfinder(gr, 'JPS', 0)