It seems that the replay directory branch should come default with HLDS now. I don't know whether you've noticed.
Basically you need to go into the replay.cfg in your server cfg folder and to run "exec replay" in your server.cfg (i don't know how many configs you use on your server, many server operators that run several choose to have an empty server.cfg that runs a sub .cfg. As in the server.cfg is told to "exec
yourserverconfigname" (we have exec "servertf2m").
Our server. cfg looks like:
Inside of which include amongst our cvar's
Your replay config should look like:
replay said:
replay_enable "1"
replay_fileserver_offload_enable "1"
replay_fileserver_protocol "http" //currently ONLY HTTP is supported
replay_fileserver_host "your replay host name"
replay_fileserver_port "80" // 80 is default http, 8080 is "backup"
replay_fileserver_path "/replays"
// Your FTP info. This data is private and not shared with the client.
replay_fileserver_offload_protocol "ftp"
replay_fileserver_offload_hostname "ftp host name"
replay_fileserver_offload_port "21"
replay_fileserver_offload_remotepath "/replays"
replay_fileserver_offload_login "ftp host login name"
replay_fileserver_offload_password "xxxxxxxx"
replay_fileserver_offload_maxuploads "16"
Depending whether you use ftp or http:
replay_ftp said:
// Offload using FTP. Do not use a local web server. DO NOT EDIT THIS LINE.
replay_fileserver_offload_enable "0"
//
// YOU MUST EDIT THE CONVARS BELOW THIS LINE.
//
// These are used to reconstruct a URL on the client.
replay_fileserver_host "redirect.tf2maps.net"
replay_fileserver_port "80"
replay_fileserver_path "/replays"
// Your FTP info. This data is private and not shared with the client.
replay_fileserver_offload_protocol "ftp"
replay_fileserver_offload_hostname "ftp host name"
replay_fileserver_offload_port "21"
replay_fileserver_offload_remotepath "/replays"
replay_fileserver_offload_login "ftp host login name"
replay_fileserver_offload_password "xxxxxxxx"
replay_fileserver_offload_maxuploads "16"
replay_local_http said:
// Don't offload over FTP. Use a local web server. DO NOT EDIT THIS LINE.
replay_fileserver_offload_enable "1"
//
// YOU MUST EDIT THE CONVARS BELOW THIS LINE.
//
// The replay data will be copied to this directory
replay_local_fileserver_path "/path/to/my/web/server"
// These are used to reconstruct a URL on the client.
replay_fileserver_host "my.server.com"
replay_fileserver_port "80"
replay_fileserver_path "/replays"
I think that covers everything.
Basically go into these cfg's and plug in your details, whether it be http or ftp, to run your offloads; and make sure you run "exec replay" in your server.cfg. If i'm not mistaken the relavent directories should be written automatically.
EDIT: There's an issue with the replay bot in that it can mess with your player count and auto-join feature.
This seems to be the temporary work around.
EDIT2: Some of those variables (like replay_fileserver_offload_enable "0") might be wrong as another admin besides myself has turned our replays off recently. But a simple google will show plenty of examples after all the server operators have been looking for the settings to run replay.