English
Cinematics
A cinematics file holds a world's trailer and its scenes, and says when they play: when a quest starts or ends, after every quest of a type, or when a store item is added. A scene plays its video if it can, else its page, else its shots, and always has a recap for the player who skips it.
| Standard | alta.cinematics/0.1 |
| File | cinematics.json (in a universe folder) |
| Create it | alta new cinematics my-scenes |
| Check it | alta lint my-scenes |
| JSON Schema | alta.cinematics.schema.json |
Minimal example
A trailer of two shots: a title card, then the camera moves to the centre of the map.
cinematics.json
json
{
"schema": "alta.cinematics/0.1",
"trailer": "trailer",
"scenes": {
"trailer": {
"title": {
"en": "Your machine, as a world",
"fr": "Ta machine, comme un monde"
},
"recap": [
{
"en": "What you see is what really runs on your machine.",
"fr": "Ce que tu vois est ce qui tourne vraiment sur ta machine."
}
],
"shots": [
{
"kind": "card",
"dur": 3,
"title": {
"en": "Your machine, as a world",
"fr": "Ta machine, comme un monde"
}
},
{
"kind": "pan",
"dur": 2,
"to": "centre",
"zoom": 1.4
}
]
}
}
}examples/minimal/cinematics.json
Fields
Cinematics
The file itself.
schema"alta.cinematics/0.1"requiredThe standard:
alta.cinematics/0.1.trailerstringoptionalThe scene played as the world's trailer, by id.
questsmap of objectoptionalScenes for given quests, by quest uid.
quests.<id>.introstringoptionalThe scene played when the quest starts.
quests.<id>.outrostringoptionalThe scene played when it is done.
typesmap of stringoptionalThe outro of every quest of a type, by quest type.
itemsmap of stringoptionalThe scene played when a chart is added, by chart id.
scenesmap of scenerequiredThe scenes, by id.
Scene
A scene lasts 120 seconds at most. "Skip" always shows its recap, and a scene the player has seen never plays again by itself.
titletextrequiredThe scene's title.
recaptext[]requiredThe scene in a few lines: shown when it is skipped, and when nothing else can play.
at least 1 items
videostringoptionalA video: a path served by the game (
/…) or anhttps://address.matches
^(/[^/]|https://)pagestringoptionalA page of the game to show in a frame, by path (
/…).matches
^/[a-zA-Z0-9]
Shot
kind says what the shot is; each kind has its own fields.
kindenumrequiredWhat the shot is; each kind has its own fields.
Values
cardpanlinefxrevealdurnumberrequiredHow long it lasts, in seconds (at most 30).
more than 0 to 30
titletextoptionalwhen
kindiscardA card's title.
texttextoptionalwhen
kindiscardorlineA card's text, or what an agent says (
line).tostringrequiredwhen
kindispanWhere a
pangoes: an entity id,centre,edgeorwide.zoomnumberoptionalwhen
kindispanThe zoom of a pan, from 0.3 to 3.
0.3 to 3
whoenumoptionalwhen
kindislineThe agent who speaks a
line, by role.Values
daemonarchitectoperatorreviewerguardiannameenumrequiredwhen
kindisfxThe effect:
burst,flash,ringsorletterbox.Values
burstflashringsletterboxentitystringrequiredwhen
kindisrevealThe entity a
revealshows, by id.
Rules and errors
Each rule alta lint applies to cinematics, with its section on the errors page.
cinematics.schemaA cinematics file must sayalta.cinematics/0.1.cinematics.scenesThe file needs ascenesobject.cinematics.scene-refA trailer, quest or type points at a scene that does not exist.cinematics.quest-refA scene is attached to a quest that does not exist.cinematics.typeA scene is attached to an unknown quest type.cinematics.item-idA scene is attached to a malformed chart id.scene.idA scene id is malformed.scene.titleA scene needs a title.scene.recapA scene needs a text recap, shown when the player skips it.scene.videoThe scene's video is not a served path or an https address.scene.pageThe scene's page is malformed.scene.shotsThe scene'sshotsare malformed.scene.lengthThe scene is too long.scene.shapeThe scene is malformed.shot.kindA shot'skindis unknown.shot.durA shot's duration is out of bounds.shot.textA line shot needs its text.shot.nameAn effect shot names an unknown effect.shot.toA pan shot needs where to go.shot.zoomA shot's zoom is out of bounds.shot.entityA reveal shot needs the entity it reveals.shot.titleA card shot needs a title.shot.shapeA shot is malformed.
Full example
A trailer, a quest's intro and outro, a type's outro and a store item's scene
cinematics.json
json
{
"schema": "alta.cinematics/0.1",
"trailer": "trailer",
"quests": {
"core.tidy-downloads": {
"intro": "tidy-intro",
"outro": "tidy-outro"
},
"focus.quiet-hours": { "outro": "quiet-outro" }
},
"types": { "repair": "fixed", "daily": "day-done" },
"items": { "evening-pack": "pack-arrives" },
"scenes": {
"trailer": {
"title": {
"en": "Your machine, as a world",
"fr": "Ta machine, comme un monde"
},
"recap": [
{
"en": "What you see is what really runs on your machine.",
"fr": "Ce que tu vois est ce qui tourne vraiment sur ta machine."
},
{
"en": "Quests move the real setup forward.",
"fr": "Les quêtes font avancer la vraie configuration."
}
],
"video": "/media/trailer/neutral.mp4"
},
"tidy-intro": {
"title": {
"en": "Too many downloads",
"fr": "Trop de téléchargements"
},
"recap": [
{
"en": "The guardian proposes a rule for old downloads.",
"fr": "Le gardien propose une règle pour les vieux téléchargements."
}
],
"shots": [
{
"kind": "pan",
"dur": 2,
"to": "agent:guardian",
"zoom": 1.6
},
{
"kind": "line",
"dur": 4,
"who": "guardian",
"text": {
"en": "Your downloads pile up. Let's choose a rule.",
"fr": "Tes téléchargements s'entassent. Choisissons une règle."
}
}
]
},
"tidy-outro": {
"title": {
"en": "A tidy machine",
"fr": "Une machine rangée"
},
"recap": [
{
"en": "Each week, old downloads follow your rule.",
"fr": "Chaque semaine, les vieux téléchargements suivent ta règle."
}
],
"page": "/film/neutral/tidy.html"
},
"quiet-outro": {
"title": {
"en": "Quiet hours",
"fr": "Heures calmes"
},
"recap": [
{
"en": "Nothing disturbs you during your quiet hours.",
"fr": "Rien ne te dérange pendant tes heures calmes."
}
],
"shots": [
{
"kind": "fx",
"dur": 1,
"name": "flash"
},
{
"kind": "card",
"dur": 3,
"title": {
"en": "Quiet hours on",
"fr": "Heures calmes activées"
},
"text": {
"en": "The operator holds the door.",
"fr": "L'opérateur tient la porte."
}
}
]
},
"fixed": {
"title": { "en": "Fixed", "fr": "Réparé" },
"recap": [
{
"en": "What had stopped runs again.",
"fr": "Ce qui s'était arrêté tourne à nouveau."
}
]
},
"day-done": {
"title": {
"en": "Done for today",
"fr": "Fait pour aujourd'hui"
},
"recap": [
{
"en": "This quest comes back tomorrow.",
"fr": "Cette quête revient demain."
}
]
},
"pack-arrives": {
"title": {
"en": "A new place appears",
"fr": "Un nouveau lieu apparaît"
},
"recap": [
{
"en": "The evening pack adds its own quests.",
"fr": "Le pack du soir ajoute ses propres quêtes."
}
],
"shots": [
{
"kind": "pan",
"dur": 2,
"to": "edge"
},
{
"kind": "reveal",
"dur": 2,
"entity": "module:evening-pack"
},
{
"kind": "fx",
"dur": 1,
"name": "rings"
}
]
}
}
}Versions
| Version | What it adds | Read by the game |
|---|---|---|
alta.cinematics/0.1 | Trailer, scenes, shots, and when they play | current |