Creating Dedicated Server (Killing Floor 2)
- 1.1Prerequisite: SteamCMD Tool
- 5Game Modes
- 6Advanced Configuration
- 6.4Server Name and Admin Contact
- 7Setting Up Web Admin
- 7.4Setting Up Redirect - Depreciated by SteamWorkshop
- 9Server Takeover
Prerequisite: SteamCMD Tool
Penetration power = 2. Gun hit power = 10. In PC version of the game, for testing purposes players may acquire this weapon by typing following cheat commands in console while in solo play: EnableCheats; GiveWeapon KFGameContent.KFWeapMinigun; Highest tier Commando weapon, has no upgrades available. Killing Floor 2 Admin Commands. The following is a list of admin commands in game. Order a server today with Streamline Servers. Adminlogin password. Logs you in as admin using password. Killing Floor Console Commands. Exactly what I was searching for. I looked for the. Killing Floor 2 Console Commands. Berserk = Gives you Berserker weapons. Medic = Gives you Medic weapons. Assault = Gives you Commando weapons. Shotty = Gives you Support weapons. Nails = Gives you the VLAD-1000 Nailgun. Uberammo = Unlimited ammo (no reload) and grenades. Open the console by pressing the ' key Enter the command open ServerIP:Port', like open 123.456.789.0:7777 for instance. You should now connect to your server.
Follow the official SteamCMD documentation on downloading SteamCMD for your given patform (Win/Linux/macOS).
Follow the official SteamCMD documentation on running SteamCMD for your given platform (Win/Linux/macOS).
You will know you have successfully run SteamCMD when it is updated and your command line changes to a prompt like:
Logging in to SteamCMD:
Before downloading the Killing Floor 2 server you need to login to the SteamCMD tool. To download the Killing Floor 2 server you do not need to be logged into a Steam account that owns Killing Floor 2.It is recommended that you login anonymously! You can still login with your real Steam account but be careful to only enter your Steam credentials into a machine that you trust.
You should see something like the following:
You're done and ready to download the Killing Floor 2 Server!
Downloading the Killing Floor 2 Server
- This describes the process of updating the KF2 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.
- 2. At the Steam> prompt, set your KF2 Dedicated Server install directory.
- Absolute Path:
- Up one folder:
- In the Steam Command folder (suggested):
- 3. Install or Update KF2.
- If this is your first time installing or if you are trying to verify the integrity of the server files:
- If this is simply an update to an existing KF2 dedicated server:
- If Tripwire is currently running a beta update of the dedicated server files:
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.
There are two ways to automate SteamCmd.
- 1. Add commands to the command line. Example:
- 2. Create a script.
- a. Put your SteamCmd commands in a text file. Example:
- Note: Using the validate option in your SteamCmd script will overwrite the KF2Server.bat file every time you update your server. If you edited this file for launching your server, either create a separate batch file to launch your server or remove the validate option from your SteamCmd script.
- b. Run SteamCmd with the +runscript option. Example:
- 3. Batch script using SteamCMD
- a. Put your commands in a bat file (e.g.) server-update.bat to call the SteamCMD. Example:
- where '..steamcmdSteamCmd.exe' can either be a path relative to the bat file or an absolute path (e.g. G:steamcmdSteamCmd.exe)
- and '../kf2server' is the path to the server installation relative to the SteamCmd location (compare to 1. Add commands to the command line)
- 1. First install steamcmd either via direct download or through your package manager:
- 2. Create a script file for steamcmd to run(replace with your username if you are installing in your home directory):
- 3. Run this directly or through a shell script(again replace username):
Starting the Server
Use the batch file downloaded with the server or create your own. To launch a server with default settings on Survival Biotics Lab use the following batch script:
For Linux Dedicated Servers the included bat file will not work as it is for the windows distribution. Instead run the following:
Currently the server has several dependencies. As such we have shipped the UE3Redist.exe with the server files and it can be found in the 'BinariesRedist' sub folder of where you have installed the server from SteamCMD.
By default the server will use the following ports:
|Port||Default||Protocol||What this option controls|
|Game Port||7777||UDP||This is the main port the game will send connections over|
|Query Port||27015||UDP||This port is used to communicate with the Steam Master Server|
|Web Admin||8080||TCP||This port is used to connect to your servers web admin page (if turned on)|
|NTP Port||123||UDP||Weekly Outbreak Only - Internet time lookup to determine correct Outbreak|
By default the game will launch into the Survival coop game mode which is a 6 player game mode.
Admins can have the server launch into Versus Survival competitive game mode (an up to 12 player game mode) by using the following launch script:
To make this change in webadmin admins just need to select the game mode 'VersusSurvival' from the Change Map tab.
Support maps for Versus Survival at this time are:
Admins can also launch the server into the Weekly Outbreaks coop game mode (also a 6 player game mode) by using the following launch script:
To make this change in webadmin admins just need to select the game mode 'Weekly' from the Change Map tab.
Admins can also launch the server into the Endless game mode (also a 6 player game mode) by using the following launch script:
To make this change in webadmin admins just need to select the game mode 'Endless' from the Change Map tab.
Configuring your new Killing Floor 2 server will be very similar to those who have set up any Unreal Engine 3 server (such as UT 3). However to those who are from other engines such as IdTech and Source there are many differences, which we'll cover here. Those who are also looking for specific sever config settings will likely find what they are looking for below.
Please note: You will need to launch your server once for it to generate config files (based of the default config files that come with the install. It is strongly recommended you do NOT ever edit one of the default config files).
Command Line Launch Options
You can use several command line launch options to help quickly launch a server. These include url arguments attached to the command line itself (example ...bioticslab?optionhere=x?option2here=x) as well as switches which are included after the main line (example ...bioticslab -switchhere -switch2here)
|Url Arguments||Valid Entries||What this option controls|
|AdminName=||Alpha numeric character combinations. Example: Admin||This is the admin username for WebAdmin if you're configuring WebAdmin via Commandline|
|AdminPassword=||Alpha numeric character combinations. Example: Abd32Sdn53||This is the master server administrator password|
|MaxPlayers=||Alpha numeric character combinations. Example: 6||This is how many maximum players the server is set to support|
|Difficulty=||Numeric characters 0-3||This sets the server difficulty. 0 = Normal, 1 = Hard, 2 = Suicidal, 3 = Hell on Earth|
|Switches||Valid Entries||What this option controls|
|Port=||Alpha numeric character combinations. Example: 7787||This is the game port. Changing this without changing the query port will automatically change the query port as well (up/down the same number from the default game port)|
|QueryPort=||Alpha numeric character combinations. Example: 27015||This is the query port. Changing this will change the port the server uses to communicate with Steam. Default is 27015. Change this in your launch will make it different from the automatic change that happens if you change the default port.|
|WebAdminPort=||Alpha numeric character combinations. Example: 8080||This is the web admin port. Changing this will change the port used to connect to the servers webadmin panel if that functionality is turned on. This switch is still in Beta, use at your own risk.|
|Multihome=||An IP that can resolve to the server machine. Example: 192.168.0.1||If a server machine can resolve to multiple IP's, this command can tie a server to a specific IP on that machine.|
|PREFERREDPROCESSOR=||Numeric characters. Example: 2||This will tie a server process to a single core/thread on the hosting machine.|
|ConfigSubDir=||Alpha numeric character combinations. Example: KF2Server-Normal-Long1||Creates and reads settings from a sub directory under ./KFGame/Config which allows you to configure .INI settings on a per server basis.|
The PCServer-KFGame.ini file can be found under KFGameConfig
This file controls all the various game elements that can be configured by admins in Killing Floor2. From game modes to spectating options and more, everything can be set up to the admins liking from this file.
First admins will want to configure this file to update the WebAdmin, server password and other settings that you do have access to. Here is an example of a very simple PCServer-KFGame.ini settings admins will want to change first:
- [Engine.AccessControl] in PCServer-KFGame.ini:
|Option Name||Valid Entries||What this option controls|
|AdminPassword||Alpha numeric character combinations. Example: Abd32Sdn53||This is the master server administrator password|
|GamePassword||Alpha numeric character combinations. Example: cl4ng4m3||This sets a password players will need to enter to join the server|
Server Name and Admin Contact
- [Engine.GameReplicationInfo] in PCServer-KFGame.ini:
|Option Name||Valid Entries||What this option controls|
|ServerName||Alpha numeric character combinations. Example: Yoshi's House of 32 Compressed Pancakes||This is the displayed server name to all players in the server and the server browser|
|AdminContact||Alpha numeric character combinations. Example: [email protected]||This is the displayed admin contact in the server browser|
Maps can be set to run by gametype and amount of rounds played. The following is an example map list that can be put in your PCServer-KFGame.ini:
|Game Map Cycle|
The first part specifies the exact maps and their game types.
See Full List On Kf-wiki.com
The Engine.ini is where most port related changes can be made to a server, including the game port and query port.
To enable webadmin:Open KFWeb.ini. In the [IpDrv.WebServer] section set
By default webadmin will listen on port 8080 on the IP of the game server using, but you'll want to customize this port for multiple servers on the same IP. To change this, open KFweb.ini and modify the following line:
Admins will now be able to log into their servers web admin panel. They can do by either connecting via a local address (if the server is local) or web address (the servers IP) followed by the port. They can use any of their favorite modern internet browsers such as Chrome, Firefox, and IE. An example of what to put in the address bar of the browser is:
They will be presented with a login screen. The default user is: Admin. The password will be whatever was set as the admin pass in PCServer-KFGame.ini. If no admin pass was set, the admin will not be able to log in.
Killing Floor 2 Console Commands
Setting up multiple web admins
Open KFWebAdmin.ini and add the following under [WebAdmin.WebAdmin]:
Start the server once to generate a new MultiAdmin.ini. Now you can either add new admin names and passwords from within the Web Admin itself, or you can add them manually in the file. To do so add the following information for each admin under [Admin MultiAdminData] in MultiAdmin.ini
How To Use Web Admin
Go to Web Admin to find out more details on how to use the system.
Setting Up Steam Workshop For Servers
Configuring the server to download files from Workshop:
- Make sure that the server is not running. If it is running, the Workshop setup will be overridden the next time you restart the server.
- Add a new section to the PCServer-KFEngine.ini config file: [OnlineSubsystemSteamworks.KFWorkshopSteamworks]
- For each Workshop item you want the server to download, add a ServerSubscribedWorkshopItems=<number> line in that section. You can find the number by looking for the id= part of the the URL of the Workshop item in Steam. For example, the URL of the Workshop Test map is http://steamcommunity.com/sharedfiles/filedetails/?id=535769647, so the line will be 'ServerSubscribedWorkshopItems=535769647'. There might be other text=number parts of the URL, so be sure to use only the number after 'id='.
Example [OnlineSubsystemSteamworks.KFWorkshopSteamworks] section (These ID's are for Grindhouse Contest Maps):
Make clients download the Workshop item from Steam when connecting to the server:
This will only work for Workshop items that the server downloads itself, that are listed in the [OnlineSubsystemSteamworks.KFWorkshopSteamworks] section as described above.
- Make sure that the server is not running. If it is running, the Workshop setup will be overridden the next time you restart the server.
- Find the section [IpDrv.TcpNetDriver] in the PCServer-KFEngine.ini config file.
- Add the line 'DownloadManagers=OnlineSubsystemSteamworks.SteamWorkshopDownload' to that section. If there are other 'DownloadManagers=' lines, make sure this one is the first.
- Do not delete anything from this section, except (optionally) other DownloadManagers= lines.
Steam Workshop map location in server and map names
Start the server and wait it to download Steam Workshop maps you added earlier. This can take several minutes. After server has downloaded all the maps stop the server and make sure that it is not running.
Navigate into server install location and go into folder KFGameCacheXXX0BrewedPC where XXX is one of the ServerSubscribedWorkshopItems you added earlier. For example (KF-BikiniAtoll):
Copy paste the map file name (excluding the .kfm extension).
See #Maps and #Get Custom Maps To Show In Web Admin where you can paste it.
Known issue on Linux servers:
Linux servers currently do not create the proper cache folder, you must create it inside your server install directory:
Setting Up Redirect - Depreciated by SteamWorkshop
Killing Floor 2 Console Commands - Pastebin.com
To enable redirect for third party custom maps to be able to run on their server, admins needs to install the 'cooked server' files in their 'KFGameBrewedPC' directory on the dedicated server.
Now unless users already have the cooked client map files installed manually or previously downloaded in their clients cache, the server will need to be set up to redirect clients without the map to download it from a redirect server. To enable this, the admin must open the PCServer-KFEngine.ini file and add a new section near the bottom of the file. The section is called [IpDrv.HTTPDownload] and should look like this:
Where the RedirectToURL is a web location that is a repository of the client map files. The example above is the location of Tripwire's public redirect server which will host several near complete and complete custom maps. The client map file must be named as a .kfm file.
For Windows Server users if you use IIS for the redirect please make sure to go to Server Manager and check that you have Anonymous Authentication or Basic Authentication enabled. Next be sure that the File Extension .kfm is added to the list in MIME Types. You will see two fields when you add a new MIME Type, File name extension and MIME type. Here is an example on how it should look
http://i.imgur.com/hGsJuId.png (Can't find out how to embed the image so here is the link)
Get Custom Maps To Show In Web Admin
To get custom maps to show up in the change level section of web admin, admins will need to add a data store for the game in PCServer-KFGame.ini. A data store looks like the following example:
Please note the use of lowercase in the map name and read the Known Issues to Avoid section for more information on the topic. This holds true for the mapcycle as well.
Known Issues to Avoid
- Linux Redirect
As a redirect server can be a Linux machine, it is very important admins have the closing forward slash in the URL as well as spell all map names in lowercase. Failure to do so will result in a broken redirect and clients will only obtain a 1kb file of the proper name but not the actual files. Also take care when adding the map data store to the PCServer-KFGame.ini to use lowercase as well as the server will use those file names over any typed in as an admin.
- Traveling from a custom map to a custom map
When a server goes from a custom map to a custom map, clients will download the second custom map, however there is a bug where the client will just see the 'connecting' screen without any updated information about downloading the custom map until it is downloaded and begins to load.
A redirect server needs fast speeds and as much bandwidth as possible, but little else.
- Hosting too many maps
A server should not have more than 519 maps in rotation or it will cause the server to break
- Make sure the game server isn't running
- Edit PCServer-KFGame.ini:
Find this part and edit it, here is the default one
- BannerLink should be a PNG (save it > 8bit) image
- ServerMOTD is the message display under the BannerLink image. You can usesome 'n' to create a new line like in the default message, I personally add two lines before my MOTD message to add space between image and text
- WebsiteLink is the url of your website (if you edit this from the webadmin, it resets to a blank value after saving)
- Save, start the server, enjoy you welcome screen.
What it is
Server Takeover is a feature that allows players who are matchmaking and choosing to start their own private game to 'grab' a server that has not opted out for them to use during their play time. This will change the settings on the server to those that the players want and make it private. However it will not expose any of the private information about that server (such as admin passwords) to them. At the end of their stay in the server, the server will open back up again and await new players or another takeover request.
How to opt out
To remove your server from the take over list you can use this line in the PCServer-KFEngine.ini:
These are the default controls for Killing Floor; every single one of them can be changed from the in-game Controls menu.
|Game||Key 1||Key 2|
|Open Game Menu||ESCAPE||none|
|Movement||Key 1||Key 2|
|Weapons||Key 1||Key 2|
|Primary Fire||LEFT MOUSE||none|
|Alternate Fire/Flashlight||MIDDLE MOUSE||none|
|Quick Iron Sights||none||none|
|Toggle Iron Sights||RIGHT MOUSE||I|
|Next Weapon||MOUSEWHEEL UP||none|
|Previous Weapon||MOUSEWHEEL DOWN||none|
|Switch to Best Weapon||none||none|
|Switch to Last Weppon||none||none|
|Switch to Knife||none||none|
|Select Melee Weapons||1||none|
|Select Secondary Weapons||2||none|
|Select Primary Weapons||3||none|
|Select Specialty Weapons||4||none|
|Looking||Key 1||Key 2|
|Look Down||PAGE DOWN||none|
|Toggle Third Person Mode (offline only)||F4||none|
|Toggle Camera Mode (offline only)||F5||none|
|Communication||Key 1||Key 2|
|Toggle Voice Commands Menu||V||none|
|Switch to Public Voice Channel||HOME||none|
|Switch to Local Voice Channel||DELETE||none|
|Switch to Team Voice Channel||END||none|
|Interface||Key 1||Key 2|
|Open Vote Kick Menu||K||none|
|Miscellaneous||Key 1||Key 2|
|View Connection Status||F6||none|
|Cancel Pending Connection||F10||none|
|Start Demo Recording||none||none|
|Stop Demo Recording||none||none|
|Voice Commands: Support||Key 1||Key 2|
|I need some money||none||none|
|Drop a weapon for me||none||none|
|Voice Commands: Acknowledge||Key 1||Key 2|
|Voice Commands: Alerts||Key 1||Key 2|
|Wait for me||none||none|
|Weld the doors||none||none|
|Lets hole up here||none||none|
|Voice Commands: Directions||Key 1||Key 2|
|Get to the Trader||none||none|
|Voice Commands: Insults|