Added prefix launcher option to launcher arguments.

This commit is contained in:
Brett Hewitson 2022-01-25 12:26:03 +10:00
parent dd69808b24
commit 09938ce932
11 changed files with 122 additions and 228 deletions

View file

@ -1213,6 +1213,8 @@
<sys:String x:Key="ServerSettings_LauncherArgsTooltip">Additional command-line args for the server launcher. Use this with caution! For more information search 'Microsoft Start Command' on the internet.</sys:String>
<sys:String x:Key="ServerSettings_LauncherArgsOverrideLabel">Override Launcher</sys:String>
<sys:String x:Key="ServerSettings_LauncherArgsOverrideTooltip">If enabled, the RunServer.cmd file will only contain what is included in the Launcher Args field.</sys:String>
<sys:String x:Key="ServerSettings_LauncherArgsPrefixLabel">Prefix Launcher</sys:String>
<sys:String x:Key="ServerSettings_LauncherArgsPrefixTooltip">If enabled, the RunServer.cmd file will include the Launcher Args field before the server start (will allow other files to be executed before the server is started).</sys:String>
<sys:String x:Key="ServerSettings_ServerArgsLabel">Server Args:</sys:String>
<sys:String x:Key="ServerSettings_ServerArgsTooltip">Additional command-line args for the server. If you specify this, add the args which start with ?'s first, followed by any other args. For example: ?MaxPlayers=5?QueryPort=9999 -nosteamclient</sys:String>
<sys:String x:Key="ServerSettings_ShowCommandButtonLabel">Show Command...</sys:String>

View file

@ -828,6 +828,14 @@ namespace ServerManagerTool.Lib
set { SetValue(AdditionalArgsProperty, value); }
}
public static readonly DependencyProperty LauncherArgsProperty = DependencyProperty.Register(nameof(LauncherArgs), typeof(string), typeof(ServerProfile), new PropertyMetadata(String.Empty));
[DataMember]
public string LauncherArgs
{
get { return (string)GetValue(LauncherArgsProperty); }
set { SetValue(LauncherArgsProperty, value); }
}
public static readonly DependencyProperty LauncherArgsOverrideProperty = DependencyProperty.Register(nameof(LauncherArgsOverride), typeof(bool), typeof(ServerProfile), new PropertyMetadata(false));
[DataMember]
public bool LauncherArgsOverride
@ -836,12 +844,12 @@ namespace ServerManagerTool.Lib
set { SetValue(LauncherArgsOverrideProperty, value); }
}
public static readonly DependencyProperty LauncherArgsProperty = DependencyProperty.Register(nameof(LauncherArgs), typeof(string), typeof(ServerProfile), new PropertyMetadata(String.Empty));
public static readonly DependencyProperty LauncherArgsPrefixProperty = DependencyProperty.Register(nameof(LauncherArgsPrefix), typeof(bool), typeof(ServerProfile), new PropertyMetadata(false));
[DataMember]
public string LauncherArgs
public bool LauncherArgsPrefix
{
get { return (string)GetValue(LauncherArgsProperty); }
set { SetValue(LauncherArgsProperty, value); }
get { return (bool)GetValue(LauncherArgsPrefixProperty); }
set { SetValue(LauncherArgsPrefixProperty, value); }
}
#endregion
@ -3488,7 +3496,7 @@ namespace ServerManagerTool.Lib
private void CheckLauncherArgs()
{
// do not process if overriding the launcher args
if (this.LauncherArgsOverride)
if (this.LauncherArgsOverride || this.LauncherArgsPrefix)
return;
var launcherArgs = LauncherArgs?.ToLower() ?? string.Empty;
@ -4357,6 +4365,11 @@ namespace ServerManagerTool.Lib
}
else
{
if (this.LauncherArgsPrefix && !string.IsNullOrWhiteSpace(this.LauncherArgs))
{
commandArgs.AppendLine(this.LauncherArgs);
}
commandArgs.Append("start");
commandArgs.Append($" \"{this.ProfileName}\"");

View file

@ -1366,6 +1366,7 @@
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" MinWidth="100"/>
@ -1384,11 +1385,13 @@
<Label Grid.Row="1" Grid.Column="0" Content="{DynamicResource ServerSettings_LauncherArgsLabel}" VerticalAlignment="Center" ToolTip="{DynamicResource ServerSettings_LauncherArgsTooltip}"/>
<TextBox Grid.Row="1" Grid.Column="1" Grid.ColumnSpan="3" Margin="1" Text="{Binding LauncherArgs}" VerticalContentAlignment="Center" ToolTip="{DynamicResource ServerSettings_LauncherArgsTooltip}"/>
<CheckBox Grid.Row="1" Grid.Column="4" Margin="5,0,0,0" IsChecked="{Binding LauncherArgsOverride}" Content="{DynamicResource ServerSettings_LauncherArgsOverrideLabel}" ToolTip="{DynamicResource ServerSettings_LauncherArgsOverrideTooltip}" VerticalAlignment="Center" HorizontalAlignment="Left"/>
<CheckBox Grid.Row="2" Grid.Column="1" Margin="1" IsChecked="{Binding LauncherArgsOverride}" Content="{DynamicResource ServerSettings_LauncherArgsOverrideLabel}" ToolTip="{DynamicResource ServerSettings_LauncherArgsOverrideTooltip}" VerticalAlignment="Center" HorizontalAlignment="Left"/>
<CheckBox Grid.Row="2" Grid.Column="2" Grid.ColumnSpan="2" Margin="1" IsChecked="{Binding LauncherArgsPrefix}" IsEnabled="{Binding LauncherArgsOverride, Converter={StaticResource InvertBooleanConverter}}" Content="{DynamicResource ServerSettings_LauncherArgsPrefixLabel}" ToolTip="{DynamicResource ServerSettings_LauncherArgsPrefixTooltip}" VerticalAlignment="Center" HorizontalAlignment="Left"/>
<Label Grid.Row="2" Grid.Column="0" Content="{DynamicResource ServerSettings_ServerArgsLabel}" VerticalAlignment="Center" ToolTip="{DynamicResource ServerSettings_ServerArgsTooltip}"/>
<TextBox Grid.Row="2" Grid.Column="1" Grid.ColumnSpan="3" Margin="1" Text="{Binding AdditionalArgs}" VerticalContentAlignment="Center" ToolTip="{DynamicResource ServerSettings_ServerArgsTooltip}"/>
<Button Grid.Row="2" Grid.Column="4" Margin="1" Content="{StaticResource ShowCmdButtonContent}" ToolTip="{DynamicResource ServerSettings_ShowCommandButtonTooltip}" Click="ShowCmd_Click"/>
<Label Grid.Row="3" Grid.Column="0" Content="{DynamicResource ServerSettings_ServerArgsLabel}" VerticalAlignment="Center" ToolTip="{DynamicResource ServerSettings_ServerArgsTooltip}"/>
<TextBox Grid.Row="3" Grid.Column="1" Grid.ColumnSpan="3" Margin="1" Text="{Binding AdditionalArgs}" VerticalContentAlignment="Center" ToolTip="{DynamicResource ServerSettings_ServerArgsTooltip}"/>
<Button Grid.Row="3" Grid.Column="4" Margin="1" Content="{StaticResource ShowCmdButtonContent}" ToolTip="{DynamicResource ServerSettings_ShowCommandButtonTooltip}" Click="ShowCmd_Click"/>
</Grid>
</GroupBox>
</Grid>

View file

@ -5,7 +5,30 @@
<title>Ark Server Manager Version Feed</title>
<subtitle>This is the Ark Server Manager release version feed.</subtitle>
<link href="http://arkservermanager.freeforums.net/" />
<updated>2022-01-20T00:00:00Z</updated>
<updated>2022-01-25T00:00:00Z</updated>
<entry>
<id>urn:uuid:65FE9F13-6403-4A18-A8DB-366564B0456E</id>
<title>1.1.417 (1.1.417.1)</title>
<summary>1.1.417.1</summary>
<link href="" />
<updated>2022-01-25T00: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>Added prefix launcher option to launcher arguments.</li>
</ul>
</p>
</div>
</content>
<author>
<name>bletch</name>
<email>bletch1971@hotmail.com</email>
</author>
</entry>
<entry>
<id>urn:uuid:9B66118D-DDFE-4E72-9CB9-299642AD29FF</id>

View file

@ -5,144 +5,21 @@
<title>Ark Server Manager Version Feed</title>
<subtitle>This is the Ark Server Manager beta version feed.</subtitle>
<link href="http://arkservermanager.freeforums.net/" />
<updated>2022-01-20T00:00:00Z</updated>
<updated>2022-01-25T00:00:00Z</updated>
<entry>
<id>urn:uuid:A14B2CF5-071F-41F6-BA00-FA1F08FFA774</id>
<title>1.1.416 (1.1.416.6)</title>
<summary>1.1.416.6</summary>
<id>urn:uuid:65FE9F13-6403-4A18-A8DB-366564B0456E</id>
<title>1.1.417 (1.1.417.1)</title>
<summary>1.1.417.1</summary>
<link href="" />
<updated>2022-01-20T00: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;">BUGFIX</u>
<br/>
<ul>
<li>Fixed bug when pasting ini config into paste window, resulting in blank record.</li>
</ul>
</p>
</div>
</content>
<author>
<name>bletch</name>
<email>bletch1971@hotmail.com</email>
</author>
</entry>
<entry>
<id>urn:uuid:6C7B39A6-5705-48D7-815A-E5CA5721C61F</id>
<title>1.1.416 (1.1.416.5)</title>
<summary>1.1.416.5</summary>
<link href="" />
<updated>2022-01-19T00: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;">BUGFIX</u>
<br/>
<ul>
<li>Fixed player and dino level import bug.</li>
</ul>
<u style="font-size: .9em;">CHANGE</u>
<br/>
<ul>
<li>ru-RU Translation file updated.</li>
<li>zh-CN Translation file updated.</li>
</ul>
</p>
</div>
</content>
<author>
<name>bletch</name>
<email>bletch1971@hotmail.com</email>
</author>
</entry>
<entry>
<id>urn:uuid:749504F4-6DF8-4FB6-B3C2-61F6758E1124</id>
<title>1.1.416 (1.1.416.4)</title>
<summary>1.1.416.4</summary>
<link href="" />
<updated>2022-01-15T00:00:00Z</updated>
<updated>2022-01-25T00: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>fr-FR Translation file updated.</li>
</ul>
</p>
</div>
</content>
<author>
<name>bletch</name>
<email>bletch1971@hotmail.com</email>
</author>
</entry>
<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>
<summary>1.1.416.2</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>Server manager language will default to the computers language setting on first start, if possible.</li>
<li>pt-BR Translation file updated.</li>
</ul>
</p>
</div>
</content>
<author>
<name>bletch</name>
<email>bletch1971@hotmail.com</email>
</author>
</entry>
<entry>
<id>urn:uuid:9B66118D-DDFE-4E72-9CB9-299642AD29FF</id>
<title>1.1.416 (1.1.416.1)</title>
<summary>1.1.416.1</summary>
<link href="" />
<updated>2022-01-05T00: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>Minor tweaks to the Auto-Update process to help prevent intermittent exceptions.</li>
<li>zh-CN Translation file updated.</li>
<li>Added prefix launcher option to launcher arguments.</li>
</ul>
</p>
</div>

View file

@ -1153,6 +1153,8 @@
<sys:String x:Key="ServerSettings_LauncherArgsTooltip">Additional command-line args for the server launcher. Use this with caution! For more information search 'Microsoft Start Command' on the internet.</sys:String>
<sys:String x:Key="ServerSettings_LauncherArgsOverrideLabel">Override Launcher</sys:String>
<sys:String x:Key="ServerSettings_LauncherArgsOverrideTooltip">If enabled, the RunServer.cmd file will only contain what is included in the Launcher Args field.</sys:String>
<sys:String x:Key="ServerSettings_LauncherArgsPrefixLabel">Prefix Launcher</sys:String>
<sys:String x:Key="ServerSettings_LauncherArgsPrefixTooltip">If enabled, the RunServer.cmd file will include the Launcher Args field before the server start (will allow other files to be executed before the server is started).</sys:String>
<sys:String x:Key="ServerSettings_ServerArgsLabel">Server Args:</sys:String>
<sys:String x:Key="ServerSettings_ServerArgsTooltip">Additional command-line args for the server. If you specify this, add the args which start with ?'s first, followed by any other args. For example: ?MaxPlayers=5?QueryPort=9999 -nosteamclient</sys:String>
<sys:String x:Key="ServerSettings_ShowCommandButtonLabel">Show Command...</sys:String>

View file

@ -436,6 +436,14 @@ namespace ServerManagerTool.Lib
set { SetValue(AdditionalArgsProperty, value); }
}
public static readonly DependencyProperty LauncherArgsProperty = DependencyProperty.Register(nameof(LauncherArgs), typeof(string), typeof(ServerProfile), new PropertyMetadata(String.Empty));
[DataMember]
public string LauncherArgs
{
get { return (string)GetValue(LauncherArgsProperty); }
set { SetValue(LauncherArgsProperty, value); }
}
public static readonly DependencyProperty LauncherArgsOverrideProperty = DependencyProperty.Register(nameof(LauncherArgsOverride), typeof(bool), typeof(ServerProfile), new PropertyMetadata(false));
[DataMember]
public bool LauncherArgsOverride
@ -444,12 +452,12 @@ namespace ServerManagerTool.Lib
set { SetValue(LauncherArgsOverrideProperty, value); }
}
public static readonly DependencyProperty LauncherArgsProperty = DependencyProperty.Register(nameof(LauncherArgs), typeof(string), typeof(ServerProfile), new PropertyMetadata(String.Empty));
public static readonly DependencyProperty LauncherArgsPrefixProperty = DependencyProperty.Register(nameof(LauncherArgsPrefix), typeof(bool), typeof(ServerProfile), new PropertyMetadata(false));
[DataMember]
public string LauncherArgs
public bool LauncherArgsPrefix
{
get { return (string)GetValue(LauncherArgsProperty); }
set { SetValue(LauncherArgsProperty, value); }
get { return (bool)GetValue(LauncherArgsPrefixProperty); }
set { SetValue(LauncherArgsPrefixProperty, value); }
}
#endregion
@ -703,7 +711,7 @@ namespace ServerManagerTool.Lib
private void CheckLauncherArgs()
{
// do not process if overriding the launcher args
if (this.LauncherArgsOverride)
if (this.LauncherArgsOverride || this.LauncherArgsPrefix)
return;
var launcherArgs = LauncherArgs?.ToLower() ?? string.Empty;
@ -1078,9 +1086,10 @@ namespace ServerManagerTool.Lib
}
else
{
var drive = Path.GetPathRoot(this.InstallDirectory);
drive = drive.Replace(Path.DirectorySeparatorChar.ToString(), string.Empty);
drive = drive.Replace(Path.AltDirectorySeparatorChar.ToString(), string.Empty);
if (this.LauncherArgsPrefix && !string.IsNullOrWhiteSpace(this.LauncherArgs))
{
commandArgs.AppendLine(this.LauncherArgs);
}
commandArgs.Append("start");
commandArgs.Append($" \"{this.ProfileName}\"");
@ -1093,7 +1102,7 @@ namespace ServerManagerTool.Lib
commandArgs.Append($" /{ProcessPriority}");
if (ProcessAffinity > 0 && ProcessUtils.IsProcessorAffinityValid(ProcessAffinity))
{
commandArgs.Append($" /affinity {ProcessAffinity.ToString("X")}");
commandArgs.Append($" /affinity {ProcessAffinity:X}");
}
if (!string.IsNullOrWhiteSpace(this.LauncherArgs))

View file

@ -857,6 +857,7 @@
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" MinWidth="100"/>
@ -875,11 +876,13 @@
<Label Grid.Row="1" Grid.Column="0" VerticalAlignment="Center" Content="{DynamicResource ServerSettings_LauncherArgsLabel}" ToolTip="{DynamicResource ServerSettings_LauncherArgsTooltip}"/>
<TextBox Grid.Row="1" Grid.Column="1" Grid.ColumnSpan="3" Margin="1" VerticalContentAlignment="Center" Text="{Binding LauncherArgs}" ToolTip="{DynamicResource ServerSettings_LauncherArgsTooltip}"/>
<CheckBox Grid.Row="1" Grid.Column="4" Margin="1" VerticalAlignment="Center" HorizontalAlignment="Left" IsChecked="{Binding LauncherArgsOverride}" Content="{DynamicResource ServerSettings_LauncherArgsOverrideLabel}" ToolTip="{DynamicResource ServerSettings_LauncherArgsOverrideTooltip}"/>
<Label Grid.Row="2" Grid.Column="0" VerticalAlignment="Center" Content="{DynamicResource ServerSettings_ServerArgsLabel}" ToolTip="{DynamicResource ServerSettings_ServerArgsTooltip}"/>
<TextBox Grid.Row="2" Grid.Column="1" Grid.ColumnSpan="3" Margin="1" VerticalContentAlignment="Center" Text="{Binding AdditionalArgs}" ToolTip="{DynamicResource ServerSettings_ServerArgsTooltip}"/>
<Button Grid.Row="2" Grid.Column="4" Margin="1" Click="ShowCmd_Click" Content="{StaticResource ShowCmdButtonContent}" ToolTip="{DynamicResource ServerSettings_ShowCommandButtonTooltip}"/>
<CheckBox Grid.Row="2" Grid.Column="1" Margin="1" VerticalAlignment="Center" HorizontalAlignment="Left" IsChecked="{Binding LauncherArgsOverride}" Content="{DynamicResource ServerSettings_LauncherArgsOverrideLabel}" ToolTip="{DynamicResource ServerSettings_LauncherArgsOverrideTooltip}"/>
<CheckBox Grid.Row="2" Grid.Column="2" Grid.ColumnSpan="2" Margin="1" IsChecked="{Binding LauncherArgsPrefix}" IsEnabled="{Binding LauncherArgsOverride, Converter={StaticResource InvertBooleanConverter}}" Content="{DynamicResource ServerSettings_LauncherArgsPrefixLabel}" ToolTip="{DynamicResource ServerSettings_LauncherArgsPrefixTooltip}" VerticalAlignment="Center" HorizontalAlignment="Left"/>
<Label Grid.Row="3" Grid.Column="0" VerticalAlignment="Center" Content="{DynamicResource ServerSettings_ServerArgsLabel}" ToolTip="{DynamicResource ServerSettings_ServerArgsTooltip}"/>
<TextBox Grid.Row="3" Grid.Column="1" Grid.ColumnSpan="3" Margin="1" VerticalContentAlignment="Center" Text="{Binding AdditionalArgs}" ToolTip="{DynamicResource ServerSettings_ServerArgsTooltip}"/>
<Button Grid.Row="3" Grid.Column="4" Margin="1" Click="ShowCmd_Click" Content="{StaticResource ShowCmdButtonContent}" ToolTip="{DynamicResource ServerSettings_ShowCommandButtonTooltip}"/>
</Grid>
</GroupBox>
</Grid>

View file

@ -5,7 +5,30 @@
<title>Conan Server Manager Version Feed</title>
<subtitle>This is the Conan Server Manager release version feed.</subtitle>
<link href="http://servermanagers.freeforums.net/" />
<updated>2022-01-14T00:00:00Z</updated>
<updated>2022-01-25T00:00:00Z</updated>
<entry>
<id>urn:uuid:6F91598E-D62C-4F48-A205-C9C4A66BBB65</id>
<title>1.1.62 (1.1.62.1)</title>
<summary>1.1.62.1</summary>
<link href="" />
<updated>2022-01-25T00: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>Added prefix launcher option to launcher arguments.</li>
</ul>
</p>
</div>
</content>
<author>
<name>bletch</name>
<email>bletch1971@hotmail.com</email>
</author>
</entry>
<entry>
<id>urn:uuid:189B95FA-8ACA-4E37-9A34-443B6C5E27EE</id>

View file

@ -5,90 +5,21 @@
<title>Conan Server Manager Version Feed</title>
<subtitle>This is the Conan Server Manager beta version feed.</subtitle>
<link href="http://servermanagers.freeforums.net/" />
<updated>2022-01-20T00:00:00Z</updated>
<updated>2022-01-25T00:00:00Z</updated>
<entry>
<id>urn:uuid:1BA6E671-7784-48FF-B463-D0962084277B</id>
<title>1.1.61 (1.1.61.4)</title>
<summary>1.1.61.4</summary>
<id>urn:uuid:6F91598E-D62C-4F48-A205-C9C4A66BBB65</id>
<title>1.1.62 (1.1.62.1)</title>
<summary>1.1.62.1</summary>
<link href="" />
<updated>2022-01-20T00: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;">BUGFIX</u>
<br/>
<ul>
<li>Fixed bug when pasting ini config into paste window, resulting in blank record.</li>
</ul>
</p>
</div>
</content>
<author>
<name>bletch</name>
<email>bletch1971@hotmail.com</email>
</author>
</entry>
<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>
<updated>2022-01-25T00: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>
<summary>1.1.61.2</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>Server manager language will default to the computers language setting on first start, if possible.</li>
</ul>
</p>
</div>
</content>
<author>
<name>bletch</name>
<email>bletch1971@hotmail.com</email>
</author>
</entry>
<entry>
<id>urn:uuid:189B95FA-8ACA-4E37-9A34-443B6C5E27EE</id>
<title>1.1.61 (1.1.61.1)</title>
<summary>1.1.61.1</summary>
<link href="" />
<updated>2022-01-05T00: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>Minor tweaks to the Auto-Update process to help prevent intermittent exceptions.</li>
<li>Added prefix launcher option to launcher arguments.</li>
</ul>
</p>
</div>

View file

@ -56,6 +56,10 @@ namespace ServerManagerTool.Updater
}
catch (Exception ex)
{
if (ex.InnerException != null)
{
OutputError(ex.InnerException.Message, null);
}
OutputError(ex.Message, ex.StackTrace);
Environment.ExitCode = 1;
@ -92,6 +96,10 @@ namespace ServerManagerTool.Updater
private static void OutputError(string error, string stackTrace)
{
Console.WriteLine($"ERROR: {error}");
#if DEBUG
if (!string.IsNullOrWhiteSpace(stackTrace))
Console.WriteLine(stackTrace);
#endif
}
private static void OutputMessage(string message)