Killing Floor 2 Console Commands

Creating Dedicated Server (Killing Floor 2)

  • 1Installation
    • 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

Installation

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.

Downloading SteamCMD:

Follow the official SteamCMD documentation on downloading SteamCMD for your given patform (Win/Linux/macOS).

Running SteamCMD:

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.
Examples:
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.

Commands
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:
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)

Linux

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:

PortDefaultProtocolWhat this option controls
Game Port7777UDPThis is the main port the game will send connections over
Query Port27015UDPThis port is used to communicate with the Steam Master Server
Web Admin8080TCPThis port is used to connect to your servers web admin page (if turned on)
Steam Port20560UDP
NTP Port123UDPWeekly Outbreak Only - Internet time lookup to determine correct Outbreak
Killing

By default the game will launch into the Survival coop game mode which is a 6 player game mode.


Versus Survival

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:


Weekly Outbreaks

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.


Endless

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).

Kf2 console commands


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 ArgumentsValid EntriesWhat this option controls
AdminName=Alpha numeric character combinations. Example: AdminThis is the admin username for WebAdmin if you're configuring WebAdmin via Commandline
AdminPassword=Alpha numeric character combinations. Example: Abd32Sdn53This is the master server administrator password
MaxPlayers=Alpha numeric character combinations. Example: 6This is how many maximum players the server is set to support
Difficulty=Numeric characters 0-3This sets the server difficulty. 0 = Normal, 1 = Hard, 2 = Suicidal, 3 = Hell on Earth
SwitchesValid EntriesWhat this option controls
Port=Alpha numeric character combinations. Example: 7787This 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: 27015This 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: 8080This 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.1If 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: 2This will tie a server process to a single core/thread on the hosting machine.
ConfigSubDir=Alpha numeric character combinations. Example: KF2Server-Normal-Long1Creates and reads settings from a sub directory under ./KFGame/Config which allows you to configure .INI settings on a per server basis.

PCServer-KFGame.ini

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:

Server Passwords

[Engine.AccessControl] in PCServer-KFGame.ini:
Option NameValid EntriesWhat this option controls
AdminPasswordAlpha numeric character combinations. Example: Abd32Sdn53This is the master server administrator password
GamePasswordAlpha numeric character combinations. Example: cl4ng4m3This sets a password players will need to enter to join the server

Server Name and Admin Contact

[Engine.GameReplicationInfo] in PCServer-KFGame.ini:
Option NameValid EntriesWhat this option controls
ServerNameAlpha numeric character combinations. Example: Yoshi's House of 32 Compressed PancakesThis is the displayed server name to all players in the server and the server browser
AdminContactAlpha numeric character combinations. Example: [email protected]This is the displayed admin contact in the server browser

Maps

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
GameMapCycles=(Maps=('KF-BurningParis','KF-Bioticslab','KF-Outpost','KF-VolterManor','KF-Catacombs','KF-EvacuationPoint'))

The first part specifies the exact maps and their game types.

See Full List On Kf-wiki.com

PCServer-KFEngine.ini

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:

  1. 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.
  2. Add a new section to the PCServer-KFEngine.ini config file: [OnlineSubsystemSteamworks.KFWorkshopSteamworks]
  3. 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.

  1. 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.
  2. Find the section [IpDrv.TcpNetDriver] in the PCServer-KFEngine.ini config file.
  3. Add the line 'DownloadManagers=OnlineSubsystemSteamworks.SteamWorkshopDownload' to that section. If there are other 'DownloadManagers=' lines, make sure this one is the first.
  4. 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

  1. Make sure the game server isn't running
  2. Edit PCServer-KFGame.ini:

Find this part and edit it, here is the default one

Code:

  1. BannerLink should be a PNG (save it > 8bit) image
  2. 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
  3. WebsiteLink is the url of your website (if you edit this from the webadmin, it resets to a blank value after saving)
  4. 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:

Retrieved from 'https://wiki.killingfloor2.com/index.php?title=Dedicated_Server_(Killing_Floor_2)&oldid=5071'

These are the default controls for Killing Floor; every single one of them can be changed from the in-game Controls menu.

GameKey 1Key 2
Open Game MenuESCAPEnone
UseEZ
Drop CashBnone
ScreenshotF9none
Pause GamePAUSEnone
MovementKey 1Key 2
ForwardWUP
BackwardSDOWN
Strafe LeftALEFT
Strafe RightDRIGHT
JumpSPACEBACKSPACE
CrouchJOY 4none
Toggle CrouchCnone
WalkCTRLnone
Toggle Strafe'none
WeaponsKey 1Key 2
Primary FireLEFT MOUSEnone
Alternate Fire/FlashlightMIDDLE MOUSEnone
ReloadRnone
Quick Iron Sightsnonenone
Toggle Iron SightsRIGHT MOUSEI
Drop Weaponnone
Next WeaponMOUSEWHEEL UPnone
Previous WeaponMOUSEWHEEL DOWNnone
Switch to Best Weaponnonenone
Switch to Last Wepponnonenone
Switch to Knifenonenone
Select Melee Weapons1none
Select Secondary Weapons2none
Select Primary Weapons3none
Select Specialty Weapons4none
Select Tools5none
Throw GrenadeGnone
Quick FlashlightFnone
Quick Self-HealQnone
LookingKey 1Key 2
Turn Leftnonenone
Turn Rightnonenone
Look Upnonenone
Look DownPAGE DOWNnone
Center Viewnonenone
Toggle Third Person Mode (offline only)F4none
Toggle Camera Mode (offline only)F5none
CommunicationKey 1Key 2
SayTnone
Team SayYnone
Toggle Voice Commands MenuVnone
Activate MicrophoneCAPSLOCKnone
Switch to Public Voice ChannelHOMEnone
Switch to Local Voice ChannelDELETEnone
Switch to Team Voice ChannelENDnone
InterfaceKey 1Key 2
Toggle ScoreboardF1none
Quick ScoreboardTABnone
Open Vote Kick MenuKnone
MiscellaneousKey 1Key 2
Toggle Console~none
View Connection StatusF6none
Cancel Pending ConnectionF10none
Start Demo Recordingnonenone
Stop Demo Recordingnonenone
Voice Commands: SupportKey 1Key 2
Medicnonenone
Helpnonenone
I need some moneynonenone
Drop a weapon for menonenone
Voice Commands: AcknowledgeKey 1Key 2
Yesnonenone
Nononenone
Thanksnonenone
Sorrynonenone
Voice Commands: AlertsKey 1Key 2
Look Outnonenone
Runnonenone
Wait for menonenone
Weld the doorsnonenone
Lets hole up herenonenone
Follow menonenone
Voice Commands: DirectionsKey 1Key 2
Get to the Tradernonenone
Go Upstairsnonenone
Head Downstairsnonenone
Get Insidenonenone
Go outsidenonenone
Voice Commands: Insults
Insult Specimensnonenone
Insult Playersnonenone
Killing Floor navigation
Perks
Specimens
Weapons
Field Medic
  • 9mm (dual)
  • MK23 (dual)
  • 44 Magnum (dual)
  • Deagle (dual)
  • Flare Revolver (dual)
  • Maps
    Mods
    * Green items are paid DLC
    Retrieved from 'https://wiki.tripwireinteractive.com/index.php?title=Controls_(Killing_Floor)&oldid=3596'