I’m certain I’ve missed something simple, but I cannot get a test app to load. Any assistance would be awesome.
Every time I try to run, I get this error:
ERROR: Runtime error /TileTest/Dusk/dusk\_core/misc/functions.lua:53: attempt to index local 'path' (a nil value) stack traceback: /TileTest/Dusk/dusk\_core/misc/functions.lua:53: in function 'getDirectory' /TileTest/Dusk/dusk\_core/load/tilesets.lua:53: in function 'get' /TileTest/Dusk/dusk\_core/core.lua:153: in function 'buildMap' /TileTest/Dusk/Dusk.lua:46: in function 'buildMap' /TileTest/main.lua:10: in main chunk
I built a simple 10x10 map in Tiled 0.16.0 with a single image for a tile, and I exported the map to JSON.
I have the latest version of Dusk (downloaded today) at the root of the project folder. The JSON file and image are both at the root of the project folder, too.
main.lua only has two lines
local dusk = require("Dusk.Dusk") local map = dusk.buildMap("tiles.json")
The tiles.json file contains
{ "height":10, "layers":[{ "compression":"zlib", "data":"eJxjYBgcgHEA1VJLDTUAAAUYAAY=", "encoding":"base64", "height":10, "name":"Tile Layer 1", "opacity":1, "type":"tilelayer", "visible":true, "width":10, "x":0, "y":0 }], "nextobjectid":1, "orientation":"orthogonal", "renderorder":"right-down", "tileheight":70, "tilesets":[{ "columns":0, "firstgid":1, "margin":0, "name":"tiles", "spacing":0, "tilecount":1, "tileheight":70, "tiles": { "0": { "image":"box.png" } }, "tilewidth":70 }], "tilewidth":70, "version":1, "width":10 }