English
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.
| Standard | a block of alta.quests/0.3, alta.game/0.3 and alta.chart/0.1 |
| Where | support of a quest, a branch or a chart |
| Check it | alta 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[]requiredThe systems it runs on, at least one.
at least 1 items
platforms.osenumrequiredThe system.
Values
macoslinuxwindowsplatforms.archenum[]optionalThe processors it runs on (
arm64,x64). Absent: all of them.Values
arm64x64at least 1 items
platforms.minstringoptionalThe oldest version of the system it needs, e.g.
14or13.5.matches
^\d+(\.\d+){0,3}$hostedenumoptionalWhether it works in a hosted world:
ok(needslinuxin the platforms),limited(needs a note for linux) orno. Absent:okwhen linux is listed and nothing is needed, elseno.Values
oklimitednoneedsenum[]optionalWhat it needs from the machine:
gui,audio,gpu,keychain,sudo,terminal,local-device. A hosted world never hasgui,audio,keychainorlocal-device.Values
guiaudiogpukeychainsudoterminallocal-devicenotesmap of textoptionalA 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.
supportThesupportblock is malformed.support.platformssupport.platformsis missing or names an unknown system.support.hostedThehostedvalue does not match the systems or the notes.support.needssupport.needsnames an unknown need.support.notesA note is given for a system that is not supported.
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"
}
}
]
}
]
}Versions
| Version | What it adds | Read by the game |
|---|---|---|
alta.game/0.2 | The support block | yes, and in 0.3 and in alta.chart/0.1 |