How to Set Up a Killing Floor 2 Dedicated Server on AnonVM Hosting

Killing Floor 2 is a cooperative first-person shooter game developed by Tripwire Interactive. In the game, players fight off waves of increasingly difficult enemies, known as Zeds, in various arenas. Hosting a dedicated server allows you to create a private server with custom settings, gameplay modifications, and a tailored experience for your friends or community. In this guide, we will walk you through the process of setting up a Killing Floor 2 dedicated server on an AnonVM VPS.

Prerequisites

Before you start, ensure you have the following:

  • A VPS from AnonVM with at least 4 GB of RAM and 2 CPU cores.
  • SSH access to your VPS.
  • SteamCMD installed on your VPS. If you haven't installed it, refer to previous guides to set it up.
  • Basic understanding of Linux commands.

Step 1: Access Your AnonVM VPS

  1. Log in to your AnonVM account and access your VPS.
  2. Use an SSH client like PuTTY (for Windows) or your terminal (for Linux/Mac) to connect to your VPS:
     
    ssh root@your-vps-ip
    Replace your-vps-ip with your actual VPS IP address and enter your password when prompted.

Step 2: Install Required Dependencies

Before installing the server, ensure your VPS is up to date and has the necessary libraries:

  1. Update your system:

     
    apt-get update && apt-get upgrade -y
  2. Install necessary dependencies:

     
    apt-get install wget curl unzip screen lib32gcc1 -y

Step 3: Install SteamCMD

SteamCMD is a command-line tool used to install and update game servers. You’ll use it to download the Killing Floor 2 server files.

  1. Create a directory for SteamCMD:

     
    mkdir -p /home/steam cd /home/steam
  2. Download and extract SteamCMD:

     
    wget https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz tar -xvzf steamcmd_linux.tar.gz
  3. Verify SteamCMD installation:

     
    ./steamcmd.sh

    This should launch SteamCMD. Type quit to exit when it's done.

Step 4: Download the Killing Floor 2 Server Files

Now, we’ll use SteamCMD to download the server files for Killing Floor 2.

  1. Log in to SteamCMD: Open SteamCMD and log in anonymously:

     
    ./steamcmd.sh login anonymous
  2. Set the installation directory: Specify where the server files will be installed:

     
    force_install_dir ./killing_floor_2_server
  3. Download the server files: Run the following command to download the server:

     
    app_update 232130 validate

    This will download the Killing Floor 2 server files. The process can take a while, depending on your internet speed and server load.

Step 5: Configure the Server

Once the server files are downloaded, you need to configure your server.

  1. Navigate to the server directory:

     
    cd /home/steam/killing_floor_2_server
  2. Create a configuration file: To customize your server settings, create a configuration file. You can start with the basic configuration:

     
    nano KFGame.ini

    Some key settings to consider:

    • ServerName: Set the name of your server.
    • MaxPlayers: The maximum number of players allowed (e.g., MaxPlayers=6).
    • GameMode: Choose a game mode (e.g., Survival or Versus).
    • Password: If you want to set a password for the server, you can define it here.

    Save and exit the file by pressing CTRL + X, then Y to confirm.

Step 6: Open Required Ports

To allow players to connect to your server, make sure the necessary ports are open.

  1. Open the default game port (TCP/UDP 7777):

     
    ufw allow 7777/tcp ufw allow 7777/udp ufw reload
  2. Open additional ports for server management (e.g., 27015):

     
    ufw allow 27015/tcp ufw allow 27015/udp ufw reload

Step 7: Start the Killing Floor 2 Server

  1. Start the server in a screen session: Using a screen session will keep the server running in the background even if you disconnect from SSH:

     
    screen -S killing_floor_2
  2. Start the server: Run the following command to start the server:

     
    ./KFServer-BatchFile.sh
  3. Detach from the screen session: To detach from the screen session without stopping the server, press CTRL + A, then D.

  4. Reattach to the session: If you need to interact with the server again, use the following command:

     
    screen -r killing_floor_2

Step 8: Connect to Your Server

To connect to your server from the Killing Floor 2 client:

  1. Launch the game on your PC.
  2. Go to Multiplayer and click on Join Game.
  3. Enter the VPS IP address and port number (e.g., your-vps-ip:7777).
  4. If your server is password-protected, you will be prompted to enter the password.

Step 9: Update the Server

To keep your server up to date, you will need to periodically check for updates using SteamCMD.

  1. Log in to SteamCMD:

     
    ./steamcmd.sh login anonymous
  2. Update the server:

     
    force_install_dir ./killing_floor_2_server app_update 232130 validate

    This will download any updates for the Killing Floor 2 server.

Conclusion

Your Killing Floor 2 dedicated server is now set up and ready to host games for you and your friends! You can further customize your server settings, adjust game modes, and modify other server parameters to suit your preferences. Enjoy the thrill of fighting off waves of Zeds with your own private server hosted on AnonVM!

Was this answer helpful? 0 Users Found This Useful (0 Votes)

Powered by WHMCompleteSolution