How do I turn on replays in TF2?
Posted: Fri May 06, 2011 9:40 am
To enable replays, you will have to tell the game server to upload to your free webhosting with NFO using FTP. Here's how:
1. Create a cfg/replay.cfg file containing the below lines, tailored to match your actual website and FTP information. You can create this file through the "File manager" page in your control panel, or by uploading it through FTP.
yoursite.site.nfoservers.com with the subdomain of your website (from your "Status" or "Domains" page for the website)
/public/replayfolder with the place that you want relays to go within your website FTP. The way that we set up websites by default, "public" is what is shown to clients, so by using the directory "replayfolder" within that, you are allowing replays to show up at http://yoursite.site.nfoservers.com/replayfolder.
/replayfolder with the public part of the URL, as just discussed.
youridentifier with your website identifier. Usually this is the same as your game server.
yourpassword with the system (SSH/FTP) password from your website. You can find this on the "Passwords" page for the website.
2. Edit your cfg/autoexec.cfg file and add this above the "map" line:
3. In the FTP for your website, make sure that the /public/replayfolder (or whatever you decided to call it) exists. If it does not, create it.
4. Restart your server, or execute exec replay.cfg through rcon on your "Server control" page.
Your players will then be able to use the replay feature through their client. Valve discusses how clients can use replay.
Valve also describes more comprehensively how replays work in a Steampowered forums thread. We do things slightly differently here, such as by executing replay.cfg from the autoexec.cfg file.
1. Create a cfg/replay.cfg file containing the below lines, tailored to match your actual website and FTP information. You can create this file through the "File manager" page in your control panel, or by uploading it through FTP.
Replace:// Enable replay!
replay_enable "1"
// How often we dump replay data. You should not need to modify this value.
replay_block_dump_interval "15"
// This is the method by which clients download replay data. At the moment, only HTTP is available.
replay_fileserver_protocol "http"
// Offload using FTP. Do not use a local web server. DO NOT EDIT THIS LINE.
replay_fileserver_offload_enable "1"
//
// YOU MUST EDIT THE CONVARS BELOW THIS LINE.
//
// These are used to reconstruct a URL on the client.
replay_fileserver_host "yoursite.site.nfoservers.com"
replay_fileserver_port "80"
replay_fileserver_path "/replayfolder"
// Your FTP info. This data is private and not shared with the client.
replay_fileserver_offload_protocol "ftp"
replay_fileserver_offload_hostname "yoursite.site.nfoservers.com"
replay_fileserver_offload_port "21"
replay_fileserver_offload_remotepath "/public/replayfolder"
replay_fileserver_offload_login "youridentifier"
replay_fileserver_offload_password "yourpassword"
replay_fileserver_offload_maxuploads "5"
yoursite.site.nfoservers.com with the subdomain of your website (from your "Status" or "Domains" page for the website)
/public/replayfolder with the place that you want relays to go within your website FTP. The way that we set up websites by default, "public" is what is shown to clients, so by using the directory "replayfolder" within that, you are allowing replays to show up at http://yoursite.site.nfoservers.com/replayfolder.
/replayfolder with the public part of the URL, as just discussed.
youridentifier with your website identifier. Usually this is the same as your game server.
yourpassword with the system (SSH/FTP) password from your website. You can find this on the "Passwords" page for the website.
2. Edit your cfg/autoexec.cfg file and add this above the "map" line:
Code: Select all
exec replay.cfg
4. Restart your server, or execute exec replay.cfg through rcon on your "Server control" page.
Your players will then be able to use the replay feature through their client. Valve discusses how clients can use replay.
Valve also describes more comprehensively how replays work in a Steampowered forums thread. We do things slightly differently here, such as by executing replay.cfg from the autoexec.cfg file.