DocsHostingTools and services

Server films

A server can record each of its games as a film, to look at a report or a disputed game afterwards. It's off until you turn it on, in [defaults] or a [[server]]:

dedicated.toml
[defaults]
film_recording = true
film_keep = 25        # the newest films kept
film_max_mb = 2048    # and the most disk they take together
  • Where: data/<server>/films. Each is an ordinary film that any player's Theater plays, and project-reclaimer --film PATH opens one directly.
  • Limits: the newest film_keep films stay, within film_max_mb, the oldest deleted first. A film that reaches film_max_mb by itself stops. While the disk has under 1 GB free, the oldest films go. A game under 10 seconds isn't kept.
  • Checked: <film>.hash.json beside each film has its size and SHA-256, the same sha256sum gives.
  • When something goes wrong: a write error or a full disk stops that film and is logged once; the game goes on and the next game records again. Only finished films reach films, so a server stopped mid-game leaves none cut short.
  • What it costs: about 0.1 MB a player-minute on disk. Every 10 seconds a recording server does extra work that grows with the map's objects: nothing to notice on an ordinary map, but a short pause on a Forge map with thousands of them.
  • What a film lacks: a game ended from outside, by the console or by every player leaving, doesn't show its end.
  • A change counts from the next game. RECLAIMER_DEDICATED_FILM_RECORDING, _FILM_KEEP and _FILM_MAX_MB set the [defaults].
  • Reports to the stats service don't change: they neither name films nor wait for them.

Film uploads

film_receivers, at the top of dedicated.toml, sends each finished film to a film receiver, a service that stores them. Empty, the default, sends nothing. The receiver's program isn't among the downloads yet.

dedicated.toml
film_receivers = ["https://films.example"]
film_upload_kbps = 0   # the most KB/s uploads may take; 0 paces itself
  • Films hold player IDs, names and all of each game's play: only name receivers you trust, and tell your players.
  • dedicated itself sends them, from one low-priority thread, never a game. Each film goes once, compressed, to the first receiver that takes it.
  • With games on, uploads keep a little ahead of what the games produce; with nobody on, they take up to 1 MB/s. film_upload_kbps is a hard cap over both. Set under what the games produce, the oldest films go unsent once film_keep and film_max_mb remove them.
  • With every receiver down, it waits and the backlog stays on disk. data/film-uploads.json has the backlog, the rate and the counts.
  • Both settings apply when dedicated restarts.