Team Fortress 2 Dedicated Server Replays

Team Fortress 2 Dedicated Server Replays - Creative group of colleagues during work process

I am running a dedicated server for Team Fortress 2 and I have SourceMod installed.

I would like to include replay support, which is presently almost functional. By almost functional I mean that it works how I want it to, but I have to manually start it.

My server.cfg calls replay.cfg like so

exec replay.cfg

which gets me to where I am now. I need to manually run a map change to get it going. The reason why I can't have replay.cfg trigger a map change is that the map change would call server.cfg and thus replay.cfg getting us stuck in an infinite loop.

What I really need is the ability to run a config file if and only if it was called by a server initial start up and not a map change.

Thanks in advance.



Best Answer

TF2's version of srcds has a command-line switch -replay that will automatically exec replay.cfg for you on server startup.

This switch also does some magic with maxplayers (i.e. it adds an additional player slot and hides it from the server browser).

Alternately, you can create a cfg/autoexec.cfg and add exec replay.cfg to it, but this doesn't do the previously mentioned slot magic. autoexec.cfg is only processed on server startup and happens before the server loads the first map.




Pictures about "Team Fortress 2 Dedicated Server Replays"

Team Fortress 2 Dedicated Server Replays - Free stock photo of adult, business, computer
Team Fortress 2 Dedicated Server Replays - Free stock photo of arts and crafts, board, child
Team Fortress 2 Dedicated Server Replays - Dedicated teenage boys in activewear playing football together on field of outdoor stadium on sunny summer day



How do I make a TF2 server support replays?

From the main menu of TF2 click on the button labelled Servers. This will bring up the server browser. At the bottom of the browser you'll see a list of filters you can apply to your search. Make sure that "supports replays" has a check mark in the box, everything else you can set to your own personal preference.

How do I play TF2 replays?

They're not broken, they're just really bad due to Valve not properly supporting the AVI codec. On top of that, they're disabled in most servers because the server would have to take up a player slot for replays to work, and replays were unstable; they were a leading source of server crashes.

Why is replay disabled TF2?

Contents
  • 1 Download and install the SteamCMD Tool.
  • 2 Create a SteamCMD script.
  • 3 Create an updating batch file.
  • 4 Start the download/update.
  • 5 Create/Update server files.
  • 6 Create a file to run the server. 6.1 Other command line options.
  • 7 External links.




  • How to Make a TF2 Dedicated Server




    Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.

    Images: Helena Lopes, Thirdman, Pavel Danilyuk, Omar Ramadan