Using SLua in the beta grid

These are the steps to follow before starting to script in SLua:

  • Install the “Second Life Project Lua Editor” viewer, from:
    https://releasenotes.secondlife.com/viewer.html
    This is a different viewer, with a different icon, than the “Second Life Viewer”. We can keep our usual viewer for the main grid and use this one for the beta grid.

  • Access the Beta Grid (Aditi), explained in:
    https://lindenlab.freshdesk.com/support/solutions/articles/31000156725-accessing-aditi

  • Teleport to one of the four regions that have SLua activated. It doesn’t work in the other regions. Sometimes one or two of these regions are offline, try another one if you can’t tp or login:
  • Rez an object and add a new script as usual. The script editor has a “compiler” drop-down list, at bottom center. Choose “SLua”:
    • LSL Legacy (LSO2) : LSL, with “Mono” unchecked.
    • LSL Mono : LSL, with “Mono” checked (the usual one).
    • LSL 2025 VM : LSL, but compiled into VM Luau instead of VM Mono.
    • SLua
  • About the editor, some things to keep in mind:
    • Some errors are not detected when compiling, we will get them in an error window, which sometimes opens behind the editor window. If the script does nothing after compiling, move the editor window to check.
    • SLua counts script lines starting with 1, while the editor still shows a line nubmered 0. We must always subtract 1 from the error line number to find it in the editor.
    • Coloring and highlighting do not work perfectly.
    • Highlighting is much slower than in LSL. If editing large scripts becomes too slow we can disable it with the debug setting ScriptEditorDisableSyntaxHighlight.