Rust server start script with splashscreens

So i was messing around with some batch scripting and came up with this new snazzy config file for rust servers, it has 3 options for starting your server the first option is generating a map from a seed the 2nd is for loading a custom map file and the 3rd option is to select an external config file, i also included a function to log the date and time to a log whenever the server is restarted, the file location can be specified by the user.

anyone is free to use and/or modify this script if they want.

srry forgot the script was so daym long il just link it instead

https://www.mediafire.com/file/7g0bjlj3yxg7ml1/Rust_Server_Launcher.bat/file v1.0
https://www.mediafire.com/file/wv8fwlil8tb7h5l/Rust_Server_Launcher_v1.1.bat/file v1.1 (small fix to skip settings)

https://www.mediafire.com/file/s249cdqdq1p7ju8/Rust_Server_Launcher_v1.2.bat/fileΒ v1.2 (patch so log files are created in the directory of the batch file and aren't reliant on filestructure anymore)

never seen a bat file look like this :)

just shows me a splash screen then shuts down

interesting o.o' by any chance is your rust server folder in a directory other then C:\

i forgot to script it to use enviroment variables so its dependent on the rustserver folder being in the C:\ drive πŸ˜…

also i just realized i setup the 2nd splash skip wrong so il be re-uploading this file soon

tomhud

never seen a bat file look like this :)

just shows me a splash screen then shuts down

honestly it sounds like you just havent configured the directories for the logfiles yet, it tends to do that if your using a different directory then the C:\ drive

tomhud

just shows me a splash screen then shuts down

v1.2 should work for you if you haven't already set the logfile directories correctly it fixes the problem you were facing

kk i tested it on a test server i had localΒ 
Server is on D:
It booted the server but no different to any other bat file i have,as no options came up before the intial load
I suppose its all to be done in the config file

tomhud

kk i tested it on a test server i had localΒ 
Server is on D:
It booted the server but no different to any other bat file i have,as no options came up before the intial load
I suppose its all to be done in the config file

yea like the normal batch file you'd use you have to open it and set it up but all the settings are listed and are the usage is described

https://www.mediafire.com/file/owdfju76dlcqnye/Rust_Server_Launcher_v1.3.bat/file v1.3 (minor fixes)

Β 

at the top of the file you'll find this section and thats all you really need to setup for it to work

@echo off
setlocal enableextensions

:::: Main Setting ::::
set owner=ServerOwnerName
set skipintro=false
set skipsplash=false

:::: Configuration Settings ::::
:: Internal Config Type ::
:: Set configtype to "seed" to use the seed config and "custom" to use the custom map config.
set configtype=seed

:: External Config File ::
:: Set toggle to true to enable false to disable.
:: Set externalconfig to your rust server batch file location if your using an external config.
set toggle=false
set externalconfig=C:\rustserver\YourBatchFileNameHere.bat

:: Engine Settings ::
set mode=batchmode
:: Totally disables navmesh. Will cause animals not to move. (default false)
set navmesh=false
:: Will start the server before generating the mesh, but may cause some lag in the first couple minutes of the server being up (default true)
set navwait=true
:: Oxide folder for loading plugins.
set oxidedirectory="server\YourServerNameHere\oxide"
:: Changes path to your server data rust/server/my_server_identity. Useful for running multiple instances. 
set serveridentity="YourServerNameHere"

:: Server Seed Settings ::
:: Level Type | "Procedural Map" | "Barren" | "HapisIsland" |
set serverlevel="Procedural Map"
:: Is the map generation seed. 
set serverseed=1234
:: Defines the size of the map generated (min 1000, max 6000) 
set worldsize=4000

:: Custom Map Location ::
:: Example1: "C:\rustserver\server\YourServerNameHere\YourMapNameHere.map"
:: Example2: "https://www.dropbox.com/s/hash_characters/my_custom_map.map?dl=1"
set levelurl="C:\rustserver\server\YourServerNameHere\proceduralmap.2000.1234.216.map"

:: Server Settings ::
:: Sets the Server IP. Leave it to 0.0.0.0 unless you have multiple IPs.
set serverip=0.0.0.0
:: Server refresh rate - Not recommended to go above 30. 
set refreshrate=10
:: Maximum amount of players allowed to connect to your server at a time. 
set maxplayers=10
:: Sets the port the server will use. (default 28015 UDP) 
set serverport=28015
:: Time in seconds for server save. 
set autosave= 600
:: Server Password.
set password=letmein

:: Server List Info ::
set servername="Name of Server as Shown on the Client Server List"
set description="Description shown on server connection window."
set website="http://yourwebsite.com"
set header="http://yourwebsite.com/serverimage.jpg"

:: Tags | monthly | biweekly | weekly | vanilla | pve | roleplay | creative | softcore | minigame | training | battlefield | broyale | builds |
set tags=vanilla,monthly,roleplay

:: Global Spawn Settings ::
:: It's not advised to set any of these above 3.0
set minrate=0.1
set maxrate=1.0
set mindensity=0.1
set maxdensity=1.0

:: Console Settings ::
:: Sets the RCON IP.  
set rconip=0.0.0.0
:: Port to listen to for RCON. 
set rconport=28016
:: If set to true, use websocket rcon. If set to false use legacy, source engine rcon. 
set rconweb=1

:: Server Logs ::
:: Downtime Log
set timelog=%~dp0\downtime.log
:: Debug Log
set debuglog="%~dp0\output.log"

:::: End of Configuration Settings ::::

lol and looking at the configuration section i just seen another minor error, the autosave integer isn't suppose to have a space before it.

does your bat file do anything to stop the spawns of NODES in the world
Ive seen about 3 nodes on the map and im flying about in admin mode
its a fresh server install as well as i made it just to test your bat file :)

tomhud

does your bat file do anything to stop the spawns of NODES in the world
Ive seen about 3 nodes on the map and im flying about in admin mode
its a fresh server install as well as i made it just to test your bat file :)

yea the global spawns setting controls the node spawns its set to vanilla default as far as i know
VGCVj3R4gmDI6Q3.jpg Judess69er
yea the global spawns setting controls the node spawns its set to vanilla default as far as i know

LOL you set it to drought mode :)



Merged post

you should make this bat to download latest version of Qxide/Server Updates as well
or do a seperate one for them
tomhud

LOL you set it to drought mode :)

oh o.o' lol well thats what the site i found those settings on said was the default values lol

on that subject it would be cool to know if there are any other things that can be set when launching a servers batch file πŸ€”

i have a bat file that installs oxide and updates the server as needed but when i type QUIT it does not restart the server as the goto command does not work.
A bat that does all that would be good.

tomhud

i have a bat file that installs oxide and updates the server as needed but when i type QUIT it does not restart the server as the goto command does not work.
A bat that does all that would be good.

might be useful as a run once type thing, if you got the code for it i might be able to add it in.

sent u discord details