Development profile works, Distribution does not

I am coming into this issue late, but I hope I can help. I figure everyone else have covered most of the possibilities and my suggestion may appear to be overly-obvious, but I think it is worth your time to consider it.

I noticed the comment about the hyphen in the name of the ‘resource image’ for the pause button, and that may be the issue. That was a good point… if that did not work, still consider something along the same idea. I know quite awhile back – a much older version of the sdk, there was a weird glitch that when testing/running my app in the simulator, even if I had my image named something like ‘image1.png’, but in my code I referred to it as ‘IMAGE1.png’ ( it did not match case wise) but the app ran well in the simulator. However, once loaded to Ipad to test it crashed because the case did not match with the name of the resource. It had to be spelled the same and ‘match case exactly’ to work. My point is, and what I suggest it to totally rename the image file, and make sure the image’s file name AND IT’S PATH match ‘case’ and spelling exactly (and to be safe - not likely an issue - but get rid of any hyphens, underscores and such just to be safe)

I base this on the error you posted, that the image for your pause button is nil!

: Lua Runtime Error: lua_pcall failed with status: 2, error message is: ?:0: attempt to index global ‘pauseBtn’ (a nil value)

I hope this helps.
[import]uid: 148857 topic_id: 35463 reply_id: 141352[/import]

Hi Ryley,
Can you e-mail me the latest version of “level1.lua”? Just want to see what changes you made…

Brent [import]uid: 200026 topic_id: 35463 reply_id: 141354[/import]

Sorry for late reply, we have baby calves popping out the wazoo here in AB. And semester start!

Anyways, Brent, I emailed it to you. Hope you can still see the differences

@cyberparkstudios: I do understand what you mean, I ran into this issue with naming conventions through storyboard. I learned there, and have triple checked everything I can. The spelling and capitalization is all correct. Then I renamed it, changed path, and no difference. It is so strange! Like you say it isn’t being called, which doesn’t make sense!

Is there a variable limit to global/local variable? [import]uid: 28237 topic_id: 35463 reply_id: 141798[/import]