From 0d1aff213bb2a4add5101aea6947c89bdf40306e Mon Sep 17 00:00:00 2001 From: Lacoi Date: Wed, 2 Aug 2023 17:19:22 +0200 Subject: [PATCH] asm update default options --- src/ARKServerManager/Lib/ServerProfile.cs | 10 +++++----- .../Lib/ViewConverters/TributeExpirationConverter.cs | 4 ++-- .../UserControls/ServerSettingsControl.xaml | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/ARKServerManager/Lib/ServerProfile.cs b/src/ARKServerManager/Lib/ServerProfile.cs index f897eb29..1eff4e29 100644 --- a/src/ARKServerManager/Lib/ServerProfile.cs +++ b/src/ARKServerManager/Lib/ServerProfile.cs @@ -573,7 +573,7 @@ namespace ServerManagerTool.Lib set { SetValue(NotifyAdminCommandsInChatProperty, value); } } - public static readonly DependencyProperty MaxTribeLogsProperty = DependencyProperty.Register(nameof(MaxTribeLogs), typeof(int), typeof(ServerProfile), new PropertyMetadata(100)); + public static readonly DependencyProperty MaxTribeLogsProperty = DependencyProperty.Register(nameof(MaxTribeLogs), typeof(int), typeof(ServerProfile), new PropertyMetadata(400)); [IniFileEntry(IniFiles.Game, IniSections.Game_ShooterGameMode, ServerProfileCategory.Administration)] public int MaxTribeLogs { @@ -1309,7 +1309,7 @@ namespace ServerManagerTool.Lib set { SetValue(PreventUploadDinosProperty, value); } } - public static readonly DependencyProperty MaxTributeDinosProperty = DependencyProperty.Register(nameof(MaxTributeDinos), typeof(NullableValue), typeof(ServerProfile), new PropertyMetadata(new NullableValue(false, 50))); + public static readonly DependencyProperty MaxTributeDinosProperty = DependencyProperty.Register(nameof(MaxTributeDinos), typeof(NullableValue), typeof(ServerProfile), new PropertyMetadata(new NullableValue(false, 20))); [IniFileEntry(IniFiles.GameUserSettings, IniSections.GUS_ServerSettings, ServerProfileCategory.Rules)] public NullableValue MaxTributeDinos { @@ -1748,7 +1748,7 @@ namespace ServerManagerTool.Lib set { SetValue(UseCorpseLifeSpanMultiplierProperty, value); } } - public static readonly DependencyProperty GlobalPoweredBatteryDurabilityDecreasePerSecondProperty = DependencyProperty.Register(nameof(GlobalPoweredBatteryDurabilityDecreasePerSecond), typeof(float), typeof(ServerProfile), new PropertyMetadata(4.0f)); + public static readonly DependencyProperty GlobalPoweredBatteryDurabilityDecreasePerSecondProperty = DependencyProperty.Register(nameof(GlobalPoweredBatteryDurabilityDecreasePerSecond), typeof(float), typeof(ServerProfile), new PropertyMetadata(3.0f)); [IniFileEntry(IniFiles.Game, IniSections.Game_ShooterGameMode, ServerProfileCategory.Rules, WriteIfNotValue = 4.0f)] public float GlobalPoweredBatteryDurabilityDecreasePerSecond { @@ -1876,7 +1876,7 @@ namespace ServerManagerTool.Lib set { SetValue(EnableCryoSicknessPVEProperty, value); } } - public static readonly DependencyProperty MaxHexagonsPerCharacterProperty = DependencyProperty.Register(nameof(MaxHexagonsPerCharacter), typeof(int), typeof(ServerProfile), new PropertyMetadata(2500000)); + public static readonly DependencyProperty MaxHexagonsPerCharacterProperty = DependencyProperty.Register(nameof(MaxHexagonsPerCharacter), typeof(int), typeof(ServerProfile), new PropertyMetadata(2000000000)); [IniFileEntry(IniFiles.GameUserSettings, IniSections.GUS_ServerSettings, ServerProfileCategory.Rules)] public int MaxHexagonsPerCharacter { @@ -2444,7 +2444,7 @@ namespace ServerManagerTool.Lib set { SetValue(DisableDinoTamingProperty, value); } } - public static readonly DependencyProperty MaxTamedDinosProperty = DependencyProperty.Register(nameof(MaxTamedDinos), typeof(int), typeof(ServerProfile), new PropertyMetadata(4000)); + public static readonly DependencyProperty MaxTamedDinosProperty = DependencyProperty.Register(nameof(MaxTamedDinos), typeof(int), typeof(ServerProfile), new PropertyMetadata(5000)); [IniFileEntry(IniFiles.GameUserSettings, IniSections.GUS_ServerSettings, ServerProfileCategory.Dinos)] public int MaxTamedDinos { diff --git a/src/ARKServerManager/Lib/ViewConverters/TributeExpirationConverter.cs b/src/ARKServerManager/Lib/ViewConverters/TributeExpirationConverter.cs index b736fa4e..741df9fd 100644 --- a/src/ARKServerManager/Lib/ViewConverters/TributeExpirationConverter.cs +++ b/src/ARKServerManager/Lib/ViewConverters/TributeExpirationConverter.cs @@ -6,8 +6,8 @@ namespace ServerManagerTool.Lib.ViewModel { public class TributeExpirationConverter : IValueConverter { - public const int MIN_VALUE = 1; - public const int MAX_VALUE = 20000; + public const int MIN_VALUE = 0; + public const int MAX_VALUE = 525600; public object Convert(object value, Type targetType, object parameter, CultureInfo culture) { diff --git a/src/ARKServerManager/UserControls/ServerSettingsControl.xaml b/src/ARKServerManager/UserControls/ServerSettingsControl.xaml index 82e44a56..14549d7f 100644 --- a/src/ARKServerManager/UserControls/ServerSettingsControl.xaml +++ b/src/ARKServerManager/UserControls/ServerSettingsControl.xaml @@ -2206,7 +2206,7 @@ - +