0% developed

Lua in SpringRTS

From Wikibooks, open books for an open world
Jump to navigation Jump to search

This book is going to help developers using Lua with the opensource SpringRTS game engine. This book covers mostly the integration of SpringRTS with Lua. This integration takes place in the form of widgets, gadgets, mods, maps. All these elements can be created with the use of Lua and the inbuilt functions and variables that the Spring Engine provides.

It is assumed that the reader already has some basic knowledge of the Lua language. If you don't, then it is highly recommended that you first read the free Programming in Lua. A more fun way is by getting the source of widgets(which can be found here) and try to modify them and understand how they work.

Contents[edit | edit source]

  1. What is the Spring engine
  2. Lua integration with Spring
  3. Spring specifications
    1. Synced Mode
    2. Unsynced Mode
    3. Gadgets
    4. Widgets
  4. Games(mods)
    1. Mod Structure
    2. Units
      • 3D Models
      • Animations
      • Weapons
    3. Features
    4. Common identifiers
  5. Maps
    1. Map Structure
  6. Spring API
    1. Variables and Constants
    2. Callins
    3. Callouts

Contribution[edit | edit source]

Johan Hanssen Seferidis (aka Pithikos)