Insurgency: Sandstorm

Insurgency: Sandstorm

View Stats:
Server update/start bat file
Can anyone tell me why this doesn't work, it updates the server, ok.. but won't start the server, it only gets to C:\Sandstorm Server.
bat file is:

rem Updates the Sandstorm Server
cd\C:\Sandstorm
steamcmd +login anonymous +force_install_dir C:\Sandstorm +app_update 581330 +quit
start ""
C:\Sandstorm Server\steamapps\common\sandstorm_server\start.bat
quit

Also, what are the commands to Stop/Shutdown a server.

Something went wrong while displaying this content. Refresh

Error Reference: Community_9708323_
Loading CSS chunk 7561 failed.
(error: https://community.fastly.steamstatic.com/public/css/applications/community/communityawardsapp.css?contenthash=789dd1fbdb6c6b5c773d)
Showing 1-8 of 8 comments
chacal_bl4ck May 14, 2020 @ 3:05am 
@echo off & setlocal enabledelayedexpansion echo. echo **************************************************************** echo STARTING UPDATE PROCESS... echo **************************************************************** cd C:\Sandstorm start /wait steamcmd.exe +login anonymous +app_update 581330 validate +quit echo. echo **************************************************************** echo ****************** UPDATE COMPLETE! ******************* echo **************************************************************** TIMEOUT 3 echo. echo **************************************************************** echo STARTING SERVER AND CLOSING THIS PROGRAM echo **************************************************************** TIMEOUT 3 cd C:\Sandstorm\steamapps\common\sandstorm_server start InsurgencyServer.exe Oilfield?Scenario=Scenario_Refinery_Checkpoint_Security?MaxPlayers=X -Port=XXXXX -QueryPort=XXXXX -Rcon -log -hostname="SERVER NAME" -log -GSLTToken=XXXXX -GameStats -MapCycle=YOURMAPCYCLE END

I don't know Stop/Shutdown commands for INS Sandstorm, maybe another user know.

Remember to change the lines like you need.

I use one batch to do all things before starts the server, but if you need:

@echo off & setlocal enabledelayedexpansion echo. echo **************************************************************** echo STARTING UPDATE PROCESS... echo **************************************************************** cd C:\Sandstorm start /wait steamcmd.exe +login anonymous +app_update 581330 validate +quit echo. echo **************************************************************** echo ****************** UPDATE COMPLETE! ******************* echo **************************************************************** TIMEOUT 3 echo. echo **************************************************************** echo STARTING SERVER AND CLOSING THIS PROGRAM echo **************************************************************** TIMEOUT 3 cd C:\Sandstorm Server\steamapps\common\sandstorm_server start start.bat END

You don't need specify the install dir (force install dir) if the server goes to steamapps/common of the SteamCMD directory.

Regards.

Last edited by chacal_bl4ck; May 14, 2020 @ 3:32am
Rover - [Redback] May 14, 2020 @ 3:26am 
[.:VT.NC:.] chacal_bl4ck, Thank you, it does just what I want,makes my attempt look poor.
chacal_bl4ck May 14, 2020 @ 3:28am 
Originally posted by Rover:
[.:VT.NC:.] chacal_bl4ck, Thank you, it does just what I want,makes my attempt look poor.
Always a pleasure to help.

Feel free to question.
To stop the server you can try this:

@echo off

@echo Stopping InsurgencyServer.exe...
taskkill /f /im InsurgencyServer.exe
pause

:Exit
Rover - [Redback] May 14, 2020 @ 5:24am 
[DOL]Facknrite™ thank you
Last edited by Rover - [Redback]; May 14, 2020 @ 5:24am
your welcome

you may want to change InsurgencyServer.exe with InsurgencyServer-Win64-Shipping.exe
Last edited by Facknrite™⭕⃤; May 14, 2020 @ 6:09am
D.Marks May 8, 2021 @ 4:36pm 
For VANILLA (CHANGE VARIABLES WITH MY_XXX)
@start /HIGH /min "" MY_PATH_INSURGENCY\InsurgencyServer.exe Farmhouse?Scenario=Scenario_Farmhouse_Checkpoint_Security?MaxPlayers=28?game=CheckpointHardcore port=MY_PORT_CONNECT queryport=MY_QUERYPORT -log -hostname="MY_SERVER [COOP Only]" -MapCycle=Mapcycle.txt -GSLTToken=MY_GSLTOKEN -Rcon -RconPassword=MY_PASSWORD -RconListemPort=27017 -GameStats -AdminList=Admins
Arc May 8, 2021 @ 5:06pm 
Originally posted by D.Marks:
... port=... queryport=...
Please fix your typos !
Also note this thread being a year old.
Showing 1-8 of 8 comments
Per page: 1530 50