Main.lua not opening, Corona Simulator not responding to Sublime 3.

Complete noob here.

When I go to the main.lua file it flashes for a millisecond but does not open.

I tried opening it with Lua.

I have downloaded Lua, Corona, and Sublime 3.

I downloaded Package Control and got the Corona Editor, and a couple other recommended packages.

Do I need to get into Main.lua or can I just use Sublime 3?

When I type in Sublime 3 It does not seem to effect the Corona Simulator, although I am building with Lua.

I have been working for days trying to figure this out.

Hopefully this is the right place to post this and it is not a stupid question, and thank you to anyone who can shed some light on this, as I am really looking forward to making some games.

Hi @flipfloppyr and welcome to the Corona Labs Community Forums.

Your main.lua (and other .lua) files are simply plain text files with a .lua extension. You need to use an editor like Sublime Text 3 to open, edit and save changes to your code. You also need the Corona Simulator running and have it also load your main.lua. (on Windows you will have to click on main.lua in the file picker, on a Mac, just having the folder open to the folder with main.lua is sufficient).

When you save your changes in your text editor (Sublime), you should see the simulator refresh and display your changes.

You don’t actually need Lua installed. Corona includes it’s own copy. You can use the standalone to do quick Lua code tests or to manipulate files and such, but it doesn’t know about Corona’s library of API calls, so you can’t actually run a Corona .lua file in the standalone Lua processor.

Good luck and don’t hesitate to ask questions. We have a great community whose willing to answer your questions.

Rob

Thank you Rob -

It was exactly as you said. I had installed another copy of Lua and was trying to use that instead of using Sublime to open the one that came with Corona.

I got my first Balloon Tap game up and running, and am excited to create more stuff in the future. Very exciting stuff.

Much appreciated.

-Eric

Hi @flipfloppyr and welcome to the Corona Labs Community Forums.

Your main.lua (and other .lua) files are simply plain text files with a .lua extension. You need to use an editor like Sublime Text 3 to open, edit and save changes to your code. You also need the Corona Simulator running and have it also load your main.lua. (on Windows you will have to click on main.lua in the file picker, on a Mac, just having the folder open to the folder with main.lua is sufficient).

When you save your changes in your text editor (Sublime), you should see the simulator refresh and display your changes.

You don’t actually need Lua installed. Corona includes it’s own copy. You can use the standalone to do quick Lua code tests or to manipulate files and such, but it doesn’t know about Corona’s library of API calls, so you can’t actually run a Corona .lua file in the standalone Lua processor.

Good luck and don’t hesitate to ask questions. We have a great community whose willing to answer your questions.

Rob

Thank you Rob -

It was exactly as you said. I had installed another copy of Lua and was trying to use that instead of using Sublime to open the one that came with Corona.

I got my first Balloon Tap game up and running, and am excited to create more stuff in the future. Very exciting stuff.

Much appreciated.

-Eric