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!
[solved] STI error? -- Simple platformer game
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
- kkeomystic
- Prole
- Posts: 2
- Joined: Sun Sep 03, 2023 1:20 pm
[solved] STI error? -- Simple platformer game
- Attachments
-
- main.lua
- ignore my spaghetti code please ^^
- (819 Bytes) Downloaded 56 times
Last edited by kkeomystic on Mon Sep 04, 2023 10:14 am, edited 1 time in total.
Re: STI error? -- Simple platformer game
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.
Dragon
- kkeomystic
- Prole
- Posts: 2
- Joined: Sun Sep 03, 2023 1:20 pm
Re: STI error? -- Simple platformer game
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!
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!
Who is online
Users browsing this forum: Bing [Bot], Google [Bot] and 6 guests