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, andproject-reclaimer --film PATHopens one directly. - Limits: the newest
film_keepfilms stay, withinfilm_max_mb, the oldest deleted first. A film that reachesfilm_max_mbby 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.jsonbeside each film has its size and SHA-256, the samesha256sumgives. - 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_KEEPand_FILM_MAX_MBset 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.
dedicateditself 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_kbpsis a hard cap over both. Set under what the games produce, the oldest films go unsent oncefilm_keepandfilm_max_mbremove them. - With every receiver down, it waits and the backlog stays on disk.
data/film-uploads.jsonhas the backlog, the rate and the counts. - Both settings apply when
dedicatedrestarts.
