I was experimenting a bit using tiled and everything was working just fine until I added a new layer which has broken everything. So in an attempt to trouble shooting it I removed the new layer but after that it still didn't change anything and I was having the same error message.
Here it is if you recognize it
Code: Select all
Error
libraries/Simple-Tiled-Implementation/sti/init.lua:1014: attempt to index local 'tile' (a nil value)
Traceback
[love "callbacks.lua"]:228: in function 'handler'
libraries/Simple-Tiled-Implementation/sti/init.lua:1014: in function 'setFlippedGID'
libraries/Simple-Tiled-Implementation/sti/init.lua:320: in function 'setTileData'
libraries/Simple-Tiled-Implementation/sti/init.lua:274: in function 'setLayer'
libraries/Simple-Tiled-Implementation/sti/init.lua:124: in function 'init'
libraries/Simple-Tiled-Implementation/sti/init.lua:48: in function 'sti'
src/levels/loadMap.lua:9: in function 'loadMap'
src/levels/transition.lua:40: in function 'triggerTransition'
src/levels/curtain.lua:59: in function 'open'
src/levels/curtain.lua:53: in function '_oncomplete'
libraries/flux/flux.lua:170: in function 'update'
src/update.lua:9: in function 'updateAll'
main.lua:140: in function 'update'
[love "callbacks.lua"]:162: in function <[love "callbacks.lua"]:144>
[C]: in function 'xpcall'
I suspect that it has something to do with layers but that's it sorry if it just seems that I am just throwing all I have at you and telling you fix it for me but I am not familiar enough with tiled