English
Onboarding
The onboarding file is the guide a new player follows: a list of beats, each a few lines from the narrator, a quest the guide walks through, or a tour of the map. A universe ships its own guide in its words; a variant of the guide changes the tone for the people it was made for.
| Standard | alta.onboarding/0.2 |
| File | onboarding.json (in a universe folder), or onboarding.<variant>.json |
| Create it | alta new onboarding my-guide |
| Check it | alta lint my-guide |
| JSON Schema | alta.onboarding.schema.json |
Minimal example
The smallest guide that passes alta lint: one beat, one line.
onboarding.json
json
{
"schema": "alta.onboarding/0.2",
"narrator": "daemon",
"beats": [
{
"id": "hello",
"kind": "say",
"say": {
"en": "Welcome. This world is your machine.",
"fr": "Bienvenue. Ce monde, c'est ta machine."
}
}
]
}examples/minimal/onboarding.json
Fields
Guide
The file itself.
schemaenumrequiredThe standard:
alta.onboarding/0.2(0.1 is still read).Values
alta.onboarding/0.1alta.onboarding/0.2narratorstringoptionalWho speaks, by agent role.
cutscenesmap of objectoptionalShort scenes the guide plays, by id.
cutscenes.<id>.titletextrequiredThe scene's title.
cutscenes.<id>.recaptext[]requiredThe scene in a few lines, shown when it is skipped.
at least 1 items
cutscenes.<id>.videostringoptionalA video to play: a path served by the game (
/…) or anhttps://address.matches
^(/|https://)
Beat
kind says what the beat is: say speaks, quest follows a quest step by step (steps says what the narrator says on each one), tour walks the map (stops).
idstringrequiredThe beat's id, unique in the file; the player's place in the guide is saved under it.
kindenumrequiredsay(lines),quest(the guide follows a quest) ortour(it walks the map).Values
sayquesttoursaytext | text[]optionalWhat the narrator says: one text, or several in turn.
queststringoptionalThe quest the beat follows, by uid. Required on a
questbeat.autoenumoptionalA proof the game gives by itself:
app-open(the app is open) orhosted(the world runs hosted).Values
app-openhostedstepsmap of objectoptionalWhat the guide says and does on each step of its quest, by step id.
steps.<id>.saytextoptionalWhat the narrator says on this step.
steps.<id>.sayDonetextoptionalWhat the narrator says once it is done.
steps.<id>.inputobjectoptionalA field the guide shows on this step; the answer is kept.
steps.<id>.input.savesstringrequiredWhere the answer is kept.
matches
^[a-z0-9][a-z0-9.\-_]{0,79}$steps.<id>.input.placeholdertextoptionalThe grey text in the empty field.
steps.<id>.input.asktextoptionalThe question above the field.
steps.<id>.setupstringoptionalThe id of a setup plan the step shows.
matches
^[a-z0-9][a-z0-9.\-]{0,63}$steps.<id>.cutscenestringoptionalA scene to play on this step, by id (from the cinematics).
stopsobject[]optionalThe stops of a
tourbeat, at least one.stops.walkstringrequiredWhere the avatar walks, by entity id.
stops.saytextoptionalWhat the narrator says there.
stops.tickstringoptionalA step of the beat's quest this stop completes, by step id.
donetextoptionalWhat the narrator says when the beat is over.
trackstringoptionalThe quest the journal tracks after this beat, by uid.
waitenumoptionaldone: wait for the quest to be done;started: go on once it is started.Values
donestarted
Rules and errors
Each rule alta lint applies to a guide, with its section on the errors page.
onboarding.schemaAn onboarding file must sayalta.onboarding/0.2.onboarding.beatsThe onboarding needs abeatslist.onboarding.v2-fieldThis field needs version 0.2 of the standard.onboarding.cutscene-questA cutscene is attached to a quest that does not exist.onboarding.cutscene-recapA cutscene needs a title and a text recap.onboarding.cutscene-videoThe cutscene's video is not a served path or an https address.beat.idA beat id is missing or used twice.beat.kindThe beat'skindis not one the guide knows.beat.questThe beat names a quest that does not exist.beat.trackThe beat tracks a quest that does not exist.beat.autoThe beat waits for a proof the game does not know.beat.tour-stopsA tour beat needs stops.beat.waitThe beat'swaitis malformed.beat.setup-idA setup id is malformed.beat.sceneThe beat plays a scene that does not exist.beat.input-savesThe place an input is saved to is malformed.
Full example
The guide of a universe: lines, a quest followed step by step, a tour and a scene
onboarding.json
json
{
"schema": "alta.onboarding/0.2",
"narrator": "daemon",
"beats": [
{
"id": "hello",
"kind": "say",
"say": [
{
"en": "Hush. You found the hollow.",
"fr": "Chut. Tu as trouvé le creux."
},
{
"en": "Every thread here is woven on your own machine.",
"fr": "Chaque fil ici est tissé sur ta propre machine."
},
{
"en": "Let's count the threads you already brought.",
"fr": "Comptons les fils que tu as déjà apportés."
}
]
},
{
"id": "get",
"kind": "quest",
"quest": "core.get",
"auto": "app-open",
"say": {
"en": "You carried Alta home.",
"fr": "Tu as porté Alta jusque chez toi."
}
},
{
"id": "install",
"kind": "quest",
"quest": "core.install",
"auto": "app-open",
"say": {
"en": "You gave it a corner of the hollow.",
"fr": "Tu lui as donné un coin du creux."
}
},
{
"id": "launch",
"kind": "quest",
"quest": "core.launch",
"auto": "app-open",
"say": {
"en": "And you lit the lantern.",
"fr": "Et tu as allumé la lanterne."
}
},
{
"id": "wake",
"kind": "quest",
"quest": "core.wake",
"say": {
"en": "Now wake the Old Moth. It needs a name and a mind.",
"fr": "Maintenant, réveille la Vieille Phalène. Il lui faut un nom et un esprit."
},
"steps": {
"film": {
"say": {
"en": "First, the tale of the hollow.",
"fr": "D'abord, le récit du creux."
},
"cutscene": "trailer"
},
"name": {
"say": {
"en": "What will you call me?",
"fr": "Comment vas-tu m'appeler ?"
},
"sayDone": {
"en": "{name}. I'll keep it.",
"fr": "{name}. Je le garde."
},
"input": {
"saves": "answers.wake.name",
"placeholder": {
"en": "A name",
"fr": "Un prénom"
}
}
},
"mind": {
"say": {
"en": "Choose how I think.",
"fr": "Choisis comment je pense."
}
},
"signin-claude": {
"say": {
"en": "Open the gate to that mind.",
"fr": "Ouvre le portail de cet esprit."
}
},
"signin-codex": {
"say": {
"en": "Open the gate to that mind.",
"fr": "Ouvre le portail de cet esprit."
}
}
},
"done": {
"en": "I'm awake. Thank you.",
"fr": "Je suis réveillée. Merci."
}
},
{
"id": "team",
"kind": "tour",
"quest": "core.team",
"stops": [
{
"walk": "agent:architect",
"say": {
"en": "The Pattern Fox draws what you need.",
"fr": "Le Renard des Motifs dessine ce qu'il te faut."
},
"tick": "architect-builds-what"
},
{
"walk": "agent:operator",
"say": {
"en": "The Shuttle Wren keeps the day turning.",
"fr": "Le Troglodyte Navette fait tourner la journée."
},
"tick": "operator-runs-your"
},
{
"walk": "agent:reviewer",
"say": {
"en": "The Knot Owl tests every knot.",
"fr": "La Chouette des Nœuds éprouve chaque nœud."
},
"tick": "reviewer-checks-every"
},
{
"walk": "agent:guardian",
"say": {
"en": "The Badger Warden keeps the chests.",
"fr": "Le Blaireau Gardien veille sur les coffres."
},
"tick": "guardian-secrets-and"
}
],
"done": {
"en": "That's your circle of weavers.",
"fr": "Voilà ton cercle de tisserands."
}
},
{
"id": "next",
"kind": "say",
"say": {
"en": "Next, teach me your voice.",
"fr": "Ensuite, apprends-moi ta voix."
},
"track": "core.voice"
}
]
}Versions
| Version | What it adds | Read by the game |
|---|---|---|
alta.onboarding/0.2 | On a step: setup and cutscene; on a beat: auto (a proof the game gives by itself) and wait | current |
alta.onboarding/0.1 | Beats, lines, quests and tours | yes, as written |
A 0.2 field in a file that declares 0.1 is refused (onboarding.v2-field).