Rust
59 ratings
How To Play Sandbox/Singleplayer Rust (Or With Friends) On A Private Server [+ALL CONSOLE COMMANDS]
By DomnulCal
Tired of getting killed, raided, and harassed? Just looking to explore monuments, farm, PvE, or do anything you want with friends or alone (😔😔😔) ? That's why I've done some research and made this explicit and easy-to-understand guide for anyone in need. In your private server, you can choose to enjoy a relaxed Rust experience... or a sandbox one (just like Garry's Mod) by using the console as an owner. If you are here only for the console commands, then skip to sections 3, 4 and 5.

Don't be discouraged by all the programming stuff, everything is explained :)

----------- Your world, your choice -----------
4
3
   
Award
Favorite
Favorited
Unfavorite
Section 1 - Downloading...



- This is the essence of our project. And perhaps the easiest part overall is downloading it. Don't worry, if you don't trust the link, the zip file is from Facepunch itself and you can find it here [rust.facepunch.com]. (at the bottom of the page)



- You will need something to extract the zip file. If you don't have any program to do it, you can download WinRAR and use it for free: Download It Here [www.win-rar.com].

- Extract the "Rust_Server" file to your desktop for easy access (because you will need it every time you decide to play).

Haven't left yet? Not discouraged? You're surely devoted to it.

Section 2 - Patience is a virtue
This might seem like a crap-ton, but it's fairly simple and quick. Good luck.

1. Go to 'Server' file.

2. Right-click on 'Run_DS' and press Edit.

3. Only one edit is essential here. Find '+server.seed 1234567' and change it to any number you want (don't exceed 10 figures though). There are a lot more complex editing options for your map if you're up to the challenge, go down to find them.



4. Go to File, Save, then close it.

5. Double-click 'Run_DS' to start the program and wait (around 10 minutes and 20 seconds for the first time you launch it 💀 ).

6. You will know that loading is done when you see "Rust+ companion server connectivity test failed! Disabling Rust+ features.", written in red, in the log. (if this message doesn't appear for some reason, then look for "BradleyAPC Spawned at: ")



7. Now, without closing the program, go to Steam, to your Account Details, and find your 'Steam ID' (it should be a long series of about 17 figures). Copy it.

8. Go back to your program and type "ownerid x" ( x = your Steam ID ) and press Enter. To save it, type "writecfg" and press Enter again.



9. IMPORTANT This program must run in the background while you are playing, so DON'T close it. (don't worry, it won't affect your performance/fps).

10. Go to Steam and open Rust.

11. Now, press F1 to open the in-game console and type " client.connect localhost:28015 ". Press Enter and wait to connect to your server.

12. Enjoy!

13. If, by any chance, you don't like the map, you can change the seed, but you will have to close the app, the program and edit the 'Run_DS' file again, redoing most of these steps and deleting your in-game progress.

14. After closing Rust, give the program some seconds to finish updating and then you can close it as well.

15. If you want to play on your server again, just run the "Run_DS" file, wait (step 6), open Rust, do step 11 again and play. (no need to redo steps 2,3,4,7 and 8)

16. I'm not sure, but I think your server only wipes when there is an update / force-wipe. (You can forcefully wipe it by changing the seed)

Since you are the owner of the server (step 8), you can choose to play a relaxed Rust experience (which concludes this tutorial) or a sandbox one. To do this, go to the next section.



✰ NOTES:

- Single-player doesn't mean offline, you still need an internet connection to play.
- You can't earn achievements on non-official servers.
- Loading into your server again will cut the waiting time in half (or even down to 2 minutes) for the 'Run_DS' file.
- IF YOU WANT TO PLAY WITH A FRIEND YOU MUST SEND THEM AN INVITE THROUGH CHAT, OR THEY CAN JOIN YOU BY RIGHT-CLICKING YOUR NAME IN CHAT AND THEN 'JOIN'.
- If you want your friend to be able to use the console (=do sandbox stuff with you), you will need to redo step 8 with his Steam ID.
- Your friends only need to connect to your server. They don't need to install the zip file and do all these steps.



MAP EDITING:
(very optional)

All of these steps/options are made in the 'Run_DS' file (you might have to add some of them if they aren't already in the list). Change it as you please and don't forget to save it. If you aren't familiar with any of the terms here, google them, or avoid this entirely.

- "server.level" - This will change the map type that the server runs. The player can type in "Procedural Map"(your average map), "Barren", "HapisIsland", "SavasIsland", and "SavasIsland_koth".

- "server.seed" - Whenever the server is using a Procedural or Barren map this will alter the shape of it. The player can type in any number from 0 to 2147483647.

- "server.worldsize" - Similar to the seed type this will alter the overall size of Procedural and Barren maps. The player can type in a number from 1000 to 6000. Remember that this will affect your fps.

- "server.maxplayers" - Changing this number will determine how many players are able to join the game.

- "server.hostname" - This is the name that will appear on the server list in Rust, so change it to whatever works.

Section 3 - Useful Console Commands I
This is to help you in your sandbox Rust experience.

EDIT - Due to updates/changes since this guide has been uploaded, certain commands might not work without an external plug-in, please inform me if this is the case. (~ 06.11.2023)

ATTENTION Please note that you won't find ALL of the console commands here (for example, nobody is going to use 'spawn moduleseatcarpassengerleft' or anything this dumb). I tried to find as many commands to make your gameplay as entertaining as possible. If you have a very useful command that isn't on this list, write it in the comments and I will add it.

All of these commands are to be put into the console, by writing them and pressing Enter to apply. The list that follows is made by how much you are going to use each category of commands (the console commands from number 4 are useful too, but they are rarely ever going to be used).

  1. Upon pressing F1, you will see in the upper corner 6 categories. Go to 'ITEMS' to spawn any items.

  2. Top priority:

    bind <key> <command> -- Bind any of these commands to a specific key for easy access. To unbind, type "bind <key> " followed by some random letters/ gibberish.

    noclip -- Toggles noclip on and off. ( best to bind it to Z )

    inventory.give <ITEM> <AMOUNT> -- (example: inventory.give wood 99999) The good thing about this is that all 99999 wood will only occupy 1 slot in your inventory. (Very good command for building base designs) ATTENTION Even though the item name is always something simple, there are some hassles. I've listed some important ones at Section 5.

    spawn <ITEM> -- Create stuff. Similar to the previous command, meaning that it is also dependent on item names.

    debugcamera -- Breaks the camera away from your character and allows you to look around. (control it with wasd, shift and ctrl)

    suicide/kill -- Kills your character.

    ent kill -- Look at anything and delete it.

    God true/false -- You cannot receive any type of damage from the world and you do not lose hunger or thirst.

    refillvitals -- Fills health, hunger and thirst to full.

    env.time -- Shows in-game time. If value declared, will change the server time (values: 0 - 24)

  3. Useful for when the situation calls for it:

    heal <AMOUNT> -- Heals the player by the amount inputted

    bear / boar / polarbear / zombie / ridablehorse / stag / wolf / chicken / horse / motorrowboat / scraptransporthelicopter / minicopter / hotairballoon / rhib.rhib / modularcar / traincar.population -- Population active on the server (for animals, it's per square km)

    combatlog -- Shows a log of the previous damage events up to 30.

    drink -- Increases your thirst by the inputted amount

    eat -- Increases your hunger by the inputted amount

    teleport "playername" -- Just type a partial name or full name.

    teleportany [entity] -- For instance, to go to the nearest horse, type: teleportany horse.

    breakheld -- Break the current held object.

    hurt <AMOUNT> -- Damage yourself

    injure -- Wounds the player.

    supply.call -- Starts an airdrop event.

    heli.call -- Calls in a helicopter to roam the map like normal.

    spawn.cargoshipevent -- Starts the cargo ship event to roam the map like normal.

    server.pvp -- Sets PVP on or off. (true/false)

    gather.rate dispenser * <INSERT NUMBER> -- Multiplies the number of resources by the given value when farming wood/stone/etc. (doesn't work - needs external plug-in - look for it in the comments ~ 10.10.2023)

    keep your inventory after death -- Needs a plugin - look for it in the comments (∼14.10.2023)

  4. Very specific and rarely used commands.
    At the end of some descriptions you have the default value of the command:

sleep -- Makes your player sleep.

ent lock -- Locks the entity you're looking at (codelocks/keylocks)

ent unlock -- Unlocks the entity you're looking at (codelocks/keylocks)

ent who -- Returns the Steam64ID of who placed this entity.

env.progesstime true/false -- Dictates whether time will continue or stay at the current hour forever.

minicopter.insidedecayminutes -- How many minutes does a minicopter take to decay from full health when under a roof - default is 2880 (48 hours)

minicopter.outsidedecayminutes -- How many minutes does a minicopter take to decay from full health when outdoor - default is 480 (8 hours)

teleport.toplayer "player 1" "player 2" -- Teleports 'player 1' to 'player 2'. Case sensitive. Full name required.

teleport.topos "player" "Pos X" "Pos Y" "Pos Z" -- Teleports 'player 1' to the coordinates. Full name required.

inv.giveplayer "player" "item" "amount" -- Gives 'Player' the 'Item'. Full name and Item name required.

inv.giveall "item" "amount" -- Gives all players 'Item'. Full Item name required (Section 5).

crafting.instant -- Sets crafting to be instant for everyone.

crafting.instant_admins -- Sets crafting to be instant for logged in admins only.

crafting.timescale "amount" -- Sets the timescale of crafting to 'amount' (1 = default, 0.5 = half time).

airdrop.min_players "amount" -- Starts airdrops only when minimum X players are online.

save.all -- Saves world map and player inventory.

net.connect "Server IP" -- Connect to a direct server IP.

net.disconnect -- Disconnects from a server.

net.reconnect -- Reconnect to the last server you were on.

grass.on -- Enables or disables grass

grass.displacement -- Enables or disables grass displacements.

terrain.idleinterval -- Sets how often to draw unseen terrain; setting to 0 will disable. (0-100)

quit -- Quits the game. (Finally)

sentry.targetall -- Target everyone regardless of authorization. Default is: (False)

bradley.enabled -- If set to false (0) it will disable the APC. Default is: (1)

ai.think -- If set to False, animals are only hostile on attack. Default: (True)

ai.move -- If set to False, animals will stop moving (recommended for
performance boost) Default: (True)

chat.enabled -- Enable or disable chat displaying (True)


Section 4 - Useful Console Commands II
construct.frameminutes -- How many minutes before a placed frame gets destroyed (30)

craft.instant -- Enable or disable instant crafting (False)

baseridableanimal.decayminutes -- How long before a horse dies unattended

debug.repair_inventory -- Repair all items in inventory.

traincar.decayminutes -- How long before a train car despawns.

hackablelockedcrate.requiredhackseconds -- How many seconds for the crate to unlock (900)

basesubmarine.deepwaterdecayminutes -- How long before a submarine loses all its health while in deep water

basesubmarine.outsidedecayminutes -- How long before a submarine loses all its health while outside.

basesubmarine.oxygenminutes -- How long a submarine can stay underwater until players start taking damage from low oxygen

mlrs.brokendownminutes -- How many minutes before the MLRS recovers from use and can be used again

modularcar.outsidedecayminutes -- How many minutes before a ModularCar loses all its health while outside

motorrowboat.deepwaterdecayminutes -- How long before a boat loses all its health while in deep water

motorrowboat.outsidedecayminutes -- How long before a boat loses all its health while outside.

physics.gravity -- Gravity multiplier (1)

decay.upkeep true/false -- Is upkeep existent?

decay.tick -- Larger amount increases the applied decay damage to entity. (600)

decay.scale -- 1 = normal decay, 0,5 = 50%, 0 = turn decay off (1)

admintime 1-24 -- Sets the time of day to this hour for your player ONLY.

fps.limit -- The maximum number of frames to render per second (256)

heli.lifetimeminutes -- The amount of time the helicopter is allowed to stay in minutes. (15)

heli.guns -- Enables / disables the helicopters minigun. If set to 0, the helicopter will shoot rockets only. (1)

heli.bulletdamagescale -- Changes the bullet damage of the helicopter. Higher value = more damage (1)

heli.bulletaccuracy -- Changes the accuracy of the bullets. Higher value = less accuracy (2)

heli.drop -- Spawns a helicopter at a specific players posititon (heli.drop <steamid 64 bit, steam name>)

heli.calltome -- Forces a helicopter to spawn off map and fly to your position

heli.strafe -- Forces helicopter to target a specific player (heli.strafe <steamid 64 bit,
steam name>)

server.globalchat -- If set to false, only people within voice range can read each others
messages. (True)

server.stability -- If set to false, building blocks will have 100% stability no matter how high
you build. (True)

server.radiation -- Disables / enables server radiation (True)

server.itemdespawn -- Time until an item despawn (180)

server.planttick -- Plants tick every x seconds. This is how many seconds between ticks.(60)

server.planttickscale -- Setting this to 2 will make plants grow, fruit and die two times faster than
normal. (1)

server.idlekick -- Number of minutes until idle players are kicked (30)

kick -- Kicks a player from the server. usage: kick {playername} {reason} example: kick Frank "stop crying"

players -- Print out currently connected clients etc.

playerlist -- Get a list of players

mutevoice -- no need for a description
unmutevoice -- no need for a description
mutechat -- no need for a description
unmutechat -- no need for a description
inventory.giveall -- no need for a description
inventory.giveto -- no need for a description
inventory.giveid -- no need for a description
inventory.givearm -- no need for a description
weather.clouds -- no need for a description
weather.fog -- no need for a description
weather.wind -- no need for a description
weather.rain -- Modify rain intensity, values between 0-100 (auto)

server.melee damage -- Changes the melee damage in percent - 1 = 100, 0.5 = 50%, 0 =
0% (1)
server.arrowdamage -- Changes the arrow damage in percent - 1 = 100, 0.5 = 50%, 0 =
0% (1)
server.bulletdamage -- Changes the bullet damage in percent - 1 = 100, 0.5 = 50%, 0 =
0% (1)
server.bleedingdamage -- Changes the bleeding damage in percent - 1 = 100, 0.5 = 50%, 0 =
0% (1)

server.meleearmor -- Changes the scale of protection against melee damage from
clothing and armor in percent - 1 = 100, 0.5 = 50%, 0 = 0% (1)
server.arrowarmor -- Changes the scale of protection against arrow damage from clothing
and armor in percent - 1 = 100, 0.5 = 50%, 0 = 0% (1)
server.bulletarmor -- Changes the scale of protection against bullet damage from clothing
and armor in percent - 1 = 100, 0.5 = 50%, 0 = 0% (1)
server.bleedingarmor -- Changes the scale of protection against bleeding damage from
clothing and armor in percent - 1 = 100, 0.5 = 50%, 0 = 0% (1)

Section 5 - Useful Item Names / ID's
Because it is impossible for me to fit all console item names and ID's, go here[www.corrosionhour.com] to see all of them.

All of these are to help you with the "inventory.give <ITEM> <AMOUNT>" command. Note that here are only items that you might need in a huge quantity (even more than the 1k you can already spawn at the ITEMS section).

Item
Short Name
Item ID
Metal Fragments
metal.fragments
69511070
Stones
stones
-2099697608
Wood
wood
-151838493
High Quality Metal
metal.refined
317398316
Sulfur
sulfur
-1581843485
Scrap
scrap
-932201673
Gun Powder
gunpowder
-265876753
Charcoal
charcoal
-1938052175
Low Grade Fuel
lowgradefuel
-946369541

All of these are to help you with the "spawn <ITEM>" command:

Item
Short Name
Minicopter
minicopter
Big Helicopter
scraptransporthelicopter
Cargoship
cargoship
Bradley Tank
bradleyapc
Boat
rowboat
Big Boat / Rhib
rhib
Locked Crate Helicopter
ch47scientists.entity
Patrol Helicopter (can't be spawned wherever you want)
patrolhelicopter
Solo Submarine
submarinesolo.entity
Duo Submarine
submarineduo.entity
Balloon
hotairballoon
Locked Crate
codelockedhackablecrate
MLRS Vehicle
mlrs.entity
BMW
sedantest.entity
Animals
testridablehorse
stag
wolf
bear
zombie
boar
horse
chicken
simpleshark
polarbear
Wish You The Best!
I truly hope this was useful to you, no matter if you're a player looking to make a private server or an admin looking for console commands... or both. If you have any questions don't hesitate to ask in the comments below. 🤠



11 Comments
DomnulCal  [author] Dec 28, 2024 @ 12:32am 
Honestly just as much RAM as you need to play the game normally. The "computer resources" it uses are close to insignificant.
Saul Goodman CSGOSKINS Dec 27, 2024 @ 11:40am 
How much RAM do I need? Because it uses my computer resources right?
DomnulCal  [author] Jul 14, 2024 @ 4:35am 
When starting the Run_DS file I keep getting some sort of "directory not found" error that just spams infinitely. I decided to start the game, left it in the main menu and then ran the Run_DS file. This seems to have fixed it.
TheGangster1023 Jan 30, 2024 @ 3:53pm 
This is an awesome guide, I've been running a server for a while now and I found things in here I couldn't even find looking for them lol
сигарета Dec 21, 2023 @ 7:20am 
How do i add plugins
DomnulCal  [author] Oct 14, 2023 @ 2:01am 
This is all I could find about keeping your inventory (didn't test it myself first) - Keep inventory after death [umod.org]
CyberFox Oct 11, 2023 @ 4:05pm 
How to keep inventory after death?
bashame Oct 10, 2023 @ 11:08pm 
Don't stress it, I found everything on my own after the initial set up. It took a bit to work proper, but it's gucci now.
DomnulCal  [author] Oct 10, 2023 @ 11:09am 
1) I actually don't know, sorry
2) I tried the gather.rate dispenser * <INSERT NUMBER> command and all sorts of combinations to make it work but it didn't. Perhaps this thing i found [apexminecrafthosting.com] might help you! :lunar2019wavingpig:
bashame Oct 8, 2023 @ 2:04am 
I have two questions to this, and I hope someone will answer.
1) Which ports need to be forwarded for this?
2) How to double the resource multiplier? Vanilla is...painful...