Page 1 of 1

[solved] STI error? -- Simple platformer game

Posted: Sun Sep 03, 2023 1:35 pm
by kkeomystic
Hey guys,

So, I'm fairly new at coding and I just cant seem to get my tiled map to work properly. I followed this tutorial in attempt to fix it: (https://www.youtube.com/watch?v=IHmF_bRpOAE&t=176s) but it still doesn't work. Here's the error message:

Error

libraries/sti/utils.lua:195: Could not open file ../tileset/Green moss and rocky walls.png. Does not exist.


Traceback

[love "callbacks.lua"]:228: in function 'handler'
[C]: in function 'newImageData'
libraries/sti/utils.lua:195: in function 'fix_transparent_color'
libraries/sti/init.lua:102: in function 'init'
libraries/sti/init.lua:49: in function 'sti'
main.lua:6: in function 'load'
[love "callbacks.lua"]:136: in function <[love "callbacks.lua"]:135>
[C]: in function 'xpcall'
[C]: in function 'xpcall'

I'm incredibly confused and would be eternally grateful if any of you would lend a hand.

Heres the STI folder in case you haven't seen it before: https://github.com/karai17/Simple-Tiled ... master/sti

I attached the main.lua file as well, hope to hear from anyone! :nyu:

Re: STI error? -- Simple platformer game

Posted: Sun Sep 03, 2023 5:14 pm
by Bobble68
From what I can tell, all it seems to be is that it can't find the image 'Green moss and rocky walls.png'. I'm not familiar with sti, so without seeing more of your game, there's not a lot I can do to help.

Re: STI error? -- Simple platformer game

Posted: Mon Sep 04, 2023 10:10 am
by kkeomystic
Hello! Thanks for your reply, I managed to figure out the problem but i decided to share it in case anyone is facing a problem like this too.

When exporting my tiled map I didn't export it into a .lua file and it was just a renamed .tmx file, when i realized this issue I just went ahead and exported my map as a .lua file and everything worked perfectly. Thanks for replying again! ^^