Soaring Gaia Playtest

Modding

The base game is a mod

Everything in Soaring Gaia loads as a content pack, the core game included. Your mod loads the same way, so it can add a ship line, a faction or a star system, change the economy's rules, or replace the whole setting.

Servers send data, asset and Lua packs to players as they join. The wiki is built from the game's own files; point the same tool at your mod and it gets wiki pages too.

my_mod/
pack.jsonid, version, dependencies, tier
defs/ships, goods, recipes, factions…
patches/change other packs' defs
scripts/main.lua
assets/models, textures
lang/translations

Already in the game

Built the way your mod will be

The corsairs' worn rooms are an interior style: the same room, dressed by a different faction's look.
Lights, fittings and glows aboard are content too. A room style can bring its own.

The corsairs' raids, the wars between powers and the fleets they send are Lua scripts in the core pack. Yours run beside them.

Depth

How deep a mod can go

  1. Data

    Ships, parts, goods, recipes, factions, star systems, stations and rules are JSON definitions. Add new ones, or patch another pack's without replacing it.

  2. Assets

    Models, textures, interiors, lighting and looks. A ship line or a faction can get a whole new style.

  3. Lua

    Sandboxed scripts react to world events, keep their own saved state, post news, run fleets and life events. The core pack's own corsairs, wars and fleets run on it.

  4. Code

    Trusted C# for total conversions. Players install these themselves; servers never send code.

For modders

What a mod looks like

{
  "id": "my_mod",
  "name": "My mod",
  "version": "0.1.0",
  "gameVersion": ">=0.1.0 <0.2.0",
  "dependencies": [ { "id": "core", "version": ">=0.1.0" } ],
  "tier": "data",
  "sides": "both",
  "affectsSim": true
}
[
  { "target": "core:iron_ore", "type": "good",
    "op": "merge", "value": { "baseValue": 4.5 } },
  { "target": "core:iron_ore", "type": "good",
    "op": "append", "path": "/tags", "value": "rare_in_my_mod" }
]
-- Counts new captains at each port, and every few cycles
-- posts a bulletin at the port with the most.
gaia.on("made_captain", function(e)
  local counts = gaia.store.get("captains") or {}
  local key = tostring(e.settlement)
  counts[key] = (counts[key] or 0) + 1
  gaia.store.set("captains", counts)
end)

gaia.on("cycle", function(c)
  if c.cycle % 3 ~= 0 then return end
  -- ...find the busiest port, then:
  gaia.news(port, most .. " new captains here.")
end)

From the example packs that ship with the game: a patch that changes iron ore without replacing it, and a script that keeps its own state in the world save.