Page 1 of 1

What is lua? [Solved]

Posted: Sun Jul 03, 2011 4:18 pm
by cadruben
when I'm going to make a vehicle to my map (in a tutorial) it says that something something something LUA something........ What is lua????? plz help!

Re: lua

Posted: Sun Jul 03, 2011 4:29 pm
by acryptozoo
the .Lua is a file located in your common/scripts/*** (*** is your three letter name) it controls most of the things in the game including units setup/scripts/music ...etc
someone else will probably give a better description

Re: lua

Posted: Sun Jul 03, 2011 5:37 pm
by THEWULFMAN
acryptozoo wrote:someone else will probably give a better description

Not really better, but I will try to explain a little bit more.

A Lua file is basically just text written in Lua code, which is a "simple" computer language. Each Lua file is a script that tells the game how to run, almost everything to do with how the game works is handled with the Lua. Everything from what units are loaded, how many requirements there are, and what vehicles are loaded is controlled with the Lua.

Most of the Lua files you have to work with are the ABCc_con.lua files(note, this file name is just an example), as these tell the game how to run each mission. ABC would be the map name, c would be the era, and con is the game type. ABC map name, Clone Wars era, Conquest game mode.

As a side note, it is a common misconception that Lua is an acronym, but in truth, it just means Moon in Portuguese. That's is why it should always be spelled Lua or lua, not LUA like an acronym.

Re: What is lua?

Posted: Mon Jul 04, 2011 5:52 am
by Marth8880
Lua is one of many derivatives - such as C++ or C# - of C. And if you have not already, Google "Notepad++" and use that to edit your ODFs, LUA files, SKY files and REQ files.

Re: What is lua?

Posted: Mon Jul 04, 2011 4:16 pm
by cadruben
Thank you very much!!! :D