Console Commands: Difference between revisions

From Official Barotrauma Wiki
Jump to: navigation, search
(Added "Cheat" column and commented out commands that do not work.)
(center cheat column, add icons)
Line 43: Line 43:
|-
|-
! rowspan=5 | Campaign
! rowspan=5 | Campaign
| '''X'''
| align="center" | [[File:Version_Checkmark_True.png|20px]]
| campaigndestination [index]
| campaigndestination [index]
| Set the target location in the current campaign.
| Set the target location in the current campaign.
|-
|-
| '''X'''
| align="center" | [[File:Version_Checkmark_False.png|20px]]
| campaigninfo
| campaigninfo
| Display info about the current campaign, such as current money, location and available destinations.
| Display info about the current campaign, such as current money, location and available destinations.
|-
|-
| '''✓'''
| align="center" | [[File:Version_Checkmark_True.png|20px]]
| setlocationreputation [value]
| setlocationreputation [value]
| Set your reputation to the current location to the specified value.
| Set your reputation to the current location to the specified value.
|-
|-
| '''✓'''
| align="center" | [[File:Version_Checkmark_True.png|20px]]
| togglecampaignteleport
| togglecampaignteleport
| Toggles the ability to teleport to a location on the campaign map by double-clicking. Works only in singleplayer.
| Toggles the ability to teleport to a location on the campaign map by double-clicking. Works only in singleplayer.
|-
|-
| '''X'''
| align="center" | [[File:Version_Checkmark_False.png|20px]]
| pause
| pause
| Pauses the game. Only works in singleplayer.
| Pauses the game. Only works in singleplayer.
|-
|-
! rowspan=28<!-- 29 --> | Moderation
! rowspan=28<!-- 29 --> | Moderation
| '''X'''
| align="center" | [[File:Version_Checkmark_False.png|20px]]
| ban [character name]
| ban [character name]
| Bans the selected character from the server.
| Bans the selected character from the server.
|-
|-
| '''X'''
| align="center" | [[File:Version_Checkmark_False.png|20px]]
| banendpoint [IP Address/SteamID]
| banendpoint [IP Address/SteamID]
| Bans the selected IP Address/SteamID from the server.
| Bans the selected IP Address/SteamID from the server.
|-
|-
| '''X'''
| align="center" | [[File:Version_Checkmark_False.png|20px]]
| banid [clientID]
| banid [clientID]
| Bans the selected clientID from the server.
| Bans the selected clientID from the server.
|-
|-
| '''X'''
| align="center" | [[File:Version_Checkmark_False.png|20px]]
| bindkey [key] [command]
| bindkey [key] [command]
| Binds a key to a command.
| Binds a key to a command.
|-
|-
| '''X'''
| align="center" | [[File:Version_Checkmark_False.png|20px]]
| clientlist
| clientlist
| Outputs the character name, clientID and ping of all players in the server to the console.
| Outputs the character name, clientID and ping of all players in the server to the console.
|-
|-
| '''X'''
| align="center" | [[File:Version_Checkmark_False.png|20px]]
| givecommandperm [clientID/SteamID/character name/IP Address]
| givecommandperm [clientID/SteamID/character name/IP Address]
| Gives the selected player the permission to use the console commands typed in the next entry.
| Gives the selected player the permission to use the console commands typed in the next entry.
|-
|-
| '''X'''
| align="center" | [[File:Version_Checkmark_False.png|20px]]
| giveperm [clientID/SteamID/character name/IP Address]
| giveperm [clientID/SteamID/character name/IP Address]
| Gives the selected player the permission typed in the next entry.
| Gives the selected player the permission typed in the next entry.
|-
|-
| '''X'''
| align="center" | [[File:Version_Checkmark_False.png|20px]]
| giverank [clientID/SteamID/character name/IP Address]
| giverank [clientID/SteamID/character name/IP Address]
| Gives the selected player the rank typed in the next entry.
| Gives the selected player the rank typed in the next entry.
|-
|-
| '''X'''
| align="center" | [[File:Version_Checkmark_False.png|20px]]
|  kick [character name]
|  kick [character name]
| Kicks the selected character from the server.
| Kicks the selected character from the server.
|-
|-
| '''X'''
| align="center" | [[File:Version_Checkmark_False.png|20px]]
| kickid [clientID]
| kickid [clientID]
| Kicks the selected clientID from the server.
| Kicks the selected clientID from the server.
|-
|-
| '''X'''
| align="center" | [[File:Version_Checkmark_False.png|20px]]
| killdisconnectedtimer [seconds]
| killdisconnectedtimer [seconds]
| Set the delay until disconnected players are killed.
| Set the delay until disconnected players are killed.
|-
|-
| '''X'''
| align="center" | [[File:Version_Checkmark_False.png|20px]]
| msg [message]
| msg [message]
| Send a chat message with no sender specified.
| Send a chat message with no sender specified.
|-
|-
| '''X'''
| align="center" | [[File:Version_Checkmark_False.png|20px]]
| mute [character name]
| mute [character name]
| Blocks a character from speaking through voice chat.
| Blocks a character from speaking through voice chat.
|-
|-
| '''X'''
| align="center" | [[File:Version_Checkmark_False.png|20px]]
| resetkarma [clientID]
| resetkarma [clientID]
| Resets the karma of a client to 100.
| Resets the karma of a client to 100.
|-
|-
| '''X'''
| align="center" | [[File:Version_Checkmark_False.png|20px]]
| revokecommandperm [clientID/SteamID/character name/IP Address]
| revokecommandperm [clientID/SteamID/character name/IP Address]
| Revokes the selected player's permission to use the console commands typed in the next entry.
| Revokes the selected player's permission to use the console commands typed in the next entry.
|-
|-
| '''X'''
| align="center" | [[File:Version_Checkmark_False.png|20px]]
| revokeperm [clientID/SteamID/character name/IP Address]
| revokeperm [clientID/SteamID/character name/IP Address]
| Revokes the selected player's permission typed in the next entry.
| Revokes the selected player's permission typed in the next entry.
|-
|-
| '''X'''
| align="center" | [[File:Version_Checkmark_False.png|20px]]
| savebinds
| savebinds
| Writes current keybinds into the config file (= keybinds set using the keybind command).
| Writes current keybinds into the config file (= keybinds set using the keybind command).
|-
|-
| '''X'''
| align="center" | [[File:Version_Checkmark_False.png|20px]]
| say [message]
| say [message]
| Send a global chat message. When issued through the server command line, displays ''"HOST"'' as the sender.
| Send a global chat message. When issued through the server command line, displays ''"HOST"'' as the sender.
Line 140: Line 140:
| Sends a chat message with specified type and color.
| Sends a chat message with specified type and color.
|- -->
|- -->
| '''X'''
| align="center" | [[File:Version_Checkmark_False.png|20px]]
| setkarma [clientID] [0-100]
| setkarma [clientID] [0-100]
| Sets the karma of a client to the specified value.
| Sets the karma of a client to the specified value.
|-
|-
| '''X'''
| align="center" | [[File:Version_Checkmark_False.png|20px]]
| showkarma
| showkarma
| Outputs the karma of all players to the console.
| Outputs the karma of all players to the console.
|-
|-
| '''X'''
| align="center" | [[File:Version_Checkmark_False.png|20px]]
| showperm [clientID/SteamID/character name/IP Address]
| showperm [clientID/SteamID/character name/IP Address]
| Outputs the permissions of the selected player to the console.
| Outputs the permissions of the selected player to the console.
|-
|-
| '''X'''
| align="center" | [[File:Version_Checkmark_False.png|20px]]
| togglecharacternames
| togglecharacternames
| Toggle visibility of names above players. Client-side only.
| Toggle visibility of names above players. Client-side only.
|-
|-
| '''X'''
| align="center" | [[File:Version_Checkmark_False.png|20px]]
| togglekarma
| togglekarma
| Toggles the karma system on/off.
| Toggles the karma system on/off.
|-
|-
| '''X'''
| align="center" | [[File:Version_Checkmark_False.png|20px]]
| togglekarmatestmode
| togglekarmatestmode
| Toggles the karma test mode on/off. When on, notifies players of a karma change and its reason, also disables karma bans.
| Toggles the karma test mode on/off. When on, notifies players of a karma change and its reason, also disables karma bans.
|-
|-
| '''X'''
| align="center" | [[File:Version_Checkmark_False.png|20px]]
| unban [character name]
| unban [character name]
| Unbans the selected character from the server.
| Unbans the selected character from the server.
|-
|-
| '''X'''
| align="center" | [[File:Version_Checkmark_False.png|20px]]
| unbanip [IP Address]
| unbanip [IP Address]
| Unbans the selected IP Address from the server.
| Unbans the selected IP Address from the server.
|-
|-
| '''X'''
| align="center" | [[File:Version_Checkmark_False.png|20px]]
| unbindkey [key]
| unbindkey [key]
| Unbinds a command previously bound using bindkey.
| Unbinds a command previously bound using bindkey.
|-
|-
| '''X'''
| align="center" | [[File:Version_Checkmark_False.png|20px]]
| unmute [character name]
| unmute [character name]
| Allows a character to speak through voice chat.
| Allows a character to speak through voice chat.
|-
|-
! rowspan=7 | Server<br>Settings
! rowspan=7 | Server<br>Settings
| '''X'''
| align="center" | [[File:Version_Checkmark_False.png|20px]]
| autorestart [true/false]
| autorestart [true/false]
| Enables/disables the round autorestart timer.
| Enables/disables the round autorestart timer.
|-
|-
| '''X'''
| align="center" | [[File:Version_Checkmark_False.png|20px]]
| autorestartinterval [seconds]
| autorestartinterval [seconds]
| Sets the delay between rounds, if autorestart is enabled. Setting this to 0 disables autorestart.
| Sets the delay between rounds, if autorestart is enabled. Setting this to 0 disables autorestart.
|-
|-
| '''X'''
| align="center" | [[File:Version_Checkmark_False.png|20px]]
| autorestarttimer [seconds]
| autorestarttimer [seconds]
| Sets the current autorestart timer to the specified value.
| Sets the current autorestart timer to the specified value.
|-
|-
| '''X'''
| align="center" | [[File:Version_Checkmark_False.png|20px]]
| botcount [0-16]
| botcount [0-16]
| Sets the amount of bots on the ship to the specified value.
| Sets the amount of bots on the ship to the specified value.
|-
|-
| '''X'''
| align="center" | [[File:Version_Checkmark_False.png|20px]]
| botspawnmode [fill/normal]
| botspawnmode [fill/normal]
| Set how bots are spawned on the ship.
| Set how bots are spawned on the ship.
|-
|-
| '''X'''
| align="center" | [[File:Version_Checkmark_False.png|20px]]
| difficulty [0-100]
| difficulty [0-100]
| Sets the difficulty value of the server to the specified value.
| Sets the difficulty value of the server to the specified value.
|-
|-
| '''X'''
| align="center" | [[File:Version_Checkmark_False.png|20px]]
| startwhenclientsready [true/false]
| startwhenclientsready [true/false]
| Enables/disables autorestart when all players are ready.
| Enables/disables autorestart when all players are ready.
|-
|-
! rowspan=33 | Cheats
! rowspan=33 | Cheats
| '''✓'''
| align="center" | [[File:Version_Checkmark_True.png|20px]]
| ballastflora infect
| ballastflora infect
| Infects random pump (priority those tagged "ballast") with Ballast Flora
| Infects random pump (priority those tagged "ballast") with Ballast Flora
|-
|-
| '''✓'''
| align="center" | [[File:Version_Checkmark_True.png|20px]]
| ballastflora growthwarp [number]
| ballastflora growthwarp [number]
| Increases growth speed of Ballast Flora
| Increases growth speed of Ballast Flora
|-
|-
| '''✓'''
| align="center" | [[File:Version_Checkmark_True.png|20px]]
| control [charactername]
| control [charactername]
| Start controlling the specified character (client-only).
| Start controlling the specified character (client-only).
Line 226: Line 226:
| Enables cheat commands and disables achievements for the game session.  
| Enables cheat commands and disables achievements for the game session.  
|-
|-
| '''✓'''
| align="center" | [[File:Version_Checkmark_True.png|20px]]
| explosion [range] [force] [damage] [structural damage] [item damage] [emp strength]
| explosion [range] [force] [damage] [structural damage] [item damage] [emp strength]
| Creates an explosion at the position of the cursor.
| Creates an explosion at the position of the cursor.
|-
|-
| '''✓'''
| align="center" | [[File:Version_Checkmark_True.png|20px]]
| fire
| fire
| Creates fire at the position of the cursor.
| Creates fire at the position of the cursor.
|-
|-
| '''✓'''
| align="center" | [[File:Version_Checkmark_True.png|20px]]
| fixwalls/fixhulls
| fixwalls/fixhulls
| Fixes all walls on the ship.
| Fixes all walls on the ship.
|-
|-
| '''✓'''
| align="center" | [[File:Version_Checkmark_True.png|20px]]
| fixitems
| fixitems
| Restores all items to max condition.
| Restores all items to max condition.
|-
|-
| '''✓'''
| align="center" | [[File:Version_Checkmark_True.png|20px]]
| freecam
| freecam
| Switches the game into spectator mode.
| Switches the game into spectator mode.
|-
|-
| '''✓'''
| align="center" | [[File:Version_Checkmark_True.png|20px]]
| giveaffliction [affliction] [affliction strength] [character name]
| giveaffliction [affliction] [affliction strength] [character name]
| Applies an [[Afflictions|Affliction]] to the specified character. Affliction is applied to the controlled character if name is omitted.
| Applies an [[Afflictions|Affliction]] to the specified character. Affliction is applied to the controlled character if name is omitted.
|-
|-
| '''✓'''
| align="center" | [[File:Version_Checkmark_True.png|20px]]
| giveexperience [amount] [character name]
| giveexperience [amount] [character name]
| Gives experience to the specified character. Experience is given to the controlled character if name is omitted.
| Gives experience to the specified character. Experience is given to the controlled character if name is omitted.
|-
|-
| '''✓'''
| align="center" | [[File:Version_Checkmark_True.png|20px]]
| givetalent [talent] [character name]
| givetalent [talent] [character name]
| Grants a [[Talents|Talent]] to the specified character. Talent is granted to the controlled character if name is omitted.
| Grants a [[Talents|Talent]] to the specified character. Talent is granted to the controlled character if name is omitted.
|-
|-
| '''✓'''
| align="center" | [[File:Version_Checkmark_True.png|20px]]
| godmode [character name]
| godmode [character name]
| Makes the character invulnerable to damage. Controlled character is selected if name is omitted.
| Makes the character invulnerable to damage. Controlled character is selected if name is omitted.
|-
|-
| '''✓'''
| align="center" | [[File:Version_Checkmark_True.png|20px]]
| godmode_mainsub
| godmode_mainsub
| Makes the submarine invulnerable to damage.
| Makes the submarine invulnerable to damage.
|-
|-
| '''✓'''
| align="center" | [[File:Version_Checkmark_True.png|20px]]
| growthdelay
| growthdelay
| Sets how long it takes for planters to attempt to advance a plant's growth.
| Sets how long it takes for planters to attempt to advance a plant's growth.
|-
|-
| '''✓'''
| align="center" | [[File:Version_Checkmark_True.png|20px]]
| heal [character name]
| heal [character name]
| Restores the specified character to max health. Controlled character is healed if name is omitted.
| Restores the specified character to max health. Controlled character is healed if name is omitted.
|-
|-
| '''✓'''
| align="center" | [[File:Version_Checkmark_True.png|20px]]
| kill [character]
| kill [character]
| Immediately kills the specified character. Controlled character is killed if name is omitted.
| Immediately kills the specified character. Controlled character is killed if name is omitted.
|-
|-
| '''✓'''
| align="center" | [[File:Version_Checkmark_True.png|20px]]
| killmonsters
| killmonsters
| Immediately kills all AI-controlled enemies in the level.  
| Immediately kills all AI-controlled enemies in the level.  
|-
|-
| '''✓'''
| align="center" | [[File:Version_Checkmark_True.png|20px]]
| lighting
| lighting
| Toggles lighting on/off. Client-side only.
| Toggles lighting on/off. Client-side only.
|-
|-
| '''✓'''
| align="center" | [[File:Version_Checkmark_True.png|20px]]
| los
| los
| Toggle line-of-sight occlusion on/off. Client-side only.
| Toggle line-of-sight occlusion on/off. Client-side only.
|-
|-
| '''✓'''
| align="center" | [[File:Version_Checkmark_True.png|20px]]
| money [integer value]
| money [integer value]
| Adds the specified amount to the current balance in Marks
| Adds the specified amount to the current balance in Marks
|-
|-
| '''✓'''
| align="center" | [[File:Version_Checkmark_True.png|20px]]
| oxygen/air
| oxygen/air
| Replenishes every room's oxygen levels to 100%
| Replenishes every room's oxygen levels to 100%
|-
|-
| '''✓'''
| align="center" | [[File:Version_Checkmark_True.png|20px]]
| power
| power
| Immediately powers up all nuclear reactors.
| Immediately powers up all nuclear reactors.
|-
|-
| '''X'''
| align="center" | [[File:Version_Checkmark_False.png|20px]]
| respawnnow
| respawnnow
| Trigger a respawn if there are clients waiting to respawn.
| Trigger a respawn if there are clients waiting to respawn.
|-
|-
| '''✓'''
| align="center" | [[File:Version_Checkmark_True.png|20px]]
| revive [character name]
| revive [character name]
| Brings the specified character back from the dead. Controlled character is revived if name is omitted.
| Brings the specified character back from the dead. Controlled character is revived if name is omitted.
|-
|-
| '''✓'''
| align="center" | [[File:Version_Checkmark_True.png|20px]]
| setclientcharacter [client name] [character name]
| setclientcharacter [client name] [character name]
| Give control of the specified character to the specified client.
| Give control of the specified character to the specified client.
|-
|-
| '''✓'''
| align="center" | [[File:Version_Checkmark_True.png|20px]]
| setskill [all/indentifier] [max/level] [character name]
| setskill [all/indentifier] [max/level] [character name]
| Set specified skills of a specified client to a specified level.
| Set specified skills of a specified client to a specified level.
|-
|-
| '''✓'''
| align="center" | [[File:Version_Checkmark_True.png|20px]]
| spawn [creaturename/jobname] [near/inside/outside/cursor]
| spawn [creaturename/jobname] [near/inside/outside/cursor]
| Spawn a creature or AI-controlled crewmember at the specified location.
| Spawn a creature or AI-controlled crewmember at the specified location.
|-
|-
| '''✓'''
| align="center" | [[File:Version_Checkmark_True.png|20px]]
| spawnitem [item name/identifier] [cursor/inventory/cargo/random/[character name]]
| spawnitem [item name/identifier] [cursor/inventory/cargo/random/[character name]]
| Spawn an item at the specified location. Item is spawned at a random location if location is omitted.
| Spawn an item at the specified location. Item is spawned at a random location if location is omitted.
|-
|-
| '''✓'''
| align="center" | [[File:Version_Checkmark_True.png|20px]]
| teleportcharacter [character name]
| teleportcharacter [character name]
| Teleports the specified character to the cursor's position.
| Teleports the specified character to the cursor's position.
|-
|-
| '''✓'''
| align="center" | [[File:Version_Checkmark_True.png|20px]]
| teleportsub [start/end/cursor]
| teleportsub [start/end/cursor]
| Teleports the sub to a given location. Warning: <u>Very</u> glitchy.
| Teleports the sub to a given location. Warning: <u>Very</u> glitchy.
|-
|-
| '''✓'''
| align="center" | [[File:Version_Checkmark_True.png|20px]]
| upgradeitem [upgrade] [level] [items]
| upgradeitem [upgrade] [level] [items]
| Adds an upgrade to the targeted item.
| Adds an upgrade to the targeted item.
|-
|-
| '''✓'''
| align="center" | [[File:Version_Checkmark_True.png|20px]]
| water
| water
| Toggles water editing. Add water to a room by holding left click, and drain water by holding right click.
| Toggles water editing. Add water to a room by holding left click, and drain water by holding right click.
|-
|-
! rowspan=11 | [[Submarine Editor|Submarine<br>Editor]]
! rowspan=11 | [[Submarine Editor|Submarine<br>Editor]]
| '''✓'''
| align="center" | [[File:Version_Checkmark_True.png|20px]]
| alpha [0-255]
| alpha [0-255]
| Set the alpha (transparency) of the selected items/structures.
| Set the alpha (transparency) of the selected items/structures.
|-
|-
| '''✓'''
| align="center" | [[File:Version_Checkmark_True.png|20px]]
| color [0-255] [0-255] [0-255]
| color [0-255] [0-255] [0-255]
| Set the RGB values of the selected items/structures.
| Set the RGB values of the selected items/structures.
|-
|-
| '''X'''
| align="center" | [[File:Version_Checkmark_False.png|20px]]
| load [submarine name]
| load [submarine name]
| Loads a submarine.
| Loads a submarine.
|-
|-
| '''X'''
| align="center" | [[File:Version_Checkmark_False.png|20px]]
| multiplylights [R,G,B,A]
| multiplylights [R,G,B,A]
| Multiplies the colors/alphas of all static lights in the sub using the specified Vector4 value. <nowiki>https://docs.microsoft.com/en-us/dotnet/api/system.numerics.vector4?view=netcore-3.1</nowiki>  
| Multiplies the colors/alphas of all static lights in the sub using the specified Vector4 value. <nowiki>https://docs.microsoft.com/en-us/dotnet/api/system.numerics.vector4?view=netcore-3.1</nowiki>  
|-
|-
| '''✓'''
| align="center" | [[File:Version_Checkmark_True.png|20px]]
| reloadsprite
| reloadsprite
| Reloads the sprites of the selected items/structures. Also works in-game on the controlled character.
| Reloads the sprites of the selected items/structures. Also works in-game on the controlled character.
|-
|-
| '''X'''
| align="center" | [[File:Version_Checkmark_False.png|20px]]
| resetall
| resetall
| Resets all items/structures to prefab defaults.
| Resets all items/structures to prefab defaults.
|-
|-
| '''X'''
| align="center" | [[File:Version_Checkmark_False.png|20px]]
| resetentitiesbyidentifier [identifier]
| resetentitiesbyidentifier [identifier]
| Resets all items/structures with the given identifier to prefab defaults.
| Resets all items/structures with the given identifier to prefab defaults.
|-
|-
| '''X'''
| align="center" | [[File:Version_Checkmark_False.png|20px]]
| resetselected
| resetselected
| Resets the properties of the selected items/structures to prefab default.
| Resets the properties of the selected items/structures to prefab default.
|-
|-
| '''X'''
| align="center" | [[File:Version_Checkmark_False.png|20px]]
| save [submarine name]
| save [submarine name]
| Saves the currently loaded submarine to ..\Barotrauma\Submarines\[submarine name]. Also works in singleplayer.
| Saves the currently loaded submarine to ..\Barotrauma\Submarines\[submarine name]. Also works in singleplayer.
|-
|-
| '''X'''
| align="center" | [[File:Version_Checkmark_False.png|20px]]
| setentityproperties [property name] [value]
| setentityproperties [property name] [value]
| Set the specified property of the selected items/structures to the specified value.
| Set the specified property of the selected items/structures to the specified value.
|-
|-
| '''X'''
| align="center" | [[File:Version_Checkmark_False.png|20px]]
| togglegrid
| togglegrid
| Toggle visual snap grid in sub editor.
| Toggle visual snap grid in sub editor.
|-
|-
! rowspan=3 | Misc
! rowspan=3 | Misc
| '''X'''
| align="center" | [[File:Version_Checkmark_False.png|20px]]
| quickstart [submarine name] [difficulty] [level seed]
| quickstart [submarine name] [difficulty] [level seed]
| Starts a singleplayer sandbox (can only be executed from the main menu)
| Starts a singleplayer sandbox (can only be executed from the main menu)
|-
|-
| '''X'''
| align="center" | [[File:Version_Checkmark_False.png|20px]]
| wikiimage_character
| wikiimage_character
| Save an image of the currently controlled character with a transparent background.
| Save an image of the currently controlled character with a transparent background.
|-
|-
| '''X'''
| align="center" | [[File:Version_Checkmark_False.png|20px]]
| wikiimage_sub
| wikiimage_sub
| Save an image of the main submarine with a transparent background.
| Save an image of the main submarine with a transparent background.
|-
|-
! rowspan=5 | Debug<br>Network
! rowspan=5 | Debug<br>Network
| '''X'''
| align="center" | [[File:Version_Checkmark_False.png|20px]]
| netstats
| netstats
| Toggle visibility of the Network Statistics UI.
| Toggle visibility of the Network Statistics UI.
|-
|-
| '''X'''
| align="center" | [[File:Version_Checkmark_False.png|20px]]
| simulatedduplicateschance [0.00-1.00]
| simulatedduplicateschance [0.00-1.00]
| Simulates packet duplication in network messages. A value of 1 means 100% of packets are duplicated.
| Simulates packet duplication in network messages. A value of 1 means 100% of packets are duplicated.
|-
|-
| '''X'''
| align="center" | [[File:Version_Checkmark_False.png|20px]]
| simulatedlatency [min. latency (seconds)] [rand. latency (seconds)]
| simulatedlatency [min. latency (seconds)] [rand. latency (seconds)]
| Applies a simulated latency to network messages. Useful for testing real network conditions.
| Applies a simulated latency to network messages. Useful for testing real network conditions.
|-
|-
| '''X'''
| align="center" | [[File:Version_Checkmark_False.png|20px]]
| simulatedloss [0.00-1.00]
| simulatedloss [0.00-1.00]
| Simulates packet loss in network messages. A value of 1 means 100% of packets are lost.
| Simulates packet loss in network messages. A value of 1 means 100% of packets are lost.
|-
|-
| '''X'''
| align="center" | [[File:Version_Checkmark_False.png|20px]]
| steamnetdebug
| steamnetdebug
| Toggles Steamworks network debug logging.
| Toggles Steamworks network debug logging.
|-
|-
! rowspan=56<!-- 57 --> | Debug<br>In-game
! rowspan=56<!-- 57 --> | Debug<br>In-game
| '''X'''
| align="center" | [[File:Version_Checkmark_False.png|20px]]
| autoitemplacerdebug
| autoitemplacerdebug
| Toggles automatic item placer debug info on/off. Auto-placed items are outputted to the console at round start.
| Toggles automatic item placer debug info on/off. Auto-placed items are outputted to the console at round start.
|-
|-
| '''X'''
| align="center" | [[File:Version_Checkmark_False.png|20px]]
| calculatehashes [content package name]
| calculatehashes [content package name]
| Show the MD5 hashes of the files in the specified content package. First content package is selected if name is omitted.
| Show the MD5 hashes of the files in the specified content package. First content package is selected if name is omitted.
|-
|-
| '''X'''
| align="center" | [[File:Version_Checkmark_False.png|20px]]
| checkcrafting
| checkcrafting
| Checks item crafting and deconstruction recipes for inconsistencies.
| Checks item crafting and deconstruction recipes for inconsistencies.
|-
|-
| '''✓'''
| align="center" | [[File:Version_Checkmark_True.png|20px]]
| debugai
| debugai
| Toggles AI debug mode on/off. Only works in singleplayer.
| Toggles AI debug mode on/off. Only works in singleplayer.
|-
|-
| '''✓'''
| align="center" | [[File:Version_Checkmark_True.png|20px]]
| debugdraw
| debugdraw
| Toggles the debug drawing mode on/off. Client-side only.
| Toggles the debug drawing mode on/off. Client-side only.
|-
|-
| '''✓'''
| align="center" | [[File:Version_Checkmark_True.png|20px]]
| disablecrewai
| disablecrewai
| Disables the AI of AI-controlled crewmembers.
| Disables the AI of AI-controlled crewmembers.
|-
|-
| '''✓'''
| align="center" | [[File:Version_Checkmark_True.png|20px]]
| disableenemyai
| disableenemyai
| Disables the AI of AI-controlled enemies.
| Disables the AI of AI-controlled enemies.
|-
|-
| '''X'''
| align="center" | [[File:Version_Checkmark_False.png|20px]]
| dumpentitytexts [filename.txt]
| dumpentitytexts [filename.txt]
| Writes the names and descriptions of every entity prefab along with xml translation tags to the specified .txt file. Data is written to Barotrauma\Content\Texts\EntityTexts.txt if file path is omitted.
| Writes the names and descriptions of every entity prefab along with xml translation tags to the specified .txt file. Data is written to Barotrauma\Content\Texts\EntityTexts.txt if file path is omitted.
|-
|-
| '''X'''
| align="center" | [[File:Version_Checkmark_False.png|20px]]
| dumpeventtexts [filename.txt]
| dumpeventtexts [filename.txt]
| Writes the text of every event file along with xml translation tags to the specified .txt file. Data is written to Barotrauma\Content\Texts\EventTexts.txt if file path is omitted.
| Writes the text of every event file along with xml translation tags to the specified .txt file. Data is written to Barotrauma\Content\Texts\EventTexts.txt if file path is omitted.
|-
|-
| '''X'''
| align="center" | [[File:Version_Checkmark_False.png|20px]]
| dumptexts [filename.xml]
| dumptexts [filename.xml]
| Writes the text of the specified .xml file to a .txt file with the same name. Data is read from EnglishVanilla.xml if file path is omitted.
| Writes the text of the specified .xml file to a .txt file with the same name. Data is read from EnglishVanilla.xml if file path is omitted.
|-
|-
| '''X'''
| align="center" | [[File:Version_Checkmark_False.png|20px]]
| dumptofile [filename]
| dumptofile [filename]
| 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.
| 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.
|-
|-
| '''X'''
| align="center" | [[File:Version_Checkmark_False.png|20px]]
| editcharacters
| editcharacters
| Opens the Character Editor.
| Opens the Character Editor.
|-
|-
| '''X'''
| align="center" | [[File:Version_Checkmark_False.png|20px]]
| editevents
| editevents
| Opens the Event Editor.
| Opens the Event Editor.
|-
|-
| '''X'''
| align="center" | [[File:Version_Checkmark_False.png|20px]]
| editlevels
| editlevels
| Opens the Level Editor
| Opens the Level Editor
|-
|-
| '''X'''
| align="center" | [[File:Version_Checkmark_False.png|20px]]
| editparticles
| editparticles
| Opens the Particle Editor.
| Opens the Particle Editor.
|-
|-
| '''X'''
| align="center" | [[File:Version_Checkmark_False.png|20px]]
| editsprites
| editsprites
| Opens the Sprite Editor.
| Opens the Sprite Editor.
|-
|-
| '''X'''
| align="center" | [[File:Version_Checkmark_False.png|20px]]
| editsubs/subeditor
| editsubs/subeditor
| Opens the [[Submarine Editor]].
| Opens the [[Submarine Editor]].
|-
|-
| '''✓'''
| align="center" | [[File:Version_Checkmark_True.png|20px]]
| enablecrewai
| enablecrewai
| Enables the AI of AI-controlled crewmembers.
| Enables the AI of AI-controlled crewmembers.
|-
|-
| '''✓'''
| align="center" | [[File:Version_Checkmark_True.png|20px]]
| enableenemyai
| enableenemyai
| Enables the AI of AI-controlled enemies.
| Enables the AI of AI-controlled enemies.
|-
|-
| '''✓'''
| align="center" | [[File:Version_Checkmark_True.png|20px]]
| eventmanager
| eventmanager
| Toggles the master event manager on/off. Random events cannot happen if this is turned off.
| Toggles the master event manager on/off. Random events cannot happen if this is turned off.
|-
|-
| '''X'''
| align="center" | [[File:Version_Checkmark_False.png|20px]]
|findentityids [entity name]
|findentityids [entity name]
|Outputs the entityID of the specified entity to the console.
|Outputs the entityID of the specified entity to the console.
|-
|-
| '''X'''
| align="center" | [[File:Version_Checkmark_False.png|20px]]
| fpscounter
| fpscounter
| Toggles the in-game FPS counter on/off.
| Toggles the in-game FPS counter on/off.
|-
|-
| '''X'''
| align="center" | [[File:Version_Checkmark_False.png|20px]]
| game
| game
| Switch to the in-game view.
| Switch to the in-game view.
|-
|-
| '''✓'''
| align="center" | [[File:Version_Checkmark_True.png|20px]]
| gender [Male/Female/None]
| gender [Male/Female/None]
| Switches the gender of the controlled character to the specified value.
| Switches the gender of the controlled character to the specified value.
|-
|-
| '''✓'''
| align="center" | [[File:Version_Checkmark_True.png|20px]]
| head [head id] [hair id] [beard id] [moustache id] [face attachment id]
| head [head id] [hair id] [beard id] [moustache id] [face attachment id]
| Loads a head sprite and wearables to a controlled character. Hair, beard, moustache and face attachment ID's are optional.
| Loads a head sprite and wearables to a controlled character. Hair, beard, moustache and face attachment ID's are optional.
|-
|-
| '''X'''
| align="center" | [[File:Version_Checkmark_False.png|20px]]
| hud/togglehud
| hud/togglehud
| Toggles the visibility of all the HUD elements. Client-side only.
| Toggles the visibility of all the HUD elements. Client-side only.
|-
|-
| '''X'''
| align="center" | [[File:Version_Checkmark_False.png|20px]]
| hudlayoutdebugdraw
| hudlayoutdebugdraw
| Toggles the debug drawing mode of HUD layout areas on/off.
| Toggles the debug drawing mode of HUD layout areas on/off.
|-
|-
| '''✓'''
| align="center" | [[File:Version_Checkmark_True.png|20px]]
| interactdebugdraw
| interactdebugdraw
| Toggles the debug drawing mode of item interaction ranges on/off.
| Toggles the debug drawing mode of item interaction ranges on/off.
|-
|-
| '''X'''
| align="center" | [[File:Version_Checkmark_False.png|20px]]
| itemlist/items
| itemlist/items
| Outputs all item prefabs available for spawning.
| Outputs all item prefabs available for spawning.
|-
|-
| '''✓'''
| align="center" | [[File:Version_Checkmark_True.png|20px]]
| jointscale [value] [character name]
| jointscale [value] [character name]
| Define the joint scaling for the specified character. Joint scaling is changed for the controlled character if name is omitted.
| Define the joint scaling for the specified character. Joint scaling is changed for the controlled character if name is omitted.
|-
|-
| '''✓'''
| align="center" | [[File:Version_Checkmark_True.png|20px]]
| limbscale [value] [character name]
| limbscale [value] [character name]
| Define the limb scaling for the specified character. Limb scaling is changed for the controlled character if name is omitted.
| Define the limb scaling for the specified character. Limb scaling is changed for the controlled character if name is omitted.
|-
|-
| '''X'''
| align="center" | [[File:Version_Checkmark_False.png|20px]]
| listtasks
| listtasks
| Outputs all asynchronous tasks currently in the task pool to the console.
| Outputs all asynchronous tasks currently in the task pool to the console.
|-
|-
| '''X'''
| align="center" | [[File:Version_Checkmark_False.png|20px]]
| loadtexts [sourcefile.txt] [destinationfile.xml]
| loadtexts [sourcefile.txt] [destinationfile.xml]
| Loads all lines of text from a .txt file to a .xml file sequentially.
| Loads all lines of text from a .txt file to a .xml file sequentially.
|-
|-
| '''✓'''
| align="center" | [[File:Version_Checkmark_True.png|20px]]
| loadwearable [id]
| loadwearable [id]
| Force-select a certain job loadout variant for the controlled character.
| Force-select a certain job loadout variant for the controlled character.
|-
|-
| '''✓'''
| align="center" | [[File:Version_Checkmark_True.png|20px]]
| lock
| lock
| Locks movement of the main submarine.
| Locks movement of the main submarine.
|-
|-
| '''✓'''
| align="center" | [[File:Version_Checkmark_True.png|20px]]
| lockx
| lockx
| Locks movement of the main submarine in the X (left-right) direction.
| Locks movement of the main submarine in the X (left-right) direction.
|-
|-
| '''✓'''
| align="center" | [[File:Version_Checkmark_True.png|20px]]
| locky
| locky
| Locks movement of the main submarine in the Y (up-down) direction.
| Locks movement of the main submarine in the Y (up-down) direction.
|-
|-
| '''X'''
| align="center" | [[File:Version_Checkmark_False.png|20px]]
| mainmenu/menu
| mainmenu/menu
| Switch to the main menu.
| Switch to the main menu.
|-
|-
| '''X'''
| align="center" | [[File:Version_Checkmark_False.png|20px]]
| messagebox [header] [message] [default/in-game]
| messagebox [header] [message] [default/in-game]
| Create a message box. Client-side only.
| Create a message box. Client-side only.
|-
|-
| '''✓'''
| align="center" | [[File:Version_Checkmark_True.png|20px]]
| race [White, Black, Asian, None]
| race [White, Black, Asian, None]
| Sets the race of the controlled character to the specified value.
| Sets the race of the controlled character to the specified value.
|-
|-
| '''✓'''
| align="center" | [[File:Version_Checkmark_True.png|20px]]
| ragdoll [character name]
| ragdoll [character name]
| Ragdolls the specified character. Ragdolls controlled character if name is omitted.
| Ragdolls the specified character. Ragdolls controlled character if name is omitted.
|-
|-
| '''✓'''
| align="center" | [[File:Version_Checkmark_True.png|20px]]
| ragdollscale [character name]
| ragdollscale [character name]
| Define the ragdoll scaling for the specified character. Ragdoll scaling is changed for the controlled character if name is omitted.
| Define the ragdoll scaling for the specified character. Ragdoll scaling is changed for the controlled character if name is omitted.
|-
|-
| '''✓'''
| align="center" | [[File:Version_Checkmark_True.png|20px]]
| recreateragdoll [character name]
| recreateragdoll [character name]
| Recreate the ragdoll for the specified character. Ragdoll is recreated for the controlled character if name is omitted.
| Recreate the ragdoll for the specified character. Ragdoll is recreated for the controlled character if name is omitted.
|-
|-
| '''✓'''
| align="center" | [[File:Version_Checkmark_True.png|20px]]
| reloadwearables [character name]
| reloadwearables [character name]
| Reloads the sprites of all limbs and clothes of the specified character. Sprites are reloaded for the controlled character if name is omitted.
| Reloads the sprites of all limbs and clothes of the specified character. Sprites are reloaded for the controlled character if name is omitted.
|-
|-
| '''✓'''
| align="center" | [[File:Version_Checkmark_True.png|20px]]
| resetragdoll [character name]
| resetragdoll [character name]
| Resets the ragdoll of the specified character. Sprites are reloaded for the controlled character if name is omitted.
| Resets the ragdoll of the specified character. Sprites are reloaded for the controlled character if name is omitted.
|-
|-
| '''X'''
| align="center" | [[File:Version_Checkmark_False.png|20px]]
| setfreecamspeed [speed]
| setfreecamspeed [speed]
| Set the camera movement speed when not controlling a character. Defaults to 1.
| Set the camera movement speed when not controlling a character. Defaults to 1.
Line 610: Line 610:
|  
|  
|- -->
|- -->
| '''X'''
| align="center" | [[File:Version_Checkmark_False.png|20px]]
| showperf
| showperf
| Toggles visibility of the Performance Statistics HUD
| Toggles visibility of the Performance Statistics HUD
|-
|-
| '''X'''
| align="center" | [[File:Version_Checkmark_False.png|20px]]
| showseed
| showseed
| Outputs the current level's seed to the console.
| Outputs the current level's seed to the console.
|-
|-
| '''✓'''
| align="center" | [[File:Version_Checkmark_True.png|20px]]
| spawnsub [submarine name]
| spawnsub [submarine name]
| Spawns a submarine at the location of the cursor.
| Spawns a submarine at the location of the cursor.
|-
|-
| '''X'''
| align="center" | [[File:Version_Checkmark_False.png|20px]]
| starttraitormissionimmediately
| starttraitormissionimmediately
| Skip the initial delay of the traitor mission and start one immediately.
| Skip the initial delay of the traitor mission and start one immediately.
|-
|-
| '''✓'''
| align="center" | [[File:Version_Checkmark_True.png|20px]]
| toggleaitargets
| toggleaitargets
| Toggles the visiblity of AI targets. Client-side only.
| Toggles the visiblity of AI targets. Client-side only.
|-
|-
| '''X'''
| align="center" | [[File:Version_Checkmark_False.png|20px]]
| toggleitemhighlights
| toggleitemhighlights
| Toggles the item highlight effect on/off. Client-side only.
| Toggles the item highlight effect on/off. Client-side only.
|-
|-
| '''X'''
| align="center" | [[File:Version_Checkmark_False.png|20px]]
| toggleupperhud
| toggleupperhud
| Toggles the visibility of the upper HUD elements. Client-side only. (Use "hud" to hide it entirely.)
| Toggles the visibility of the upper HUD elements. Client-side only. (Use "hud" to hide it entirely.)
|-
|-
| '''✓'''
| align="center" | [[File:Version_Checkmark_True.png|20px]]
| triggerevent [id]
| triggerevent [id]
| Trigger a random event.
| Trigger a random event.
|-
|-
| '''X'''
| align="center" | [[File:Version_Checkmark_False.png|20px]]
| updatetextfile [sourcefile.txt/.xml] [destinationfile.txt/.xml]
| updatetextfile [sourcefile.txt/.xml] [destinationfile.txt/.xml]
| Inserts absent xml elements from the source file into the destination file. Useful for updating outdated translation files.
| Inserts absent xml elements from the source file into the destination file. Useful for updating outdated translation files.
|-
|-
| '''X'''
| align="center" | [[File:Version_Checkmark_False.png|20px]]
| verboselogging
| verboselogging
| Toggles verbose logging in the console on/off. When active, additional debug info is written to the console alongside standard info.
| Toggles verbose logging in the console on/off. When active, additional debug info is written to the console alongside standard info.

Revision as of 18:22, 13 March 2022

Data is potentially outdated
Last updated for version 0.16.7.0
Last mentioned in changelog 1.0.13.0
The current game version is 1.3.0.4
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 on Barotrauma's official Github page.

Usage

  1. Press F3 to toggle the console.
  2. Enter enablecheats to enable cheats and disable achievements for the game session
    • Note that some commands don't require enabling cheats (and disabling achievements); notably, commands in the moderation, submarine editor, and misc categories below.
  3. Press Tab to autofill and cycle through identifiers


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"
Click on the headers to sort this table by type or by command name. Alternatively, use CTRL+F to find a specific command.
Category Cheat Command Description
Campaign campaigndestination [index] Set the target location in the current campaign.
campaigninfo Display info about the current campaign, such as current money, location and available destinations.
setlocationreputation [value] Set your reputation to the current location to the specified value.
togglecampaignteleport Toggles the ability to teleport to a location on the campaign map by double-clicking. Works only in singleplayer.
pause Pauses the game. Only works in singleplayer.
Moderation ban [character name] Bans the selected character from the server.
banendpoint [IP Address/SteamID] Bans the selected IP Address/SteamID from the server.
banid [clientID] Bans the selected clientID from the server.
bindkey [key] [command] Binds a key to a command.
clientlist Outputs the character name, clientID and ping of all players in the server to the console.
givecommandperm [clientID/SteamID/character name/IP Address] Gives the selected player the permission to use the console commands typed in the next entry.
giveperm [clientID/SteamID/character name/IP Address] Gives the selected player the permission typed in the next entry.
giverank [clientID/SteamID/character name/IP Address] Gives the selected player the rank typed in the next entry.
kick [character name] Kicks the selected character from the server.
kickid [clientID] Kicks the selected clientID from the server.
killdisconnectedtimer [seconds] Set the delay until disconnected players are killed.
msg [message] Send a chat message with no sender specified.
mute [character name] Blocks a character from speaking through voice chat.
resetkarma [clientID] Resets the karma of a client to 100.
revokecommandperm [clientID/SteamID/character name/IP Address] Revokes the selected player's permission to use the console commands typed in the next entry.
revokeperm [clientID/SteamID/character name/IP Address] Revokes the selected player's permission typed in the next entry.
savebinds Writes current keybinds into the config file (= keybinds set using the keybind command).
say [message] Send a global chat message. When issued through the server command line, displays "HOST" as the sender.
setkarma [clientID] [0-100] Sets the karma of a client to the specified value.
showkarma Outputs the karma of all players to the console.
showperm [clientID/SteamID/character name/IP Address] Outputs the permissions of the selected player to the console.
togglecharacternames Toggle visibility of names above players. Client-side only.
togglekarma Toggles the karma system on/off.
togglekarmatestmode Toggles the karma test mode on/off. When on, notifies players of a karma change and its reason, also disables karma bans.
unban [character name] Unbans the selected character from the server.
unbanip [IP Address] Unbans the selected IP Address from the server.
unbindkey [key] Unbinds a command previously bound using bindkey.
unmute [character name] Allows a character to speak through voice chat.
Server
Settings
autorestart [true/false] Enables/disables the round autorestart timer.
autorestartinterval [seconds] Sets the delay between rounds, if autorestart is enabled. Setting this to 0 disables autorestart.
autorestarttimer [seconds] Sets the current autorestart timer to the specified value.
botcount [0-16] Sets the amount of bots on the ship to the specified value.
botspawnmode [fill/normal] Set how bots are spawned on the ship.
difficulty [0-100] Sets the difficulty value of the server to the specified value.
startwhenclientsready [true/false] Enables/disables autorestart when all players are ready.
Cheats ballastflora infect Infects random pump (priority those tagged "ballast") with Ballast Flora
ballastflora growthwarp [number] Increases growth speed of Ballast Flora
control [charactername] Start controlling the specified character (client-only).
enablecheats Enables cheat commands and disables achievements for the game session.
explosion [range] [force] [damage] [structural damage] [item damage] [emp strength] Creates an explosion at the position of the cursor.
fire Creates fire at the position of the cursor.
fixwalls/fixhulls Fixes all walls on the ship.
fixitems Restores all items to max condition.
freecam Switches the game into spectator mode.
giveaffliction [affliction] [affliction strength] [character name] Applies an Affliction to the specified character. Affliction is applied to the controlled character if name is omitted.
giveexperience [amount] [character name] Gives experience to the specified character. Experience is given to the controlled character if name is omitted.
givetalent [talent] [character name] Grants a Talent to the specified character. Talent is granted to the controlled character if name is omitted.
godmode [character name] Makes the character invulnerable to damage. Controlled character is selected if name is omitted.
godmode_mainsub Makes the submarine invulnerable to damage.
growthdelay Sets how long it takes for planters to attempt to advance a plant's growth.
heal [character name] Restores the specified character to max health. Controlled character is healed if name is omitted.
kill [character] Immediately kills the specified character. Controlled character is killed if name is omitted.
killmonsters Immediately kills all AI-controlled enemies in the level.
lighting Toggles lighting on/off. Client-side only.
los Toggle line-of-sight occlusion on/off. Client-side only.
money [integer value] Adds the specified amount to the current balance in Marks
oxygen/air Replenishes every room's oxygen levels to 100%
power Immediately powers up all nuclear reactors.
respawnnow Trigger a respawn if there are clients waiting to respawn.
revive [character name] Brings the specified character back from the dead. Controlled character is revived if name is omitted.
setclientcharacter [client name] [character name] Give control of the specified character to the specified client.
setskill [all/indentifier] [max/level] [character name] Set specified skills of a specified client to a specified level.
spawn [creaturename/jobname] [near/inside/outside/cursor] Spawn a creature or AI-controlled crewmember at the specified location.
spawnitem [item name/identifier] [cursor/inventory/cargo/random/[character name]] Spawn an item at the specified location. Item is spawned at a random location if location is omitted.
teleportcharacter [character name] Teleports the specified character to the cursor's position.
teleportsub [start/end/cursor] Teleports the sub to a given location. Warning: Very glitchy.
upgradeitem [upgrade] [level] [items] Adds an upgrade to the targeted item.
water Toggles water editing. Add water to a room by holding left click, and drain water by holding right click.
Submarine
Editor
alpha [0-255] Set the alpha (transparency) of the selected items/structures.
color [0-255] [0-255] [0-255] Set the RGB values of the selected items/structures.
load [submarine name] Loads a submarine.
multiplylights [R,G,B,A] Multiplies the colors/alphas of all static lights in the sub using the specified Vector4 value. https://docs.microsoft.com/en-us/dotnet/api/system.numerics.vector4?view=netcore-3.1
reloadsprite Reloads the sprites of the selected items/structures. Also works in-game on the controlled character.
resetall Resets all items/structures to prefab defaults.
resetentitiesbyidentifier [identifier] Resets all items/structures with the given identifier to prefab defaults.
resetselected Resets the properties of the selected items/structures to prefab default.
save [submarine name] Saves the currently loaded submarine to ..\Barotrauma\Submarines\[submarine name]. Also works in singleplayer.
setentityproperties [property name] [value] Set the specified property of the selected items/structures to the specified value.
togglegrid Toggle visual snap grid in sub editor.
Misc quickstart [submarine name] [difficulty] [level seed] Starts a singleplayer sandbox (can only be executed from the main menu)
wikiimage_character Save an image of the currently controlled character with a transparent background.
wikiimage_sub Save an image of the main submarine with a transparent background.
Debug
Network
netstats Toggle visibility of the Network Statistics UI.
simulatedduplicateschance [0.00-1.00] Simulates packet duplication in network messages. A value of 1 means 100% of packets are duplicated.
simulatedlatency [min. latency (seconds)] [rand. latency (seconds)] Applies a simulated latency to network messages. Useful for testing real network conditions.
simulatedloss [0.00-1.00] Simulates packet loss in network messages. A value of 1 means 100% of packets are lost.
steamnetdebug Toggles Steamworks network debug logging.
Debug
In-game
autoitemplacerdebug Toggles automatic item placer debug info on/off. Auto-placed items are outputted to the console at round start.
calculatehashes [content package name] Show the MD5 hashes of the files in the specified content package. First content package is selected if name is omitted.
checkcrafting Checks item crafting and deconstruction recipes for inconsistencies.
debugai Toggles AI debug mode on/off. Only works in singleplayer.
debugdraw Toggles the debug drawing mode on/off. Client-side only.
disablecrewai Disables the AI of AI-controlled crewmembers.
disableenemyai Disables the AI of AI-controlled enemies.
dumpentitytexts [filename.txt] Writes the names and descriptions of every entity prefab along with xml translation tags to the specified .txt file. Data is written to Barotrauma\Content\Texts\EntityTexts.txt if file path is omitted.
dumpeventtexts [filename.txt] Writes the text of every event file along with xml translation tags to the specified .txt file. Data is written to Barotrauma\Content\Texts\EventTexts.txt if file path is omitted.
dumptexts [filename.xml] Writes the text of the specified .xml file to a .txt file with the same name. Data is read from EnglishVanilla.xml if file path is omitted.
dumptofile [filename] 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.
editcharacters Opens the Character Editor.
editevents Opens the Event Editor.
editlevels Opens the Level Editor
editparticles Opens the Particle Editor.
editsprites Opens the Sprite Editor.
editsubs/subeditor Opens the Submarine Editor.
enablecrewai Enables the AI of AI-controlled crewmembers.
enableenemyai Enables the AI of AI-controlled enemies.
eventmanager Toggles the master event manager on/off. Random events cannot happen if this is turned off.
findentityids [entity name] Outputs the entityID of the specified entity to the console.
fpscounter Toggles the in-game FPS counter on/off.
game Switch to the in-game view.
gender [Male/Female/None] Switches the gender of the controlled character to the specified value.
head [head id] [hair id] [beard id] [moustache id] [face attachment id] Loads a head sprite and wearables to a controlled character. Hair, beard, moustache and face attachment ID's are optional.
hud/togglehud Toggles the visibility of all the HUD elements. Client-side only.
hudlayoutdebugdraw Toggles the debug drawing mode of HUD layout areas on/off.
interactdebugdraw Toggles the debug drawing mode of item interaction ranges on/off.
itemlist/items Outputs all item prefabs available for spawning.
jointscale [value] [character name] Define the joint scaling for the specified character. Joint scaling is changed for the controlled character if name is omitted.
limbscale [value] [character name] Define the limb scaling for the specified character. Limb scaling is changed for the controlled character if name is omitted.
listtasks Outputs all asynchronous tasks currently in the task pool to the console.
loadtexts [sourcefile.txt] [destinationfile.xml] Loads all lines of text from a .txt file to a .xml file sequentially.
loadwearable [id] Force-select a certain job loadout variant for the controlled character.
lock Locks movement of the main submarine.
lockx Locks movement of the main submarine in the X (left-right) direction.
locky Locks movement of the main submarine in the Y (up-down) direction.
mainmenu/menu Switch to the main menu.
messagebox [header] [message] [default/in-game] Create a message box. Client-side only.
race [White, Black, Asian, None] Sets the race of the controlled character to the specified value.
ragdoll [character name] Ragdolls the specified character. Ragdolls controlled character if name is omitted.
ragdollscale [character name] Define the ragdoll scaling for the specified character. Ragdoll scaling is changed for the controlled character if name is omitted.
recreateragdoll [character name] Recreate the ragdoll for the specified character. Ragdoll is recreated for the controlled character if name is omitted.
reloadwearables [character name] Reloads the sprites of all limbs and clothes of the specified character. Sprites are reloaded for the controlled character if name is omitted.
resetragdoll [character name] Resets the ragdoll of the specified character. Sprites are reloaded for the controlled character if name is omitted.
setfreecamspeed [speed] Set the camera movement speed when not controlling a character. Defaults to 1.
showperf Toggles visibility of the Performance Statistics HUD
showseed Outputs the current level's seed to the console.
spawnsub [submarine name] Spawns a submarine at the location of the cursor.
starttraitormissionimmediately Skip the initial delay of the traitor mission and start one immediately.
toggleaitargets Toggles the visiblity of AI targets. Client-side only.
toggleitemhighlights Toggles the item highlight effect on/off. Client-side only.
toggleupperhud Toggles the visibility of the upper HUD elements. Client-side only. (Use "hud" to hide it entirely.)
triggerevent [id] Trigger a random event.
updatetextfile [sourcefile.txt/.xml] [destinationfile.txt/.xml] Inserts absent xml elements from the source file into the destination file. Useful for updating outdated translation files.
verboselogging Toggles verbose logging in the console on/off. When active, additional debug info is written to the console alongside standard info.

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.

Gallery

The console showing ping info on startup