Dedicated Server (KillingFloor)

From Tripwire Interactive Wiki
Jump to navigation Jump to search

Downloading and Running the SteamCMD Update Tool

  1. Download the SteamCMD Update Tool:
  2. Extract the contents to a directory (Windows example: C:\SteamCmd\).
    Do not extract the contents of the updater tool to the regular Steam Client folder or to a folder that has the older HLDSUpdateTool program.
  3. Launch SteamCmd
NOTE: To automate this process for future updates, see #Automating SteamCmd.
    1. Open a command prompt in that directory and start SteamCmd
      • Windows: Type steamcmd
    The program will automatically update and enter you in to a Steam> prompt. Type help for more information.
  1. Log in with your Steam Account. We recommend server admins set up a server steam account for this process.
You must log out of the regular Steam client in order to properly log in to SteamCMD Update Tool (if you use your personal steam account)
login username password
4a. If you receive a Steam Guard error, check your e-mail for your access code and execute the following commands (you'll only need to do this once):
set_steam_guard_code yourcodehere
login username password
5. You should see a message stating that you have successfully logged in with your account.

Downloading the Killing Floor Dedicated Server

This describes the process of updating the KF dedicated server application. These steps are required every time the game is updated. To automate this process for future updates, see #Automating SteamCmd.
1. If you aren't proceeding from the previous set of instructions, first launch SteamCmd.
If you are a Linux user, use the following command in the terminal: STEAMEXE=steamcmd ./steam.sh
2. At the Steam> prompt, set your RO2 Dedicated Server install directory.
Examples:
Absolute Path:
force_install_dir c:\KFServer\
Up one folder:
force_install_dir ..\KFServer\
In the Steam Command folder:
force_install_dir .\KFServer\
3. Install or Update KF.
If this is your first time installing or if you are trying to verify the integrity of the server files:
app_update 215350 validate
Important Note: If you are a linux server replace 215350 with 215360 in all commands
If you encountered "ERROR! Failed to request AppInfo update, not online or not logged into Steam" 
you must remove Steam folder from root directory (rm -rf Steam).
If this is simply an update to an existing KF dedicated server:
app_update 215350
If Tripwire is currently running a beta update of the dedicated server files:
app_update 215350 -beta "branch name"

Where "branch name" is the current beta branch. Currently there is not a live dedicated server beta branch.

4. Once finished, type quit at the Steam> prompt to properly log off of the Steam servers.

Automating SteamCmd

There are two ways to automate SteamCmd.

1. Add commands to the command line. Example:
SteamCmd +login user password +force_install_dir ./kf_ds +app_update 215350 validate
2. Create a script.
a. Put your SteamCmd commands in a text file. Example:
// update_kf_ds.txt
//
login user password
force_install_dir ./kfserver
app_update 215350 validate
exit
b. Run SteamCmd with the +runscript option. Example:
SteamCmd +runscript kf_ds.txt

Starting the Server

Use the batch file downloaded with the server or create your own. To launch a server with default settings on BioticsLab use the following batch script:

ucc server KF-bioticslab.rom?game=KFmod.KFGameType?VACSecured=true?MaxPlayers=6