Corona newb here. So I've been playing around with the SDK for a week now. What a convenient set of tools! Obviously, it made me want to try and throw together a tiny game with it. Can't say that I had any trouble writing my own code, but I got stuck the moment I started trying to deal with other people's work.
So I've made a simple tilemap using Tiled and tried to get it on screen using tile loaders, but I can't get two of them to work! I could've tried another one, but it feels like I miss something obvious, since I can't get both of those that I've tried to work. First I tried Dusk. I followed the steps described at the project's GitHub page, but when I run the code, I get this error:
Dusk/dusk_core/misc/functions.lua:53: attempt to index local 'path' (a nil value)
I doubt that it's possible to screw up, but maybe I'm entering file paths incorreclty:
local map = dusk.buildMap("test/map1.json")
As for Berry, the second loader I tried, it gives me this:
bad argument #1 to 'open' (string expected, got nil)
And the path in this case:
local map1 = berry.new("map1.json", "test")
'map1.json' lies in the same directory as the 'main.lua' file, and 'test' is a name of the folder that also belongs there.
Have zero clue about how to solve this. Can anyone give me at least a hint about where to look for the problem? Maybe there is some other info I can provide to make this mess more clear?