ImperialHost.cc · Guides · Building and simulation
Barotrauma server: joining and setup
Barotrauma keeps the server's main settings in the serversettings.xml file. The server sets its ports itself at every start, so you can join right away.
Before you start
- A Barotrauma server with us.
- Barotrauma on Steam.
1. Join from the game
- The server's address is in the client area, in the service details under IP address. It looks like
node1.imperialhost.cc:port, and every server has its own port. - In the game's main menu open the server list (Server Browser) and click Direct Join at the bottom.
- Enter the whole address with the port and join.
2. Name, password and player count
- After the install the server starts once and makes the
serversettings.xmlfile. Stop it in the game panel with the Stop button (the square at the top near the server's name). - On the Files tab open
serversettings.xml. SetServerName(the name in the server list),password(the password to join, empty means none) andMaxPlayers(the number of slots, 16 at most). - To show the server in the in-game server list, set
IsPublictotrue. - Save with Save Content and start the server with the Start button (the triangle).
The server writes to this file itself, for example at every start. Edit it only while the server is stopped, or it may overwrite your changes. Leave port and queryport as they are: at every start the server uses the ports that belong to it.
3. Become an admin
- Stop the server. On the Files tab open the
Datafolder. If theclientpermissions.xmlfile is there, open it. If it is not, click New File. - Between the lines
<ClientPermissions>and</ClientPermissions>add the line<Client name="Name" steamid="76561198000000000" preset="Admin" />with your in-game name and SteamID64. In a new file, type the line<ClientPermissions>first, then this line, and</ClientPermissions>last. - A SteamID64 is a 17-digit number that starts with
7656. You find yours in Steam, in the account details. - Save an edited file with Save Content. Save a new file with Create File, type
clientpermissions.xmlas its name and confirm with Create File again. Then start the server. - Add more admins with more lines, a moderator with
preset="Moderator". In the game the F3 key opens the console, where an admin can, for example, kick a player withkick Name.
For Barotrauma the console in the game panel takes no commands, it only prints messages. You run the server from the game.
4. Mods
- Stop the server. Upload the mod's folder (it has a
filelist.xmlfile inside) to theLocalModsfolder; if that folder is missing, create it. Upload bigger mods over SFTP: Connect to your server with SFTP (FileZilla, WinSCP). - In the
config_player.xmlfile add the line<package path="LocalMods/FolderName/filelist.xml" />to the<regularpackages>part. - Save and start the server. Players need the same mods in the same versions.
Troubleshooting
Nobody can join the server
Check that the server runs: the Console tab must show Server started. Then enter the whole address from IP address with the port in Direct Join.
My changes to the file are gone
The server writes to serversettings.xml itself. Stop it, edit the file, save it and only then start the server.
A mod did not load
Check the path in config_player.xml. It must lead to the filelist.xml file in the mod's folder in LocalMods.
Still stuck?
Message us on Discord. The AI assistant Aurel answers first, and you can call an admin. Or open a ticket in the client area.