How to Set Up a Barotrauma Dedicated Server on AnonVM Hosting

Barotrauma is a cooperative survival game set in the depths of Jupiter’s moon Europa, where players control a submarine and explore dangerous underwater environments. Setting up your own dedicated server for Barotrauma allows you to customize the gameplay experience, manage mods, and host your own multiplayer games. In this guide, we will walk you through the steps to set up a Barotrauma server on your AnonVM VPS.

Prerequisites

Before proceeding, 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.
  • Basic knowledge of Linux commands.
  • SteamCMD installed on your VPS. If you don’t have SteamCMD installed, refer to the earlier guides to set it up.

Step 1: Access Your AnonVM VPS

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

Step 2: Install Required Dependencies

  1. Update your system:

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

     
    apt-get install wget curl unzip screen lib32gcc1 -y

These packages ensure that the server runs smoothly.

Step 3: Install SteamCMD

SteamCMD is the tool used to download and manage Barotrauma server files. If you already have SteamCMD installed, you can skip this step.

  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 the installation:

     
    ./steamcmd.sh

    This will launch SteamCMD. Type quit to exit when done.

Step 4: Download the Barotrauma Server Files

Now that SteamCMD is installed, let’s download the Barotrauma server files.

  1. Log in to SteamCMD:

     
    ./steamcmd.sh login anonymous
  2. Set the installation directory:

     
    force_install_dir ./barotrauma_server
  3. Download the server files:

     
    app_update 602960 validate

    This will download the server files for Barotrauma into the specified directory. The download may take some time depending on your VPS connection speed.

Step 5: Configure the Server

After downloading the server files, you need to configure your server settings.

  1. Navigate to the server directory:

     
    cd /home/steam/barotrauma_server
  2. Configure the server: The primary configuration file for Barotrauma server settings is serverconfig.xml. You can open this file using a text editor like nano:

     
    nano serverconfig.xml

    Here are some key settings to modify:

    • ServerName: Set your server's name (e.g., <ServerName>Your Server Name</ServerName>).
    • MaxPlayers: Adjust the maximum number of players allowed (e.g., <MaxPlayers>16</MaxPlayers>).
    • Port: Make sure the default port (27015) is set and open on your VPS.

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

Step 6: Open Required Ports

To allow players to connect to your Barotrauma server, you need to open the necessary ports.

  1. Open the default game port (27015):

     
    ufw allow 27015/tcp ufw reload
  2. Additional Ports: Barotrauma may also require ports for Steam and other services. Ensure that ports 27016 and 27017 are open if necessary:

     
    ufw allow 27016:27017/tcp ufw reload

Step 7: Start the Barotrauma Server

Now that the server is configured and the required ports are open, it's time to start the server.

  1. Start the server in a screen session: Running the server in a screen session allows it to continue running in the background even if you disconnect from SSH:

     
    screen -S barotrauma
  2. Run the server: You can start the server by running:

     
    mono Barotrauma.Server.exe

    This command starts the server, and you should see logs appearing in your SSH terminal showing the server is running.

  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 check on the server or interact with it, you can reattach to the screen session:

     
    screen -r barotrauma

Step 8: Connect to Your Server

To join your Barotrauma server, follow these steps:

  1. Launch Barotrauma on your game client.
  2. Go to the Multiplayer section.
  3. Click Join and enter your VPS IP address and port (e.g., your-vps-ip:27015).
  4. If you set a password for your server, you will be prompted to enter it.

Step 9: Update the Server

To keep your server up to date, use SteamCMD to check for updates regularly.

  1. Log in to SteamCMD:

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

     
    force_install_dir ./barotrauma_server app_update 602960 validate

This command will update the server to the latest version.

Conclusion

Your Barotrauma dedicated server is now set up and ready to use on AnonVM! You can invite friends to join your server, modify settings for a custom experience, and install mods for enhanced gameplay. Regularly update your server and monitor performance to ensure a smooth gaming experience.

By following this tutorial, you now have full control over your Barotrauma server. Enjoy your underwater adventure!

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

Powered by WHMCompleteSolution