mirror of
https://github.com/tribufu/ServerManagers
synced 2026-05-06 15:17:34 +00:00
Added prefix launcher option to launcher arguments.
This commit is contained in:
parent
dd69808b24
commit
09938ce932
11 changed files with 122 additions and 228 deletions
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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}\"");
|
||||
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue