mirror of
https://github.com/tribufu/ServerManagers
synced 2026-05-06 15:17:34 +00:00
Server Log Option
This commit is contained in:
parent
aee6a394fe
commit
3d606835ea
12 changed files with 50 additions and 6 deletions
|
|
@ -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>
|
||||
|
|
|
|||
2
src/ARKServerManager/Config.Designer.cs
generated
2
src/ARKServerManager/Config.Designer.cs
generated
|
|
@ -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"]));
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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}"/>
|
||||
|
|
|
|||
|
|
@ -243,7 +243,7 @@
|
|||
<value>whitelist.txt</value>
|
||||
</setting>
|
||||
<setting name="ServerCommandLineStandardArgs" serializeAs="String">
|
||||
<value>-listen -nosteamclient -game -server -log</value>
|
||||
<value>-listen -nosteamclient -game -server</value>
|
||||
</setting>
|
||||
<setting name="GameDataUrl" serializeAs="String">
|
||||
<value>https://servermanagers.freeforums.net/</value>
|
||||
|
|
|
|||
2
src/ConanServerManager/Config.Designer.cs
generated
2
src/ConanServerManager/Config.Designer.cs
generated
|
|
@ -1671,7 +1671,7 @@ namespace ServerManagerTool {
|
|||
|
||||
[global::System.Configuration.ApplicationScopedSettingAttribute()]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.Configuration.DefaultSettingValueAttribute("-listen -nosteamclient -game -server -log")]
|
||||
[global::System.Configuration.DefaultSettingValueAttribute("-listen -nosteamclient -game -server")]
|
||||
public string ServerCommandLineStandardArgs {
|
||||
get {
|
||||
return ((string)(this["ServerCommandLineStandardArgs"]));
|
||||
|
|
|
|||
|
|
@ -468,7 +468,7 @@
|
|||
<Value Profile="(Default)">whitelist.txt</Value>
|
||||
</Setting>
|
||||
<Setting Name="ServerCommandLineStandardArgs" Type="System.String" Scope="Application">
|
||||
<Value Profile="(Default)">-listen -nosteamclient -game -server -log</Value>
|
||||
<Value Profile="(Default)">-listen -nosteamclient -game -server</Value>
|
||||
</Setting>
|
||||
<Setting Name="AutoUpdate_SequencialDelayPeriod" Type="System.Int32" Scope="User">
|
||||
<Value Profile="(Default)">10</Value>
|
||||
|
|
|
|||
|
|
@ -1198,6 +1198,8 @@
|
|||
<sys:String x:Key="ServerSettings_ServerTransferEnabledTooltip">If enabled, will enable character server transfers.</sys:String>
|
||||
<sys:String x:Key="ServerSettings_CanImportDirectlyFromSameServerLabel">Can Import Directly from Same Server</sys:String>
|
||||
<sys:String x:Key="ServerSettings_CanImportDirectlyFromSameServerTooltip">If enabled, will allow players to directly import characters that were exported from exactly the same server.</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_CommandLineLabel">Command Line</sys:String>
|
||||
<sys:String x:Key="ServerSettings_ProcessPriorityLabel">Priority:</sys:String>
|
||||
|
|
|
|||
|
|
@ -396,6 +396,14 @@ namespace ServerManagerTool.Lib
|
|||
set { SetValue(CanImportDirectlyFromSameServerProperty, 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 ProcessPriorityProperty = DependencyProperty.Register(nameof(ProcessPriority), typeof(string), typeof(ServerProfile), new PropertyMetadata("normal"));
|
||||
[DataMember]
|
||||
public string ProcessPriority
|
||||
|
|
@ -868,6 +876,11 @@ namespace ServerManagerTool.Lib
|
|||
serverArgs.Append(" ");
|
||||
serverArgs.Append(Config.Default.ServerCommandLineStandardArgs);
|
||||
|
||||
if (this.OutputServerLog)
|
||||
{
|
||||
serverArgs.Append($" -log");
|
||||
}
|
||||
|
||||
return serverArgs.ToString();
|
||||
}
|
||||
|
||||
|
|
@ -1481,6 +1494,10 @@ namespace ServerManagerTool.Lib
|
|||
|
||||
this.ClearValue(KickIdlePlayersPercentageProperty);
|
||||
this.ClearValue(KickIdlePlayersPeriodProperty);
|
||||
|
||||
this.ClearValue(ServerTransferEnabledProperty);
|
||||
this.ClearValue(CanImportDirectlyFromSameServerProperty);
|
||||
this.ClearValue(OutputServerLogProperty);
|
||||
}
|
||||
|
||||
// section reset methods
|
||||
|
|
@ -1580,6 +1597,10 @@ namespace ServerManagerTool.Lib
|
|||
this.SetValue(KickIdlePlayersPercentageProperty, sourceProfile.KickIdlePlayersPercentage);
|
||||
this.SetValue(KickIdlePlayersPeriodProperty, sourceProfile.KickIdlePlayersPeriod);
|
||||
|
||||
this.SetValue(ServerTransferEnabledProperty, sourceProfile.ServerTransferEnabled);
|
||||
this.SetValue(CanImportDirectlyFromSameServerProperty, sourceProfile.CanImportDirectlyFromSameServer);
|
||||
this.SetValue(OutputServerLogProperty, sourceProfile.OutputServerLog);
|
||||
|
||||
this.SetValue(LauncherArgsOverrideProperty, sourceProfile.LauncherArgsOverride);
|
||||
this.SetValue(LauncherArgsProperty, sourceProfile.LauncherArgs);
|
||||
this.SetValue(AdditionalArgsProperty, sourceProfile.AdditionalArgs);
|
||||
|
|
|
|||
|
|
@ -772,6 +772,7 @@
|
|||
<RowDefinition/>
|
||||
<RowDefinition/>
|
||||
<RowDefinition/>
|
||||
<RowDefinition/>
|
||||
</Grid.RowDefinitions>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="Auto" MinWidth="100"/>
|
||||
|
|
@ -797,6 +798,8 @@
|
|||
|
||||
<CheckBox Grid.Row="4" Grid.Column="0" Grid.ColumnSpan="2" Margin="5,5,5,0" Content="{DynamicResource ServerSettings_ServerTransferEnabledLabel}" IsChecked="{Binding ServerTransferEnabled}" VerticalAlignment="Center" ToolTip="{DynamicResource ServerSettings_ServerTransferEnabledTooltip}" HorizontalAlignment="Left"/>
|
||||
<CheckBox Grid.Row="4" Grid.Column="2" Grid.ColumnSpan="2" Margin="5,5,5,0" Content="{DynamicResource ServerSettings_CanImportDirectlyFromSameServerLabel}" IsChecked="{Binding CanImportDirectlyFromSameServer}" VerticalAlignment="Center" ToolTip="{DynamicResource ServerSettings_CanImportDirectlyFromSameServerTooltip}" HorizontalAlignment="Left"/>
|
||||
|
||||
<CheckBox Grid.Row="5" Grid.Column="0" Grid.ColumnSpan="2" Margin="5,5,5,0" Content="{DynamicResource ServerSettings_OutputServerLogLabel}" IsChecked="{Binding OutputServerLog}" VerticalAlignment="Center" ToolTip="{DynamicResource ServerSettings_OutputServerLogTooltip}" HorizontalAlignment="Left"/>
|
||||
</Grid>
|
||||
</GroupBox>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue