Rust dedicated server connect

Find out What's Going On

How to: host your own rust server — rustafied

    The Batch Script File

    A batch script is a text document that stores a list of commands to be run in sequence. The main use of a batch script for hosting a server is to enable the server owner to make sure their server is up to date and if the server crashes that it will resume. The easiest way to do this is by using the GOTO statement. GOTO will allow you to jump around in your batch script to any other part of the batch file.

    It’s important to note that Rust sometimes hangs instead of completely closing. In this case the server will not restart if the process hangs because the process did not actually stop. Batch scripting waits for a command to complete (in this case the RustDedicated.exe) but if that process never completes the batch script will just sit there.

    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. Below is an example.:

    1.) echo off 2:) :start 3:) C:\steamcmd\steamcmd.exe +login anonymous +force_install_dir c:\rustserver\ +app_update 258550 +quit 4:) RustDedicated.exe -batchmode +server.port 28015 +server.level "Procedural Map" +server.seed 1234 +server.worldsize 4000 +server.maxplayers 10 +server.hostname "Name of Server as Shown on the Client Server List" +server.description "Description shown on server connection window." +server.url "http://yourwebsite.com" +server.headerimage "http://yourwebsite.com/serverimage.jpg" +server.identity "server1" +rcon.port 28016 +rcon.password letmein +rcon.web 1 5:) goto start

    Note: Do not use this example without making changes. Line numbers are shown for reference only and MUST be removed.

    Here is an explanation of each line in the batch file.


    echo off
    This suppresses the console window’s desire to display each command in the batch file as they are executed.

    :start
    The is a label for a loop starting point.

    C:\steamcmd\steamcmd.exe +login anonymous +force_install_dir c:\rustserver\ +app_update 258550 +quit
    Executes SteamCMD to check for server updates and apply if needed.

    RustDedicated.exe -batchmode +server.port 28015 +server.level "Procedural Map" +server.seed 1234 +server.worldsize 4000 +server.maxplayers 10 +server.hostname "Name of Server as Shown on the Client Server List" +server.description "Description shown on server connection window." +server.url "http://yourwebsite.com" +server.headerimage "http://yourwebsite.com/serverimage.jpg" +server.identity "server1" +rcon.port 28016 +rcon.password letmein +rcon.web 1

    -batchmode
    Opens Unity in non-GUI mode, and eliminates the need for any human intervention.

    +server.port 28015
    Rust client connection port.

    +server.level "Procedural Map"
    The map type to use. Options are "Procedural Map","Barren",”HapisIsland”,”SavasIsland” and “SavasIsland_koth”

    +server.seed 1234
    Determines shape of procedural and barren maps (used with server.worldsize). Values range from 0 to 2147483647.

    +server.worldsize 4000
    Determines shape of procedural and barren maps (used with server.seed). Values range from 1000 to 6000.

    +server.maxplayers 10
    Number of players that can be connected

    +server.hostname "Name of Server as Shown on the Client Server List"
    Name of the server as shown on the client’s server list

    +server.description "Description shown on server connection window."
    Description shown on the client’s server connection window

    +server.url "http://yourwebsite.com"
    A valid website. Causes the “View Webpage” button to appear on the connection window

    +server.headerimage "http://yourwebsite.com/serverimage.jpg"
    A valid link for the connection window background image. Use a JPG image of 512 x 256.

    +server.identity "server1"
    The directory name used as the parent for all the server files. Do not use spaces or special characters.

    +rcon.port 28016
    Rcon client connection port.

    +rcon.password letmein
    The password required for Rcon access. Do not use spaces or special characters.

    +rcon.web 1
    Uses websocket connection mode for rcon (recommended)

    goto start
    Instructs the batch file to jump to the ‘start’ label. Remove this line if you do not want your server to automatically restart after it shuts down.

News Rust dedicated server connect