What is lua? [Solved]

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
cadruben
Recruit Womprat Killer
Posts: 13
Joined: Wed Jun 15, 2011 11:35 am
Projects :: Techno union attack
Games I'm Playing :: SWB2 for ever
xbox live or psn: I don't have xbox

What is lua? [Solved]

Post 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!
User avatar
acryptozoo
Master Bounty Hunter
Master Bounty Hunter
Posts: 1642
Joined: Wed Jun 03, 2009 3:14 pm
Projects :: Yavin Mappack
Games I'm Playing :: Homeworld 2
xbox live or psn: acryptozoo
Location: in the jungles of Yavin IV
Contact:

Re: lua

Post 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
THEWULFMAN
Space Ranger
Posts: 5557
Joined: Tue Aug 17, 2010 3:30 pm
Projects :: Evolved 2
Location: Columbus, Ohio
Contact:

Re: lua

Post 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.
Marth8880
Resistance Leader
Posts: 5042
Joined: Tue Feb 09, 2010 8:43 pm
Projects :: DI2 + Psychosis
Games I'm Playing :: Silent Hill 2
xbox live or psn: Marth8880
Location: Edinburgh, UK
Contact:

Re: What is lua?

Post 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.
cadruben
Recruit Womprat Killer
Posts: 13
Joined: Wed Jun 15, 2011 11:35 am
Projects :: Techno union attack
Games I'm Playing :: SWB2 for ever
xbox live or psn: I don't have xbox

Re: What is lua?

Post by cadruben »

Thank you very much!!! :D
Post Reply