Lua export populating Data array with string instead of ints

Hi all, first time forum member here. When I export my tile map into a lua file, it shows the array “Data” is equal to a string of random characters, when back before 0.18.0 it would just have ints, which worked perfectly with the C++/LuaJIT game engine I was working with. Anybody know how to get it to show ints again in this array? Thanks, Nintendo bless, long live love and Metroid.

Since Tiled 0.13, the Lua export respects the “Tile Layer Format” setting of the map. When you get a string of random characters, it must be set to Base64, probably with some compression enabled. To get an array of ints again, you can change this property to “CSV” in the map properties.

1 Like

Bjorn you are the man! Thank you so much for the quick response and this worked perfectly!

1 Like