"every now and then" when i export a map i have an error message:
So checked the differences between the maps that can be loaded and the ones which raise an error using git command:attempt to index local "tile" (a nil value)
git diff --no-index --word-diff level_7.lua level_8.lua
and it seems that the new map doesn't export it's object tileset. (i used tiled templates for every entity in the map)
Code: Select all
[- },-]
[- {-]
[- name = "objects_tileset",-]
[- firstgid = 73,-]
[- filename = "objects_tileset.tsx",-]
[- tilewidth = 16,-]
[- tileheight = 16,-]
[- spacing = 0,-]
[- margin = 0,-]
[- image = "objects_tileset.png",-]
[- imagewidth = 96,-]
[- imageheight = 16,-]
[- tileoffset = {-]
[- x = 0,-]
[- y = 0-]
[- },-]
[- grid = {-]
[- orientation = "orthogonal",-]
[- width = 16,-]
[- height = 16-]
[- },-]
[- properties = {},-]
[- terrains = {},-]
[- tilecount = 6,-]
[- tiles = {-]
[- {-]
[- id = 0,-]
[- properties = {-]
[- ["name"] = "player"-]
EDIT: i put and erased a tile object in the map and now it words fine, it seems like tiled doesn't export information about the tileesets it doesn't "directly" use