Replay server configuration

From Team Fortress Wiki
Revision as of 11:30, 11 July 2012 by T1k3 (talk | contribs) (Finishing Touches)
Jump to: navigation, search

Replay 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. For more information about the replay system seek the Replay wiki page.

Prerequisites

  • FTP information for remotely handling replay files.
  • A installed web server on the local server for handling replay files locally.
  • Location you wish to store replay files.
  • For both instances the folder directory needs to be accessible by the public and files downloaded.

Setup

File Names and Locations

/orangebox/tf/cfg/replay.cfg
/orangebox/tf/cfg/replay_local_http.cfg
/orangebox/tf/cfg/replay_ftp.cfg

Enabling Replay

/orangebox/tf/cfg/replay.cfg

replay_enable 0

Disables the replay system.

replay_enable 1

Enables the replay system.

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 you will do:

exec replay_local_http
//exec replay_ftp.cfg

exec replay_local_http

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.
/orangebox/tf/cfg/replay_local_http.cfg

replay_local_fileserver_path "location/of/replay/folder"

This is the folder where you will be storing your replay data, this folder must be accessible via the public.

replay_fileserver_host "my.domain.tld"

This is the domain that you wish to use for serving your files. If you do not have a domain, you can just use the IP that is assigned to the web server.

replay_fileserver_port "80"

This is the port your web server is running on, unless you had to change it to another port leave this at 80.

replay_fileserver_path "/replays"

This is the public folder on the webserver where the files are. (my.domain.tld/replays)

Remote FTP

Requirements

  • You must have the FTP login details for the remote location you wish to use.
/orangebox/tf/cfg/replay_ftp.cfg

replay_fileserver_host "my.domain.tld"

This is the domain that you wish to use for serving your files. If you do not have a domain, you can just use the IP that is assigned to the web server.

replay_fileserver_port "80"

This is the port your web server is running on, unless you had to change it to another port leave this at 80.

replay_fileserver_path "/replays"

This is the public folder on the webserver where the files are. (my.domain.tld/replays)

replay_fileserver_offload_protocol "ftp"

Currently FTP is only supported so leave this as is.

replay_fileserver_offload_hostname "IP/my.domain.tld"

This is the IP or domain you use to connect to the FTP server.

replay_fileserver_offload_port "21"

Unless you have change the port FTP is running on, you should not need to change this.

replay_fileserver_offload_remotepath "location/of/replay/folder"

This is the folder where you will be storing your replay data, this folder must be accessible via the public.

replay_fileserver_offload_login "login ID"

The login id or username used to login to the FTP server.

replay_fileserver_offload_password "password"

This is the password used in combination of your login id to login to the FTP server.

replay_fileserver_offload_maxuploads "16"

The max amount concurrent uploads allowed.

Finishing Touches

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 example for linux you may have:

./orangebox/srcds_run -game tf -replay...

For Windows you may have:

\orangebox\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 <URL/foldername>" in the server command line.

For linux you may have:

./orangebox/srcds_run -game tf -replay -replayserverdir server1...

For Windows you may have:

\orangebox\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 on Steam Support