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
- Log in to your AnonVM account and access your VPS.
- Use an SSH client like PuTTY (on Windows) or your terminal (Linux/Mac) to connect to your VPS:
your-vps-ip
with your actual VPS IP address. Enter your password when prompted.
Replace
Step 2: Install Required Dependencies
-
Update your system:
-
Install necessary dependencies:
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.
-
Create a directory for SteamCMD:
-
Download and extract SteamCMD:
-
Verify the installation:
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.
-
Log in to SteamCMD:
-
Set the installation directory:
-
Download the server files:
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.
-
Navigate to the server directory:
-
Configure the server: The primary configuration file for Barotrauma server settings is
serverconfig.xml
. You can open this file using a text editor likenano
: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
, thenY
to confirm changes. - ServerName: Set your server's name (e.g.,
Step 6: Open Required Ports
To allow players to connect to your Barotrauma server, you need to open the necessary ports.
-
Open the default game port (27015):
-
Additional Ports: Barotrauma may also require ports for Steam and other services. Ensure that ports 27016 and 27017 are open if necessary:
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.
-
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:
-
Run the server: You can start the server by running:
This command starts the server, and you should see logs appearing in your SSH terminal showing the server is running.
-
Detach from the screen session: To detach from the screen session without stopping the server, press
CTRL + A
, thenD
. -
Reattach to the session: If you need to check on the server or interact with it, you can reattach to the screen session:
Step 8: Connect to Your Server
To join your Barotrauma server, follow these steps:
- Launch Barotrauma on your game client.
- Go to the Multiplayer section.
- Click Join and enter your VPS IP address and port (e.g.,
your-vps-ip:27015
). - 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.
-
Log in to SteamCMD:
-
Update the server:
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!