Log in



Lua Addons

General

Lua Widget Database – A list of cross-mod compatible Lua widgets (for players)
Lua Gadget Database – A list of Lua gadgets (for game developers)

Lua Scripting and Development – Look here to get started with making your own Lua widgets and gadgets

Spring Lua Forum – Browse and discuss published widgets, or publish your own

JobJol’s Lua Widget Section – Popular Spring file host JobJol.nl Lua subsection

Introduction

LuaUI widgets are files containing Lua code that you can run while playing a Spring game in order to assist you with unit management, provide you with valuable information, or otherwise supplement the basic Spring user interface. They are easy to install, easy to run and manage ingame, and relatively easy to write should you choose to learn how to do so.

Getting Widgets

Widget code and files are quite often released as posts in the Spring Lua Forum. In addition, they are also mirrored at popular Spring file sites such as JobJol.

It is also highly recommended that you visit the wiki’s LuaUI Widget Directory, which contains a list of many widgets, along with mod compatibility information and possible additional installation instructions.

Installing Widgets

Widget files have the extension .lua, but only contain plain text. To install widgets you’ve downloaded, just move the .lua file to the LuaUI\Widgets folder in your Spring installation directory. Sometimes, a widget file may come in a zip archive, or be bundled with other dependent files. These files will need to be unarchived, then moved to their proper respective folders in the LuaUI folder. Look for a help or readme file included in the package, or read any installation instructions listed with the widget at the LuaUI Widget Directory.

Using Widgets

NOTE: Before you can use widgets, you MUST make sure that you have checked the “Enable LuaUI widgets” box in SpringSettings.

To list/manage all available widgets, press F11 while ingame. Each widget is listed by name and sorted alphabetically, and mod included widgets appear first on the list with their names surrounded by asterisks. You may click on each widget name to enable/disable that widget. Green widgets are currently running, red widgets are currently disabled and orange widgets have malfunctioned or turned themselves off.

In the case that you begin to see Lua errors and/or your user interface inexplicably crashes or becomes “messed up”, you can use the command /luaui reload in order to restart the Lua user interface. If for any reason you wish to shutdown the Lua user interface while ingame, you may issue the command /luaui disable.

One Response to “Lua Addons”

  1. a says:

    a usefull and compatibl with all gpu is the widgets nammed “x-rayshaders” and “team plater”:
    x-ray highligt all units with team color and stay visible 2 at 10 more (especially trought smoke),
    teamplater replace the selection square per a teamcolored circle very visible too,
    the two can be used simultanously ,
    a basic need to recogniz his selfown

Leave a Reply

You must be logged in to post a comment.