From 57de64ff883296403e3c958aa554fa7dd3e2bb4e Mon Sep 17 00:00:00 2001 From: Brett Hewitson Date: Sat, 20 Nov 2021 14:30:13 +1000 Subject: [PATCH] Added server setting - DestroyTamesOverLevelClamp --- .../Globalization/en-US/en-US.xaml | 4 ++- src/ARKServerManager/Lib/ServerProfile.cs | 11 ++++++++ src/ARKServerManager/VersionFeed.xml | 25 ++++++++++++++++++- src/ARKServerManager/VersionFeedBeta.xml | 14 +++++------ .../Windows/ServerSettingsControl.xaml | 2 ++ 5 files changed, 47 insertions(+), 9 deletions(-) diff --git a/src/ARKServerManager/Globalization/en-US/en-US.xaml b/src/ARKServerManager/Globalization/en-US/en-US.xaml index 3ba59964..fe753cfd 100644 --- a/src/ARKServerManager/Globalization/en-US/en-US.xaml +++ b/src/ARKServerManager/Globalization/en-US/en-US.xaml @@ -1161,7 +1161,9 @@ Determines the maximum levels of creatures in the world. The higher the value, the higher the Maximum Creature Level. Difficulty Offset: Determines the maximum levels of creatures in the world. The higher the value, the higher the Maximum Creature Level. - + Destroy Tames Over Level: + Tames that exceed this level will be deleted on server start. To disable deletion set to 0. + Enable Tribute Downloads If enabled, this will allow downloading external survivors/items/dinos into your server. No Survivor Downloads diff --git a/src/ARKServerManager/Lib/ServerProfile.cs b/src/ARKServerManager/Lib/ServerProfile.cs index 8d76d116..21f60496 100644 --- a/src/ARKServerManager/Lib/ServerProfile.cs +++ b/src/ARKServerManager/Lib/ServerProfile.cs @@ -1045,6 +1045,15 @@ namespace ServerManagerTool.Lib set { SetValue(DifficultyOffsetProperty, value); } } + public static readonly DependencyProperty DestroyTamesOverLevelClampProperty = DependencyProperty.Register(nameof(DestroyTamesOverLevelClamp), typeof(int), typeof(ServerProfile), new PropertyMetadata(0)); + [IniFileEntry(IniFiles.Game, IniSections.Game_ShooterGameMode, ServerProfileCategory.Rules, WriteIfNotValue = 0)] + public int DestroyTamesOverLevelClamp + { + get { return (int)GetValue(DestroyTamesOverLevelClampProperty); } + set { SetValue(DestroyTamesOverLevelClampProperty, value); } + } + + public static readonly DependencyProperty EnableTributeDownloadsProperty = DependencyProperty.Register(nameof(EnableTributeDownloads), typeof(bool), typeof(ServerProfile), new PropertyMetadata(false)); [IniFileEntry(IniFiles.GameUserSettings, IniSections.GUS_ServerSettings, ServerProfileCategory.Rules, "NoTributeDownloads", InvertBoolean = true)] public bool EnableTributeDownloads @@ -5373,6 +5382,7 @@ namespace ServerManagerTool.Lib this.ClearValue(EnableDifficultyOverrideProperty); this.ClearValue(OverrideOfficialDifficultyProperty); this.ClearValue(DifficultyOffsetProperty); + this.ClearValue(DestroyTamesOverLevelClampProperty); this.ClearValue(EnableTributeDownloadsProperty); this.ClearValue(PreventDownloadSurvivorsProperty); @@ -6055,6 +6065,7 @@ namespace ServerManagerTool.Lib this.SetValue(EnableDifficultyOverrideProperty, sourceProfile.EnableDifficultyOverride); this.SetValue(OverrideOfficialDifficultyProperty, sourceProfile.OverrideOfficialDifficulty); this.SetValue(DifficultyOffsetProperty, sourceProfile.DifficultyOffset); + this.SetValue(DestroyTamesOverLevelClampProperty, sourceProfile.DestroyTamesOverLevelClamp); this.SetValue(EnableTributeDownloadsProperty, sourceProfile.EnableTributeDownloads); this.SetValue(PreventDownloadSurvivorsProperty, sourceProfile.PreventDownloadSurvivors); diff --git a/src/ARKServerManager/VersionFeed.xml b/src/ARKServerManager/VersionFeed.xml index 3e95e098..462cf7ae 100644 --- a/src/ARKServerManager/VersionFeed.xml +++ b/src/ARKServerManager/VersionFeed.xml @@ -5,7 +5,30 @@ Ark Server Manager Version Feed This is the Ark Server Manager release version feed. - 2021-11-14T00:00:00Z + 2021-11-20T00:00:00Z + + + urn:uuid:79020463-01A7-466D-9B4A-1B14941C9C32 + 1.1.405 (1.1.405.1) + 1.1.405.1 + + 2021-11-20T00:00:00Z + +
+

+ NEW +
+

    +
  • Server Settings - Rules Section - added DestroyTamesOverLevelClamp setting.
  • +
+

+
+
+ + bletch + bletch1971@hotmail.com + +
urn:uuid:FE1BAB29-859F-4939-AC97-304772112929 diff --git a/src/ARKServerManager/VersionFeedBeta.xml b/src/ARKServerManager/VersionFeedBeta.xml index f3eef35b..21889653 100644 --- a/src/ARKServerManager/VersionFeedBeta.xml +++ b/src/ARKServerManager/VersionFeedBeta.xml @@ -5,21 +5,21 @@ Ark Server Manager Version Feed This is the Ark Server Manager beta version feed. - 2021-11-14T00:00:00Z + 2021-11-20T00:00:00Z - urn:uuid:FE1BAB29-859F-4939-AC97-304772112929 - 1.1.404 (1.1.404.1) - 1.1.404.1 + urn:uuid:79020463-01A7-466D-9B4A-1B14941C9C32 + 1.1.405 (1.1.405.1) + 1.1.405.1 - 2021-11-14T00:00:00Z + 2021-11-20T00:00:00Z

- BUGFIX + NEW

    -
  • RCON Window - Fixed the tribe name missing from the player list.
  • +
  • Server Settings - Rules Section - added DestroyTamesOverLevelClamp setting.

diff --git a/src/ARKServerManager/Windows/ServerSettingsControl.xaml b/src/ARKServerManager/Windows/ServerSettingsControl.xaml index fe51e001..ee1a66ab 100644 --- a/src/ARKServerManager/Windows/ServerSettingsControl.xaml +++ b/src/ARKServerManager/Windows/ServerSettingsControl.xaml @@ -1754,6 +1754,8 @@ + +