I’m trying to set my screen transitions up my levels menu and my main menu after i run the debugger i keep getting a [ 1] (nil) at main.lua:1 in my main lua file. If anyone could help.
It looks like you have set a breakpoint in the debugger to stop on line 1 of main.lua. See that white dot beside line one? You should be able to click it and turn it off.
Rob
It won’t let me turn it off by clicking the white dot
Try right clicking and look for “Toggle Breakpoint”
I did the toggle break and im still getting the same error.
Do me a favor and try to run your app directly from Corona’s simulator, not launched from Sublime Text and see what errors are printed.
Rob
I ran it from the simulator and got this. here’s the code that’s its having a problem with also.
It appears that the error is in the Director library around line 16. Director is a 3rd party product and we really can’t advise you what to do to fix it.
Perhaps someone in the community can.
Rob
Dang that sucks and this suppose to be a easy code editor. Thanks for the help though i appreciate it
Sublime Text with the Corona Editor plugin isn’t the problem. Director.lua is the problem. Director is very old and isn’t being maintained by the creator. The official scene manager is Storyboard until we release the next public build when we switch to Composer. I would recommend considering using one of those scene managers, or you need to figure out why Director isn’t working for you.
Rob
It looks like you have set a breakpoint in the debugger to stop on line 1 of main.lua. See that white dot beside line one? You should be able to click it and turn it off.
Rob
It won’t let me turn it off by clicking the white dot
Try right clicking and look for “Toggle Breakpoint”
I did the toggle break and im still getting the same error.
Do me a favor and try to run your app directly from Corona’s simulator, not launched from Sublime Text and see what errors are printed.
Rob
I ran it from the simulator and got this. here’s the code that’s its having a problem with also.
It appears that the error is in the Director library around line 16. Director is a 3rd party product and we really can’t advise you what to do to fix it.
Perhaps someone in the community can.
Rob
Dang that sucks and this suppose to be a easy code editor. Thanks for the help though i appreciate it
Sublime Text with the Corona Editor plugin isn’t the problem. Director.lua is the problem. Director is very old and isn’t being maintained by the creator. The official scene manager is Storyboard until we release the next public build when we switch to Composer. I would recommend considering using one of those scene managers, or you need to figure out why Director isn’t working for you.
Rob