For the most part, you will have to configure all of your server settings in this batch script. The config files for the server don't quite work yet so explicitly defining all of your settings in the batch script is the best way to go.
Line numbers are shown for reference only and MUST be removed. Echo off This suppresses the console window’s desire to display each command in the batch file as they are executed.
C:\steamed\steamcmd.exe +login anonymous +force_install_dir c:\rust server\ +app_update 258550 +quit Executes Steam CMD to check for server updates and apply if needed. -batchmode Opens Unity in non-GUI mode, and eliminates the need for any human intervention.
+ server.header image “http://yourwebsite.com/serverimage.jpg” A valid link for the connection window background image. +icon.password Lehman The password required for Icon access.
+icon.web 1 Uses web socket connection mode for icon (recommended) Remove this line if you do not want your server to automatically restart after it shuts down.
As such, we are just being introduced into the creation of servers so if you are interested in making your own, you might have a bit of a learning curve. However, to help you out, we are going to go through exactly how to set up a server so you can create your own worlds in Rust and share them with little to now difficulty.
Before you get into downloading programs and running software, the first thing you need to know about how to make your own Rust server is that you need to make sure your computer has certain system requirements. It should be noted that, as it is the most popular operating system, we will be looking at how to create a Rust server on Windows.
To be safe, it is best to reserve a little extra room so set aside about 7 gigs for each server you are creating. For games that use the Steaming content system, like Rust, Steam CMD is used to install and update dedicated servers like the one you are creating.
So, naturally, downloading Steam CMD is one of the first steps in our guide to Rust : how to make a server. Before you download the program, though, you are going to want to create a folder for Steam CMD to reside in so you can find it easily.
Once you have this downloaded, you are going to want to extract the contents of the zip folder you created. If you want a more complicated, modified server, there are additional, varying steps that we will not be going over here.
It should be noted that it is recommended that you create a new Steam account solely for your dedicated servers to ensure some extra security. However, for Rust, you are also permitted to log in anonymously to create a server.
To login this way, the commands are slightly altered and go as follows. There are two main staging branches that you might want to change your command prompts to.
To do this, you will need to create what is called a batch script file. A batch script, in its most basic form, is simply a text file in which there are a list of commands that you are programming to run sequentially.
There are two main reasons that you need a batch script file for your server. To make sure that these goals are met effectively, you will want to use a Got statement in your batch script file.
A Got statement allows you to access different parts of your batch script out of sequence. In other words, by the use of a Got statement, you can skip pieces of your programming and “go to” other parts.
This is because, unlike other games, Rust usually doesn’t crash when it runs into a problem. This can be a problem because since the program hasn’t stopped completely, it won’t register as having crashed.
This time, you will want to create it in your server install directory (this is the file we named c:\rust server earlier). However, we will take a look at some commands that we haven’t yet that you might include in your batch script file.
By starting your code with this phrase, you will stop the natural tendency of the console window to display the commands in the batch script file as you go through them. This particular line of code tells the system to launch Steam CMD and check for updates.
The next lines of code belong to a chunk of your programming that will determine aspects about your game such as the number of players that can play, world size, and other aspects as well as sets information such as the server IP and the port the server will use. This is generally what you start this chunk of commands with following the selected file (such as RustDedicated.exe).
It opens Unity in non-GUI (graphical user interface) mode. This means that the script will run with automatically with no need for human interaction to kick start it.
This command, as the text suggests, sets the Server IP. You can input “Procedural Map”, “Barren”, “HapisIsland”, “SavasIsland”, or “SavvasIsland_koth”.
For this command, you are going to replace the # with the number of seconds it takes your server to save. However, if you want your game to run properly do not put this as a value higher than 30.
It is crucial that you do not use spaces or special characters when you are naming this file as it will confuse the system. Much like the server IP, you probably won’t need to change this value.
To open your server to the public, you are going to need to set up a port forward. This guide highlights how to set up port forwards on almost any server that you might be using.
If you are having trouble connecting after referencing this, you might want to check for any local firewall programs blocking your server. First, though, it’s worth re-iterating how exactly to change Rust ’s server configuration options.
In Windows, you can change parameters via the .bat file you created during setup. Linux's users should be using LSM to edit their config via command line.
Typing NATO rustserver.cfg should let you edit parameters to your heart's content. This changes the password to your Rust server console, which won’t be secure by default.
As you’d expect, it changes the IP address your users will connect to. This will let it automatically adjust to your current IP address.
The only time you need to set it manually is if you have multiple IPs. This ensures that when an incoming connection hits that port on the router, it’ll be forwarded to the relevant computer.
You’ll have to port forward whichever number you pick. This is frequency per second at which your server updates the state of the game.
At a tick rate of 30 (which Face punch recommends), the location of players and objects will update 30 times a second. Set this too low, and players will notice a disconnect between what happens on their screen, which it typically 60fps, and the server -side outcome.
Set it much higher than thirty, and it could strain your server. You’ll probably want to but some basic details about your server here, including any mods.
Default is 3000, which is really too small for large to a medium number of players. Players usually just put a random number, but you can also put a discovered seed from the map gallery or reuse previous seeds to recreate them.
The amount of time in minutes that wit will take for a placed frame to be destroyed. Decay in Rust is also configured via commands, but it’s complex enough to deserve its own section.
You can change these with, for example, decay.bracket_0_blockcountx, which determines the upper bounds of the number of connected blocks (15). Decay in Rust determines how much upkeep a building requires staying upright.
The trick rate determines the amount of damage done to an object. The decay scale changes the speed at which player-based deployable deteriorate.
The speed objects heal when you meet their upkeep conditions. As you can tell, there’s a lot you can change with just a vanilla Rust server, and that goes even further once you dive into modding.
The most important values to configure are your Icon password and IP, server IP, server tick rate, max player count, and map size. However, it’s important to note that, generally, admins should be fairly cautious with what they change.
Push features too far and you could end up with instability or an unfair experience. It’s worth taking some time to dial the values just right, as you’ll only really need to do this once.