Server Log Option

This commit is contained in:
Brett Hewitson 2022-05-21 12:27:51 +10:00
parent aee6a394fe
commit 3d606835ea
12 changed files with 50 additions and 6 deletions

View file

@ -57,7 +57,7 @@
<value>?QueryPort={0}</value>
</setting>
<setting name="ServerCommandLineStandardArgs" serializeAs="String">
<value>-nosteamclient -game -server -log</value>
<value>-nosteamclient -game -server</value>
</setting>
<setting name="ProfilesDir" serializeAs="String">
<value>Profiles</value>

View file

@ -154,7 +154,7 @@ namespace ServerManagerTool {
[global::System.Configuration.ApplicationScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("-nosteamclient -game -server -log")]
[global::System.Configuration.DefaultSettingValueAttribute("-nosteamclient -game -server")]
public string ServerCommandLineStandardArgs {
get {
return ((string)(this["ServerCommandLineStandardArgs"]));

View file

@ -45,7 +45,7 @@
<Value Profile="(Default)">?QueryPort={0}</Value>
</Setting>
<Setting Name="ServerCommandLineStandardArgs" Type="System.String" Scope="Application">
<Value Profile="(Default)">-nosteamclient -game -server -log</Value>
<Value Profile="(Default)">-nosteamclient -game -server</Value>
</Setting>
<Setting Name="ProfilesDir" Type="System.String" Scope="Application">
<Value Profile="(Default)">Profiles</Value>

View file

@ -1171,6 +1171,8 @@
<sys:String x:Key="ServerSettings_UseBattlEyeLabel">Enable BattlEye Anti-Cheat System</sys:String>
<sys:String x:Key="ServerSettings_UseBattlEyeTooltip">If enabled, the BattlEye Anti-Cheat System will be enabled.</sys:String>
<sys:String x:Key="ServerSettings_AntiSpeedHackBiasUnits">x</sys:String>
<sys:String x:Key="ServerSettings_OutputServerLogLabel">Output Server Log to Server Console</sys:String>
<sys:String x:Key="ServerSettings_OutputServerLogTooltip">If enabled, the server logs will be output to the server console.</sys:String>
<sys:String x:Key="ServerSettings_UseAllAvailableCoresLabel">Use All Available Cores</sys:String>
<sys:String x:Key="ServerSettings_UseAllAvailableCoresTooltip">If enabled, all of your CPU cores will be used, if all of them are not being utilized after using this launch option, then try to disable it.</sys:String>
<sys:String x:Key="ServerSettings_UseCacheLabel">Use Cache</sys:String>

View file

@ -724,6 +724,14 @@ namespace ServerManagerTool.Lib
set { SetValue(UseVivoxProperty, value); }
}
public static readonly DependencyProperty OutputServerLogProperty = DependencyProperty.Register(nameof(OutputServerLog), typeof(bool), typeof(ServerProfile), new PropertyMetadata(true));
[DataMember]
public bool OutputServerLog
{
get { return (bool)GetValue(OutputServerLogProperty); }
set { SetValue(OutputServerLogProperty, value); }
}
public static readonly DependencyProperty AllowSharedConnectionsProperty = DependencyProperty.Register(nameof(AllowSharedConnections), typeof(bool), typeof(ServerProfile), new PropertyMetadata(true));
[IniFileEntry(IniFiles.GameUserSettings, IniSections.GUS_ServerSettings, ServerProfileCategory.Administration)]
public bool AllowSharedConnections
@ -4002,6 +4010,11 @@ namespace ServerManagerTool.Lib
serverArgs.Append(' ');
serverArgs.Append(Config.Default.ServerCommandLineStandardArgs);
if (this.OutputServerLog)
{
serverArgs.Append($" -log");
}
return serverArgs.ToString();
}
@ -5217,6 +5230,7 @@ namespace ServerManagerTool.Lib
this.ClearValue(CrossplayProperty);
this.ClearValue(EpicOnlyProperty);
this.ClearValue(EnablePublicIPForEpicProperty);
this.ClearValue(OutputServerLogProperty);
this.ClearValue(AltSaveDirectoryNameProperty);
this.ClearValue(CrossArkClusterIdProperty);
@ -5874,6 +5888,7 @@ namespace ServerManagerTool.Lib
this.SetValue(CrossplayProperty, sourceProfile.Crossplay);
this.SetValue(EpicOnlyProperty, sourceProfile.EpicOnly);
this.SetValue(EnablePublicIPForEpicProperty, sourceProfile.EnablePublicIPForEpic);
this.SetValue(OutputServerLogProperty, sourceProfile.OutputServerLog);
//this.SetValue(AltSaveDirectoryNameProperty, sourceProfile.AltSaveDirectoryName);
this.SetValue(CrossArkClusterIdProperty, sourceProfile.CrossArkClusterId);
this.SetValue(ClusterDirOverrideProperty, sourceProfile.ClusterDirOverride);

View file

@ -1016,6 +1016,7 @@
<CheckBox Grid.Row="2" Grid.Column="0" Margin="5,5,5,0" Grid.ColumnSpan="2" IsChecked="{Binding DisableValveAntiCheatSystem}" Content="{DynamicResource ServerSettings_DisableVACLabel}" VerticalAlignment="Center" HorizontalAlignment="Left" ToolTip="{DynamicResource ServerSettings_DisableVACTooltip}"/>
<CheckBox Grid.Row="3" Grid.Column="0" Margin="5,5,5,0" Grid.ColumnSpan="2" IsChecked="{Binding UseBattlEye}" Content="{DynamicResource ServerSettings_UseBattlEyeLabel}" VerticalAlignment="Center" HorizontalAlignment="Left" ToolTip="{DynamicResource ServerSettings_UseBattlEyeTooltip}"/>
<CheckBox Grid.Row="4" Grid.Column="0" Margin="5,5,5,0" Grid.ColumnSpan="2" IsChecked="{Binding DisablePlayerMovePhysicsOptimization}" Content="{DynamicResource ServerSettings_DisablePMVOptimizationLabel}" VerticalAlignment="Center" HorizontalAlignment="Left" ToolTip="{DynamicResource ServerSettings_DisablePMVOptimizationTooltip}"/>
<CheckBox Grid.Row="5" Grid.Column="0" Margin="5,5,5,0" Grid.ColumnSpan="2" IsChecked="{Binding OutputServerLog}" Content="{DynamicResource ServerSettings_OutputServerLogLabel}" VerticalAlignment="Center" HorizontalAlignment="Left" ToolTip="{DynamicResource ServerSettings_OutputServerLogTooltip}"/>
<CheckBox Grid.Row="6" Grid.Column="0" Margin="5,5,5,0" Grid.ColumnSpan="2" IsChecked="{Binding UseAllAvailableCores}" Content="{DynamicResource ServerSettings_UseAllAvailableCoresLabel}" VerticalAlignment="Center" HorizontalAlignment="Left" ToolTip="{DynamicResource ServerSettings_UseAllAvailableCoresTooltip}"/>
<CheckBox Grid.Row="7" Grid.Column="0" Margin="5,5,5,0" Grid.ColumnSpan="2" IsChecked="{Binding UseCache}" Content="{DynamicResource ServerSettings_UseCacheLabel}" VerticalAlignment="Center" HorizontalAlignment="Left" ToolTip="{DynamicResource ServerSettings_UseCacheTooltip}"/>
<CheckBox Grid.Row="8" Grid.Column="0" Margin="5,5,5,0" Grid.ColumnSpan="2" IsChecked="{Binding UseNoHangDetection}" Content="{DynamicResource ServerSettings_UseNoHangDetectionLabel}" VerticalAlignment="Center" HorizontalAlignment="Left" ToolTip="{DynamicResource ServerSettings_UseNoHangDetectionTooltip}"/>