Skip to content

Setting up demo recording

Narcha edited this page Jun 26, 2023 · 2 revisions

This tutorial explains how to enable automatic demo recording.

P-REC is not needed, TF2 has built-in commands to automatically record demos of your games.


Step 1: Create an autoexec file

If you already have an autoexec file, continue with step 2.

Create a new file at [TF2 install path]/tf/cfg/autoexec.cfg.

This file will contain a list of commands that will be executed automatically every time you start TF2.

Step 2: Add the commands

These are the relevant commands for demo recording:

Command Description
ds_enable Select which matches to record, see the table below for possible values
ds_screens Enable/disable automatic scoreboard screenshots
ds_min_streak Minimum kill streak count before being recorded
ds_kill_delay Maximum time between kills for tracking kill streaks
ds_notify Text output when recording start/stop/bookmark events
ds_sound play start/stop sound for demo recording
bind <key> ds_mark Add a bookmark when you press <key>. (list of available keys)

Possible values for ds_enable:

Value Description
0 Manual
1 Auto-record competitive matches
2 Auto-record all matches
3 Auto-record tournament (mp_tournament) matches

Possible values for ds_notify:

Value Description
0 Console
1 Console and chat
2 Console and HUD

In order to set up automatic demo recording, add the commands to your autoexec.cfg file.

Example configuration

ds_enable 2
ds_screens 0
ds_min_streak 5
ds_kill_delay 10
ds_notify 2
ds_sound 1
bind KP_PLUS ds_mark

Clone this wiki locally