Isometric Pathfinding Bugs
Posted: Sun Jan 21, 2024 8:05 am
I have encountered two bugs using the Simple Tiled Implementation and the Jumper pathfinding library when using an isometric map. The first one is that only valid grid coordinates that I can move to when clicking on the map are 9,9. Everything else gives me:
Error
jumper/pathfinder.lua:331: Invalid or unreachable location [9, 1]
Traceback
[love "callbacks.lua"]:228: in function 'handler'
[C]: in function 'assert'
jumper/pathfinder.lua:331: in function 'getPath'
unit.lua:83: in function 'mousepressed'
main.lua:47: in function <main.lua:45>
[love "callbacks.lua"]:154: in function <[love "callbacks.lua"]:144>
[C]: in function 'xpcall'
The other is that Jumper doesn't consider map.layers[1].data in the map file to be a valid map for some reason so I'm using an table full of 1s as the grid.
My game:
https://github.com/BrahDesu/sti-jumper-isometric-test
Error
jumper/pathfinder.lua:331: Invalid or unreachable location [9, 1]
Traceback
[love "callbacks.lua"]:228: in function 'handler'
[C]: in function 'assert'
jumper/pathfinder.lua:331: in function 'getPath'
unit.lua:83: in function 'mousepressed'
main.lua:47: in function <main.lua:45>
[love "callbacks.lua"]:154: in function <[love "callbacks.lua"]:144>
[C]: in function 'xpcall'
The other is that Jumper doesn't consider map.layers[1].data in the map file to be a valid map for some reason so I'm using an table full of 1s as the grid.
My game:
https://github.com/BrahDesu/sti-jumper-isometric-test