Blank screen shows up after loading the lua map file.

Thats all well and good. But they didn’t fix the issue im talking about.  I am not sure what they corrected in the file, but the current version posted on their github needs the 0 to be changed to a 1 on line 150 or it doesn’t work with lua files (because lua tables start with 1 and not 0 so it throws all the images off by 1). 

But as mentioned, if you are using json, you need to leave it as it is.  If you are using both json and lua. well first off, why?.. but second it won’t work for both at this time. 

Yeah… That makes sense that the JSON and Lua would have a little different loading scheme. Here’s probably what needs to happen…

for k,v in pairs(tileset.tiles) do if tonumber(k) == (gid - firstgid + (data.luaversion and 0 or 1)) then return v.image, flip -- may need updating with documents directory end end

Try this, and if it works I can commit it to the repo.

Thanks for sharing! FYI, issue like this are always good to add to the GitHub issues list if it’s not already there.

I was able to get it working by swapping the 1 and 0 in the code see below.  it now works for either lua or json if you use the below code:

for k,v in pairs(tileset.tiles) do if tonumber(k) == (gid - firstgid + (data.luaversion and 1 or 0)) then return v.image, flip -- may need updating with documents directory end end

This should be all checked in…

@no2games

I added issue related to this thread on project page :slight_smile: Maybe will be useful.

ldurniat