Error message appear when attempting to load STI map

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
snibo
Prole
Posts: 23
Joined: Sat May 04, 2024 6:56 am

Error message appear when attempting to load STI map

Post by snibo »

Kinda hard to explain a problem when you don't know what caused it but I will do my best.

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'
Here is the .tmx file
dianaTest.txt
This is the tmx file it has a txt attachment because the forum wouldn't accept it
(867 Bytes) Downloaded 99 times
As a last piece of context I use a 2 years old version of challacade's legend of lua project as a basis for mine https://github.com/challacade/legend-of ... b897038886

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
Post Reply

Who is online

Users browsing this forum: Amazon [Bot], Google [Bot], Semrush [Bot] and 8 guests