Skip to content

Instantly share code, notes, and snippets.

@Dids
Last active March 16, 2019 20:42
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save Dids/83f2c524ae0000160d2a3583fd7e6d4f to your computer and use it in GitHub Desktop.
Save Dids/83f2c524ae0000160d2a3583fd7e6d4f to your computer and use it in GitHub Desktop.
Conan Exiles dedicated server startup scripts (be sure to checkout the server configuration guide here: https://gist.github.com/Dids/9564a693bb5b40cc0773cf8a5f07b4c1)
@echo off
steamcmd.exe +runscript install.txt
@ShutdownOnFailedCommand 1
@NoPromptForPassword 1
login anonymous
force_install_dir C:\ConanExiles
app_update 443030 validate
quit
@echo off
:start
pushd C:\steamcmd
call install.bat
popd
echo Starting Conan Exiles server, please keep this window open for automatic restart to work..
echo (if you want to quit, close this window from the X, then issue CTRL-C in the server window)
pushd C:\ConanExiles
call ConanSandboxServer.exe -log
popd
echo Conan Exiles server exited, restarting..
goto start
@Estena
Copy link

Estena commented Feb 8, 2017

Thank you for a great automation script!

Do I understand correctly this will everytime a server crashes brist check if there has been an update from steam and then relaunch the server, correct?

Also could you kindly help me understand what I need to chnage in the above script so that I can executed it for all the servers I have on the same IP?

My Steam CMD is located same as above C:\steamcmd

Each of the 4 conan servers is a full install of the game on its own (ie. each has a ConanSandBoxServer.exe located in the following folders:
C:\conanserver\massivecom1
C:\conanserver\massivecom2
C:\conanserver\massivecom3
C:\conanserver\massivecom4

We have the SSD space so I thought of putting each Conan server into its own dedicated folder as we manually tweak the serversettings and waanted to keep an overview where things are.

Thank you for your help :)

@Estena
Copy link

Estena commented Feb 8, 2017

Also could you maybe help out with a script to be integranted into above with the following logic:

installer to check every 5/10 min with Steam CMD if a new update has come out,
if new update has come out - force a server to shutdown and start from line 1 in "start.bat"

At the moment the above script does not take cognisance of new patches, if a new patch comes out the live server unless it is stopped or crashes will not have the lastest patch - an automated work around for this would be much apprichated

thank you

@Dids
Copy link
Author

Dids commented Feb 11, 2017

@Estena Automatic updating (querying Steam for updates and gracefully restarting the server) is much, much more complicated, and not feasible to do with mere batch files. I am, however, working on a production quality Windows application for managing a Conan Exiles server, which supports multiple servers, chat log, player list as well as fully automatic updates/restarts.

Now, as to running multiple servers on a single machine. I'd advice you to have a separate steamcmd.exe for each of the servers, so each of them would be in their own folders. This way, you'd also have the files above specific to each server.

For server configuration itself, I've put together a battletested guide here: https://gist.github.com/Dids/9564a693bb5b40cc0773cf8a5f07b4c1

@Xerrion
Copy link

Xerrion commented Feb 14, 2017

@Dids @Estena No use -usedir=servername" instead, so you will have multiple configurations in the same server. There is absolutely no need to waste 4 times disk space for that

@Dids
Copy link
Author

Dids commented Feb 16, 2017

@Xerrion Can you elaborate on that? That doesn't seem to be a steamcmd parameter, so I'm assuming it's for Conan? Do you have a more complete example?

EDIT: Never mind, saw your post on the other gist.

@Dids
Copy link
Author

Dids commented Feb 19, 2017

@Xerrion -usedir doesn't seem to be working for me at all. Still stores all the files in the default location.

Copy link

ghost commented Feb 21, 2017

@Estena if you are still looking for that kind of functionality, you may want to check out what @Dateranoth has going on with his utility.

As for this, this is exactly what I was looking for. Thank you, @Dids!

@Xerrion
Copy link

Xerrion commented Mar 13, 2017

@Dids It's me who is a nut job, its -userdir not -usedir

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment