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.


| Dependencies | Games | Permissions | Studio blocks | Bot commands | Cron tasks |
|---|---|---|---|---|---|
| Flute 2.0, optionally Chat and Sentinel | CS2, Source games, CS 1.6 | demos.manage, demos.voice, admin.demos, admin.demos.view | "Recent matches" (demos.recent) | none | four, 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:
| Game | Recording plugin | Archive |
|---|---|---|
| CS2 | CounterStrikeSharp, SwiftlyS2, Metamod:Source | flute-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 2 | SourceMod | flute-source-demos-sourcemod-<VERSION>.zip |
| CS 1.6 | AMX Mod X and HLTV | flute-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
Make sure the server has a GameLink token
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)".

Fill in site and token
For CS2 on CounterStrikeSharp the file appears after the plugin's first start:
{
"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.

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
| Place | What is there |
|---|---|
| AdminMatch demosOverview | matches per day and week, servers with and without recording, disk space, refused uploads |
| AdminMatch demosReplay maps | names, pictures, radars and levels of maps for the replay |
| AdminMatch demosReplay assets | models, animations and sounds of the 3D replay, and the downloaded 3D maps |
| Server, "Demos" tab | recording on or off, the server's own retention and space, recent matches, deleting unpinned files |
| Server, "Plugins" tab | the "Demo recording" row: last upload and space used |
| Player card in the admin panel | a "Demos" tab with the player's matches, staff only |
| Profile on the site | the "Demos" tab |
| Studio | the "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".

| Field | What it changes | Default |
|---|---|---|
| Who opens the section | "Everybody" or "Signed in" | Everybody |
| Who downloads files | a demo carries the players' voice; with "Everybody" anyone can hear it | Signed in |
| Who watches in 3D | everybody, signed in, with Steam linked, or players of the match only. Others get the replay on a flat map | Everybody |
| 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 settings | Site server |
| Largest demo, MB | a larger upload is refused at the very start | 800 |
| Days to keep files | 0 means forever. A server may have its own term | 30 |
| Space of a server, GB | 0 removes the limit. The oldest unpinned files go first | 50 |
| Never purge younger than, hours | a fresh demo is never deleted to free space | 24 |
| Days to keep match pages | a match page outlives its file, 0 means forever | 0 |
| Attach matches to punishments | a manual punishment gets the player's latest matches on the server, visible to staff only | on |
| Analyse demos on the Flute platform | exact stats and tick-level kills, the site must be activated | off |
| Look for cheaters in parsed matches | checks aim and shooting, never punishes by itself | off |
Permissions
| Permission | What it allows |
|---|---|
demos.manage | act on matches: delete, pin, analysis |
demos.voice | hear the voice of matches and read transcripts |
admin.demos | module settings and server recording, includes admin.demos.view |
admin.demos.view | see server recording and the admin overview |
Background tasks
The tasks are listed in AdminScheduler and run only when the scheduler runs once a minute.
| Task | How often |
|---|---|
| Demos: analysis on the platform | every minute |
| Demos: cleanup by term and space | hourly |
| Demos: dropping stale uploads | hourly |
| Demos: 3D maps from the platform | hourly |
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.
| Reason | What to do |
|---|---|
| the file is over the limit | raise "Largest demo, MB" |
| demo recording is off on the server | turn on "Recording" on the server's "Demos" tab |
| the server is out of space | raise the server's "Space, GB" or unpin old matches |
| the plugin sent the match description in the wrong format | update the recording plugin |
| the file is not a demo | the 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.