Page 1 of 1

How do you get LUA to work? [SOLVED]

Posted: Mon Apr 13, 2009 8:35 am
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:

Re: How do you get LUA to work?

Posted: Mon Apr 13, 2009 8:45 am
by B.I.G_Cookie
Maybe this is a stupid question, but what do you mean with "I downloaded LUA" ?!

Re: How do you get LUA to work?

Posted: Mon Apr 13, 2009 8:51 am
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: .

Re: How do you get LUA to work?

Posted: Mon Apr 13, 2009 12:18 pm
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

Re: How do you get LUA to work?

Posted: Mon Apr 13, 2009 2:08 pm
by Fiodis
What kind of programming features are you talking about, Teancum?

Re: How do you get LUA to work?

Posted: Mon Apr 13, 2009 2:24 pm
by Teancum
It's color coded just like any great studio-based development program, as per the screen below:
Hidden/Spoiler:
Image

Re: How do you get LUA to work?

Posted: Mon Apr 13, 2009 2:27 pm
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.

Re: How do you get LUA to work?

Posted: Mon Apr 13, 2009 2:33 pm
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.

Re: How do you get LUA to work?

Posted: Mon Apr 13, 2009 3:31 pm
by Fiodis
I might take this chance to point out that Notepad ++ is also somewhat color-coded.

Re: How do you get LUA to work?

Posted: Mon Apr 13, 2009 4:59 pm
by Faceman2000
Thanks guys. You've all been really helpful. This topic can be locked. :thumbs:

Re: How do you get LUA to work?

Posted: Mon Apr 13, 2009 8:51 pm
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.