Here is an exhaustive list of the different lua environments within Spring, roughly in execution order as a game is loaded.
Source: {{sourcelink|file=rts/Lua/LuaMenu.cpp}}
...
9 KB (928 words) - 17:51, 12 November 2025
= Lua Callins =
...1e82b050267572a/rts/Lua/LuaHandle.cpp https://github.com/spring/spring/rts/Lua/LuaHandle.cpp]
...
31 KB (4,146 words) - 17:51, 12 November 2025
[[Engine_Development|Development]] < [[Lua_Scripting|Lua Scripting]] < {{FULLPAGENAME}}
[[category: Lua]]
...
3 KB (401 words) - 17:51, 12 November 2025
=Lua libraries=
This page lists all common Lua libraries that can be used in Spring game and map archives.
...
2 KB (316 words) - 17:51, 12 November 2025
[[Engine_Development|Development]] < [[Lua_Scripting|Lua Scripting]] < {{FULLPAGENAME}}
[[category: Lua]]
...
5 KB (634 words) - 17:51, 12 November 2025
[[Engine_Development|Development]] < [[Lua_Scripting|Lua Scripting]] < {{FULLPAGENAME}}
[[category: Lua]]
...
3 KB (364 words) - 17:50, 12 November 2025
=Lua FAQ=
...f the Spring engine can be controlled and extensively modified through the Lua API.
...
1 KB (168 words) - 17:50, 12 November 2025
[[Engine_Development|Development]] < [[Lua_Scripting|Lua Scripting]] < {{FULLPAGENAME}}
=All Lua Contexts=
...
10 KB (1,183 words) - 17:50, 12 November 2025
...et, the destination has to the corresponding allow rule. For example, if a lua widget wants to connect to springrts.com at port 80,
...m/spring/spring/blob/develop/cont/examples/Widgets/luasocket.lua luasocket.lua]
...
3 KB (521 words) - 17:50, 12 November 2025
[[Engine_Development|Development]] < [[Lua_Scripting|Lua Scripting]] < {{FULLPAGENAME}}
|info = Loads a SoundDefs file, the format is the same as in `gamedata/sounds.lua`.
...
41 KB (4,880 words) - 17:50, 12 November 2025
[[Engine_Development|Development]] < [[Lua_Scripting|Lua Scripting]] < {{FULLPAGENAME}}
...link|Modinfo.lua|name}} .. {{xtaglink|Modinfo.lua|version}} from [[Modinfo.lua]]. E.g. "Spring: 1944 test-5640-ac2d15b".
...
34 KB (3,950 words) - 17:50, 12 November 2025
[[Engine_Development|Development]] < [[Lua_Scripting|Lua Scripting]] < {{FULLPAGENAME}}
note3: You can read RulesParams from '''any''' Lua enviroments! With those losAccess<br/> policies you can limit their acc
...
63 KB (7,519 words) - 17:50, 12 November 2025
[[Engine_Development|Development]] < [[Lua_Scripting|Lua Scripting]] < {{FULLPAGENAME}}
...lass="warning">Warning:</span> boolean values are not transfered from C to Lua correctly. For this reason the respective option has to be converted to a n
...
80 KB (9,316 words) - 17:50, 12 November 2025
[[Engine_Development|Development]] < [[Lua_Scripting|Lua Scripting]] < {{FULLPAGENAME}}
To get the commandqueue use the following lua-call
...
12 KB (1,900 words) - 17:50, 12 November 2025
[[Engine_Development|Development]] < [[Lua_Scripting|Lua Scripting]] < {{FULLPAGENAME}}
==Lua's DrawXYZ-Callin==
...
5 KB (577 words) - 17:50, 12 November 2025
[[Engine_Development|Development]] < [[Lua_Scripting|Lua Scripting]] < {{FULLPAGENAME}}
Fortunately, the Spring Lua system automatically provides access to mod and base files via the VFS modu
...
10 KB (1,321 words) - 17:50, 12 November 2025
'''[[Lua:WidgetDirectory|LuaUI Widget Directory]]''' - A list of LuaUI widgets<br><
...ting and Development]]''' - Look here to get started with making your own Lua widgets and gadgets<br><br>
...
3 KB (497 words) - 17:50, 12 November 2025
[[Engine_Development|Development]] < [[Lua_Scripting|Lua Scripting]] < {{FULLPAGENAME}}
...6 {{type|numbers}} or a [https://github.com/spring/spring/blob/develop/rts/Lua/LuaOpenGLUtils.cpp#L60 matrix name]
...
55 KB (6,954 words) - 17:51, 12 November 2025
[[Engine_Development|Development]] < [[Lua_Scripting|Lua Scripting]] < {{FULLPAGENAME}}
[[Category: Lua]]
...
3 KB (460 words) - 17:50, 12 November 2025
[[Engine_Development|Development]] < [[Lua_Scripting|Lua Scripting]] < {{FULLPAGENAME}}
This page is an introduction to using Lua in Spring - it only tries to answer general questions, for more specific Qu
...
6 KB (941 words) - 17:51, 12 November 2025
=Lua FAQ=
...f the Spring engine can be controlled and extensively modified through the Lua API.
...
1 KB (168 words) - 17:50, 12 November 2025
'''[[Lua:WidgetDirectory|LuaUI Widget Directory]]''' - A list of LuaUI widgets<br><
...ting and Development]]''' - Look here to get started with making your own Lua widgets and gadgets<br><br>
...
3 KB (497 words) - 17:50, 12 November 2025
=Lua libraries=
This page lists all common Lua libraries that can be used in Spring game and map archives.
...
2 KB (316 words) - 17:51, 12 November 2025
Here is an exhaustive list of the different lua environments within Spring, roughly in execution order as a game is loaded.
Source: {{sourcelink|file=rts/Lua/LuaMenu.cpp}}
...
9 KB (928 words) - 17:51, 12 November 2025
[[Engine_Development|Development]] < [[Lua_Scripting|Lua Scripting]] < {{FULLPAGENAME}}
This page is an introduction to using Lua in Spring - it only tries to answer general questions, for more specific Qu
...
6 KB (941 words) - 17:51, 12 November 2025
'''[[Lua_Scripting|Lua Development]]'''
Information regarding the use of the supplementary Lua scripting language for Widgets and beyond.
...
2 KB (285 words) - 18:26, 12 November 2025
...et, the destination has to the corresponding allow rule. For example, if a lua widget wants to connect to springrts.com at port 80,
...m/spring/spring/blob/develop/cont/examples/Widgets/luasocket.lua luasocket.lua]
...
3 KB (521 words) - 17:50, 12 November 2025
[[Engine_Development|Development]] < [[Lua_Scripting|Lua Scripting]] < {{FULLPAGENAME}}
==Lua's DrawXYZ-Callin==
...
5 KB (577 words) - 17:50, 12 November 2025
* [[Armordefs.lua]] - armor classes
* [[Icontypes.lua]] - strategic unit icons
...
4 KB (519 words) - 18:24, 12 November 2025
[[Engine_Development|Development]] < [[Lua_Scripting|Lua Scripting]] < {{FULLPAGENAME}}
[[category: Lua]]
...
3 KB (401 words) - 17:51, 12 November 2025
[[Engine_Development|Development]] < [[Lua_Scripting|Lua Scripting]] < {{FULLPAGENAME}}
[[category: Lua]]
...
3 KB (364 words) - 17:50, 12 November 2025
[[Engine_Development|Development]] < [[Lua_Scripting|Lua Scripting]] < {{FULLPAGENAME}}
[[Category: Lua]]
...
3 KB (460 words) - 17:50, 12 November 2025
[[Engine_Development|Development]] < [[Lua_Scripting|Lua Scripting]] < {{FULLPAGENAME}}
=All Lua Contexts=
...
10 KB (1,183 words) - 17:50, 12 November 2025
...bal table and the unitDefID unit instance identifier are available in your lua animation script, so you can simply do:
...eads]] has a decent description on COB threads, which are mimicked here in Lua using coroutines.
...
11 KB (1,719 words) - 17:51, 12 November 2025
...mong the games powered by the Spring Engine, Zero-K makes extensive use of Lua scripting for interface and gameplay changes/enhancements, as well as uniqu
...
980 bytes (128 words) - 23:29, 11 November 2025
FeatureDef files are .lua files stored in the <code>Features/</code> directory of a Spring Game.
In lua tables keys (i.e. the tags) should be lower case, here they are represented
...
8 KB (1,107 words) - 18:24, 12 November 2025
[[Engine_Development|Development]] < [[Lua_Scripting|Lua Scripting]] < {{FULLPAGENAME}}
[[category: Lua]]
...
5 KB (634 words) - 17:51, 12 November 2025
[[Engine_Development|Development]] < [[Lua_Scripting|Lua Scripting]] < {{FULLPAGENAME}}
Fortunately, the Spring Lua system automatically provides access to mod and base files via the VFS modu
...
10 KB (1,321 words) - 17:50, 12 November 2025
...veral games for Spring who use their own resourcing systems added on using Lua. If you are creating this map for one of those games, a metal map is not st
...
2 KB (307 words) - 18:14, 12 November 2025
* Pink is lua gc
...
2 KB (330 words) - 18:24, 12 November 2025