Path finding

Just putting this up here in case it will assist others.

Here is a pure Corona path finding module - https://github.com/codepaladin/Jumper-Tutorial/tree/master/Jumper

It contains 6 different algorithms like A*, etc.

Hope it helps

Great find!

it’s frustrating that the forum search feature doesn’t go back very far in time, more info here:

https://forums.coronalabs.com/topic/25218-jumper-an-extremely-fast-2d-pathfinder-for-grid-based-games/

also note that Alex Jackson of Panc Interactive forked a more “coronafied” version with examples:

http://www.panc.co/code/jumper-logic-modified-for-corona-sdk

https://github.com/pancinteractive/Jumper

Hi, thanks so much for the info, both Sphere Game Studios and davebollinger.

I’ve been working for a while with Roland Yonaba’s pathfinding algorithm, and the forked version of Alex@Panc for Corona SDK.

Everything works perfectly on simulator, but I’m getting a compile error on building, on lookuptable.lua file.

Here’s the compile error:

18:10:28.353  BUILD ERROR: D:\jumper\core\lookuptable.lua:1: ‘)’ expected near ‘,’
18:10:28.353  ERROR: Could not complete build because there were compile errors in Lua file: D:\jumper\core\lookuptable.lua

Could be any problem or incompatibility with pathfinding algorithm and Corona SDK? Did you guys expect the same problem on building?

My Corona Version is 2017.3.31

Have tried older and newer versions, but problem persists.

Thanks so much,

Ivan

it’s missing the keyword “function”.   easier fix is to just delete lookuptable.lua entirely because it’s not (at least currently) used by anything – a build will still attempt to compile it, thus error, but it’s never loaded, so no problem in sim (exactly what you’re seeing)

So lookuptable.lua is not in use by the pathfinding algorithm!!

Thanks so much for quick response and easy fix, davebollinger. Tested and works like a charm :slight_smile:

Great find!

it’s frustrating that the forum search feature doesn’t go back very far in time, more info here:

https://forums.coronalabs.com/topic/25218-jumper-an-extremely-fast-2d-pathfinder-for-grid-based-games/

also note that Alex Jackson of Panc Interactive forked a more “coronafied” version with examples:

http://www.panc.co/code/jumper-logic-modified-for-corona-sdk

https://github.com/pancinteractive/Jumper

Hi, thanks so much for the info, both Sphere Game Studios and davebollinger.

I’ve been working for a while with Roland Yonaba’s pathfinding algorithm, and the forked version of Alex@Panc for Corona SDK.

Everything works perfectly on simulator, but I’m getting a compile error on building, on lookuptable.lua file.

Here’s the compile error:

18:10:28.353  BUILD ERROR: D:\jumper\core\lookuptable.lua:1: ‘)’ expected near ‘,’
18:10:28.353  ERROR: Could not complete build because there were compile errors in Lua file: D:\jumper\core\lookuptable.lua

Could be any problem or incompatibility with pathfinding algorithm and Corona SDK? Did you guys expect the same problem on building?

My Corona Version is 2017.3.31

Have tried older and newer versions, but problem persists.

Thanks so much,

Ivan

it’s missing the keyword “function”.   easier fix is to just delete lookuptable.lua entirely because it’s not (at least currently) used by anything – a build will still attempt to compile it, thus error, but it’s never loaded, so no problem in sim (exactly what you’re seeing)

So lookuptable.lua is not in use by the pathfinding algorithm!!

Thanks so much for quick response and easy fix, davebollinger. Tested and works like a charm :slight_smile: