Barotrauma
This tutorial explains how to set up a Barotrauma server in the Cobalt dashboard.
Changing configs
Open the servers page.
Find the server you want to change settings in the table and click the first button in the actions column.
Click the stop button in the control block.
Open the files tab at the top.
serversettings.xmlOpen the
serversettings.xmlfile in the file editor.Update the settings.
List of settings
This table refers to version
23799137. Some settings may not be available in earlier versions. Cobalt overrides some default values when a server is created.Key Type Default Description namestring ServerSets server name. portinteger 27015Sets server's port for player connections. Port must be port-forwarded for the server to be connectable and visible in the server browser. queryportinteger 27016Sets server's port for querying with steam for connections. Port must be port-forwarded for the server to be connectable and visible in the server browser. passwordstring (blank) Sets password required to enter the server. Leave blank for no password. enableupnpboolean falseSets if the server should attempt to use UPnP to allow players to connect (instead of port-forwarding). true- Server attempts UPnP.false- Server doesn't attempt UPnP.
Note: Not all routers support UPnP. Also unnecessary when hosting from a client (uses Steam P2P).HiddenSubsstring (blank) Hides selected submarines in the lobby, can be changed in the lobby. ServerMessagestring (blank) Sets the text displayed in the server's description. Also sets Message of the Day presented in chat upon joining. AllowedRandomMissionTypesstring AbandonedOutpost,Beacon,Cargo,ClearAlienRuins,EliminateTargets,Escort,KingOfTheHull,Mineral,Monster,Nest,OutpostCombat,OutpostDestroy,Pirate,SalvageCave,SalvageRuin,SalvageWreck,ScanAlienRuins,SubVsSubCombat,jailbreakDeprecated, missiontype is able to randomize now. AllowedClientNameCharsinteger 32-33,38-46,48-57,65-90,91-91,93-93,95-122,192-255,384-591,1024-1279,19968-40959,13312-19903,131072-15043983,15043985-173791,173824-178207,178208-183983,63744-64255,194560-195103Sets characters (UTF-16 code ranges) that are allowed in player's names. ServerNamestring (blank) Server name. Edit namefield instead — changes to this value won't apply, it's duplicated fromname.ServerMessageTextstring (blank) Server description/MOTD. Edit ServerMessagefield instead — changes to this value won't apply, it's duplicated fromServerMessage.IsPublicboolean trueSets if the server should be visible in Server Browser. Can be changed in lobby settings. true- Public server, displayed on Server Browser.false- Private server, not visible on the list.
Note: players can still join private sessions if unprotected by password/whitelist.TickRateinteger 20Sets the server's tickrate. Not recommended to go above default, as game already struggles with networking. Lowering may cause issues with mods. MaxLagCompensationinteger 150The maximum time the server will compensate hitscan weapons for. RequireAuthenticationboolean trueEnables player authentication via Steam services. RandomizeSeedboolean trueSets if the server should generate a new seed each round. true- Randomizes seed each round.false- Uses the same seed set in the lobby.UseRespawnShuttleboolean trueAllows or disallows the use of a respawn shuttle for respawning (only if respawning is allowed). true- Respawning players spawn in a shuttle and must dock/merge with the crew.false- Players spawn on the submarine at job spawnpoints.RespawnIntervalinteger 300Sets time between each respawn wave, in seconds. MaxTransportTimeinteger 180Sets maximum time the respawn shuttle has to dock to the submarine, in seconds. If time runs out it returns to the first outpost. MinRespawnRationumber 0.2Sets minimum percentage of dead players required for the respawn timer to start. SkillLossPercentageOnDeathinteger 20Sets skill loss percentage on death. SkillLossPercentageOnImmediateRespawninteger 10Sets additional skill loss percentage for immediate respawn. ReplaceCostPercentageinteger 100Permadeath specific. Modifies the cost of respawning as a new character at the HR manager. If 0— characters are free and no extra permissions are needed to buy them.AllowBotTakeoverOnPermadeathboolean truePermadeath specific. If enabled, players can take over existing bots instead of buying a new character. IronmanModeboolean falsePermadeath specific. Removes all respawn options: once a player dies, they can only spectate. AutoRestartIntervalnumber 60Sets time for automatic starting of a round, in seconds. Only works if AutoRestartistrue.StartWhenClientsReadyboolean falseAllows or disallows the server to automatically start a round if enough players are ready. PvPTeamSelectionModestring PlayerPreferencePvP gamemode specific. PlayerPreference- server balances teams by preference.PlayerChoice- players choose freely, subject to auto-balance if enabled.PvpAutoBalanceThresholdinteger 1PvP gamemode specific. 0- disable auto-balancing.1-3- enable and set threshold of extra players needed to trigger auto-balance. Resets to0if invalid.StartWhenClientsReadyRationumber 0.8Sets minimum ratio of players required to be ready for auto-start. Only works if StartWhenClientsReadyistrue.PvPStunResistinteger 0PvP gamemode specific. Sets the amount of Stun resistance for players. PvPSpawnMonstersboolean falsePvP gamemode specific. Allows monsters to spawn on the map. Mostly useful in KOTH/Sub vs. Sub mission types. PvPSpawnWrecksboolean truePvP gamemode specific. Allows wrecks to spawn on the map. Mostly useful in KOTH/Sub vs. Sub mission types. Biomestring RandomSets the preferred biome ( coldcaverns/europanridge/theaphoticplateau/thegreatsea/hydrothermalwastes). Applies to every gamemode except Campaign.SelectedOutpostNamestring RandomPvP gamemode specific. Sets the outpost for Outpost Deathmatch mission type. Unavailable if that mission type isn't chosen. AllowSpectatingboolean trueAllows or disallows players from spectating. true- Dead players can spectate.false- Dead players are sent into the lobby.SaveServerLogsboolean trueSets if server logs should be saved once the server is turned off. AllowModDownloadsboolean trueAllows or disallows download of missing mods from the server. If disabled and files mismatch, players won't be able to join. AllowFileTransfersboolean trueAllows or disallows file transfers for server files to clients (currently only .subfiles). If disabled, clients missing required files can't spawn and are sent back to the lobby.VoiceChatEnabledboolean trueAllows or disallows the use of voicechat. Playstylestring CasualSets server playstyle displayed in the server browser/lobby ( Serious/Casual/Roleplay/Rampage/SomethingDifferent).LosModestring TransparentLine of sight mode. Transparent- dim view through walls.Opaque- walls block line of sight.None- players see through walls.ShowEnemyHealthBarstring ShowAllShowAll/BossHealthBarsOnly/HideAll— sets if enemy healthbars should be visible.LinesPerLogFileinteger 800Maximum length of logfile. AutoRestartboolean falseAllows or disallows the server from auto-starting rounds in the lobby, using time set in AutoRestartInterval.AllowVoteKickboolean trueAllows or disallows players from voting to kick other players. AllowEndVotingboolean trueAllows or disallows players from voting to end the round. RespawnModestring MidRoundMidRound- respawn during a round.BetweenRounds- only at start of a new round.Permadeath- characters die permanently (see Permadeath settings).BotCountinteger 0Sets number of bots that should be spawned in a round. MaxBotCountinteger 16Sets maximum allowed bots in a round. BotSpawnModestring NormalNormal- bots fillBotCountslots.Fill- bots fully fill the rest of empty player slots.DisableBotConversationsboolean falseDisables bots from filling text chat with flavor dialogue (doesn't affect callouts like crying for help). SelectedLevelDifficultyinteger 0Sets the difficulty for the mission. Not configurable during Campaign (follows a pre-defined difficulty curve). AllowDisguisesboolean trueAllows or disallows players to disguise themselves using another player's id card. AllowRewiringboolean trueAllows or disallows players from rewiring anything on a submarine. AllowImmediateItemDeliveryboolean trueEnables option of direct item delivery to a player's inventory during a purchase. LockAllDefaultWiresboolean falseLocks all default connections on a submarine if true. AllowLinkingWifiToChatboolean falseAllows linking wifi signals to chat if true. AllowFriendlyFireboolean trueAllows or disallows friendly fire between players. AllowDragAndDropGiveboolean trueAllows giving items to another player/bot's inventory by dragging and dropping the item on the character. DestructableOutpostsboolean falseAllows outposts to be destructible (doesn't affect Abandoned Outposts, always destructible). KillableNPCsboolean trueMakes NPCs killable if true. BanAfterWrongPasswordboolean trueEnables or disables auto-banning after too many failed password retries, set in MaxPasswordRetriesBeforeBan.MaxPasswordRetriesBeforeBaninteger 3Sets after how many failed password retries the player is auto-banned. Only works if BanAfterWrongPasswordistrue.EnableDoSProtectionboolean trueEnables DoS protection, kicking players who send more packets than MaxPacketAmount.MaxPacketAmountinteger 4000Sets the maximum amount of packets a client might send before being regarded as spamming/DoS. May need increasing with many mods; increasing too much may cause networking issues. SelectedSubmarinestring Azimuth(alphabetically picks first submarine)Sets submarine that will be used in a round. SelectedShuttlestring Hemulen(alphabetically picks first shuttle)Sets respawn shuttle that will be used in a round. TraitorProbabilityinteger 0Traitor mode specific. Sets the traitor probability during a new round. 0disables traitor mode.TraitorDangerLevelinteger 1Traitor mode specific. 1- harmless tasks.2- tasks that may cause injuries/damage.3- tasks with high chance of injuries, damage or casualties.TraitorsMinPlayerCountinteger 1Traitor mode specific. Sets the minimal number of players required for a traitor to be picked. MinPercentageOfPlayersForTraitorAccusationinteger 50Traitor mode specific. Sets the voting threshold for traitor accusation. Languagestring EnglishLanguage the game is shown as. SubSelectionModestring ManualManual- only a client with SelectSub permission can pick.Random- randomized on round start.Vote- all players vote.ModeSelectionModestring ManualManual- only a client with SelectMode permission can pick.Random- randomized on round start.Vote- all players vote.EndVoteRequiredRationumber 0.6Sets amount of endround votes required to end the round. Only used if AllowEndVotingistrue.VoteTimeoutinteger 30Time to vote before it runs out. KickVoteRequiredRationumber 0.6Sets amount of votekick votes required to kick a player. Only used if AllowVoteKickistrue.KillDisconnectedTimenumber 120Sets amount of time a player must be disconnected from their body for the character to be killed. DespawnDisconnectedPermadeathTimenumber 10Permadeath specific. Sets time a player must be disconnected from their body for the character to be despawned. KickAFKTimenumber 120Sets amount of time a player must be AFK to be auto-kicked. MinimumRoundSyncTimeoutnumber 10Sets amount of time a player must be in desync with the server to be auto-kicked. KarmaEnabledboolean trueEnables or disables the Karma system. KarmaPresetstring defaultSets the karma rules preset ( default/strict/custom). Only works ifKarmaEnabledistrue.GamemodeIdentifierstring sandboxSets current gamemode ( sandbox/mission/campaign/pvp).MissionTypesstring AbandonedOutpost,Beacon,Cargo,ClearAlienRuins,EliminateTargets,Escort,KingOfTheHull,Mineral,Monster,Nest,OutpostCombat,OutpostDestroy,Pirate,SalvageCave,SalvageRuin,SalvageWreck,ScanAlienRuins,SubVsSubCombat,jailbreakSets mission types the server should run; if multiple are selected, the server randomly chooses one. MaxPlayersinteger 8Sets the maximum amount of people who can join the server; can be changed in the main menu when hosting. AutoBanTimenumber 3600Sets ban length for vote-kicked players, in seconds. MaxAutoBanTimenumber 86400Sets maximum auto-ban length settable in the lobby host UI. LootedMoneyDestinationstring BankDecides whether looted money goes to bank or the player's wallet ( Bank/Wallet).MaximumMoneyTransferRequestinteger 999999Sets the maximum amount of money that may be transferred at once. NewCampaignDefaultSalaryinteger 0Sets the default salary for new players. TrackOpponentInPvPboolean truePvP gamemode specific. STUB. DisembarkPointAllowanceSTUB 7PvP gamemode specific. STUB. SelectedCoalitionPerksSTUB engineeringshiprepair;armorysmall;airlockbasic;medbayfirstaid;hullupgradesteePvP gamemode specific. STUB. WinScorePvPinteger 200PvP gamemode specific. Sets the amount of points that a team needs to score in order to win. SelectedSeparatistsPerksSTUB engineeringshiprepair;armorysmall;airlockbasic;medbayfirstaid;hullupgradesteeSTUB. DisabledMonstersSTUB (blank) STUB. PresetNamestring NormalCampaign gamemode specific. Loads the selected campaign difficulty preset ( Custom/Easy/Normal/Hard/Abyssal) when starting campaign.TutorialEnabledboolean trueSTUB. RadiationEnabledboolean falseCampaign gamemode specific. Enables Jovian radiation in campaign. MaxMissionCountinteger 2Campaign gamemode specific. Limits the number of missions one may take for a route between two stations (beacons not counted). WorldHostilitystring MediumCampaign gamemode specific ( Low/Medium/High). Affects how dangerous Europa is — enemies, hazards, and new mechanics like untreated infections.StartItemSetSTUB normalCampaign gamemode specific. Selects the amount of starting items. StartingBalanceAmountstring MediumCampaign gamemode specific ( Low/Medium/High). Starting funds of the campaign.CrewVitalityMultipliernumber 1Campaign gamemode specific. Multiplies base Vitality of crew characters. NonCrewVitalityMultipliernumber 1Campaign gamemode specific. Multiplies base Vitality of non-crew characters (e.g. monsters). OxygenMultiplierSTUB 1Campaign gamemode specific. STUB. FuelMultiplierSTUB 1Campaign gamemode specific. Multiplies base Fuel Rod durability. MissionRewardMultiplierSTUB 1Campaign gamemode specific. Multiplies base mission credit reward. ExperienceRewardMultiplierSTUB 1Campaign gamemode specific. Multiplies base mission experience reward. ShopPriceMultiplierSTUB 1Campaign gamemode specific. Multiplies base purchase price of items in stores. ShipyardPriceMultiplierSTUB 1Campaign gamemode specific. Multiplies base purchase price of upgrades/submarines in the shipyard. RepairFailMulitplierSTUB 1Campaign gamemode specific. Multiplies base damage values of unsuccessful electrical repairs. ShowHuskWarningboolean trueCampaign gamemode specific. Shows a warning on screen if Husk Infection exceeds a certain strength (doesn't affect visibility on Health GUI). PatdownProbabilitystring MediumCampaign gamemode specific ( Low/Medium/High/Off). Modifies how likely outpost security is to inspect crewmembers for stolen items.EndRoundAtLevelEndboolean trueSets if the round should be ended once the submarine reaches the end of the level. Likely legacy. AllowRagdollButtonboolean trueDeprecated. Allows or disallows the use of the ragdoll button. AllowRespawnboolean trueDeprecated, use RespawnModeinstead. Allows or disallows respawning.TraitorsEnabledstring NoDeprecated, use TraitorProbabilityinstead (Yes/No/Maybe).TraitorsMinStartDelaynumber 90Deprecated. Sets minimum time before a traitor is selected, in seconds. TraitorsMaxStartDelaynumber 180Deprecated. Sets maximum time before a traitor is selected, in seconds. TraitorsMinRestartDelaynumber 30Deprecated. Sets minimum time before another traitor is selected, in seconds. TraitorsMaxRestartDelaynumber 90Deprecated. Sets maximum time before another traitor is selected, in seconds. Publicboolean falseDeprecated, use IsPublicinstead. Sets if the server should be shown in the server browser.LevelDifficultyinteger 20Deprecated, use SelectedLevelDifficultyinstead. Sets level difficulty.WARNING
Do not change the
portandqueryportsettings.- Click the save button in the bottom left corner.
clientpermissions.xmlOpen the
Data/clientpermissions.xmlfile in the file editor.Update the settings.
List of settings
This table refers to version
23799137. Some settings may not be available in earlier versions.Key Type Default Description namestring (blank) Player name. accountidstring (blank) A player's Steam ID in the format STEAM64_<steam_id>.permissionsstring (blank) List of permissions. ManageRound- Allows players to start and end rounds.Kick- Allows players to kick other players.Ban- Allows players to ban other players.Unban- Allows players to unban other players.SelectSub- Allows players to select the sub when the selection mode is on "Manual".SelectMode- Allows players to select the gamemode.ManageCampaign- Same as giving ManageMoney, SellInventoryItems, SellSubItems, ManageMap, and ManageHires permissions.ConsoleCommands- Allows players to use Console Commands. Permissions for individual console commands are also required.ServerLog- Allows players to read the server logs.ManageSettings- Allows players to change the server's settings.ManagePermissions- Allows players to change the permissions of other clients. Players can only grant permissions that they already have.KarmaImmunity- Immunizes players against the effects of Karma.ManageMoney- Allows players to take money from the bank without needing a vote, set salaries, and take money from other player's wallets.SellInventoryItems- Allows players to sell items to shops from their inventories.SellSubItems- Allows players to sell items to shops directly from the submarine.ManageMap- Allows players to select missions and destinations on the campaign map.ManageHires- Allows players to hire and fire NPC crewmates.ManageBotTalents- Allows players to select talents for NPC crewmates.All- Grants players all permissions.Example
For more details, see the official Wiki.
xml<?xml version="1.0" encoding="utf-8"?> <ClientPermissions> <Client name="Artorias" accountid="STEAM64_1234567890" permissions="All"> </Client> </ClientPermissions>- Click the save button in the bottom left corner.
Open the overview tab at the top.
Click the restart button in the control block.
Adding mods
Open the servers page.
Find the server you want to add mods in the table and click the first button in the actions column.
Click the stop button in the control block.
Upload mods using one of the following methods:
File manager
Open the files tab at the top.
Open the
LocalModsfolder in the file manager.Click the upload button in the bottom left corner.
TIP
You can find mods on Steam Workshop.
Select the mods files from your device.
Open the
config_player.xmlfile in the file manager.Add the mod paths to the list inside the
<contentpackages>block:
<contentpackages>
<!--Vanilla-->
<corepackage
path="Content/ContentPackages/Vanilla.xml" />
<regularpackages>
<package
path="LocalMods/3756243869/filelist.xml" />
<package
path="LocalMods/3756485107/filelist.xml" />
</regularpackages>
</contentpackages>- Click the save button in the bottom right corner.
Open the overview tab at the top.
Click the start button in the control block.