PDA

View Full Version : Nice modding language: Lua


AngleWyrm
May 19th, 2007, 09:57 AM
Been playing around with Lua scripting language (http://www.lua.org/manual/5.1/manual.html#1). It's quite a nice way to get data and AI processing text files into a C++ (or any) language program. There's a Lua Dev-Pak (http://www.devpaks.org/details.php?devpak=126) that works with Dev-CPP and Code::Blocks.

Here's a sample C++ app with Lua data and script files. If you use Code::Blocks (http://codeblocks.org/) IDE, then there's a workspace file in there as well.

[edit]eh, the forum attach d/l is bugging out, so here's a link (http://home.comcast.net/~anglewyrm/luatest.zip).

Ragnarok-X
May 20th, 2007, 05:57 PM
Yep, .lua is trly amazing. Homeworld 2 uses it, DoW, Civ4, even Supreme Commander.
Its a very easy, but very deep language. Its pretty much the best thing i know up to date.