Hi - I have the last stable public build of Corona running (Version 2011.704 (2011.12.8)). Storyboard seems to work fine in the simulator but when I build for device, nothing happens when it is time for the scene to change (everything just freezes). Is this a known issue? [import]uid: 135391 topic_id: 24434 reply_id: 324434[/import]
Is this with the sample code for Storyboard or your own code?
Any terminal errors? Any errors in Xcode log? [import]uid: 52491 topic_id: 24434 reply_id: 98966[/import]
Hi Peach -
This is from my own code. After looking at the Xcode console log, I see this error, which appears to happen as the new scene is loaded:
Apr 6 14:46:45 unknown UIKitApplication:Puffnew[0xec1a][948] : Lua Runtime Error: lua_pcall failed with status: 2, error message is: ?:0: attempt to index upvalue ‘?’ (a nil value)
I don’t get that error at all in the simulator (everything works fine). Any ideas? [import]uid: 135391 topic_id: 24434 reply_id: 99084[/import]
I’ve seen this error a few times for different reasons. Once it was due to a corrupt image.
What I’d suggest is commenting out bits of your code and testing, that way you can isolate the part with the error and fix it. [import]uid: 52491 topic_id: 24434 reply_id: 99163[/import]
I have the same problem. It used to work fine. But, after I changed some codes, it works on corona simulator, not on the device and the Xcode simulator. [import]uid: 114195 topic_id: 24434 reply_id: 99173[/import]
??? [import]uid: 114195 topic_id: 24434 reply_id: 99174[/import]
Check the code that you changed, there’s obviously something in there causing this. (If unsure comment it out and test, if it works then carefully check the code that was commented out and find the error.)
Peach
[import]uid: 52491 topic_id: 24434 reply_id: 99189[/import]
I changed the name of lua file, which I added, from contents****.lua to page0.lua. Then, it works not only on corona simulator, but also on the device and xCode simulator.
I just wonder why??? [import]uid: 114195 topic_id: 24434 reply_id: 99193[/import]
Wait, did the file name actually have asterisks in it? [import]uid: 52491 topic_id: 24434 reply_id: 99222[/import]
The Corona simulator will accept file names that won’t work on the device or Xcode simulator. Also check the case of the file names too [import]uid: 7559 topic_id: 24434 reply_id: 99233[/import]
Anyone know where I could find a list of which file names fit into this category? I do have some .lua files wth the word “content” in their names. Is that not permitted on device? [import]uid: 135391 topic_id: 24434 reply_id: 99243[/import]
The problem is not the name of the file but case sensitive names or non-alphanumeric characters. You can’t use periods in file names except before the file extension.
You also need to avoid using subdirectories named “resources” and if you do put Lua files in subdirectories, use “.” to separate the names. [import]uid: 7559 topic_id: 24434 reply_id: 99246[/import]
Thanks for commenting. Actually, there are no asterisks in the file name.
As I said, it works with page0.lua. But to use the file name such like contentsTable.lua, I need to add local contentsTalbe = require( “contentsTable” ). [import]uid: 114195 topic_id: 24434 reply_id: 99278[/import]