How to enable Replays?.

Dazepol

L1: Registered
Jun 29, 2011
18
3
Hi!, Well like the title say, how can i enable the replays on my TF2 server?, its a rented server, please help :D.

Greetings.
 

grazr

Old Man Mutant Ninja Turtle
aa
Mar 4, 2008
5,441
3,814
Do you have a web host? Without a http web host you're unable to host the files for clients to download.

EDIT: never mind, it seems FTP offloading is working these days. I'll respond with a proper reply in a moment.
 
Last edited:

Dazepol

L1: Registered
Jun 29, 2011
18
3
Do you have a web host? Without a http web host you're unable to host the files for clients to download.

EDIT: never mind, it seems FTP offloading is working these days. I'll respond with a proper reply in a moment.

Yeah, i have a webhost, and thanks, im going to wait for your response :).
 

grazr

Old Man Mutant Ninja Turtle
aa
Mar 4, 2008
5,441
3,814
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:
exec servertf2m

Inside of which include amongst our cvar's
//Replay
exec replay

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.
 
Last edited:

Dazepol

L1: Registered
Jun 29, 2011
18
3
Thank you very much for this, really, btw, to add sourcetv(im very intrigued with this) i to add some extra plugin or something, or it come by default too?.
 

Dazepol

L1: Registered
Jun 29, 2011
18
3
Btw on this line:

// These are used to reconstruct a URL on the client.
replay_fileserver_host "redirect.tf2maps.net"

I have to make a subdomain of my host, or i leave it as it is?.
 

grazr

Old Man Mutant Ninja Turtle
aa
Mar 4, 2008
5,441
3,814
Btw on this line:



I have to make a subdomain of my host, or i leave it as it is?.

Lol, no that's our redirect. I thought you'd be able to figure that out :p make your own. We use the same redirect for our replays as the one that hosts our custom maps.

STV is integrated into the engine. Add/modify this in your server.cfg

//SourceTV
tv_enable "1"
tv_autorecord "1"
tv_delay "1" (delay in seconds if you don't want players to exploit STV to get info about the enemy team such as in clan matches)
tv_delaymapchange "1"
tv_maxclients "32"
tv_maxrate "3500"
tv_transmitall "1"
tv_port "27020"
tv_name "The Announcer" (name of your STV bot)

EDIT: Be aware that you may have to update your player count settings/hide this bot to get accurate player counts.

edit2: I should have just linked you these:

http://developer.valvesoftware.com/wiki/SourceTV
http://developer.valvesoftware.com/wiki/Replay
 
Last edited: