Added new option to start the server windows minimzed.

This commit is contained in:
Brett Hewitson 2022-01-14 17:44:34 +10:00
parent 7c1ab95d58
commit d2ce321273
16 changed files with 108 additions and 8 deletions

View file

@ -873,6 +873,9 @@
<setting name="CheckIfServerManagerRunningOnStartup" serializeAs="String">
<value>True</value>
</setting>
<setting name="ServerStartMinimized" serializeAs="String">
<value>False</value>
</setting>
</ServerManagerTool.Config>
</userSettings>
</configuration>

View file

@ -3090,5 +3090,17 @@ namespace ServerManagerTool {
this["CheckIfServerManagerRunningOnStartup"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("False")]
public bool ServerStartMinimized {
get {
return ((bool)(this["ServerStartMinimized"]));
}
set {
this["ServerStartMinimized"] = value;
}
}
}
}

View file

@ -851,5 +851,8 @@
<Setting Name="CheckIfServerManagerRunningOnStartup" Type="System.Boolean" Scope="User">
<Value Profile="(Default)">True</Value>
</Setting>
<Setting Name="ServerStartMinimized" Type="System.Boolean" Scope="User">
<Value Profile="(Default)">False</Value>
</Setting>
</Settings>
</SettingsFile>

View file

@ -538,6 +538,8 @@
<sys:String x:Key="GlobalSettings_ValidateProfileOnServerStartTooltip">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.</sys:String>
<sys:String x:Key="GlobalSettings_ServerUpdateOnServerStartLabel">Perform server and mod update on server start</sys:String>
<sys:String x:Key="GlobalSettings_ServerUpdateOnServerStartTooltip">If enabled, when you manually start the server, the server and mod files will be updated to the latest version. NOTE: Will not be performed if Ark Mod Management enabled.</sys:String>
<sys:String x:Key="GlobalSettings_ServerStartMinimizedLabel">Start Server Minimized</sys:String>
<sys:String x:Key="GlobalSettings_ServerStartMinimizedTooltip">If enabled, when the server is started the command window will be minimized, otherwise it will open in normally.</sys:String>
<sys:String x:Key="GlobalSettings_SteamSettingsLabel">Steam Settings</sys:String>
<sys:String x:Key="GlobalSettings_SteamCmdRemoveQuitLabel">Stop SteamCMD closing (use for debugging only)</sys:String>

View file

@ -4360,6 +4360,11 @@ namespace ServerManagerTool.Lib
commandArgs.Append("start");
commandArgs.Append($" \"{this.ProfileName}\"");
if (Config.Default.ServerStartMinimized)
{
commandArgs.Append($" /min");
}
commandArgs.Append($" /{ProcessPriority}");
if (ProcessAffinity > 0 && ProcessUtils.IsProcessorAffinityValid(ProcessAffinity))
{

View file

@ -326,6 +326,7 @@
<CheckBox Grid.Row="0" Grid.Column="0" Margin="5,0,5,5" Content="{DynamicResource GlobalSettings_ValidateProfileOnServerStartLabel}" IsChecked="{Binding Config.ValidateProfileOnServerStart, Mode=TwoWay}" ToolTip="{DynamicResource GlobalSettings_ValidateProfileOnServerStartTooltip}" HorizontalAlignment="Left"/>
<CheckBox Grid.Row="0" Grid.Column="1" Grid.ColumnSpan="2" Margin="0,0,0,5" Content="{DynamicResource GlobalSettings_ServerUpdateOnServerStartLabel}" IsChecked="{Binding Config.ServerUpdate_OnServerStart, Mode=TwoWay}" ToolTip="{DynamicResource GlobalSettings_ServerUpdateOnServerStartTooltip}" HorizontalAlignment="Left"/>
<CheckBox Grid.Row="1" Grid.Column="0" Margin="5,0,5,5" Content="{DynamicResource GlobalSettings_ServerStartMinimizedLabel}" IsChecked="{Binding Config.ServerStartMinimized, Mode=TwoWay}" ToolTip="{DynamicResource GlobalSettings_ServerStartMinimizedTooltip}" HorizontalAlignment="Left"/>
</Grid>
</GroupBox>

View file

@ -9,8 +9,8 @@
<entry>
<id>urn:uuid:9B66118D-DDFE-4E72-9CB9-299642AD29FF</id>
<title>1.1.416 (1.1.416.2)</title>
<summary>1.1.416.2</summary>
<title>1.1.416 (1.1.416.3)</title>
<summary>1.1.416.3</summary>
<link href="" />
<updated>2022-01-14T00:00:00Z</updated>
<content type="xhtml">
@ -19,7 +19,8 @@
<u style="font-size: .9em;">CHANGE</u>
<br/>
<ul>
<li>Minor tweaks to the Auto-Update process to prevent intermittent exceptions.</li>
<li>Global Settings - Server Startup Options - Added new option to start the server windows minimzed.</li>
<li>Minor tweaks to the Auto-Update process to help prevent intermittent exceptions.</li>
<li>Server manager language will default to the computers language setting on first start, if possible.</li>
<li>pt-BR Translation file updated.</li>
<li>zh-CN Translation file updated.</li>

View file

@ -7,6 +7,29 @@
<link href="http://arkservermanager.freeforums.net/" />
<updated>2022-01-14T00:00:00Z</updated>
<entry>
<id>urn:uuid:E3D74FC6-9D7D-4EDC-98A4-5710880C8FD9</id>
<title>1.1.416 (1.1.416.3)</title>
<summary>1.1.416.3</summary>
<link href="" />
<updated>2022-01-14T00:00:00Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml" style="font-family: Arial, Verdana, Helvetica, Sans-Serif;font-size: .8em;">
<p>
<u style="font-size: .9em;">CHANGE</u>
<br/>
<ul>
<li>Global Settings - Server Startup Options - Added new option to start the server windows minimzed.</li>
</ul>
</p>
</div>
</content>
<author>
<name>bletch</name>
<email>bletch1971@hotmail.com</email>
</author>
</entry>
<entry>
<id>urn:uuid:0427B4A2-8C1A-426D-BCDB-ADBFF0A74825</id>
<title>1.1.416 (1.1.416.2)</title>
@ -43,7 +66,7 @@
<u style="font-size: .9em;">CHANGE</u>
<br/>
<ul>
<li>Minor tweaks to the Auto-Update process to prevent intermittent exceptions.</li>
<li>Minor tweaks to the Auto-Update process to help prevent intermittent exceptions.</li>
<li>zh-CN Translation file updated.</li>
</ul>
</p>

View file

@ -648,6 +648,9 @@
<setting name="CheckIfServerManagerRunningOnStartup" serializeAs="String">
<value>True</value>
</setting>
<setting name="ServerStartMinimized" serializeAs="String">
<value>False</value>
</setting>
</ServerManagerTool.Config>
</userSettings>
</configuration>

View file

@ -2273,5 +2273,17 @@ namespace ServerManagerTool {
this["CheckIfServerManagerRunningOnStartup"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("False")]
public bool ServerStartMinimized {
get {
return ((bool)(this["ServerStartMinimized"]));
}
set {
this["ServerStartMinimized"] = value;
}
}
}
}

View file

@ -626,5 +626,8 @@
<Setting Name="CheckIfServerManagerRunningOnStartup" Type="System.Boolean" Scope="User">
<Value Profile="(Default)">True</Value>
</Setting>
<Setting Name="ServerStartMinimized" Type="System.Boolean" Scope="User">
<Value Profile="(Default)">False</Value>
</Setting>
</Settings>
</SettingsFile>

View file

@ -699,6 +699,8 @@
<sys:String x:Key="GlobalSettings_ValidateProfileOnServerStartTooltip">If enabled, when you manually start the server, a basic validation is performed on the server and mod files.</sys:String>
<sys:String x:Key="GlobalSettings_ServerUpdateOnServerStartLabel">Perform server and mod update on server start</sys:String>
<sys:String x:Key="GlobalSettings_ServerUpdateOnServerStartTooltip">If enabled, when you manually start the server, the server and mod files will be updated to the latest version.</sys:String>
<sys:String x:Key="GlobalSettings_ServerStartMinimizedLabel">Start Server Minimized</sys:String>
<sys:String x:Key="GlobalSettings_ServerStartMinimizedTooltip">If enabled, when the server is started the command window will be minimized, otherwise it will open in normally.</sys:String>
<sys:String x:Key="GlobalSettings_SteamSettingsLabel">Steam Settings</sys:String>
<sys:String x:Key="GlobalSettings_SteamCmdRemoveQuitLabel">Stop SteamCMD closing (use for debugging only)</sys:String>

View file

@ -1085,6 +1085,11 @@ namespace ServerManagerTool.Lib
commandArgs.Append("start");
commandArgs.Append($" \"{this.ProfileName}\"");
if (Config.Default.ServerStartMinimized)
{
commandArgs.Append($" /min");
}
commandArgs.Append($" /{ProcessPriority}");
if (ProcessAffinity > 0 && ProcessUtils.IsProcessorAffinityValid(ProcessAffinity))
{

View file

@ -277,6 +277,7 @@
<CheckBox Grid.Row="0" Grid.Column="0" Margin="5,0,5,5" Content="{DynamicResource GlobalSettings_ValidateProfileOnServerStartLabel}" IsChecked="{Binding Config.ValidateProfileOnServerStart, Mode=TwoWay}" ToolTip="{DynamicResource GlobalSettings_ValidateProfileOnServerStartTooltip}" HorizontalAlignment="Left"/>
<CheckBox Grid.Row="0" Grid.Column="1" Grid.ColumnSpan="2" Margin="0,0,0,5" Content="{DynamicResource GlobalSettings_ServerUpdateOnServerStartLabel}" IsChecked="{Binding Config.ServerUpdate_OnServerStart, Mode=TwoWay}" ToolTip="{DynamicResource GlobalSettings_ServerUpdateOnServerStartTooltip}" HorizontalAlignment="Left"/>
<CheckBox Grid.Row="1" Grid.Column="0" Margin="5,0,5,5" Content="{DynamicResource GlobalSettings_ServerStartMinimizedLabel}" IsChecked="{Binding Config.ServerStartMinimized, Mode=TwoWay}" ToolTip="{DynamicResource GlobalSettings_ServerStartMinimizedTooltip}" HorizontalAlignment="Left"/>
</Grid>
</GroupBox>

View file

@ -9,8 +9,8 @@
<entry>
<id>urn:uuid:189B95FA-8ACA-4E37-9A34-443B6C5E27EE</id>
<title>1.1.61 (1.1.61.2)</title>
<summary>1.1.61.2</summary>
<title>1.1.61 (1.1.61.3)</title>
<summary>1.1.61.3</summary>
<link href="" />
<updated>2022-01-14T00:00:00Z</updated>
<content type="xhtml">
@ -19,7 +19,8 @@
<u style="font-size: .9em;">CHANGE</u>
<br/>
<ul>
<li>Minor tweaks to the Auto-Update process to prevent intermittent exceptions.</li>
<li>Global Settings - Server Startup Options - Added new option to start the server windows minimzed.</li>
<li>Minor tweaks to the Auto-Update process to help prevent intermittent exceptions.</li>
<li>Server manager language will default to the computers language setting on first start, if possible.</li>
</ul>
</p>

View file

@ -7,6 +7,29 @@
<link href="http://servermanagers.freeforums.net/" />
<updated>2022-01-14T00:00:00Z</updated>
<entry>
<id>urn:uuid:BF3FA549-5DC9-4576-B225-6D8519ED3B98</id>
<title>1.1.61 (1.1.61.3)</title>
<summary>1.1.61.3</summary>
<link href="" />
<updated>2022-01-14T00:00:00Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml" style="font-family: Arial, Verdana, Helvetica, Sans-Serif;font-size: .8em;">
<p>
<u style="font-size: .9em;">CHANGE</u>
<br/>
<ul>
<li>Global Settings - Server Startup Options - Added new option to start the server windows minimzed.</li>
</ul>
</p>
</div>
</content>
<author>
<name>bletch</name>
<email>bletch1971@hotmail.com</email>
</author>
</entry>
<entry>
<id>urn:uuid:16704347-28FE-41BD-9913-465982E6C3C3</id>
<title>1.1.61 (1.1.61.2)</title>
@ -42,7 +65,7 @@
<u style="font-size: .9em;">CHANGE</u>
<br/>
<ul>
<li>Minor tweaks to the Auto-Update process to prevent intermittent exceptions.</li>
<li>Minor tweaks to the Auto-Update process to help prevent intermittent exceptions.</li>
</ul>
</p>
</div>