Windows dedicated server

From TF2 Wiki

Jump to: navigation, search

This is a setup guide that allows you to install a basic TF2 server. In the below example the server is installed onto the C drive in a folder called 'hlserver'.

Contents

Download and install the HLDS Update Tool

  • Download HldsUpdateTool.exe
  • Install to 'c:/hlserver'
  • Run HldsUpdateTool for the first time to update itself. Press CTRL+C once it has completed

Create an updating batch file

  • Create a file called update.bat in the 'c:/hlserver folder'
  • Edit the file with this text:
HldsUpdateTool.exe -command update -game tf -dir c:\hlserver -retry
pause

Start the download/update

  • Run the update.bat to start the download, may take several hours as dedicated server content is currently 1.6GB
  • You may need to run the file *multiple* times until the message "HLDS installation up to date" displays.

Create/update server files

  • Create a file called server.cfg in 'C:\hlserver\orangebox\tf\cfg'
  • Edit the file with these details
hostname "yourhostname"
rcon_password "yourpassword"
sv_contact "admin@yourdomain.com"
mp_timelimit "30" 
  • edit the files motd.txt, maplist.txt and mapcycle.txt all found in the 'C:\hlserver\orangebox\tf' folder

Create a batch file to run the server

  • Create a file in 'C:\hlserver\' called tf.bat
  • Edit the file with this text:
orangebox\srcds.exe -console -game tf +map ctf_2fort +maxplayers 24
  • Run the file tf.bat to start your server

Sources

Further Reading

See also

Linux dedicated server

Dedicated server configuration

Personal tools