Replay server configuration
This is a setup guide that allows you to configure a replay server. The replay system is a video recording feature for Team Fortress 2 servers allowing clients to download and edit video footage of their previous life after they die.
Contents
Prerequisites
To enable a server to record replays, a web server at the same location as the game server, with a dedicated location for storing replay files is required.
The directory in which replays are stored needs to be accessible to the public.
Setup
File names and locations
/tf/cfg/replay.cfg /tf/cfg/replay_local_http.cfg /tf/cfg/replay_ftp.cfg
Enabling Replay
/tf/cfg/replay.cfg
replay_enable 0/1 - Disables/enables the replay system (0 = disable, 1 = enable).
Note: Only choose one of the below methods! Comment out the method you do not wish to use.
For example if you would like to use the local http method, add // before the line pertaining to replay_ftp.cfg:
exec replay_local_http.cfg //exec replay_ftp.cfg
exec replay_local_http.cfg
- Handles replay files via a locally installed and configured web server.
exec replay_ftp.cfg
- Handles replay files via a remote webserver using FTP.
Local HTTP
Requirements
- Your Team Fortress 2 Server needs to have a web server installed and properly configured for allowing public downloads from the specified replay directory.
/tf/cfg/replay_local_http.cfg
replay_local_fileserver_path "location/of/replay/folder"
- This is the folder (relative to the game/web server) in which the game server will be storing replay data; this folder must be accessible to the public.
replay_fileserver_host "my.domain.tld"
- This is the URL that clients will download replays from. Either the domain of the web server or the web server's IP may go here.
replay_fileserver_port "80"
- This is the port the web server is running on (the default port for web servers is typically 80).
replay_fileserver_path "/replays"
- This is the public path (relative to the host/domain) on the webserver where the replay files are stored. (my.domain.tld/replays)
Finalizing installation
Now that you have fully configured replay for your server you will need to start your server adding "-replay" to the server command line.
For Linux you may have:
./srcds_run -game tf -replay...
For Windows you may have:
\srcds.exe -console -game tf -replay...
If you are running multiple servers on one machine you may specify a different directory for each server using "-replayserverdir <foldername>" in the server command line.
For Linux you may have:
./srcds_run -game tf -replay -replayserverdir server1...
For Windows you may have:
\srcds.exe -console -game tf -replay -replayserverdir server1...
Where server1 is the name you choose for the folder for that server. This is not a folder path, just the name.
See also
- Team Fortress 2 Replay Server Overview Steam Support article.