diff --git a/src/ARKServerManager/App.config b/src/ARKServerManager/App.config index eaf389b9..ddb12a82 100644 --- a/src/ARKServerManager/App.config +++ b/src/ARKServerManager/App.config @@ -894,6 +894,12 @@ + + False + + + {ipaddress}:{port} + diff --git a/src/ARKServerManager/Config.Designer.cs b/src/ARKServerManager/Config.Designer.cs index 82108e69..01ad2382 100644 --- a/src/ARKServerManager/Config.Designer.cs +++ b/src/ARKServerManager/Config.Designer.cs @@ -3171,5 +3171,29 @@ namespace ServerManagerTool { this["RCON_BackupMessageCommand"] = value; } } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("False")] + public bool AutoBackup_IncludeSaveGamesFolder { + get { + return ((bool)(this["AutoBackup_IncludeSaveGamesFolder"])); + } + set { + this["AutoBackup_IncludeSaveGamesFolder"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("{ipaddress}:{port}")] + public string Alert_ServerStartedMessageIPandPort { + get { + return ((string)(this["Alert_ServerStartedMessageIPandPort"])); + } + set { + this["Alert_ServerStartedMessageIPandPort"] = value; + } + } } } diff --git a/src/ARKServerManager/Config.settings b/src/ARKServerManager/Config.settings index bb64f8f7..f721b0b6 100644 --- a/src/ARKServerManager/Config.settings +++ b/src/ARKServerManager/Config.settings @@ -872,5 +872,11 @@ + + False + + + {ipaddress}:{port} + \ No newline at end of file diff --git a/src/ARKServerManager/Globalization/en-US/en-US.xaml b/src/ARKServerManager/Globalization/en-US/en-US.xaml index 0452bc8d..ff7555cc 100644 --- a/src/ARKServerManager/Globalization/en-US/en-US.xaml +++ b/src/ARKServerManager/Globalization/en-US/en-US.xaml @@ -504,6 +504,19 @@ Help... Language + + Steam Settings + Stop SteamCMD closing (use for debugging only) + If enabled, the Steamcmd window will not be closed when finished. You will need to manually close it or type quit. Note: does not affect auto-update. + Username: + The user name associated with the steam account. + Password: + The password associated with the steam account. + Authenticate... + Output SteamCMD to the progress window + If enabled, the SteamCMD output will be shown in the progress window instead of the command window. NOTE: if enabled, this could cause your server and mods updates to fail. + Use Anonymous Credentials with SteamCMD + Controls whether the anonymous user is used to download from SteamCMD. Custom Override Options Enable Custom Engine.ini Settings @@ -523,6 +536,12 @@ Enable SotF Settings If enabled, the SotF settings will be managed by the server manager. WARNING: While any of these options are disabled, the server manager will not read or write the associated overrides settings. Re-enabling any of these options will cause ALL existing associated overrides to be removed from the config file. + + Custom Level Options + Player Level Increase: + The amount of XP to be increased when adding a new custom level. + Dino Level Increase: + The amount of XP to be increased when adding a new custom level. Server Status Options Enable Server Status Actions @@ -531,10 +550,6 @@ If enabled, a dialogue will be shown to confirmation the server status action. Server Startup Options - Player Level Increase: - The amount of XP to be increased when adding a new custom level. - Dino Level Increase: - The amount of XP to be increased when adding a new custom level. Validate profile on server start If enabled, when you manually start the server, a basic validation is performed on the server and mod files. NOTE: Will not be performed if Ark Mod Management enabled. Perform server and mod update on server start @@ -542,19 +557,6 @@ Start Server Minimized If enabled, when the server is started the command window will be minimized, otherwise it will open in normally. - Steam Settings - Stop SteamCMD closing (use for debugging only) - If enabled, the Steamcmd window will not be closed when finished. You will need to manually close it or type quit. Note: does not affect auto-update. - Username: - The user name associated with the steam account. - Password: - The password associated with the steam account. - Authenticate... - Output SteamCMD to the progress window - If enabled, the SteamCMD output will be shown in the progress window instead of the command window. NOTE: if enabled, this could cause your server and mods updates to fail. - Use Anonymous Credentials with SteamCMD - Controls whether the anonymous user is used to download from SteamCMD. - Mod Update Settings Update mods when updating server If enabled, the mods will be updated when the server is updated. @@ -566,16 +568,20 @@ If enabled, the mods will be downloaded from steam even when no steam information is available. Workshop Cache Expiry The number of hours since the last refresh the workshop cache will be considered old and will auto refresh. Set to 0 to never expire the cache, you must manually refresh the cache. - - Enable Auto Backup - Backup Interval: - How often to perform the server backup, in hours and minutes (hh:mm). Set to 00:00 to disable. + + Backup Settings + Include the SaveGames folder when performing a WorldSave backup + If enabled, when a worldsave backup runs it will include the SaveGames folder used to store mod data files. Delete Old Backup Files If enabled, when the auto-backup runs the old backup files will be deleted. Older Than: How old the backup file must be to be deleted in days. WorldSave Message: This message will be displayed upon backup when the world is about to be saved. + + Enable Auto Backup + Backup Interval: + How often to perform the server backup, in hours and minutes (hh:mm). Set to 00:00 to disable. Enable Auto Update Game Server @@ -628,6 +634,34 @@ Show shutdown reason with ALL shutdown messages If enabled, the shutdown reason will be shown with all shutdown message; otherwise it will only be shown at the start of the server shutdown. + Alert Options + Server Stop Message: + This message will be displayed when the server is being stopped. + Server Shutdown Message: + This message will be displayed when the server is being shutdown. + Server Start Message: + This message will be displayed when the server is being started. + Include Public IP and Port in Start Message + The startup message will include the Public IP and Port. + Backup Process Error: + This message will be displayed when the auto-backup process encountered an error. + Shutdown Process Error: + This message will be displayed when the auto-shutdown process encountered an error. + Restart Process Error: + This message will be displayed when the auto-restart process encountered an error. + Update Process Error: + This message will be displayed when the auto-update process encountered an error. + Update Results: + This message will be displayed when the auto-update process finds something to update. + Server Update Message: + This message will be displayed when the game server has been updated. + Server Status Change: + This message will be displayed when the status of the server changes. + Mod Update Detected: + This message will be displayed when the server manager detects one or more mods are out of date. + Force Respawn Dinos Warning: + This message will be displayed when the server is being started and a wild dino wipe is scheduled. + Enable Discord Bot You will need to restart the server manager if you change any settings for the Discord Bot. Token: @@ -704,6 +738,8 @@ How old the log files must be to be deleted in days. Max Number of Logs The maximum number of log files that will be kept. + RCON Broadcast Mode: + Select the method used by the server manager to send auto process messages to the game clients via RCON. Confirm Settings Reset Action Click 'Yes' to confirm you want to perform the settings reset. @@ -735,37 +771,6 @@ SteamCmd Authentication Disabled You have chosen to redirect the steamcmd output to the progress window. You are not able to use your steam credentials, you must use anonymous credentials. To use your steam credentials you must turn off the Output SteamCMD to the progress window option. - - Alert Options - Server Stop Message: - This message will be displayed when the server is being stopped. - Server Shutdown Message: - This message will be displayed when the server is being shutdown. - Server Start Message: - This message will be displayed when the server is being started. - Include Public IP and Port in Start Message - The startup message will include the Public IP and Port. - Backup Process Error: - This message will be displayed when the auto-backup process encountered an error. - Shutdown Process Error: - This message will be displayed when the auto-shutdown process encountered an error. - Restart Process Error: - This message will be displayed when the auto-restart process encountered an error. - Update Process Error: - This message will be displayed when the auto-update process encountered an error. - Update Results: - This message will be displayed when the auto-update process finds something to update. - Server Update Message: - This message will be displayed when the game server has been updated. - Server Status Change: - This message will be displayed when the status of the server changes. - Mod Update Detected: - This message will be displayed when the server manager detects one or more mods are out of date. - Force Respawn Dinos Warning: - This message will be displayed when the server is being started and a wild dino wipe is scheduled. - - RCON Broadcast Mode: - Select the method used by the server manager to send auto process messages to the game clients via RCON. diff --git a/src/ARKServerManager/Globalization/pt-BR/pt-BR.xaml b/src/ARKServerManager/Globalization/pt-BR/pt-BR.xaml index e64bbf26..dd8ae99a 100644 --- a/src/ARKServerManager/Globalization/pt-BR/pt-BR.xaml +++ b/src/ARKServerManager/Globalization/pt-BR/pt-BR.xaml @@ -763,6 +763,9 @@ Esta mensagem será exibida quando o gerenciador do servidor detectar que um ou mais mods estão desatualizados. Força Respawn de Dinos: Esta mensagem será exibida quando o servidor estiver sendo iniciado e um wipe do dino selvagem estiver programado. + + Modo RCON Broadcast: + Selecione o modo usado pelo serve manager, para enviar mensagens de broadcast automático no jogo via RCON. diff --git a/src/ARKServerManager/Globalization/ru-RU/ru-RU.xaml b/src/ARKServerManager/Globalization/ru-RU/ru-RU.xaml index 7570f908..901cbbf2 100644 --- a/src/ARKServerManager/Globalization/ru-RU/ru-RU.xaml +++ b/src/ARKServerManager/Globalization/ru-RU/ru-RU.xaml @@ -9,7 +9,7 @@ Последнее обновление: - 14.04.2022 от Varlonec, Эдван + 06.05.2022 от Varlonec, Эдван Ошибка @@ -1238,6 +1238,8 @@ ID канала сервера Discord, который будет слушать этот профиль. Псевдоним: Вместо идентификатора профиля можно использовать уникальное имя для идентификации вашего сервера при использовании команд discord. + Разрешить псевдоним кластера + Если этот параметр включен, идентификатор кластера можно использовать в качестве псевдонима discord для выполнения команд сервера. Разрешить Бекап Если этот параметр включен, профиль будет прослушивать команды Бекапа от Discord. Разрешить Перезагрузку @@ -5724,6 +5726,7 @@ Для команды '{0}' требуется идентификатор профиля. Профиль '{0}' не найден или не связан с каналом. + В канале было обнаружено несколько профилей с "{0}", команда прервана. Профиль '{0}' находится в состоянии '{1}', и эта команда не может быть запущена. Профиль '{0}' в настоящее время обновляется. diff --git a/src/ARKServerManager/Lib/ServerApp.cs b/src/ARKServerManager/Lib/ServerApp.cs index 942ef018..7337be7c 100644 --- a/src/ARKServerManager/Lib/ServerApp.cs +++ b/src/ARKServerManager/Lib/ServerApp.cs @@ -371,8 +371,13 @@ namespace ServerManagerTool.Lib SendEmail($"{_profile.ProfileName} server started", Config.Default.Alert_ServerStartedMessage, false); var startupMessage = Config.Default.Alert_ServerStartedMessage; - if (Config.Default.Alert_ServerStartedMessageIncludeIPandPort) - startupMessage += $" {Config.Default.MachinePublicIP}:{_profile.QueryPort}"; + if (Config.Default.Alert_ServerStartedMessageIncludeIPandPort && !string.IsNullOrWhiteSpace(Config.Default.Alert_ServerStartedMessageIPandPort)) + { + var ipAndPortMessage = Config.Default.Alert_ServerStartedMessageIPandPort + .Replace("{ipaddress}", Config.Default.MachinePublicIP) + .Replace("{port}", _profile.QueryPort.ToString()); + startupMessage += $" {ipAndPortMessage}"; + } ProcessAlert(AlertType.Startup, startupMessage); if (_profile.ForceRespawnDinos) @@ -2061,17 +2066,20 @@ namespace ServerManagerTool.Lib ZipUtils.ZipAFile(backupFile, file.Name, file.FullName); } - // backup the save games files - var saveGamesFolder = GetServerSaveGamesFolder(); - if (Directory.Exists(saveGamesFolder)) + if (Config.Default.AutoBackup_IncludeSaveGamesFolder) { - var saveGamesFolderInfo = new DirectoryInfo(saveGamesFolder); - - var saveGamesFileFilter = $"*"; - var saveGamesFiles = saveGamesFolderInfo.GetFiles(saveGamesFileFilter, SearchOption.AllDirectories); - foreach (var file in saveGamesFiles) + // backup the save games files + var saveGamesFolder = GetServerSaveGamesFolder(); + if (Directory.Exists(saveGamesFolder)) { - ZipUtils.ZipAFile(backupFile, file.FullName.Replace(saveGamesFolder, Config.Default.SaveGamesRelativePath), file.FullName); + var saveGamesFolderInfo = new DirectoryInfo(saveGamesFolder); + + var saveGamesFileFilter = $"*"; + var saveGamesFiles = saveGamesFolderInfo.GetFiles(saveGamesFileFilter, SearchOption.AllDirectories); + foreach (var file in saveGamesFiles) + { + ZipUtils.ZipAFile(backupFile, file.FullName.Replace(saveGamesFolder, Config.Default.SaveGamesRelativePath), file.FullName); + } } } diff --git a/src/ARKServerManager/UserControls/GlobalSettingsControl.xaml b/src/ARKServerManager/UserControls/GlobalSettingsControl.xaml index aa0804f7..52228b78 100644 --- a/src/ARKServerManager/UserControls/GlobalSettingsControl.xaml +++ b/src/ARKServerManager/UserControls/GlobalSettingsControl.xaml @@ -45,6 +45,8 @@ + + @@ -60,31 +62,24 @@