Hey,
I am trying to implement the storyboard module into my game and it works fine - in the simulator.
But when I build my app for the device and want to open it, I get the following error message:
Dec 26 17:51:39 iPhone StoryBoard[3317] : Lua Runtime Error: lua_pcall failed with status: 2, error message is: loop or previous error loading module ‘storyboard’
I did some research and could not find a solution. So if anyone has an idea what is going on, please post your suggestions.
That´s my main.lua file:
-- hide the status bar
display.setStatusBar( display.HiddenStatusBar )
-- include the Corona "storyboard" module
local storyboard = require "storyboard"
centerX = display.contentWidth \* 0.5
centerY = display.contentHeight \* 0.5
-- load menu screen
storyboard.gotoScene( "menu" )
and that is my menu.lua:
[code]module(…, package.seeall)
local storyboard = require (“storyboard”)
local scene = storyboard.newScene()
require(“buttoncode”)
print(centerX)
– local forward references
local function buttonHit(parm)
–storyboard.gotoScene (parm, {effect = “fade”})
storyboard.gotoScene (parm)
end
function scene:createScene( event )
local group = self.view
makeButton(“Play Game”, centerX, centerY, buttonHit, “level1”, group)
makeButton(“Options”, centerX, centerY + 40, buttonHit, “options”, group)
makeButton(“Credits”, centerX, centerY + 80, buttonHit, “gamecredits”, group)
end
function scene:enterScene(event)
local group = self.view
end
function scene:exitScene(event)
local group = self.view
end
function scene:destroyScene(event)
local group = self.view
end
scene:addEventListener(“enterScene”, scene)
scene:addEventListener(“createScene”, scene)
scene:addEventListener(“exitScene”, scene)
scene:addEventListener(“destroyScene”, scene)
return scene
[/code]
I can not figure out the problem because it seems to work fine in Corona simulator.
Kind regards,
Max [import]uid: 138330 topic_id: 34303 reply_id: 334303[/import]