Skip to Content
ModulesStats and punishments

Match demos

The Demos module: a match archive from CS2, Source and CS 1.6 servers, a match page with the score and rounds, a replay, and demos as evidence for punishments.

The recording plugin on the game server uploads the demo of every match to the site, together with per-round data. The site keeps the file, shows the match in the Demos section and attaches it to punishments and reports as evidence. The module deletes old files by itself, by retention time and by each server's space.

The Demos section with the match list
The Match demos overview in the admin panel
DependenciesGamesPermissionsStudio blocksBot commandsCron tasks
Flute 2.0, optionally Chat and SentinelCS2, Source games, CS 1.6demos.manage, demos.voice, admin.demos, admin.demos.view"Recent matches" (demos.recent)nonefour, below

Which servers record demos

The module takes demos from the Flute recording plugins. The admin panel offers them on the server's "Demos" tab, by the game of the server:

GameRecording pluginArchive
CS2CounterStrikeSharp, SwiftlyS2, Metamod:Sourceflute-cs2-demos-css-<VERSION>.zip, flute-cs2-demos-swiftly-<VERSION>.zip, flute-cs2-demos-metamod-linux-<VERSION>.zip, flute-cs2-demos-metamod-windows-<VERSION>.zip
CS:S, TF2, Left 4 Dead 2SourceModflute-source-demos-sourcemod-<VERSION>.zip
CS 1.6AMX Mod X and HLTVflute-cs16-demos-amxx-<VERSION>.zip

Installing the Source and CS 1.6 plugins is covered on the Source and Counter-Strike 1.6 pages.

The module ships map pictures, radars and levels for the replay for CS2, CS:GO, CS:S and CS 1.6. For your own maps, upload a name, picture and radar in "Replay maps".

Set up recording

The recording plugin signs uploads with the same token as GameLink. Without one, the server's "Demos" tab warns "The server has no GameLink key". Issuing a token for CS2 is covered on the Counter-Strike 2 page.

Install the recording plugin

Open the server in AdminServers and go to the "Demos" tab. The "Recording plugin" block has links to the builds and two values for the config: "Site address for the plugin (site)" and "Plugin token (token)".

The Demos tab on the server page

Fill in site and token

For CS2 on CounterStrikeSharp the file appears after the plugin's first start:

addons/counterstrikesharp/configs/plugins/Demos/Demos.json
{
  "site": "https://<YOUR_DOMAIN>/api/v1/demos/upload",
  "token": "<SERVER_TOKEN>",
  "voice_capture": true,
  "voice_privacy_notice": true
}

On SwiftlyS2 it is addons/swiftlys2/configs/plugins/Demos/config.json, on Metamod addons/configs/demos.ini with "site" and "token" keys. In the Source and CS 1.6 plugins the keys are demos_site and demos_token, in cfg/sourcemod/flute_demos.cfg and addons/amxmodx/configs/plugins/FluteDemos/flute_demos.cfg.

Wait for the first match

After a restart the plugin starts recording with the next round. At the end of the match or on a map change the demo goes to the site in 2 MiB parts. The server's "Plugins" tab gets a "Demo recording" row with the time of the last upload, and the match shows up in the Demos section.

Recording is on for every server from the start. To turn it off for one server, use the "Recording" switch on its "Demos" tab: the site then refuses that server's uploads.

What players see

The section lives at /demos and in the menu as "Demos". It lists the matches of all servers, with filters by player, map and server. A match page has the score, the team rosters, rounds with kills and chat, and the best moments of the match.

A match page with the score and rounds

The .dem file can be downloaded by signed-in users; "Who downloads files" changes that. Player profiles get a "Demos" tab with their matches, switched off with "«Demos» tab of profiles".

The match replay on the map, in 2D and 3D, appears once the demo is analysed on the Flute platform. Analysis is switched on in the "Analysis and Flute AI" settings section. While it is off, no demo leaves the site.

Where the module shows up

PlaceWhat is there
AdminMatch demosOverviewmatches per day and week, servers with and without recording, disk space, refused uploads
AdminMatch demosReplay mapsnames, pictures, radars and levels of maps for the replay
AdminMatch demosReplay assetsmodels, animations and sounds of the 3D replay, and the downloaded 3D maps
Server, "Demos" tabrecording on or off, the server's own retention and space, recent matches, deleting unpinned files
Server, "Plugins" tabthe "Demo recording" row: last upload and space used
Player card in the admin panela "Demos" tab with the player's matches, staff only
Profile on the sitethe "Demos" tab
Studiothe "Recent matches" block and the demos_recent data source for your own components

The "Recent matches" block has the fields "Title", "Server", "How many" (1 to 20, 5 by default) and "Show the score".

Settings

Settings open with the "Settings" button on any module screen: AdminMatch demosSettings. They are split into the sections "Access", "Storage", "Analysis and Flute AI", "Cheat search", "Match rules" and "Section look".

Demos module settings, the Storage section
FieldWhat it changesDefault
Who opens the section"Everybody" or "Signed in"Everybody
Who downloads filesa demo carries the players' voice; with "Everybody" anyone can hear itSigned in
Who watches in 3Deverybody, signed in, with Steam linked, or players of the match only. Others get the replay on a flat mapEverybody
Who reads the chat of rounds"Everybody" or "Moderators"Everybody
Where demos are kept"Site server" or "S3 storage", once S3 is set up in the main settingsSite server
Largest demo, MBa larger upload is refused at the very start800
Days to keep files0 means forever. A server may have its own term30
Space of a server, GB0 removes the limit. The oldest unpinned files go first50
Never purge younger than, hoursa fresh demo is never deleted to free space24
Days to keep match pagesa match page outlives its file, 0 means forever0
Attach matches to punishmentsa manual punishment gets the player's latest matches on the server, visible to staff onlyon
Analyse demos on the Flute platformexact stats and tick-level kills, the site must be activatedoff
Look for cheaters in parsed matcheschecks aim and shooting, never punishes by itselfoff

Permissions

PermissionWhat it allows
demos.manageact on matches: delete, pin, analysis
demos.voicehear the voice of matches and read transcripts
admin.demosmodule settings and server recording, includes admin.demos.view
admin.demos.viewsee server recording and the admin overview

Background tasks

The tasks are listed in AdminScheduler and run only when the scheduler runs once a minute.

TaskHow often
Demos: analysis on the platformevery minute
Demos: cleanup by term and spacehourly
Demos: dropping stale uploadshourly
Demos: 3D maps from the platformhourly

For developers

Recording plugins upload a demo to POST /api/v1/demos/upload in three steps (init, chunk, complete), each request signed with the GameLink token. After analysis the module fires the DemoAnalyzed event; after an upload it sends the demos.ready webhook ("A match demo was uploaded"). With the demos:read API scope you get GET /api/v1/demos/{uuid}/players and GET /api/v1/demos/{uuid}/rounds/{seq}.

Console commands: php flute demos:move-storage moves files from the site disk to S3, php flute demos:rate rebuilds player ratings, php flute demos:conduct runs the match checks again, php flute demos:seed imports demo files as matches.

How the core side works: Events and listeners, API keys and the REST API, Module REST API, Commands and scheduled tasks.

Troubleshooting

For any other message, use the error lookup.

A refused upload shows on the server's "Demos" tab under "Refused today". Once a server collects five refusals in a day, holders of the settings permission get the "Demos: uploads refused" notification with the reason.

ReasonWhat to do
the file is over the limitraise "Largest demo, MB"
demo recording is off on the serverturn on "Recording" on the server's "Demos" tab
the server is out of spaceraise the server's "Space, GB" or unpin old matches
the plugin sent the match description in the wrong formatupdate the recording plugin
the file is not a demothe plugin uploaded something other than a .dem; check that the server runs one recording build

Demos: uploads refused

Most often the recording plugin has the wrong token or address. site needs the full address https://<YOUR_DOMAIN>/api/v1/demos/upload, and token the current GameLink token of this server. After "Issue a new one" on the "Plugins" tab the old token stops working in the recording plugin too.

Demos: no space

The server's quota is full and there is nothing to delete: every file is pinned or younger than "Never purge younger than, hours". Raise the quota or unpin old matches.

If the CS2 console shows [Demos] config: 'site' empty — uploads disabled, demos will be kept locally, the plugin records demos to the server disk and sends them nowhere: fill in site. The demos_status command in the server console shows the upload queue.

Next

On this page