[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

Resistance Leader
User avatar
Posts: 5203
Joined: Tue Feb 09, 2010 8:43 pm
Location: Edinburgh, UK
Projects :: EVERYWHERE + Zero Munge + TCW
Games I'm Playing :: The Forest
xbox live or psn: Marth8880

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

Postby Marth8880 » Mon Nov 21, 2016 9:14 pm

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.

Master of the Force
User avatar
Posts: 4761
Joined: Sat Sep 19, 2009 11:37 am
Location: Mos Espa (germany)
Projects :: Republic Commando Side Mod

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

Postby Anakin » Tue Nov 22, 2016 5:41 am

Awesome. Thanks marth. This need to be added to the FAQ get started

Command Sergeant Major
User avatar
Posts: 277
Joined: Mon Apr 27, 2015 7:09 pm
Location: New England
Games I'm Playing :: SWBF2

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

Postby Oceans14 » Tue Nov 22, 2016 11:49 am

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

Return to SWBF2 Modding

Who is online

Users browsing this forum: No registered users and 1 guest