But the result is always messy... Is that code incompatible with the actual version of Tiled?
This is what i see on Tiled:
This is what i see in-game:
The only thing i modified on the code was adding a mapPixel function to interpret the blue from the sprites as transparency, this was working pretty well on another map, but on that one it's also messy, i don't know why...
But it doesn't even load, it outputs the error attempt to concatenate field "image"(a nil value) on map.lua:112.
I've received a similar error with the library said on my first post and I've fixed it by adding "/data/" to every asset loaded, I didn't figured out how to do this with STI, but I've tried to change my map file directly, and it didn't worked, the "/data/" on the output string was duplicated.