Hi, I’m getting an error when I try to use a spritesheet lua file generated with texturepack.
This is my main.lua:
[code]local sprite = require(“sprite”)
local sheetData = require “gb_walk.lua”
local data = sheetData.getSpriteSheetData()
local spriteSheet = sprite.newSpriteSheetFromData( “gb_walk.png”, data ) [/code]
This is the error im getting in the terminal:
Runtime error: ...11vxg08y\_ltwrnwvh0000gn/T/TemporaryItems/25/main.lua:3: module 'gb\_walk.lua' not found:resource (gb\_walk.lua.lu) does not exist in archive
no field package.preload['gb\_walk.lua']
no file '/var/folders/t4/yqq0hrh11vxg08y\_ltwrnwvh0000gn/T/TemporaryItems/25/gb\_walk.lua.lua'
no file '/Applications/CoronaSDK/Corona Simulator.app/Contents/Resources/gb\_walk.lua.lua'
no file '/Applications/CoronaSDK/Corona Simulator.app/Contents/Resources/gb\_walk.lua.blu'
no file '/Applications/CoronaSDK/Corona Simulator.app/Contents/Resources/gb\_walk.blu'
stack traceback:
[C]: ?
[C]: in function 'require'
...11vxg08y\_ltwrnwvh0000gn/T/TemporaryItems/25/main.lua:3: in main chunk
I have gb_walk.lua and gb_walk.png in the same folder as main.lua and the other assets. Anyone else with the same problem? Can i get some help? Im using a Mac with the build 591, I was going to subscribe but i dont know if it will fix this problem or not.
Thanks [import]uid: 108461 topic_id: 18853 reply_id: 318853[/import]