Hello! This website doesn't really support IE that well... might I suggest you give Firefox a try?
Viewing posts tagged with: Lua »
David Carrigg
We all love using Lua to write custom scripts for our game objects, and we also love using Notepad++ to edit those scripts. It basically has everything you'd want in a text editor, plus some.

Image

After hunting on the internet for a bit, we realized that there wasn't a good Lua language file for Notepad++ (at least, we couldn't find one). So we decided to take a little bit of time and create a Lua language file which supports the auto complete feature of Notepad++.

Using this you'll get awesome dropdown boxes as you type built in Lua functions. It'll also show you what parameters you can pass into the functions, as well as the documentation for them.

DOWNLOAD IT HERE!

To use it, follow these steps:
1. Download the LuaLangFile.zip from the link above
2. Extract the lua.xml file into the Notepad++ installation directory, under plugins/APIs. (For me this is in C:\Program Files (x86)\Notepad++\plugins\APIs)
3. Open up Notepad++, and go into Settings->Preferences. Under the Backup/Auto-Completion tab, make sure to check "Enable auto-completion on each input", as well as "Function parameters hint on input"

There are a few issues with it at the moment. Firstly, every function is listed as returning void. I couldn't really come up with a good solution to functions which could return different types of data, so I left them all as is. Second, the descriptions for functions with a "." in them (like, math.abs) don't show up. I'm not exactly sure why this is.

If anyone else wants to add to the language file, feel free to post new revisions here or send us an email at info@retroaffect.com as we'll post updates here in the blog.

Happy Scripting!
Tags:
David Carrigg
One thing we've been asked over and over is what our lua scripting support is like. I'm not going to go into the details on how to call lua functions from C++ (However, if you are interested in a tutorial on this then let me know in our IRC channel here). It's pretty easy to get up and going with it.

Image

In a nutshell, using lua in a game engine is sort of like handing the keys to the car you built over to another driver. They can drive it however fast or slow they want to now instead of just sitting in the back seat giving you directions. Eventually they'll take the car off of some sick jumps that you probably would have just driven around otherwise. It'll be a ton of fun and you'll be happy to see just what your car can do! Then one day they'll slam your car right into a tree. Yeah, that's exactly what it's like.

Click Read More to here how we use lua in RAE...

Other Info

Retro Affect LLC
28 Lang Street
Meredith NH 03253
info@retroaffect.com

Find Something

Follow us on Twitter
Look at us on Flickr
Watch us on YouTube
Friend us on Facebook