Difference between revisions of "Windows dedicated server"

From Team Fortress Wiki
Jump to: navigation, search
(Unzip was duplicated. Not anymore!)
(Replaced orangebox in the path with tf2 since each game has its own independent files now)
Line 11: Line 11:
 
  @NoPromptForPassword 1
 
  @NoPromptForPassword 1
 
  login anonymous
 
  login anonymous
  force_install_dir c:\hlserver\orangebox
+
  force_install_dir c:\hlserver\tf2
 
  app_update 232250
 
  app_update 232250
 
  quit
 
  quit
Line 29: Line 29:
  
 
==Create/Update server files==
 
==Create/Update server files==
*Create a file called server.cfg in 'C:\hlserver\orangebox\tf\cfg'
+
*Create a file called server.cfg in 'C:\hlserver\tf2\tf\cfg'
 
*Edit the file with these details
 
*Edit the file with these details
 
  hostname "Your_Servers_Name"
 
  hostname "Your_Servers_Name"
Line 35: Line 35:
 
  sv_contact "admin@yourdomain.com"
 
  sv_contact "admin@yourdomain.com"
 
  mp_timelimit "30"  
 
  mp_timelimit "30"  
* Edit the files motd.txt, maplist.txt and mapcycle.txt all found in the 'C:\hlserver\orangebox\tf' folder
+
* Edit the files motd.txt, maplist.txt and mapcycle.txt all found in the 'C:\hlserver\tf2\tf' folder
  
 
==Create a batch file to run the server==
 
==Create a batch file to run the server==
 
*Create a file in 'C:\hlserver\' called tf.bat
 
*Create a file in 'C:\hlserver\' called tf.bat
 
*Edit the file with this text:
 
*Edit the file with this text:
  orangebox\srcds.exe -console -game tf +map ctf_2fort +maxplayers 24
+
  tf2\srcds.exe -console -game tf +map ctf_2fort +maxplayers 24
 
*Run the file tf.bat to start your server
 
*Run the file tf.bat to start your server
  

Revision as of 23:09, 1 June 2013

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

Download and install the SteamCMD Tool

  • Download steamcmd_win32.zip
  • Unzip steamcmd_win32.zip to a directory, for example 'c:\hlserver'

Create a steamcmd script

  • Create a file called tf2_ds.txt in the folder where you install the tool, i.e. 'c:\hlserver'
  • Edit the file with this text:
@ShutdownOnFailedCommand 1
@NoPromptForPassword 1
login anonymous
force_install_dir c:\hlserver\tf2
app_update 232250
quit

If you want to opt in to the prerelease version of the TF2 dedicated server, add this line before the app_update line:

beta prerelease

Create an updating batch file

  • Create a file called update.bat in the folder where you installed the tool, i.e. 'c:\hlserver'
  • Edit the file with this text:
steamcmd +runscript tf2_ds.txt
pause

Start the download/update

  • Run the update.bat to start the download, may take several hours as dedicated server content is currently 4.4GB
  • You may need to run the file *multiple* times until the message "Success! App '232250' fully installed." displays.

Create/Update server files

  • Create a file called server.cfg in 'C:\hlserver\tf2\tf\cfg'
  • Edit the file with these details
hostname "Your_Servers_Name"
rcon_password "Your_Rcon_Password"
sv_contact "admin@yourdomain.com"
mp_timelimit "30" 
  • Edit the files motd.txt, maplist.txt and mapcycle.txt all found in the 'C:\hlserver\tf2\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:
tf2\srcds.exe -console -game tf +map ctf_2fort +maxplayers 24
  • Run the file tf.bat to start your server

External links

See also