Jump to content

JetFox

Alpha Release V2.0.3.0: AtlasUpdater - Auto-Updater/Restarter

Recommended Posts

Posted (edited)

Auto updater with auto reboot on crash.

Cross Server Chat W/ discord integration

Rcon via discord/Console


Edit settings-template.json to your like, save as settings.json

Edit ServerUpdater.cfg to your servers location too

Edit CrossChat-Template to your server settings.

EXTREME ALPHA RELEASE - I TAKE NO RESPONSIBILTY FOR MY OWN MESSUPS.


Release Notes:
V1.0.0
Initial release....

V1.0.3
Fixes backup manager

v1.0.4

Fixed Not booting multiple servers

V1.0.5

Fixed incorrect server startup params

V1.0.6

Test CrossChat(Non Discord) Implementation

V1.0.7

Fix CrossChat (Non Discord) Implementation

V1.0.8

Fixed password parameter

V1.0.9

Incorrect ServerIP was posting in CrossChat connection string

V1.1.0

CrossChat(Non-Discord) finished.

V1.1.1

Removed certain things (Seamlessip etc....) from pre-programmed startup and moved to serverparams

V1.1.2

GameServerPath should now work for force_install_dir

it should now look like            "GameServerPath": "C:\\Atlas",

but the full directory should look like C:\Atlas\steamapps\common\ATLAS Dedicated Server

V1.1.3

StopServer was calling wrong PID file to delete, fixed.

V1.1.4

Fixed Auto-Updater, it would shutdown singular server and try to update instead of shutting them all down at once

v1.1.5

Fixed ShooterGame.exe directory?

V1.1.75

Added ExtendedServerParams to config.json

V1.2.0

95% fixed Auto-Updater - (Current bug, on startup if update exists it will do an array for ALL of them, I recommend if theres been an update before running this you run that first before starting this program.)

V1.3.0

Non-Stable branch: 100% Fixed Auto-Updater?

v1.4.0

Non-Stable Branch: Auto updater not fixed

V1.5.0

Stable: Auto Updater Fixed

v1.9.9

Current Change List: 

CrossChat crash is fixed, but dont use it til v2.0

External config for crosschat so you can do multi-server configurations

Implementation:

Discord Rcon/Console Rcon

Currently reports when server crashes/Updates occurring/finished

CrossChat w/discord semi-working, don't recommend yet.

Release Notes:

Early release build, haven't gotten to test it yet.... recommend test on like a 1x1 or 2x2 etc....
New config settings in AtlasUpdater.exe.config
and CrossChat-template.json
Recommend keeping UseDiscordChat to off and UseCrossChat to off til v2.0.0
 

V1.9.95

Crosschat variable mismatch

 

V2.0

Correct implementation of variables I believe now.

 

v2.0.0.1

Forgot some people might not use any of the crosschat/discord stuff..

 

v2.0.0.2

Moved app_start to end of program, should start now

 

V2.0.0.3

Configuration Change: GameServerPath moved from settings-template.json to the top so you dont have it for every server...

Configuration Change: SteamUpdateScript moved from settings-template.json to the top so you dont have it for every server...

AtlasUpdater.exe.config New Required Parameters:            

<setting name="redisPassword" serializeAs="String">
                <value>foobared</value>
            </setting>
            <setting name="redisIP" serializeAs="String">
                <value>127.0.0.1:6379</value>
            </setting>

Crash Detection on RedisDB, if a server crashes it wont boot up the servers til redis is back online.

 

V2.0.0.5

oopsy

V2.0.1.0
Wasnt using _Parent.

 

V2.0.2.0

Fixes: Backups being broke.

Discord Relay Info Being Broke (Connection issue still exists)

Correct debug info on redis connection.


V2.0.3.0

External rcon config ip

a6acaa740ef021e52433be48b20aa540.png

8bc8990c0c9dd2577c59af5c1597c76e.png

 

8ac2dcc1e7f7be768c18a394e75898ed.png.93a94e5473aded0338f486704152174a.png9bc01cbcdb7287002f78457fbb79f10f.thumb.png.79866b264c0fa7fb287e870bed6ac92d.png

baa67d8976cd47c10a28fe29ab96f346.thumb.png.fa9b47f5daeb11e1fc4f99b30e8f8eab.png

Join my https://discord.gg/cGp8KuN

 

 

Legacy:

AtlasReleasev120.zip

Stable:

AtlasReleasev150.zip

Alpha:

V2.0.3.0 Download

 

----------------------------------------------------------------------

Future upcoming release options:

Auto redis backup

------------------------------------------------------------------------

 

Edited by JetFox
  • Like 4
  • Thanks 3

Share this post


Link to post
Share on other sites

Can you give an example config including configs examples for additional server parameters? I am not sure what the proper syntax is. 

 

Share this post


Link to post
Share on other sites

Tested on my 3x3 map and works great! Jetfox took his time to voice chat with me and configure, etc. Very nice guy.

MRMA - Edit the ServerUpdater.cfg file and correct the path to your location.

Share this post


Link to post
Share on other sites
2 hours ago, mrma said:

199747046_QQ20190102213952.thumb.png.de7ec61ac374d11b02836efdf2b9d89b.png

Current AtlasUpdater doesn't support force_install_dir to point to another directory than steamcmd.

If you use for example:

login anonymous
force_install_dir "C:\ATLAS\"
app_update 1006030 validate
quit

Your files will be transfered outside of steamcmd including steamapps folder > unable to find appmanifest_1006030.acf

Share this post


Link to post
Share on other sites
Posted (edited)

Currently missing for AtlasUpdater:

  • Starting redis server if it's not running
  • ReservedPlayerSlots
  • MultiHome instead of SeamlessIP
  • Starting without IP (MultiHome / SeamlessIP - can fixe not to be connectabel)

 

Edited by Firedragon

Share this post


Link to post
Share on other sites
51 minutes ago, Firedragon said:

Currently missing for AtlasUpdater:

  • Starting redis server if it's not running
  • ReservedPlayerSlots
  • MultiHome instead of SeamlessIP
  • Starting without IP (MultiHome / SeamlessIP - can fixe not to be connectabel)

 

Please check version 1.1.2, everything should now be set besides starting redis server.

  • Like 1

Share this post


Link to post
Share on other sites
Posted (edited)
54 minutes ago, JetFox said:

Please check version 1.1.2, everything should now be set besides starting redis server.

Now AtlasUpdater doesn't work for me anymore - not starting mapserver.

02.01.2019 19:06:54] [Error]:          Unable to spawn new server process: Das System kann die angegebene Datei nicht finden
{
    "PostponeUpdateWhenPlayersHigherThan": 0,
    "UpdateWarningTimeInMinutes": 2,
    "UpdatePollingInMinutes": 5,
    "LogLevel": "Info",

    "SteamCMDPath": "C:\\Atlas\\steamcmd",
    "ShowSteamUpdateInConsole": "true",
    "UseServerNameInINIFile": "false",

    "Backup": {
        "EnableBackup": "true",
        "BackupIntervalInMinutes": 30,
        "NumberOfBackupsToKeepPerServer": 5
    },

    "Messages": {
        "ServerUpdateBroadcast": "This server will shut down in {0} minute(s) for an update",
        "ServerBackupBroadcast": "This server is performing a backup, this may take a few minutes",
        "ServerShutdownBroadcast": "This server will now shut down for an update"
    },

    "Servers": [
        {
		"serverID":	1,
		
            "SteamUpdateScript": "C:\\Atlas\\Debug\\ServerUpdater.cfg",
            "BackupDirectory": "C:\\Atlas\\!Backup\\00",
            "GameServerPath": "C:\\Atlas",
			
			"SaveName": "00",
			"ServerXGrid": "0",
			"ServerYGrid": "0",

            "GameServerName": "Freeport Nordwest",
            "GameServerMap": "Ocean",
            "MaxPlayers": 100,
            "QueryPort": 57561,
            "RCONPort": 28001,
            "Port": 5761,

            "ServerPassword": "", 
            "ServerAdminPassword": "mypersonalpasswordnotshownhere",
            "ServerPVE": "false",

            "ServerParameters": { 
			"ReservedPlayerSlots":	"10",
			"SeamlessIP":	""
            }
        },

 

Edited by Firedragon

Share this post


Link to post
Share on other sites
2 minutes ago, Firedragon said:

Now AtlasUpdater doesn't work for me anymore - not starting mapserver.

02.01.2019 19:06:54] [Error]:          Unable to spawn new server process: Das System kann die angegebene Datei nicht finden
{
    "PostponeUpdateWhenPlayersHigherThan": 0,
    "UpdateWarningTimeInMinutes": 2,
    "UpdatePollingInMinutes": 5,
    "LogLevel": "Info",

    "SteamCMDPath": "C:\\Atlas\\steamcmd",
    "ShowSteamUpdateInConsole": "true",
    "UseServerNameInINIFile": "false",

    "Backup": {
        "EnableBackup": "true",
        "BackupIntervalInMinutes": 30,
        "NumberOfBackupsToKeepPerServer": 5
    },

    "Messages": {
        "ServerUpdateBroadcast": "This server will shut down in {0} minute(s) for an update",
        "ServerBackupBroadcast": "This server is performing a backup, this may take a few minutes",
        "ServerShutdownBroadcast": "This server will now shut down for an update"
    },

    "Servers": [
        {
		"serverID":	1,
		
            "SteamUpdateScript": "C:\\Atlas\\Debug\\ServerUpdater.cfg",
            "BackupDirectory": "C:\\Atlas\\!Backup\\00",
            "GameServerPath": "C:\\Atlas",
			
			"SaveName": "00",
			"ServerXGrid": "0",
			"ServerYGrid": "0",

            "GameServerName": "Freeport Nordwest",
            "GameServerMap": "Ocean",
            "MaxPlayers": 100,
            "QueryPort": 57561,
            "RCONPort": 28001,
            "Port": 5761,

            "ServerPassword": "", 
            "ServerAdminPassword": "mypersonalpasswordnotshownhere",
            "ServerPVE": "false",

            "ServerParameters": { 
			"ReservedPlayerSlots":	"10",
			"SeamlessIP":	""
            }
        },

 

why do you have a comma at the very bottom if you're booting one server?

Share this post


Link to post
Share on other sites
5 minutes ago, Firedragon said:

Because i didn't copy the rest, part of the file.

You can delete SeamlessIP as its not in use

Share this post


Link to post
Share on other sites
Just now, JetFox said:

You can delete SeamlessIP as its not in use

Doesn't change anything as it doesn't start ShooterGameServer.exe anymore.

Share this post


Link to post
Share on other sites
1 minute ago, Firedragon said:

Doesn't change anything as it doesn't start ShooterGameServer.exe anymore.

V1.1.2

GameServerPath should now work for force_install_dir

it should now look like            "GameServerPath": "C:\\Atlas",

but the full directory should look like C:\Atlas\steamapps\common\ATLAS Dedicated Server

 

so yours has a steamapps common folder before Atlas Dedicated Server?

Share this post


Link to post
Share on other sites

forceinstalldir moves steamapps folder

If it's force_install_dir "C:\Atlas\", your folders will look after install or update like this:


c:\ATLAS
c:\ATLAS\_CommonRedist
c:\ATLAS\AtlasTools
c:\ATLAS\Engine
c:\ATLAS\ShooterGame
c:\ATLAS\steamapps

The best solution is to make a change to your tool to add the path to ShooterGameServer.exe

ex. "ShooterGameServer": "C:\\Atlas\\ShooterGame\\Binaries\\Win64"

Share this post


Link to post
Share on other sites

I get the same error.  

I don't even have a 'common' folder after steamapps, server files for me are in shootergame/binaries/win64

Share this post


Link to post
Share on other sites
6 minutes ago, Firedragon said:

forceinstalldir moves steamapps folder

If it's force_install_dir "C:\Atlas\", your folders will look after install or update like this:


c:\ATLAS
c:\ATLAS\_CommonRedist
c:\ATLAS\AtlasTools
c:\ATLAS\Engine
c:\ATLAS\ShooterGame
c:\ATLAS\steamapps

The best solution is to make a change to your tool to add the path to ShooterGameServer.exe

ex. "ShooterGameServer": "C:\\Atlas\\ShooterGame\\Binaries\\Win64"

 

6 minutes ago, HouseOfBedlam said:

I get the same error.  

I don't even have a 'common' folder after steamapps, server files for me are in shootergame/binaries/win64

Fixed in v1.1.5

 

Heres our discord

Join Discord

Share this post


Link to post
Share on other sites

Hello,

 

thanks for this tool, but i have a problem.

I have MultiHome with : 192.168.XXX.XXX local.

Your Programm will connect only to 127.0.0.1 how can i change this to my local 192.168.xxx.xxx ?

Share this post


Link to post
Share on other sites

@ZEROXX

Currently there is no support to allow cluster like (not at localhost / 127.0.0.1) connections to mapserver and redis.

Share this post


Link to post
Share on other sites
Posted (edited)

@FiredragonYour  (CrossChat) will connect only to 127.0.0.1:rconPort how i can change this ?

But i will this connect to 192.168.123.xxx:29020 …

 

Unbenannt.jpg

Edited by Zeroxx

Share this post


Link to post
Share on other sites

@JetFox I found a small bug in CrossChat.

For example you have 4 ShooterGameServer.exe running (2x2), and one or more crashes, AtlasUpdater spams

login for CrossChat even if the crashed ShooterGameServer.exe is up again until following error message appears:

ERROR System.Net.Sockets.SocketException (0x80004005): Eine bestehende Verbindung wurde softwaregesteuert
durch den Hostcomputer abgebrochen
   bei System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
   bei System.Net.Sockets.Socket.Receive(Byte[] buffer)
   bei Rcon.RconBase.SendReceive(RconPacket packet) in C:\Users\SamGo\Documents\ArkUpdater-master\Rcon\RconBase.cs:Zeile 86.
   bei Rcon.RconBase.Authenticate(String password) in C:\Users\SamGo\Documents\ArkUpdater-master\Rcon\RconBase.cs:Zeile 59.
   bei Rcon.RconClient.Connect(String host, Int32 port, String password) in C:\Users\SamGo\Documents\ArkUpdater-master\Rcon\RconClient.cs:Zeile 57.

bei ARKUpdater.Server.Connect() in C:\Users\SamGo\Documents\ArkUpdater-master\ARKUpdater\Server.cs:Zeile 119.
ERROR System.Exception: Connection to server failed. Check your host and port.
   bei Rcon.RconClient.Connect(String host, Int32 port, String password) in C:\Users\SamGo\Documents\ArkUpdater-master\Rcon\RconClient.cs:Zeile 57.

 

  • Like 1

Share this post


Link to post
Share on other sites
31 minutes ago, Firedragon said:

@JetFox I found a small bug in CrossChat.

For example you have 4 ShooterGameServer.exe running (2x2), and one or more crashes, AtlasUpdater spams

login for CrossChat even if the crashed ShooterGameServer.exe is up again until following error message appears:

ERROR System.Net.Sockets.SocketException (0x80004005): Eine bestehende Verbindung wurde softwaregesteuert
durch den Hostcomputer abgebrochen
   bei System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
   bei System.Net.Sockets.Socket.Receive(Byte[] buffer)
   bei Rcon.RconBase.SendReceive(RconPacket packet) in C:\Users\SamGo\Documents\ArkUpdater-master\Rcon\RconBase.cs:Zeile 86.
   bei Rcon.RconBase.Authenticate(String password) in C:\Users\SamGo\Documents\ArkUpdater-master\Rcon\RconBase.cs:Zeile 59.
   bei Rcon.RconClient.Connect(String host, Int32 port, String password) in C:\Users\SamGo\Documents\ArkUpdater-master\Rcon\RconClient.cs:Zeile 57.

bei ARKUpdater.Server.Connect() in C:\Users\SamGo\Documents\ArkUpdater-master\ARKUpdater\Server.cs:Zeile 119.
ERROR System.Exception: Connection to server failed. Check your host and port.
   bei Rcon.RconClient.Connect(String host, Int32 port, String password) in C:\Users\SamGo\Documents\ArkUpdater-master\Rcon\RconClient.cs:Zeile 57.

 

Thanks for the bug report, i'll be looking into it tomorrow when i finish driving home.

  • Like 1

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×