Console Commands

From Official Barotrauma Wiki
(Redirected from Console)
Jump to: navigation, search
Data is potentially outdated
Last updated for version 0.18.12.0
The current game version is 1.4.6.0
Notes: Messed up while figuring out cheat commands. Will need to fix.
See also: Permissions

This page is about the debugging tool; for the in-game installation, see "Terminal"

The console is a debugging tool that can be used to view errors and change certain settings and content while the game is opened.

Its main function is debugging, but it can also be used to spawn items and creatures, modify their attributes and afflictions, or use moderation commands.

In multiplayer, players that have the "ConsoleCommands" permission can use certain specific commands under the "Permitted console commands" part of the permissions menu. Players can input commands in a text input field at the bottom of the console window.

The source code related to console commands is available at Github. [1] [2] [3]

Usage

  1. Press F3 to toggle the console (for Mac, press Function andF3).
  2. Enter enablecheats to enable cheats and disable achievements for the game session
    • This is only required for cheat commands, marked with a green checkmark in the table below.
  3. Press Tab to autofill and cycle through identifiers
    • For a list of Item Identifiers, see Item IDs.

Examples:

spawnitem weld
...then press Tab to cycle between "Welding Tool" and "Welding Fuel"


setskill mech
...then press Tab to autofill Mechanical


In-game help with commands can be accessed with the help command. Enter help before a command for help with a specific command (i.e. help spawnitem), or by itself for a list of all commands.

Commands

Arguments are typed without brackets, and with quotation marks around multi-word inputs.
Examples: handcuffs and "handheld sonar"

Cheat Command In-Game Description Notes
copyitemnames N/A
autohull N/A Generates Hulls in the Submarine Editor.
startlidgrenclient [ip address] N/A Argument 1 is required.
startsteamp2pclient N/A
enablecheats Enables cheat commands and disables Steam achievements during this play session.
mainmenu/menu Go to the main menu.
game Go to the "in-game" view.
editsubs/subeditor [sub file path] Switch to the Submarine Editor to create or edit submarines.
editparticles/particleeditor Switch to the Particle Editor to edit particle effects.
editlevels/leveleditor Switch to the Level Editor to edit levels.
editsprites/spriteeditor Switch to the Sprite Editor to edit the source rects and origins of sprites.
editevents/eventeditor Switch to the Event Editor to edit scripted events.
editcharacters/charactereditor Switch to the Character Editor to edit/create the ragdolls and animations of characters. Switching between the character editor and the game view may cause odd behaviour or bugs.
quickstart [sub name] [difficulty] [level gen parameters identifier] Starts a singleplayer sandbox Can only be executed from the main menu.
Argument 1 is required.
steamnetdebug Toggles Steamworks networking debug logging.
readycheck Commence a ready check in multiplayer.
bindkey [key] [command] Binds a key to a command. Arguments 1 and 2 are required.
Commands containing double quotes (") cannot be bound.
unbindkey [key] Unbinds a command. Argument 1 is required.
savebinds Writes current keybinds into the config file. Some keybinds may render the game unusable.
togglegrid Toggle visual snap grid in sub editor.
spreadsheetexport Export items in format recognized by the spreadsheet importer.
wikiimage_character Save an image of the currently controlled character with a transparent background. Image is saved to Barotrauma/wikiimage.png.
wikiimage_sub Save an image of the main submarine with a transparent background. Image is saved to Barotrauma/wikiimage.png.
kick [player name] Kick a player out of the server. Argument 1 is required.
Can only be executed in Multiplayer.
Executer requires the "Kick" permission.
kickid [client id] Kick the player with the specified client ID out of the server. You can see the IDs of the clients using the command "clientlist". Argument 1 is required.
Can only be executed in Multiplayer.
Executer requires the "Kick" permission.
ban [player name] Kick and ban the player from the server. Argument 1 is required.
Can only be executed in Multiplayer.
Executer requires the "Ban" permission.
banid [client id] Kick and ban the player with the specified client ID from the server. You can see the IDs of the clients using the command "clientlist". Argument 1 is required.
Can only be executed in Multiplayer.
Executer requires the "Ban" permission.
dumpids [amount] [file name] N/A
dumptofile [file name] Outputs the contents of the debug console into a text file in the game folder. If the filename argument is omitted, "consoleOutput.txt" is used as the filename.
findentityids [entity name] N/A
campaigninfo/campaignstatus Display information about the state of the currently active campaign. Can only be executed in Campaign mode.
help [command] N/A Displays a list of commands and their descriptions.
Displays help on a specific command if argument 1 is called.
verboselogging Toggle verbose console logging on/off. When on, additional debug information is written to the debug console.
freecamera/freecam Detach the camera from the controlled character. Cannot be executed in the Submarine Editor.
clientlist List all the clients connected to the server. Can only be executed in Multiplayer.
say [msg] Send a global chat message. When issued through the server command line, displays "HOST" as the sender. Can only be executed in Multiplayer.
msg [msg] Send a chat message with no sender specified. Can only be executed in Multiplayer.
setmaxplayers/maxplayers [player count (≤16)] Sets the maximum player count of the server that's being hosted. Argument 1 is required.
Can only be executed in Multiplayer.
setpassword/setserverpassword/password [password] Changes the password of the server that's being hosted. Password is removed if argument 1 is omitted.
traitorlist List all the traitors and their targets.
money [amount] [character name] Gives the specified amount of money to the crew when a campaign is active. Can only be executed in Campaign mode.
showmoney Shows the amount of money in everyones wallet.
setskill [all/identifier] [max/level] [character name] Set your skill level. Arguments 1 and 2 are required.
givetalent [talent name/id] [character name] give the talent to the specified character. If the character argument is omitted, the talent is given to the controlled character. Argument 1 is required.
unlocktalents [all/job name] [character] give the specified character all the talents of the specified class Argument 1 is required.
giveexperience [amount] [character name] Give experience to character. Argument 1 is required.
control [character name] Start controlling the specified character (client-only). Argument 1 is required.
shake N/A
explosion [range] [force] [damage] [structure damage] [item damage] [emp strength] [ballast flora damage] Creates an explosion at the position of the cursor.
teleportcharacter/teleport [character name] Teleport the specified character to the position of the cursor. If the name parameter is omitted, the controlled character will be teleported.
spawn/spawncharacter [creature/job name] [near/inside/outside/cursor] [team (0-3)] Spawn a creature at a random spawnpoint (use the second parameter to only select spawnpoints near/inside/outside the submarine). You can also enter the name of a job (e.g. "Mechanic") to spawn a character with a specific job and the appropriate equipment. Argument 1 is required.
los [true/false] Toggle the line of sight effect on/off (client-only)
lighting/lights [true/false] Toggle lighting on/off (client-only).
ambientlight [restore/color] [add] Change the color of the ambient light in the level. Argument 1 is required.
multiplylights [value] Multiplies the colors of all the static lights in the sub with the given Vector4 value (for example, 1,1,1,0.5). Can only be executed from the Submarine Editor.
Argument 1 is required.
color/colour [red] [green] [blue] [alpha] Change color (as bytes from 0 to 255) of the selected item/structure instances. Applied only in the subeditor.
listcloudfiles Lists all of your files on the Steam Cloud.
removefromcloud [file name/index] Removes a file from Steam Cloud. Argument 1 is required.
resetall Reset all items and structures to prefabs. Only applicable in the subeditor.
resetentitiesbyidentifier [entity tag/id] Reset items and structures with the given tag/identifier to prefabs. Only applicable in the subeditor. Argument 1 is required.
resetselected Reset selected items and structures to prefabs. Only applicable in the subeditor.
alpha [value] Change the alpha (as bytes from 0 to 255) of the selected item/structure instances. Applied only in the subeditor. Argument 1 is required.
cleansub N/A
messagebox/guimessagebox [header] [msg] [default/ingame] Creates a message box.
debugdraw [true/false] Toggle the debug drawing mode on/off (client-only).
debugwiring [true/false] Toggle the wiring debug mode on/off (client-only).
debugdrawlocalization [true/false] Toggle the localization debug drawing mode on/off (client-only). Colors all text that hasn't been fetched from a localization file magenta, making it easier to spot hard-coded or missing texts.
debugdrawlos [true/false] Toggle the los debug drawing mode on/off (client-only).
togglevoicechatfilters [true/false] Toggle the radio/muffle filters in the voice chat (client-only).
fpscounter Toggle the FPS counter.
showperf Toggle performance statistics on/off.
netstats Toggles the visibility of the network statistics UI.
hudlayoutdebugdraw/debugdrawhudlayout Toggle the debug drawing mode of HUD layout areas on/off.
interactdebugdraw/debugdrawinteract Toggle the debug drawing mode of item interaction ranges on/off.
togglehud/hud Toggle the character HUD (inventories, icons, buttons, etc) on/off (client-only).
toggleupperhud Toggle the upper part of the ingame HUD (chatbox, crewmanager) on/off (client-only).
toggleitemhighlights Toggle the item highlight effect on/off (client-only).
togglecharacternames Toggle the names hovering above characters on/off (client-only).
followsub Toggle whether the camera should follow the nearest submarine (client-only).
toggleaitargets N/A
debugai Toggle the ai debug mode on/off (works properly only in single player).
devmode Toggle the dev mode on/off (client-only).
showmonsters Permanently unlocks all the monsters in the character editor. Use "hidemonsters" to undo.
hidemonsters Permanently hides in the character editor all the monsters that haven't been encountered in the game. Use "showmonsters" to undo.
water/editwater Toggle water editing. Allows adding water into rooms by holding the left mouse button and removing it by holding the right mouse button.
fire/editfire Allows putting up fires by left clicking.
mute [player name] Prevent the client from speaking through the voice chat. Can only be executed in Multiplayer.
unmute [player name] Allow the client to speak through the voice chat. Can only be executed in Multiplayer.
checkcrafting Checks item deconstruction & crafting recipes for inconsistencies.
analyzeitem [item name/id] Analyzes one item for exploits. Argument 1 is required.
checkcraftingexploits [max allowed cost] Finds outright item exploits created by buying store-bought ingredients and constructing them into sellable items.
adjustprice [item name/id] [price] [add/mult] Recursively prints out expected price adjustments for items derived from this item. Arguments 1 and 2 are required.
deconstructvalue [item name/id] Views and compares deconstructed component prices for this item. Argument 1 is required.
setentityproperties [property] [value] Sets the value of some property on all selected items/structures in the sub editor. Arguments 1 and 2 are required.
checkmissingloca N/A
checkduplicateloca N/A
comparelocafiles [file 1] [file 2] N/A
eventstats [0-7] [true/false] N/A Argument 2 determines if the entire log will be displayed instead of a summary.
setfreecamspeed [speed] Set the camera movement speed when not controlling a character. Defaults to 1. Argument 1 is required.
converttowreck N/A Replaces items and walls with wrecked variants.
Can only be executed from the Submarine Editor.
dumptexts [destination path] Extracts all the texts from the given text xml and writes them into a file (using the same filename, but with the .txt extension). If the filepath is omitted, the EnglishVanilla.xml file is used.
loadtexts [source path] [destination path] Loads all lines of text from a given .txt file and inserts them sequientially into the elements of an xml file. If the file paths are omitted, EnglishVanilla.txt and EnglishVanilla.xml are used.
updatetextfile [source path] [destination path] Inserts all the xml elements that are only present in the source file into the destination file. Can be used to update outdated translation files more easily.
dumpentitytexts [destination path] gets the names and descriptions of all entity prefabs and writes them into a file along with xml tags that can be used in translation files. If the filepath is omitted, the file is written to Content/Texts/EntityTexts.txt
dumpeventtexts [destination path] gets the texts from event files and and writes them into a file along with xml tags that can be used in translation files. If the filepath is omitted, the file is written to Content/Texts/EventTexts.txt
itemcomponentdocumentation [destination path] N/A Argument 1 defaults to ItemComponentDocumentation.txt if omitted.
cleanbuild N/A
reloadcorepackage N/A Cannot be executed from within a game or from the Submarine Editor.
To bypass this, run this command with any argument.
giveperm [client id/steam id/ip address/player name] [all/permission] Grants administrative permissions to the specified client. Argument 1 is required.
Can only be executed in Multiplayer.
revokeperm [client id/steam id/ip address/player name] [all/permission] Revokes administrative permissions from the specified client. Argument 1 is required.
Can only be executed in Multiplayer.
giverank [client id/steam id/ip address/player name] [rank] Argument 1 is required.
Can only be executed in Multiplayer.
givecommandperm [client id/steam id/ip address/player name] [all/command] Gives the specified client the permission to use the specified console commands. Argument 1 is required.
Can only be executed in Multiplayer.
revokecommandperm [client id/steam id/ip address/player name] [all/command] Revokes permission to use the specified console commands from the specified client. Argument 1 is required.
Can only be executed in Multiplayer.
showperm [client id/steam id/ip address/name] Shows the current administrative permissions of the specified client. Argument 1 is required.
Can only be executed in Multiplayer.
banendpoint/banip [steam id/ip address] [seconds] [reason] Ban the IP address/SteamID from the server. Argument 1 is required.
Can only be executed in Multiplayer.
unban [player name] Unban a specific client. Argument 1 is required.
Can only be executed in Multiplayer.
unbanip [ip address] Unban a specific IP. Argument 1 is required.
Can only be executed in Multiplayer.
campaigndestination/setcampaigndestination [destination index] Set the location to head towards in the currently active campaign. Can only be executed in Campaign mode.
limbscale [scale] Define the limbscale for the controlled character. Provide id or name if you want to target another character. Note: the changes are not saved! Argument 1 is required.
jointscale [scale] Define the jointscale for the controlled character. Provide id or name if you want to target another character. Note: the changes are not saved! Argument 1 is required.
ragdollscale [scale] Rescale the ragdoll of the controlled character. Provide id or name if you want to target another character. Note: the changes are not saved! Argument 1 is required.
recreateragdoll [character name] Recreate the ragdoll of the controlled character. Provide id or name if you want to target another character.
resetragdoll [character name] Reset the ragdoll of the controlled character. Provide id or name if you want to target another character.
reloadwearables [character name] Reloads the sprites of all limbs and wearable sprites (clothing) of the controlled character. Provide id or name if you want to target another character.
loadwearable [variant] Force select certain variant for the selected character. Argument 1 is required.
reloadsprite/reloadsprites [id/name] [item id/sprite name] Reloads the sprites of the selected item(s)/structure(s) (hovering over or selecting in the subeditor) or the controlled character. Can also reload sprites by entity id or by the name attribute (sprite element). Example 1: reloadsprite id itemid. Example 2: reloadsprite name "Sprite name" Cannot be executed from the Sprite Editor.
flipx mirror the main submarine horizontally Cannot be executed in Multiplayer.
head [head id] [hair index] [beard index] [moustache index] [face attachment index] Load the head sprite and the wearables (hair etc). Required argument: head id. Optional arguments: hair index, beard index, moustache index, face attachment index. Argument 1 is required.
spawnsub [sub name] [true/false] Spawn a submarine at the position of the cursor Argument 1 is required.
Argument 2 determines if the spawned submarine is a Thalamus.
pause Toggles the pause state when playing offline
showseed/showlevelseed Show the seed of the current level.
botcount [amount] Set the number of bots in the crew in multiplayer. Argument 1 is required
Can only be executed in Multiplayer.
botspawnmode [fill/normal] Set how bots are spawned in the multiplayer. Argument 1 is required
Can only be executed in Multiplayer.
killdisconnectedtimer [seconds] Set the time after which disconnect players' characters get automatically killed. Argument 1 is required
Can only be executed in Multiplayer.
autorestart [true/false] Enable or disable round auto-restart. Can only be executed in Multiplayer.
autorestartinterval [seconds] Set how long the server waits between rounds before automatically starting a new one. If set to 0, autorestart is disabled. Argument 1 is required
Can only be executed in Multiplayer.
autorestarttimer [seconds] Set the current autorestart countdown to the specified value. Argument 1 is required
Can only be executed in Multiplayer.
startwhenclientsready [true/false] Enable or disable automatically starting the round when clients are ready to start. Can only be executed in Multiplayer.
togglekarma Toggle the karma system on/off. Can only be executed in Multiplayer.
resetkarma [player name] Resets the karma value of the specified client to 100. Argument 1 is required
Can only be executed in Multiplayer.
setkarma [player name] [karma (0-100)] Sets the karma of the specified client to the specified value. Arguments 1 and 2 are required
Can only be executed in Multiplayer.
showkarma Show the current karma values of the players. Can only be executed in Multiplayer.
togglekarmatestmode/karmatestmode Toggle the karma test mode on/off. When test mode is enabled, clients get notified when their karma value changes (including the reason for the increase/decrease) and the server doesn't ban clients whose karma decreases below the ban threshold. Can only be executed in Multiplayer.
setclientcharacter [player name] [character name] Gives the client control of the specified character. Arguments 1 and 2 are required
starttraitormissionimmediately Skip the initial delay of the traitor mission and start one immediately. Can only be executed in Multiplayer.
difficulty/leveldifficulty [0-100] Change the level difficulty setting in the server lobby. Argument 1 is required
Can only be executed in Multiplayer.
restart/reset Close and restart the server. Can only be executed in Multiplayer.
servername [name] Change the name of the server. Argument 1 is required
Can only be executed in Multiplayer.
servermsg [msg] Change the message displayed in the server lobby. Argument 1 is required
Can only be executed in Multiplayer.
seed/levelseed [seed] Changes the level seed for the next round. Argument 1 is required
Can only be executed in Multiplayer.
randomizeseed Toggles level seed randomization on/off. Can only be executed in Multiplayer.
gamemode [name/index] Select the game mode for the next round. The parameter can either be the name or the index number of the game mode (0 = sandbox, 1 = mission, etc). Argument 1 is required
Can only be executed in Multiplayer.
mission [name] Select the mission type for the next round. Argument 1 is required
Can only be executed in Multiplayer.
sub/submarine [name] Select the submarine for the next round. Argument 1 is required
Can only be executed in Multiplayer.
shuttle [name] Select the specified submarine as the respawn shuttle for the next round. Argument 1 is required
Can only be executed in Multiplayer.
respawnnow Trigger a respawn immediately if there are any clients waiting to respawn. Can only be executed in Multiplayer.
startgame/startround/start Start a new round. Can only be executed in a Multiplayer Campaign.
endgame/endround/end End the current round. Can only be executed in Multiplayer.
entitydata [entity id] N/A Argument 1 is required.
eventmanager Toggle event manager on/off. No new random events are created when the event manager is disabled.
spawnitem [item name/id] [cursor/inventory/cargo/random/character name] [amount] Spawn an item at the position of the cursor, in the inventory of the controlled character, in the inventory of the client with the given name, or at a random spawnpoint if the last parameter is omitted or "random". Argument 1 is required.
disablecrewai Disable the AI of the NPCs in the crew.
enablecrewai Enable the AI of the NPCs in the crew.
teleportsub [start/end/cursor] Teleport the submarine to the position of the cursor, or the start or end of the level. WARNING: does not take outposts into account, so often leads to physics glitches. Only use for debugging.
togglecampaignteleport Toggle on/off teleportation between campaign locations by double clicking on the campaign map. Can only be executed in Campaign mode.
godmode [character name] Toggle character godmode. Makes the targeted character invulnerable to damage. If the name parameter is omitted, the controlled character will receive godmode.
godmode_mainsub Toggle submarine godmode. Makes the main submarine invulnerable to damage.
giveaffliction [affliction name] [strength] [character name] [limb type] [use relative strength (true/false)] Add an affliction to a character. If the name parameter is omitted, the affliction is added to the controlled character. Arguments 1 and 2 are required.
heal [character name] [all] Restore the specified character to full health. If the name parameter is omitted, the controlled character will be healed. By default only heals common afflictions such as physical damage and blood loss: use the "all" argument to heal everything, including poisonings/addictions/etc.
revive [character name] Bring the specified character back from the dead. If the name parameter is omitted, the controlled character will be revived.
freeze N/A
ragdoll [character name] Force-ragdoll the specified character. If the name parameter is omitted, the controlled character will be ragdolled.
kill [character name] Immediately kills the specified character.
tags/taglist list all the tags used in the game
sendchatmessage [sender] [msg] [type] [red] [green] [blue] [alpha] Sends a chat message with specified type and color. Can only be executed in Multiplayer.
items/itemlist List all the item prefabs available for spawning.
itemassemblies List all the item assemblies available for spawning.
disableenemyai Disable the AI of the Enemy characters (monsters)
enableenemyai Enable the AI of the Enemy characters (monsters).
growthdelay [delay] Sets how long it takes for planters to attempt to advance a plant's growth. Argument 1 is required.
lock Lock movement of the main submarine.
lockx Lock horizontal movement of the main submarine.
locky Lock vertical movement of the main submarine.
triggerevent [event id] Created a new event. Argument 1 is required.
unlockmission [identifier/tag] Unlocks a mission in a random adjacent level. Argument 1 is required.
Can only be executed in Campaign mode.
setcampaignmetadata [identifier] [value] Sets the specified campaign metadata value. Arguments 1 and 2 are required.
Can only be executed in Campaign mode.
showreputation List the current reputation values. Can only be executed in Campaign mode.
setlocationreputation [value] Set the reputation in the current location to the specified value. Argument 1 is required.
Can only be executed in Campaign mode.
setreputation [faction] [value] Set the reputation of a location to the specified value. Arguments 1 and 2 are required.
Can only be executed in Campaign mode.
fixitems Repairs all items and restores them to full condition.
fixhulls/fixwalls Fixes all walls.
upgradeitem [upgrade] [level] [item tag] Adds an upgrade to the current targeted item. Arguments 1 and 2 are required.
Argument 3 is only required if argument 2 is not a hull upgrade.
maxupgrades [category] [prefab] Maxes out all upgrades or only specific one if given arguments. Can only be executed in Campaign mode.
power Immediately powers up the submarine's nuclear reactor.
oxygen/air Replenishes the oxygen levels in every room to 100%.
killmonsters Immediately kills all AI-controlled enemies in the level.
despawnnow [character name] Immediately despawns the specified dead character. If the character argument is omitted, all dead characters are despawned.
skipeventcooldown Skips the currently active event cooldown and triggers pending monster spawns immediately.
ballastflora [infect/growthwarp] [prefab/amount] Infect ballasts and control its growth.
setdifficulty/forcedifficulty [0-100] Leave the parameter empty to disable.
autoitemplacerdebug/outfitdebug Toggle automatic item placer debug info on/off. The automatically placed items are listed in the debug console at the start of a round.
listtasks Lists all asynchronous tasks currently in the task pool.
listcoroutines Lists all coroutines currently running.
calculatehashes [content package] Show the MD5 hashes of the files in the selected content package. If the name parameter is omitted, the first content package is selected.
simulatedlatency [min latency] [random latency] applies a simulated latency to network messages. Useful for simulating real network conditions when testing the multiplayer locally. Arguments 1 and 2 are required.
Can only be executed in Multiplayer.
simulatedloss [loss ratio] applies simulated packet loss to network messages. For example, a value of 0.1 would mean 10% of the packets are dropped. Useful for simulating real network conditions when testing the multiplayer locally. Argument 1 is required.
Can only be executed in Multiplayer.
simulatedduplicateschance [dupe ratio] simulates packet duplication in network messages. For example, a value of 0.1 would mean there's a 10% chance a packet gets sent twice. Useful for simulating real network conditions when testing the multiplayer locally. Argument 1 is required.
Can only be executed in Multiplayer.
startitems/startitemset [identifier] start item set identifier Argument 1 is required.

Debug Version Commands

The debug version of Barotrauma can only be accessed by downloading and compiling the game's source code, then navigating to one of the "Debug[Windows/Mac/Linux]" folders and launching the Barotrauma game executable.

Cheat Command In-Game Description Notes
crash Crashes the game.
showballastflorasprite N/A
simulatedlongloadingtime [min time] forces loading a round to take at least the specified amount of seconds. Argument 1 is required.
Can only be executed in Multiplayer.
resetcharacternetstate [character name] A debug-only command that resets a character's network state, intended for diagnosing character syncing issues.
storeinfo N/A
setplanthealth [health] Sets the health of the selected plant in sub editor.
printreceivertransfers N/A
spamchatmessages [msg count] [msg length] N/A
getprefabinfo [prefab id] Argument 1 is required.
copycharacterinfotoclipboard N/A
spawnallitems N/A
camerasettings [default zoom] [zoom smoothness] [move smoothness] [min zoom] [max zoom] debug command for testing camera settings. The values default to 1.1, 8.0, 8.0, 0.1 and 2.0.
waterparams [distortion scale X] [distortion scale Y] [distortion strength X] [distortion strength Y] [blur] default 0.5 0.5 0.5 0.5 1
refreshrect Updates the dimensions of the selected items to match the ones defined in the prefab. Applied only in the subeditor.
flip Flip the currently controlled character.
mirror Mirror the currently controlled character.
forcetimeout Immediately cause the client to time out if one is running.
bumpitem [velocity] N/A
playovervc [file name] Plays a sound over voice chat.
querylobbies Queries all SteamP2P lobbies
checkduplicates [language id] Checks the given language for duplicate translation keys and writes to file.
writetocsv/xmltocsv Writes the default language (English) to a .csv file.
csvtoxml Converts .csv localization files in Content/NPCConversations & Content/Texts to .xml for use in-game.
printproperties Goes through the currently collected property list for missing localizations and writes them to a file.
getproperties Goes through the MapEntity prefabs and checks their serializable properties for localization issues.
setcurrentlocationtype [type] Change the type of the current location. Can only be executed in Campaign mode.
Argument 1 is required.
forcelocationtypechange [locationname] [locationtype] N/A
printsendertransfers N/A
eventdata [latest/event id] N/A Argument 1 is required.
spamevents A debug command that creates a ton of entity events.
stallfiletransfers [seconds] A debug command that stalls each file transfer packet by the specified duration.
fastforward [seconds] Fast forwards the game by x seconds. Note that large numbers may cause a long freeze.
removecharacter [character name] Immediately deletes the specified character. Argument 1 is required.
waterphysicsparams [stiffness] [spread] [damping] defaults 0.02, 0.05, 0.05
testlevels N/A

Permissions

Permissions are sets of rights to administrate a server. They are used to create ranks or can be attributed individually.

Permission Description
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. Plays 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.

References

Media

The console showing ping info on startup
v·d·e·h
Guides
Gameplay
Hosting
In-Game Dedicated Servers

Campaign Settings

Karma

Permissions

Console Commands

Hosting a Dedicated Server

List of Config Files

Enabling Mods on a Dedicated Server

Tools & Modding
Editors XML Other

Submarine Editor

Official Guide to the Submarine Editor (Diving deeper)

Character Editor

Official Guide to the Character Editor

Creating mods

XML and how Barotrauma uses it

Content packages (Content types)

Overrides

Installing mods

Publishing to Steam Workshop

Troubleshooting