How do you get LUA to work? [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
User avatar
Faceman2000
Master Sergeant
Master Sergeant
Posts: 173
Joined: Tue Mar 03, 2009 7:55 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: If the words above my head says, "offline", than I'm not here.

How do you get LUA to work? [SOLVED]

Post by Faceman2000 »

I have a huge problem (sorry if it's already been answered), I downloaded LUA, unzipped it, and now what? Could someone please help? :cry:
User avatar
B.I.G_Cookie
High General
High General
Posts: 839
Joined: Sun Feb 22, 2009 4:28 pm
Games I'm Playing :: Battlefield 4
Location: Frankfurt, Germany

Re: How do you get LUA to work?

Post by B.I.G_Cookie »

Maybe this is a stupid question, but what do you mean with "I downloaded LUA" ?!
User avatar
Frisbeetarian
Jedi
Jedi
Posts: 1233
Joined: Wed Sep 12, 2007 3:13 pm

Re: How do you get LUA to work?

Post by Frisbeetarian »

Lua scripts can be edited using Notepad (though programs like Notepad++ can help structure you better). You don't need to download anything to get Lua to "work," the game handles that for you through the .exe.

What you probably downloaded was the source code to Lua, which I dare say, you would probably have trouble getting that to "work" :lol: .
User avatar
Teancum
Jedi Admin
Jedi Admin
Posts: 11080
Joined: Wed Sep 07, 2005 11:42 pm
Projects :: No Mod project currently.
Games I'm Playing :: Destiny
xbox live or psn: No gamertag set
Location: Indiana

Re: How do you get LUA to work?

Post by Teancum »

I HIGHLY recommend using SciTE to edit lua files. It's like notepad, but with programming features that are really useful, plus it's 100% free and is a really small install. I use it on occasion at work as well.

http://www.scintilla.org/SciTE.html
User avatar
Fiodis
Master of the Force
Master of the Force
Posts: 4145
Joined: Wed Nov 12, 2008 9:27 pm
Projects :: Rannoch + Tientia + Tools Programming

Re: How do you get LUA to work?

Post by Fiodis »

What kind of programming features are you talking about, Teancum?
User avatar
Teancum
Jedi Admin
Jedi Admin
Posts: 11080
Joined: Wed Sep 07, 2005 11:42 pm
Projects :: No Mod project currently.
Games I'm Playing :: Destiny
xbox live or psn: No gamertag set
Location: Indiana

Re: How do you get LUA to work?

Post by Teancum »

It's color coded just like any great studio-based development program, as per the screen below:
Hidden/Spoiler:
Image
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Re: How do you get LUA to work?

Post by Maveritchell »

Teancum wrote:It's color coded just like any great studio-based development program, as per the screen below:
Hidden/Spoiler:
Image
Looks like a neat program, although my IDE of choice for LUA remains LUAEdit. It's always best to have some program more user-friendly than notepad for editing scripts.
User avatar
Teancum
Jedi Admin
Jedi Admin
Posts: 11080
Joined: Wed Sep 07, 2005 11:42 pm
Projects :: No Mod project currently.
Games I'm Playing :: Destiny
xbox live or psn: No gamertag set
Location: Indiana

Re: How do you get LUA to work?

Post by Teancum »

Yep, I'd actually recommend Mav's program to most users. Having debugging for the LUA scripts before you ever run SWBF2 is always good.
User avatar
Fiodis
Master of the Force
Master of the Force
Posts: 4145
Joined: Wed Nov 12, 2008 9:27 pm
Projects :: Rannoch + Tientia + Tools Programming

Re: How do you get LUA to work?

Post by Fiodis »

I might take this chance to point out that Notepad ++ is also somewhat color-coded.
User avatar
Faceman2000
Master Sergeant
Master Sergeant
Posts: 173
Joined: Tue Mar 03, 2009 7:55 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: If the words above my head says, "offline", than I'm not here.

Re: How do you get LUA to work?

Post by Faceman2000 »

Thanks guys. You've all been really helpful. This topic can be locked. :thumbs:
User avatar
[RDH]Zerted
Gametoast Staff
Gametoast Staff
Posts: 2982
Joined: Sun Feb 26, 2006 7:36 am
Projects :: Bos Wars AI - a RTS game
Games I'm Playing :: SWBF2 and Bos Wars
xbox live or psn: No gamertag set
Location: USA
Contact:

Re: How do you get LUA to work?

Post by [RDH]Zerted »

SciTE, Notepad++, and LuaEdit. All work fine. Try them all out and keep the one you like best.

I used LuaEdit then moved to Eclipse when working on the v1.3 patch. However, Eclipse is super overkill for what you need (syntax highlighting/coloring). I don't recommend using it.

The mod tools come with everything you need to run your Lua scripts inside the game. You don't run the scripts as separate programs, but as part of your map.

Locked.
Post Reply