Skip to content

Support ​

The support block says where something can be played: on which systems, whether in a hosted world, and what it needs from the machine. It goes in a quest, a branch or a chart. Without it, the content is played everywhere; with it, the game hides what cannot be played here and says why.

Standarda block of alta.quests/0.3, alta.game/0.3 and alta.chart/0.1
Wheresupport of a quest, a branch or a chart
Check italta lint on the file that holds it

Minimal example ​

A quest that needs a microphone: macOS 14 or later, never in a hosted world.

quests.json
json
{
  "platforms": [{ "os": "macos", "min": "14" }],
  "hosted": "no",
  "needs": ["audio"]
}

examples/minimal/support.fragment.json#/quests/0/support

Fields ​

Support ​

platformsobject[]required

The systems it runs on, at least one.

at least 1 items

platforms.osenumrequired

The system.

Valuesmacoslinuxwindows

platforms.archenum[]optional

The processors it runs on (arm64, x64). Absent: all of them.

Valuesarm64x64

at least 1 items

platforms.minstringoptional

The oldest version of the system it needs, e.g. 14 or 13.5.

matches ^\d+(\.\d+){0,3}$

hostedenumoptional

Whether it works in a hosted world: ok (needs linux in the platforms), limited (needs a note for linux) or no. Absent: ok when linux is listed and nothing is needed, else no.

Valuesoklimitedno

needsenum[]optional

What it needs from the machine: gui, audio, gpu, keychain, sudo, terminal, local-device. A hosted world never has gui, audio, keychain or local-device.

Valuesguiaudiogpukeychainsudoterminallocal-device

notesmap of textoptional

A short note for the player, per system (only for the systems it supports), e.g. what is limited there.

A hosted world runs on Linux and has no screen, sound, keychain or device of its own: hosted: "ok" needs linux in the platforms, and a need of that list makes the content local only.

A step that differs from one system to another says so in its own fields: os on the step, or one value per system for run, cmd and open. See One step per system.

Rules and errors ​

Each rule alta lint applies to a support block, with its section on the errors page.

Full example ​

The quest around it
quests.json
json
{
  "schema": "alta.quests/0.3",
  "branch": "core",
  "quests": [
    {
      "id": "minimal-mic",
      "uid": "core.minimal-mic",
      "act": 2,
      "giver": "daemon",
      "title": {
        "en": "Let it hear you",
        "fr": "Laisse-le t'entendre"
      },
      "reward": { "xp": 20 },
      "support": {
        "platforms": [{ "os": "macos", "min": "14" }],
        "hosted": "no",
        "needs": ["audio"]
      },
      "steps": [
        {
          "id": "mic",
          "kind": "check",
          "title": {
            "en": "The microphone is allowed",
            "fr": "Le micro est autorisé"
          },
          "check": {
            "type": "permission",
            "name": "microphone"
          }
        }
      ]
    }
  ]
}

examples/minimal/support.fragment.json

Versions ​

VersionWhat it addsRead by the game
alta.game/0.2The support blockyes, and in 0.3 and in alta.chart/0.1

Guides that use it ​

Alta OS is open source (MIT).