Unable to use Dusk Engine

Okay so I am a total newbie on loading up tilemap on corona.
I googled up dusk engine and wanted to use it.
 

Till now I have:

1- Download Tiled

2- Created a map (named “map.tmx”)

3- Exported the map into .json file

4- Placed the “map.json” file and “map.tmx” file in the “images” folder

I am testing the Dusk Engine so I only have the main.lua

Code:
 

local dusk = require("Dusk.Dusk") local map = dusk.buildMap("images/map.json") 

All this was done following the tutorial on Dusk engine git.

When I run the code I get the following error:

Dusk\dusk_core\misc\functions.lua:53: attempt to index local ‘path’ (a nil value)
 

19:04:30.292  stack traceback:

19:04:30.292   Dusk\dusk_core\misc\functions.lua:53: in function ‘getDirectory’

19:04:30.292   Dusk\dusk_core\load\tilesets.lua:53: in function ‘get’

19:04:30.292   Dusk\dusk_core\core.lua:153: in function ‘buildMap’

19:04:30.292   Dusk\Dusk.lua:46: in function ‘buildMap’

19:04:30.292   main.lua:10: in main chunk

Any help!

I was having the same problem. What worked for me was pressing the “Embed Tileset” button.

I was having the same problem. What worked for me was pressing the “Embed Tileset” button.