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.
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. So, make sure that your computer has the latest Windows operating system so that you can access all the needed features in this tutorial.
That alone, with no entities added in, is going to run you about 2 gigs of RAM. 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. 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). So, we won’t give you an exact combination to input.
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.
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.