[Tutorial] How to use the Lua Development Tools for SWBF2

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
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:

[Tutorial] How to use the Lua Development Tools for SWBF2

Post by Marth8880 »

Many of you probably use Notepad++ to edit your Lua scripts, and that's great! But there's an even better, more functional tool out there for Lua scripting, and that's the aptly-named Lua Development Tools (LDT)!

Lua Development Tools is an IDE (interactive development environment) dedicated to Lua scripting. It's built on Eclipse, so if you've ever used that, you'll be familiar with LDT's interface right away!

Check out the list of LDT's features here: https://eclipse.org/ldt/


Download links

You can download LDT from one of the following links:

Download Lua Development Tools 1.4.0 (32-bit)
Download Lua Development Tools 1.4.0 (64-bit)


Getting started with LDT for SWBF2 modding

1. Download and install the latest version of the Lua Development Tools via one of the links above if you haven't done so already. I strongly recommend you install the 64-bit version.

2. Once LDT is installed and running, go to File, New, Lua Project.
Hidden/Spoiler:
Image
3. Enter a name for the LDT project in "Project name". I like to make mine the same name as my mod's data folder (e.g., data_ABC).
Hidden/Spoiler:
Image
4. Select "Create project at existing location (from existing source)" and browse to and select your project's data folder (e.g., data_ABC).
Hidden/Spoiler:
Image
5. Make sure "Targeted Execution Environment" is set to "lua-5.1" and "Target Grammar" is set to "Default".
Hidden/Spoiler:
Image
6. Once your "New Lua project" window looks something like mine, click Next:
Hidden/Spoiler:
Image
7. In the next screen, choose the folder to use as the source folder. To do so, right-click it and select "Use as Source Folder". I recommend using your project folder as the source folder so LDT can access the addme script and any shell scripts.
Hidden/Spoiler:
Image
8. Click "Configure inclusion and exclusion filters" in the "Details" pane.
Hidden/Spoiler:
Image
9. Click "Add Multiple" in the "Exclusion patterns" pane.
Hidden/Spoiler:
Image
10. Select each directory that you know will never contain Lua scripts (Ctrl+click to select multiple) and click OK.
Hidden/Spoiler:
Image
11. Click Finish in the "Inclusion and Exclusion Patterns" window.
Hidden/Spoiler:
Image
12. Click Finish in the "New Lua project" window.
Hidden/Spoiler:
Image
13. You're done! Now go and take advantage of LDT's many great features! :)
Hidden/Spoiler:
Image
Last edited by Marth8880 on Wed Dec 06, 2017 3:14 pm, edited 1 time in total.
User avatar
Anakin
Master of the Force
Master of the Force
Posts: 4817
Joined: Sat Sep 19, 2009 11:37 am
Projects :: RC Side Mod - Remastered - SWBF3 Legacy
Location: Mos Espa (germany)

Re: [Tutorial] How to use the Lua Development Tools for SWBF

Post by Anakin »

Awesome. Thanks marth. This need to be added to the FAQ get started
User avatar
Oceans14
Command Sergeant Major
Command Sergeant Major
Posts: 296
Joined: Mon Apr 27, 2015 7:09 pm
Projects :: Athenova Campaign
Games I'm Playing :: SWBF2
Location: Planet 4546b

Re: [Tutorial] How to use the Lua Development Tools for SWBF

Post by Oceans14 »

Really cool! I'm a big fan of anything that optimizes organization and workflow, so this is great. Thanks for sharing :)
Post Reply