Console Commands

From Hurtworld Wiki
Jump to: navigation, search

This is a list of console commands that can be used. F1 is the default key to bring up the console. Commands can also be executed with `rcon` and autoexec.cfg

Client Commands[edit | edit source]

These are commands that all clients, regardless of permissions, can execute.

Command Arguments Description Example
connect <ip> Connect to a server at a specified IP, with the default port (12871) connect
connect <ip>:<port> Connect to a server at a specified IP, with the specified port connect
itemlist List all items and their codes itemlist
kill USE WITH CAUTION. Commit suicide. kill
time Dumps the time of day.
deleteprefs This will delete all stored preferences.

Server Commands[edit | edit source]

These commands can only be executed on the server. Some can only be executed before loading a savegame. If you are on the client, and are an administrator, you can execute these commands on the server by prepending `rcon` in your console, or put them in your autoexec.cfg

Command Arguments Description
host <port> <map> Hosts a game on the specified map, and specified port. Loads the autosave if there is one. host 12871 DiemensLand
host <port> <map> <save> Hosts a game on the specified map, and specified port. Loads the specified savegame (relative to the .exe and without an extension) host 12871 Desert mysave
servername <name> Set the name of the server, as visible in the server browser. servername My Server
kick <steamID64> <reason> Kick a player, with a reason. Enter the start of a guid for a player (you can see these with `serverstatus`) to identify them kick 76561197968052866 Being a jerk
saveserver <saveName> Save the server state to file. No saveName path argument will overwrite the autosave saveserver mySave
loadserver <saveName> Additively load the server state from file. No saveName path argument will load the autosave loadserver mySave
addadmin <steamID64> Adds a player as admin to the local server for the current session only addadmin 76561197968052866
ban <steamID64> Bans the given player ban 76561197968052866
unban <steamID64> Unbans the given player unban 76561197968052866
destroyall <partialname> Destroys all objects in the world with names containing <partialname>. TEMPORARILY DISABLED destroyall Roach
quit Quits the game immediately quit
quit <seconds> Quits the game after <seconds>. Will show a nice message to all clients every 30 seconds, for 5 minutes before the server shuts down quit 86400
cancelquit Aborts any scheduled quit in progress cancelquit
count <partialname> Returns the amount of instances of an object, with a given name. Names can be partial count roach
bindip <ip> Binds the server process to an IP. This is useful if you are hosting on a machine with multiple IPs. bindip
forceload This will make a savegame load despite any warnings or errors. USE WITH CAUTION. forceload
aggressiveemptyrestart This will make your server restart if it has been empty for an hour. This can be used as a protection against the server getting into a bad state. aggressiveemptyrestart
dumploadbalancer Dumps debug information about the Load Balancer. dumploadbalancer
sleepersenabled <0/1> Disables/Enables sleepers (0/1) sleepersenabled 1
sleepernames <0/1> Disables/Enables sleepernames (0/1) sleepernames 1

Modding[edit | edit source]

Command Arguments Description
loadmod <workshopID> (<workshopID>...) Loads a mod by its workshop ID. You can specify multiple mods by separating ids with whitespace. loadmod 714026119 704019543
ignoresharedenvironment Tells the server to not load the shared environment. Use this command to speed up connection times and reduce memory usage, if you aren't using any in-built assets in your map. NOTE THAT THIS INCLUDES ANY WORKSHOP MOD!!! You can not use this if you use any workshop mods (loadmod 12345) ignoresharedenvironment
bakenavmesh Attempts to bake out a navmesh for the current level. Use for creating navmeshes for custom maps. bakenavmesh

CVARS[edit | edit source]

Networking[edit | edit source]

Command Arguments Description
servername <name> Set the name of the server, as visible in the server browser. servername My Server
maxplayers <number> Specify the maximum number of players maxplayers 20
queryport <port> Specifies the port to use for communication with the master server, this port must be publicly accessible for the server to show up in the game browser. Default is 12881 queryport 12882
afkkicktime <seconds> Sets the time in seconds a player must be inactive before they're kicked for AFK. afkkicktime 900
maxping <value> Sets the ping limit for a server. Any player over this ping will be kicked. maxping 300
autosaveenabled <value> Sets whether to autosave the server. autosaveenabled 0
sendbuffersize <value> Sets the send buffer size. Can reduce the occurrence of "send buffer full" errors - try to increase value above value in error. sendbuffersize 70000
networktimeoutdelay <seconds> Sets the network timeout delay. This is the amount of seconds a player must be disconnected for, before they are kicked. The default value is 60 seconds. If players are unable to join your server, and are being disconnected, try setting this value higher. networktimeoutdelay 60
enforceeac <bool> Sets whether the server enforces EAC. If this is off, your server will be more vulnerable to 3rd part hacks and cheats. Default is on. enforceeac 1

Save Management[edit | edit source]

Command Arguments Description
autobackupinterval <seconds> Sets how often the server should backup its autosave autobackupinterval 7200
wipeinterval <seconds> Sets the server wipe schedule, as displayed in the server browser, in seconds. A negative value will show no wipe. The value is the number of seconds, from when the save was created to when you will wipe. wipeinterval 1209600
autosaveenabled <value> Sets whether to autosave the server. autosaveenabled 0
savepath <path> Sets where the save file for the server will go. By default this is the same location as the executable. savepath "C:/MySaveFolder/"

Gameplay[edit | edit source]

Command Arguments Description
playerlootmode <value> Sets the player loot mode for the server.
  1. Drop nothing ever (playerlootmode 0)
  2. Drop backpack only (playerlootmode 1)
  3. Drop backpack, and use infamy (playerlootmode 2)
  4. Drop everything (playerlootmode 3)
  5. Destroy everything (playerlootmode 4)
playerlootmode 3
spawncooldown <speed> <value> Sets how spawn cooldown works. The <speed> parameter is how quickly spawn times fall back down to 10 seconds. The <value> is how much the spawn time increases upon death spawncooldown -0.1 10
stakedeauthtime <seconds> Sets the time in seconds a full ownership stake will take to deauthorise. stakedeauthtime 7200

Structures and Construction[edit | edit source]

Command Arguments Description
creativemode <bool> Turn creative mode on and off (free build). Value as 0 for off, 1 for on. creativemode 1
structurecomplexitylimit <category> <value> Sets the build limit for structures - basically how many polygons a building can be in a single cell. The categories are: 0 = Structures, 1 = Machines, 2 = Plants structurecomplexitylimit 50000
structureframepacketlimit <value> This is a throttle on how many packets the initial structure sync will use per frame. Increase this if players take too long to download the structures on your server. Decrease this if you notice lag when players are connecting. The default value is 200. structureframepacketlimit 200
structuredecayenabled <bool> Turn structure decay on and off. structuredecayenabled 1
structuredecayfrequency <seconds> How often a structure will be damaged by decay. Low values may have a performance impact. Default is 600. structuredecayfrequency 600
structuredecaydamage <damage> OR <minDamage> <maxDamage> How much damage will be done when a structure decays. If you give one value, the damage is set to that value. If you give two, it will be a range between those two values. Default is 5 - 10. structuredecaydamage 5 10
structuredecaymodifytime <seconds> How long a structure must be both unclaimed and unmodified, before it begins to decay. Default is 24 hours. structuredecaymodifytime 86400

Chat[edit | edit source]

Command Arguments Description
chatspambudget <value> Sets the chat spam filter threshold. Lower values mean players will be muted sooner. Default value is 500. chatspambudget 200
chatconnectionmessagesenabled <value> Sets whether the server displays connection/disconnection messages. chatconnectionmessagesenabled 0
chatdeathmessagesenabled <value> Sets whether the server displays death messages. chatdeathmessagesenabled 0
mute <steamID> <seconds> Mutes the given player for the given amount of time. mute 76561197968052866 600
unmute <steamID> Unmutes the given player.

Performance[edit | edit source]

Command Arguments Description
loadbalancerframebudget <value> Sets how many resources the Loadbalancer can use per frame. The default is 100. Increase this number if you have high server FPS but slowupdate cycle rates. loadbalancerframebudget 100
targetfps <value> Sets the target fps for a server. A negative value will make this unlimited targetfps -1
monitorloadbalancer <bool> Use to debug and see what is taking up time in the Load Balancer. After enabling monitoring, wait 1 minute and then run the `dumploadbalancer` command. Do not leave this enabled, as it has significant overhead. monitorloadbalancer 1
spawnercellupdatesperframe <value> Determines how much time spawners can take. If you think the spawner is running too slowly and players aren't getting the spawns you would expect, try increasing this number. Default is 10. spawnercellupdatesperframe 10

Vehicles[edit | edit source]

Command Arguments Description
vehicledecaytime <seconds> How fast an unclaimed vehicle will despawn. Default is 3 hours. bbc=big-black-cock