This is the first part of my app:
[lua]cpm = require ( “cpmlib” )
prnt(“Before almost anything…”)
local physics = require(“physics”)
prnt(“After requiring physics…”)
physics.start()
prnt(“After starting physics…”)[/lua]
The call to prnt() is not misspelled – if running on the simulator it does a print() but if running on a device it sends the message to an external server.
I’m not seeing that third prnt() message – and in the console of the device I’m seeing an error message that includes this:
Aug 12 01:51:08 unknown UIKitApplication:com.jawhjye.rolypolieshd[0xa3e5][31622] <notice>: Lua Runtime Error: lua_pcall failed with status: 2, error message is: ?:0: attempt to call field 'start' (a nil value)<br>
The cpm library has to be included first because it has that prnt() function, but there are no physics calls or anything like that in there.
This is an app that was put on the App Store probably a year ago and I was just trying to recompile with the latest build so it would work on the iPad 3. But I can’t get it going at all due to this problem.
I’m using Corona SDK 840.
Any ideas?
Jay
PS - It crashes the same way when I build for the Xcode iOS Simulator, too.
[import]uid: 9440 topic_id: 29765 reply_id: 329765[/import]
