Great thanks a ton for your answers! Very detailed and make a lot of sense; is there anyway these Q&A’s can get a sticky for others to get a definitive answer? I did hours of searching and couldn’t find anything relatively close to your answers…
Also, sorry, one last question! Which port is the client connecting with when using Direct Connection? Steam Query Port if I’m correct?
Hey Toolguy I am trying to play and host on the same machine but don’t quite get this " (Similarly, if you want to run a game server and a game client on the same machine, they should be using different ports, if you keep the default ports 7777 and 2715 the first launched executable will lock the ports, and the other will not be able to access them)." what do I do? If someone could give me a explanation that would be great! Everything is green. I just want to host and play on the same machine.
It used to be possible to run the client and the server on the same machine, by using the “-nosteam” parameter when launching the game server.
That had the unfortunate side effect of making the server not appear on the server browser, but direct connect was still possible.
I tried that earlier today (I actually added a “nosteam” checkbox and the parameters to the config file), but it looks like the feature got broken at some point… which means that at this point it’s not possible anymore.
I did try to bypass the issue using some of the sandboxing solutions (like Sandboxie), but it did not seem to help.
If anyone around has a solution that still works as of today (August 2018), please share!
I guess you need to define a rule set for the server for the ports you forwarded, and allow them to reach both the DedicatedServerLauncher and ConanExiles game server.
The easiest is to start by configuring the firewall to allow the launcher to work (basically, until the “test ports” returns green instead of red), and when that works, do the same thing for the game server.
First of all, thanks for creating a fantastic tool for launching my Conan server, everything worked first time and has worked like a dream since then, even the mod manager!
Secondly: Is there a way to automatically launch the server when the launcher is run?
So if for example there was a power failure, I can get windows to reboot and monitor if the launcher is still running and if not it will automatically run it, but, the Conan server will still be offline (I think…).
Maybe a “Launch Conan server when app starts” checkbox?
Or is there a way to make this happen already? a “keep alive” functionality…
No there is not, but it’s a valid suggestion.
I guess there are two points there:
Making it so the Dedicated Server Launcher tool can automatically start when windows start
Having an option in the tool to automatically launch the server if it is not running
The two difficulties are:
If somebody is running 5 servers in 5 different folders, I do need to run all the right instances correctly
I need to make sure the server does not auto-start when the user of the tool want to edit/change settings (could probably be done by having the “launch server on start” checkbox gets disabled if the user voluntarily stops the server with the big button)
Let me start out with a thank you. You can tell your boss that the tool is definitely appreciated even by people who’ve setup and run a server without the launcher.
I’ll second the suggestion to have an automatic start of the server when the launcher is started and a start when windows starts option. It’s very helpful when to keep the server up when the person(s) with access to the server are unavailable or sleeping.
I used to use an autoit script posted here: https://github.com/Dateranoth/ConanExilesServerUtility
It’s less user friendly than the launcher and has a few disadvantages. It also has a few features that the launcher can’t offer (yet?), that might be worth a consideration (one of them being the auto-restart mentioned above).
Since I wrote some php scripts for database maintenance one of the things I’d love to see would be a way to automatically execute them at every server (re)start like that autoit script does (Execute External Script before starting server).
As for the backup, it would be nice if you could configure it to only keep the last X backups (or nothing older than the past X days) because with a quarter gig game.db daily backups do pile up quite a bit.
I suppose the starting of the launcher when windows starts is mostly just a little quality of life thing that’s probably not very difficult to add. A lot of similar tools have the option to just check mark whether you want them to start with windows or not. It certainly isn’t something that can’t be done by built-in Windows means too though.
Rather than allowing for the restart to be canceled, personally I’d prefer having this as a simple tick mark for that one too. Here’s my reasoning: if the restart happens unattended (which is the prime reason for having an automatic restart in the first place), you will most likely want it to happen ASAP. If you want to change some settings you’ll be on that machine and trigger the restart deliberately. It would be easy to uncheck a box to ensure it doesn’t restart when you do that. Either that or just make sure that when the user is triggering a shutdown (as opposed to the restart button), the server stays down until started again manually (or both of the above).
In that same vein might I suggest allowing to “queue” up changes for the next restart? So essentially allow changing the the settings while the server runs but only apply them at the next restart (whenever that may be)? That way I may not need the restart to be delayed half of the time because I could make the changes beforehand in anticipation of the next restart.
And about the the scripts - yes that’s exactly what I meant. The game installation already comes with a sqlite3.exe and some batch files that illustrate how that could work. So if you wanted you could call the CheckGameDB.bat each time the server restarts to perform a check on your database, implement your own backup system or zip the backup that the launcher creates. I can think of quite a few handy applications for this.
Also let me reiterate how much I appreciate that you’re doing this for us! I know this is not your priority, so I’m very happy that you still invest your precious time to… well even just reply here and take our suggestions under consideration.
edit: Just tested the registery key and it seems to work fine, the launcher started itself automatically. Only issue with that is that on a Windows that requires a login at startup, the server won’t start unless you manually login first. Not sure if there’s a workaround for that, that doesn’t leave the server unprotected.