Top 5 Ways to Develop LSL Scripts for Second Life
So you have registered with Second Life and read some tutorials on Linden Scripting (I recommend the “Tutorial” and “Kan-ed: Using Linden Script Language” to start with). Now, you need to get the tools of the trade to get your LSL code going! There is a lengthy list of possible LSL editors, but here are my top choices.
5. Notepad
Trusted and proven reliable, many a great Second Life script has been jotted down or at least temporarily saved in this application. Second Life scripts are saved in objects which reside on Linden Lab’s servers - so when the internet connection goes away, so does your development. Having your scripts backed up in a text file is highly recommended in case the object gets deleted, is lost, or floats away!
It’s built in and there’s no extra downloads required. Simply go to a sandbox, right click on the region, select “Create”, and put an Object in. Then, go into the object’s contents and add a script. The built in compiler can be somewhat slow for large scripts, but doing these steps is inevitable for creating objects in Second Life. The obvious downside is when you have a large script that needs lots of testing, these steps become very time consuming. On the plus side, the code is kept safely on SL’s servers and by using groups you can allow multiple people to work on the code. However, there is no revision control or undo - so beware!
3. lslint
When used alone, this handy tool is one of the quickest ways of checking if an LSL script is syntactically correct. It simply checks variables and functions for validity and can even warn you if defined variables are not being used in the script. However, this program is console based only and therefore is quite limited in ease of use. On the plus side, it is incredibly tiny, allows you to work offline, and integrates quite nicely into other tools, such as Eclipse, with no modification. Of course, you will ultimately have to copy your LSL code into the Second Life Editor for testing and integration.
2. Byronstar-SL - Eclipse LSL Plugin
Eclipse is just a beautiful IDE tool and having an LSL plugin is quite a nice addition. Not only can you work on LSL scripts, but with additional Eclipse plugins, you can synchronize your Trac wiki, upload your scripts to an SVN using Subclipse, and develop Java, PHP, C++, <your favorite code here> too all in one nice package. The downsides are Eclipse isn’t for the light of heart - it is a professional tool for developers and the learning curve is the steepest among all the tools. It can be integrated with lslint to give very detailed errors in the code. The downside is it still doesn’t allow you to test code at all beyond syntax errors. However, if you plan on working on a team of cross-platform LSL developers and need a nice IDE that integrates well with a central code version repository, Eclipse is a great solution.
1. LSL-Editor
What a great application. Not only does it allow you to test your script for syntax errors while offline, it actually emulates Second Life and allows you to *run* your code. This includes llHTTPRequest and many other advanced functions, dialog boxes, and more! It has a very nice GUI interface for editing code complete with highlighting tips and IntelliSense-like functionality. The downsides are that this is a .NET application and if you’re running Linux, you might be out of luck (might run in WINE - not sure). Also, it lacks the integration that Eclipse provides, but honestly, it more than makes up for this loss with its advanced features. You’ll love the ability to both check and test your code.
Know a tool that has revolutionized your Second Life scripting that isn’t mentioned here? Please let me know!
I just use the LSL-Editor, which came in *real* handy with the recent asset server issues.