Not Tiled doesn't work with sti
Posted: Tue Aug 22, 2023 8:43 pm
My code:
I just load the map, but there is a error:
Error
sti/utils.lua:195: Could not open file ../assets/block1.png. Does not exist.
Traceback
[love "callbacks.lua"]:228: in function 'handler'
[C]: in function 'newImageData'
sti/utils.lua:195: in function 'fix_transparent_color'
sti/init.lua:106: in function 'init'
sti/init.lua:48: in function 'sti'
main.lua:7: in function 'load'
[love "callbacks.lua"]:136: in function <[love "callbacks.lua"]:135>
[C]: in function 'xpcall'
[C]: in function 'xpcall'
Someone can explain why this happen with just not tiled map? In the same maps in tiled this error doesn't happen.
Code: Select all
io.stdout:setvbuf("no")
local love = _G.love
local sti = require "sti"
local map, world, tx, ty, points
function love.load()
map = sti("Map/export.lua", { "box2d" })
end
Error
sti/utils.lua:195: Could not open file ../assets/block1.png. Does not exist.
Traceback
[love "callbacks.lua"]:228: in function 'handler'
[C]: in function 'newImageData'
sti/utils.lua:195: in function 'fix_transparent_color'
sti/init.lua:106: in function 'init'
sti/init.lua:48: in function 'sti'
main.lua:7: in function 'load'
[love "callbacks.lua"]:136: in function <[love "callbacks.lua"]:135>
[C]: in function 'xpcall'
[C]: in function 'xpcall'
Someone can explain why this happen with just not tiled map? In the same maps in tiled this error doesn't happen.