Magic Lantern Forum

Developing Magic Lantern => Scripting Corner => Scripting Q&A => Topic started by: Audionut on January 26, 2016, 02:38:17 AM

Title: LUA resources
Post by: Audionut on January 26, 2016, 02:38:17 AM
Sticking this here as a reminder.  Feel free to throw info at this thread and I'll make it look pretty as time permits.


Quote from: Original Post
Quote from: dmilligan on January 24, 2016, 08:05:11 PM
There are also countless programming resources online. You might consider learning some basics in an easier environment, something with a nice IDE, syntax highlighting, debugger, auto-complete, etc.

Do you or others have some suggestions?

I'll try and compile a useful sticky thread, and suggest to the powers that be that we retire everything picoC related and relegate Scrips Writing (http://www.magiclantern.fm/forum/index.php?board=47.0) to LUA.
Title: Re: Re: Questions about Lua scripting
Post by: dmilligan on January 26, 2016, 04:41:36 PM
Quote from: Audionut on January 26, 2016, 02:38:17 AM
Do you or others have some suggestions?
https://code.org/
https://www.google.com/?q=learn+to+code
Lua Specific:
http://www.lua.org/pil/contents.html

You can install a generic command line Lua compiler/interpreter to run Lua scripts on your computer (look here (http://lua-users.org/wiki/LuaBinaries)) or use the live interpreter (http://www.lua.org/demo.html) (of course you won't be able to use the ML API with these, just generic libraries, but this is fine for starting out learning).

You can use the command line Lua compiler to make sure your scripts are free of syntax errors before loading them on the camera (which might save you some time), or alternatively use an IDE that supports syntax/error highlighting like: LDT (http://www.eclipse.org/ldt) (which also has a debugger built in).