Windows Dedicated Server Automation

Bones + Beech seeds = Chance of Birch Tree?

Hey everyone!

I'm in the process of writing a python script (nearly done with it, just have to add some finishing touches and a couple of functions) that will help with some dedicated server automation. I was looking around for the longest time to try and find something. Besides the windows time execute thingy I couldn't find anything. Finally gave up after months of waiting and searching. I'm no master coder by any means, but I took the time to work out most of the bugs and kinks as they popped up. (For you coders out there; don't make fun of me for my spaghetti if it gets released! 😉 )

To tell you what it does:

  1. It checks to ensure you have SteamCMD installed (it will ask you to install this if not) and the Valheim Dedicated Server (it will automatically install this through SteamCMD no credentials needed).
  2. It creates the necessary directories and files for the script to run after you extract it to the folder you want it to be in.
  3. It checks to see if the server is running and if not it asks if you would like to start it.
  4. Its asks for the time you would like to do server restarts and updates.
  5. Actively checks the time as long as there is no user intervention closing the program
  6. Shuts down, updates the server through SteamCMD, verifies file integrity, and restarts the server. It also waits to make sure your server get properly updated when you don't have the greatest internet connection.
  7. It only ever used like at max 1% of my CPU and uses around 60MB of memory when running.

I'm making this post to see how much interest there would be in the community to make this available for everyone to use. I'd probably post it on GitHub once I finish with it. It's currently based around windows as that's the platform I use to run mine, but with a little modification to the code it could be used on any platform – Linux, Windows, or Mac.

Let me know what you think in the comments.

Source: https://www.reddit.com/r/valheim/comments/118btyp/windows_dedicated_server_automation/

leave a comment

Your email address will not be published. Required fields are marked *