How To Configure Your Barotrauma Server

Complete guide to configuring your Barotrauma dedicated server using serversettings.xml — all settings explained.

Barotrauma server configuration is managed through the serversettings.xml file in your server's root directory.

⚠️ Important: Always stop your server before editing serversettings.xml. The server overwrites this file on shutdown — any edits made while it is running will be lost.

Using the Panel Startup Settings

For common settings, use the panel's Startup page:

  1. Log in to the XGamingServer Panel
  2. Click Startup in the sidebar
  3. Adjust fields like Server Name, Max Players, Password, and Port
  4. Restart from the Console page

📝 Note: Startup parameters take priority over serversettings.xml. If a setting won't stick, check the Startup page first.

Editing serversettings.xml

Stop Your Server

Make sure your server is fully stopped before editing.

Open Files

In the sidebar, click Files and open serversettings.xml.


Server Identity & Visibility

SettingDescriptionDefault
nameServer name shown in the browser"Server"
publicList publicly in the server browsertrue
PasswordJoin password — leave blank for open access(empty)
ServerMessageWelcome message shown to connecting players(empty)
playstyleBrowser tag: Casual, Serious, Roleplay, Rampage, SomethingDifferentCasual

Network

SettingDescriptionDefault
portMain UDP game port27015
queryportSteam query/server browser port27016
MaxPlayersMaximum simultaneous players16
tickrateServer update rate (ticks per second)20

📝 Note: On XGamingServer, ports are assigned by the panel — do not change these values manually.

Gameplay

SettingDescriptionDefault
gamemodeidentifierActive mode: sandbox, mission, campaignsandbox
SubmarineSubmarine filename without .sub extension (case-sensitive)Humpback
LevelDifficultyDifficulty 0–10020
randomizeseedRandomize the level seed each roundtrue
AllowSpectatingAllow spectator slotstrue
AllowFriendlyFireEnable player-to-player damagetrue
AllowRewiringAllow players to rewire electrical systemstrue
AllowDisguisesAllow disguise items to worktrue

Respawn Settings

SettingDescriptionDefault
AllowRespawnGlobal respawn toggletrue
UseRespawnShuttleDead players arrive via shuttle instead of teleportingtrue
RespawnIntervalSeconds between respawn waves300
MaxTransportTimeMax time (seconds) the respawn shuttle has to reach the sub180
MinRespawnRatioFraction of crew that must be dead before a respawn wave triggers0.2

Bots

SettingDescriptionDefault
botcountCurrent number of AI bots0
maxbotcountMaximum allowed bots16
BotSpawnModeNormal — fill missing crew slots; Fill — always fill to maxNormal

Voting & Kick

SettingDescriptionDefault
AllowVoteKickEnable vote-kicktrue
AllowEndVotingEnable vote to end a roundtrue
kickvoterequiredratioFraction of players needed to pass a kick vote0.6
endvoterequiredratioFraction needed to end the round by vote0.6

Auto-Management

SettingDescriptionDefault
autorestartAutomatically restart when server is emptyfalse
autorestartintervalSeconds to wait before auto-restarting60
StartWhenClientsReadyStart round when enough players ready uptrue
StartWhenClientsReadyRatioFraction of connected players that must be ready0.8
KillDisconnectedTimeSeconds before killing a disconnected player's character30
KickAFKTimeSeconds of inactivity before AFK kick120

Traitors

SettingDescriptionDefault
TraitorsEnabledYes, No, or Maybe (random chance per round)No
TraitorRatioIf Maybe, probability a traitor is assigned (0.0–1.0)0.2

💡 Tip: Set TraitorsEnabled="Maybe" and TraitorRatio="0.3" for occasional traitor rounds without guaranteeing one every game.

Karma

SettingDescriptionDefault
KarmaEnabledEnable the karma anti-griefing systemfalse
KarmaPresetDefault (lenient) or StrictDefault

See the Karma System guide for full details.

Auto-Ban

SettingDescriptionDefault
autobantimeDuration (minutes) of first automatic karma ban60
maxautobantimeMaximum auto-ban duration in minutes360

Example Configuration

<serversettings
  name="My Barotrauma Server"
  public="true"
  MaxPlayers="16"
  Password=""
  playstyle="Casual"
  gamemodeidentifier="mission"
  Submarine="Humpback"
  LevelDifficulty="30"
  AllowRespawn="true"
  UseRespawnShuttle="true"
  RespawnInterval="300"
  AllowFriendlyFire="true"
  AllowRewiring="true"
  AllowVoteKick="true"
  TraitorsEnabled="Maybe"
  TraitorRatio="0.2"
  KarmaEnabled="true"
  KarmaPreset="Default"
  autobantime="60"
  maxautobantime="360"
/>

Save and Restart

Save the file and start your server.

💡 Tip: Need help with a specific setting? Join our Discord for support.

How is this guide?

40% Off — Limited TimeGet your Barotrauma server todayInstant setup, DDoS protection, and 24/7 support included.
Get a Server

On this page