mirror of
https://github.com/tribufu/ServerManagers
synced 2026-06-01 09:42:39 +00:00
Auto Update Tweaks
Support Zip Creation - added new config settings.
This commit is contained in:
parent
aa265bfbb6
commit
8bf57a71b9
14 changed files with 233 additions and 140 deletions
|
|
@ -101,16 +101,16 @@
|
||||||
<setting name="HelpUrl" serializeAs="String">
|
<setting name="HelpUrl" serializeAs="String">
|
||||||
<value>http://arkservermanager.freeforums.net/thread/1194/faq-frequently-asked</value>
|
<value>http://arkservermanager.freeforums.net/thread/1194/faq-frequently-asked</value>
|
||||||
</setting>
|
</setting>
|
||||||
<setting name="ArkSE_PatchNotesUrl" serializeAs="String">
|
<setting name="AppPatchNotesUrl" serializeAs="String">
|
||||||
<value>https://survivetheark.com/index.php?/forums/forum/5-changelog-patch-notes/</value>
|
<value>https://survivetheark.com/index.php?/forums/forum/5-changelog-patch-notes/</value>
|
||||||
</setting>
|
</setting>
|
||||||
<setting name="ArkSotF_PatchNotesUrl" serializeAs="String">
|
<setting name="AppPatchNotesUrlSotF" serializeAs="String">
|
||||||
<value>https://survivetheark.com/index.php?/forums/forum/9-changelog-patch-notes/</value>
|
<value>https://survivetheark.com/index.php?/forums/forum/9-changelog-patch-notes/</value>
|
||||||
</setting>
|
</setting>
|
||||||
<setting name="ArkSEUrl" serializeAs="String">
|
<setting name="AppUrl" serializeAs="String">
|
||||||
<value>http://store.steampowered.com/app/346110/</value>
|
<value>http://store.steampowered.com/app/346110/</value>
|
||||||
</setting>
|
</setting>
|
||||||
<setting name="ArkSotfUrl" serializeAs="String">
|
<setting name="AppUrl_SotF" serializeAs="String">
|
||||||
<value>http://store.steampowered.com/app/407530/</value>
|
<value>http://store.steampowered.com/app/407530/</value>
|
||||||
</setting>
|
</setting>
|
||||||
<setting name="LastUpdatedTimeFile" serializeAs="String">
|
<setting name="LastUpdatedTimeFile" serializeAs="String">
|
||||||
|
|
@ -122,7 +122,7 @@
|
||||||
<setting name="SteamCmdInstallModArgsFormat" serializeAs="String">
|
<setting name="SteamCmdInstallModArgsFormat" serializeAs="String">
|
||||||
<value>+login {0} +workshop_download_item {1} {2} +quit</value>
|
<value>+login {0} +workshop_download_item {1} {2} +quit</value>
|
||||||
</setting>
|
</setting>
|
||||||
<setting name="ArkSteamWorkshopFolderRelativePath" serializeAs="String">
|
<setting name="AppSteamWorkshopFolderRelativePath" serializeAs="String">
|
||||||
<value>steamapps\workshop\content\346110\</value>
|
<value>steamapps\workshop\content\346110\</value>
|
||||||
</setting>
|
</setting>
|
||||||
<setting name="ServerModsRelativePath" serializeAs="String">
|
<setting name="ServerModsRelativePath" serializeAs="String">
|
||||||
|
|
@ -146,13 +146,13 @@
|
||||||
<setting name="SteamWorkshopFolderRelativePath" serializeAs="String">
|
<setting name="SteamWorkshopFolderRelativePath" serializeAs="String">
|
||||||
<value>steamapps\workshop</value>
|
<value>steamapps\workshop</value>
|
||||||
</setting>
|
</setting>
|
||||||
<setting name="ArkSteamWorkshopFile" serializeAs="String">
|
<setting name="AppSteamWorkshopFile" serializeAs="String">
|
||||||
<value>appworkshop_346110.acf</value>
|
<value>appworkshop_346110.acf</value>
|
||||||
</setting>
|
</setting>
|
||||||
<setting name="ArkSteamWorkshopFile_SotF" serializeAs="String">
|
<setting name="AppSteamWorkshopFile_SotF" serializeAs="String">
|
||||||
<value>appworkshop_407530.acf</value>
|
<value>appworkshop_407530.acf</value>
|
||||||
</setting>
|
</setting>
|
||||||
<setting name="ArkSteamWorkshopFolderRelativePath_SotF" serializeAs="String">
|
<setting name="AppSteamWorkshopFolderRelativePath_SotF" serializeAs="String">
|
||||||
<value>steamapps\workshop\content\407530\</value>
|
<value>steamapps\workshop\content\407530\</value>
|
||||||
</setting>
|
</setting>
|
||||||
<setting name="WorkshopCacheFile_SotF" serializeAs="String">
|
<setting name="WorkshopCacheFile_SotF" serializeAs="String">
|
||||||
|
|
@ -191,13 +191,13 @@
|
||||||
<setting name="LatestASMBetaPatchNotesUrl" serializeAs="String">
|
<setting name="LatestASMBetaPatchNotesUrl" serializeAs="String">
|
||||||
<value>http://arkservermanager.freeforums.net/board/11/beta-testers</value>
|
<value>http://arkservermanager.freeforums.net/board/11/beta-testers</value>
|
||||||
</setting>
|
</setting>
|
||||||
<setting name="ArkWhitelistFile" serializeAs="String">
|
<setting name="ServerWhitelistFile" serializeAs="String">
|
||||||
<value>PlayersJoinNoCheckList.txt</value>
|
<value>PlayersJoinNoCheckList.txt</value>
|
||||||
</setting>
|
</setting>
|
||||||
<setting name="ArkAdminFile" serializeAs="String">
|
<setting name="ServerAdminFile" serializeAs="String">
|
||||||
<value>AllowedCheaterSteamIDs.txt</value>
|
<value>AllowedCheaterSteamIDs.txt</value>
|
||||||
</setting>
|
</setting>
|
||||||
<setting name="ArkExclusiveFile" serializeAs="String">
|
<setting name="ServerExclusiveFile" serializeAs="String">
|
||||||
<value>PlayersExclusiveJoinList.txt</value>
|
<value>PlayersExclusiveJoinList.txt</value>
|
||||||
</setting>
|
</setting>
|
||||||
<setting name="DefaultServerFolderName" serializeAs="String">
|
<setting name="DefaultServerFolderName" serializeAs="String">
|
||||||
|
|
@ -299,10 +299,10 @@
|
||||||
<setting name="ServerBranchFolderPrefix" serializeAs="String">
|
<setting name="ServerBranchFolderPrefix" serializeAs="String">
|
||||||
<value>__</value>
|
<value>__</value>
|
||||||
</setting>
|
</setting>
|
||||||
<setting name="ArkSteamManifestFile" serializeAs="String">
|
<setting name="AppSteamManifestFile" serializeAs="String">
|
||||||
<value>appmanifest_376030.acf</value>
|
<value>appmanifest_376030.acf</value>
|
||||||
</setting>
|
</setting>
|
||||||
<setting name="ArkSteamManifestFile_SotF" serializeAs="String">
|
<setting name="AppSteamManifestFile_SotF" serializeAs="String">
|
||||||
<value>appmanifest_407530.acf</value>
|
<value>appmanifest_407530.acf</value>
|
||||||
</setting>
|
</setting>
|
||||||
<setting name="SteamManifestFolderRelativePath" serializeAs="String">
|
<setting name="SteamManifestFolderRelativePath" serializeAs="String">
|
||||||
|
|
@ -604,7 +604,7 @@
|
||||||
<value>True</value>
|
<value>True</value>
|
||||||
</setting>
|
</setting>
|
||||||
<setting name="AutoUpdate_ParallelUpdate" serializeAs="String">
|
<setting name="AutoUpdate_ParallelUpdate" serializeAs="String">
|
||||||
<value>True</value>
|
<value>False</value>
|
||||||
</setting>
|
</setting>
|
||||||
<setting name="AutoUpdate_UpdateReasonPrefix" serializeAs="String">
|
<setting name="AutoUpdate_UpdateReasonPrefix" serializeAs="String">
|
||||||
<value>Server Update Reason:</value>
|
<value>Server Update Reason:</value>
|
||||||
|
|
@ -679,7 +679,7 @@
|
||||||
<value>True</value>
|
<value>True</value>
|
||||||
</setting>
|
</setting>
|
||||||
<setting name="AutoUpdate_SequencialDelayPeriod" serializeAs="String">
|
<setting name="AutoUpdate_SequencialDelayPeriod" serializeAs="String">
|
||||||
<value>0</value>
|
<value>10</value>
|
||||||
</setting>
|
</setting>
|
||||||
<setting name="SectionStackSizeOverridesEnabled" serializeAs="String">
|
<setting name="SectionStackSizeOverridesEnabled" serializeAs="String">
|
||||||
<value>True</value>
|
<value>True</value>
|
||||||
|
|
|
||||||
56
src/ARKServerManager/Config.Designer.cs
generated
56
src/ARKServerManager/Config.Designer.cs
generated
|
|
@ -579,36 +579,36 @@ namespace ServerManagerTool {
|
||||||
[global::System.Configuration.ApplicationScopedSettingAttribute()]
|
[global::System.Configuration.ApplicationScopedSettingAttribute()]
|
||||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||||
[global::System.Configuration.DefaultSettingValueAttribute("https://survivetheark.com/index.php?/forums/forum/5-changelog-patch-notes/")]
|
[global::System.Configuration.DefaultSettingValueAttribute("https://survivetheark.com/index.php?/forums/forum/5-changelog-patch-notes/")]
|
||||||
public string ArkSE_PatchNotesUrl {
|
public string AppPatchNotesUrl {
|
||||||
get {
|
get {
|
||||||
return ((string)(this["ArkSE_PatchNotesUrl"]));
|
return ((string)(this["AppPatchNotesUrl"]));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
[global::System.Configuration.ApplicationScopedSettingAttribute()]
|
[global::System.Configuration.ApplicationScopedSettingAttribute()]
|
||||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||||
[global::System.Configuration.DefaultSettingValueAttribute("https://survivetheark.com/index.php?/forums/forum/9-changelog-patch-notes/")]
|
[global::System.Configuration.DefaultSettingValueAttribute("https://survivetheark.com/index.php?/forums/forum/9-changelog-patch-notes/")]
|
||||||
public string ArkSotF_PatchNotesUrl {
|
public string AppPatchNotesUrlSotF {
|
||||||
get {
|
get {
|
||||||
return ((string)(this["ArkSotF_PatchNotesUrl"]));
|
return ((string)(this["AppPatchNotesUrlSotF"]));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
[global::System.Configuration.ApplicationScopedSettingAttribute()]
|
[global::System.Configuration.ApplicationScopedSettingAttribute()]
|
||||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||||
[global::System.Configuration.DefaultSettingValueAttribute("http://store.steampowered.com/app/346110/")]
|
[global::System.Configuration.DefaultSettingValueAttribute("http://store.steampowered.com/app/346110/")]
|
||||||
public string ArkSEUrl {
|
public string AppUrl {
|
||||||
get {
|
get {
|
||||||
return ((string)(this["ArkSEUrl"]));
|
return ((string)(this["AppUrl"]));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
[global::System.Configuration.ApplicationScopedSettingAttribute()]
|
[global::System.Configuration.ApplicationScopedSettingAttribute()]
|
||||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||||
[global::System.Configuration.DefaultSettingValueAttribute("http://store.steampowered.com/app/407530/")]
|
[global::System.Configuration.DefaultSettingValueAttribute("http://store.steampowered.com/app/407530/")]
|
||||||
public string ArkSotfUrl {
|
public string AppUrl_SotF {
|
||||||
get {
|
get {
|
||||||
return ((string)(this["ArkSotfUrl"]));
|
return ((string)(this["AppUrl_SotF"]));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -752,9 +752,9 @@ namespace ServerManagerTool {
|
||||||
[global::System.Configuration.ApplicationScopedSettingAttribute()]
|
[global::System.Configuration.ApplicationScopedSettingAttribute()]
|
||||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||||
[global::System.Configuration.DefaultSettingValueAttribute("steamapps\\workshop\\content\\346110\\")]
|
[global::System.Configuration.DefaultSettingValueAttribute("steamapps\\workshop\\content\\346110\\")]
|
||||||
public string ArkSteamWorkshopFolderRelativePath {
|
public string AppSteamWorkshopFolderRelativePath {
|
||||||
get {
|
get {
|
||||||
return ((string)(this["ArkSteamWorkshopFolderRelativePath"]));
|
return ((string)(this["AppSteamWorkshopFolderRelativePath"]));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -1052,9 +1052,9 @@ namespace ServerManagerTool {
|
||||||
[global::System.Configuration.ApplicationScopedSettingAttribute()]
|
[global::System.Configuration.ApplicationScopedSettingAttribute()]
|
||||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||||
[global::System.Configuration.DefaultSettingValueAttribute("appworkshop_346110.acf")]
|
[global::System.Configuration.DefaultSettingValueAttribute("appworkshop_346110.acf")]
|
||||||
public string ArkSteamWorkshopFile {
|
public string AppSteamWorkshopFile {
|
||||||
get {
|
get {
|
||||||
return ((string)(this["ArkSteamWorkshopFile"]));
|
return ((string)(this["AppSteamWorkshopFile"]));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -1121,18 +1121,18 @@ namespace ServerManagerTool {
|
||||||
[global::System.Configuration.ApplicationScopedSettingAttribute()]
|
[global::System.Configuration.ApplicationScopedSettingAttribute()]
|
||||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||||
[global::System.Configuration.DefaultSettingValueAttribute("appworkshop_407530.acf")]
|
[global::System.Configuration.DefaultSettingValueAttribute("appworkshop_407530.acf")]
|
||||||
public string ArkSteamWorkshopFile_SotF {
|
public string AppSteamWorkshopFile_SotF {
|
||||||
get {
|
get {
|
||||||
return ((string)(this["ArkSteamWorkshopFile_SotF"]));
|
return ((string)(this["AppSteamWorkshopFile_SotF"]));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
[global::System.Configuration.ApplicationScopedSettingAttribute()]
|
[global::System.Configuration.ApplicationScopedSettingAttribute()]
|
||||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||||
[global::System.Configuration.DefaultSettingValueAttribute("steamapps\\workshop\\content\\407530\\")]
|
[global::System.Configuration.DefaultSettingValueAttribute("steamapps\\workshop\\content\\407530\\")]
|
||||||
public string ArkSteamWorkshopFolderRelativePath_SotF {
|
public string AppSteamWorkshopFolderRelativePath_SotF {
|
||||||
get {
|
get {
|
||||||
return ((string)(this["ArkSteamWorkshopFolderRelativePath_SotF"]));
|
return ((string)(this["AppSteamWorkshopFolderRelativePath_SotF"]));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -1250,18 +1250,18 @@ namespace ServerManagerTool {
|
||||||
[global::System.Configuration.ApplicationScopedSettingAttribute()]
|
[global::System.Configuration.ApplicationScopedSettingAttribute()]
|
||||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||||
[global::System.Configuration.DefaultSettingValueAttribute("PlayersJoinNoCheckList.txt")]
|
[global::System.Configuration.DefaultSettingValueAttribute("PlayersJoinNoCheckList.txt")]
|
||||||
public string ArkWhitelistFile {
|
public string ServerWhitelistFile {
|
||||||
get {
|
get {
|
||||||
return ((string)(this["ArkWhitelistFile"]));
|
return ((string)(this["ServerWhitelistFile"]));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
[global::System.Configuration.ApplicationScopedSettingAttribute()]
|
[global::System.Configuration.ApplicationScopedSettingAttribute()]
|
||||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||||
[global::System.Configuration.DefaultSettingValueAttribute("AllowedCheaterSteamIDs.txt")]
|
[global::System.Configuration.DefaultSettingValueAttribute("AllowedCheaterSteamIDs.txt")]
|
||||||
public string ArkAdminFile {
|
public string ServerAdminFile {
|
||||||
get {
|
get {
|
||||||
return ((string)(this["ArkAdminFile"]));
|
return ((string)(this["ServerAdminFile"]));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -1280,9 +1280,9 @@ namespace ServerManagerTool {
|
||||||
[global::System.Configuration.ApplicationScopedSettingAttribute()]
|
[global::System.Configuration.ApplicationScopedSettingAttribute()]
|
||||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||||
[global::System.Configuration.DefaultSettingValueAttribute("PlayersExclusiveJoinList.txt")]
|
[global::System.Configuration.DefaultSettingValueAttribute("PlayersExclusiveJoinList.txt")]
|
||||||
public string ArkExclusiveFile {
|
public string ServerExclusiveFile {
|
||||||
get {
|
get {
|
||||||
return ((string)(this["ArkExclusiveFile"]));
|
return ((string)(this["ServerExclusiveFile"]));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -1652,7 +1652,7 @@ namespace ServerManagerTool {
|
||||||
|
|
||||||
[global::System.Configuration.UserScopedSettingAttribute()]
|
[global::System.Configuration.UserScopedSettingAttribute()]
|
||||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||||
[global::System.Configuration.DefaultSettingValueAttribute("True")]
|
[global::System.Configuration.DefaultSettingValueAttribute("False")]
|
||||||
public bool AutoUpdate_ParallelUpdate {
|
public bool AutoUpdate_ParallelUpdate {
|
||||||
get {
|
get {
|
||||||
return ((bool)(this["AutoUpdate_ParallelUpdate"]));
|
return ((bool)(this["AutoUpdate_ParallelUpdate"]));
|
||||||
|
|
@ -2108,18 +2108,18 @@ namespace ServerManagerTool {
|
||||||
[global::System.Configuration.ApplicationScopedSettingAttribute()]
|
[global::System.Configuration.ApplicationScopedSettingAttribute()]
|
||||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||||
[global::System.Configuration.DefaultSettingValueAttribute("appmanifest_376030.acf")]
|
[global::System.Configuration.DefaultSettingValueAttribute("appmanifest_376030.acf")]
|
||||||
public string ArkSteamManifestFile {
|
public string AppSteamManifestFile {
|
||||||
get {
|
get {
|
||||||
return ((string)(this["ArkSteamManifestFile"]));
|
return ((string)(this["AppSteamManifestFile"]));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
[global::System.Configuration.ApplicationScopedSettingAttribute()]
|
[global::System.Configuration.ApplicationScopedSettingAttribute()]
|
||||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||||
[global::System.Configuration.DefaultSettingValueAttribute("appmanifest_407530.acf")]
|
[global::System.Configuration.DefaultSettingValueAttribute("appmanifest_407530.acf")]
|
||||||
public string ArkSteamManifestFile_SotF {
|
public string AppSteamManifestFile_SotF {
|
||||||
get {
|
get {
|
||||||
return ((string)(this["ArkSteamManifestFile_SotF"]));
|
return ((string)(this["AppSteamManifestFile_SotF"]));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -2227,7 +2227,7 @@ namespace ServerManagerTool {
|
||||||
|
|
||||||
[global::System.Configuration.UserScopedSettingAttribute()]
|
[global::System.Configuration.UserScopedSettingAttribute()]
|
||||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||||
[global::System.Configuration.DefaultSettingValueAttribute("0")]
|
[global::System.Configuration.DefaultSettingValueAttribute("10")]
|
||||||
public int AutoUpdate_SequencialDelayPeriod {
|
public int AutoUpdate_SequencialDelayPeriod {
|
||||||
get {
|
get {
|
||||||
return ((int)(this["AutoUpdate_SequencialDelayPeriod"]));
|
return ((int)(this["AutoUpdate_SequencialDelayPeriod"]));
|
||||||
|
|
|
||||||
|
|
@ -161,16 +161,16 @@
|
||||||
<Setting Name="CustomLevelXPIncrease_Dino" Type="System.Int32" Scope="User">
|
<Setting Name="CustomLevelXPIncrease_Dino" Type="System.Int32" Scope="User">
|
||||||
<Value Profile="(Default)">1000</Value>
|
<Value Profile="(Default)">1000</Value>
|
||||||
</Setting>
|
</Setting>
|
||||||
<Setting Name="ArkSE_PatchNotesUrl" Type="System.String" Scope="Application">
|
<Setting Name="AppPatchNotesUrl" Type="System.String" Scope="Application">
|
||||||
<Value Profile="(Default)">https://survivetheark.com/index.php?/forums/forum/5-changelog-patch-notes/</Value>
|
<Value Profile="(Default)">https://survivetheark.com/index.php?/forums/forum/5-changelog-patch-notes/</Value>
|
||||||
</Setting>
|
</Setting>
|
||||||
<Setting Name="ArkSotF_PatchNotesUrl" Type="System.String" Scope="Application">
|
<Setting Name="AppPatchNotesUrlSotF" Type="System.String" Scope="Application">
|
||||||
<Value Profile="(Default)">https://survivetheark.com/index.php?/forums/forum/9-changelog-patch-notes/</Value>
|
<Value Profile="(Default)">https://survivetheark.com/index.php?/forums/forum/9-changelog-patch-notes/</Value>
|
||||||
</Setting>
|
</Setting>
|
||||||
<Setting Name="ArkSEUrl" Type="System.String" Scope="Application">
|
<Setting Name="AppUrl" Type="System.String" Scope="Application">
|
||||||
<Value Profile="(Default)">http://store.steampowered.com/app/346110/</Value>
|
<Value Profile="(Default)">http://store.steampowered.com/app/346110/</Value>
|
||||||
</Setting>
|
</Setting>
|
||||||
<Setting Name="ArkSotfUrl" Type="System.String" Scope="Application">
|
<Setting Name="AppUrl_SotF" Type="System.String" Scope="Application">
|
||||||
<Value Profile="(Default)">http://store.steampowered.com/app/407530/</Value>
|
<Value Profile="(Default)">http://store.steampowered.com/app/407530/</Value>
|
||||||
</Setting>
|
</Setting>
|
||||||
<Setting Name="RunAsAdministratorPrompt" Type="System.Boolean" Scope="User">
|
<Setting Name="RunAsAdministratorPrompt" Type="System.Boolean" Scope="User">
|
||||||
|
|
@ -209,7 +209,7 @@
|
||||||
<Setting Name="SteamCmdInstallModArgsFormat" Type="System.String" Scope="Application">
|
<Setting Name="SteamCmdInstallModArgsFormat" Type="System.String" Scope="Application">
|
||||||
<Value Profile="(Default)">+login {0} +workshop_download_item {1} {2} +quit</Value>
|
<Value Profile="(Default)">+login {0} +workshop_download_item {1} {2} +quit</Value>
|
||||||
</Setting>
|
</Setting>
|
||||||
<Setting Name="ArkSteamWorkshopFolderRelativePath" Type="System.String" Scope="Application">
|
<Setting Name="AppSteamWorkshopFolderRelativePath" Type="System.String" Scope="Application">
|
||||||
<Value Profile="(Default)">steamapps\workshop\content\346110\</Value>
|
<Value Profile="(Default)">steamapps\workshop\content\346110\</Value>
|
||||||
</Setting>
|
</Setting>
|
||||||
<Setting Name="ServerModsRelativePath" Type="System.String" Scope="Application">
|
<Setting Name="ServerModsRelativePath" Type="System.String" Scope="Application">
|
||||||
|
|
@ -290,7 +290,7 @@
|
||||||
<Setting Name="SteamWorkshopFolderRelativePath" Type="System.String" Scope="Application">
|
<Setting Name="SteamWorkshopFolderRelativePath" Type="System.String" Scope="Application">
|
||||||
<Value Profile="(Default)">steamapps\workshop</Value>
|
<Value Profile="(Default)">steamapps\workshop</Value>
|
||||||
</Setting>
|
</Setting>
|
||||||
<Setting Name="ArkSteamWorkshopFile" Type="System.String" Scope="Application">
|
<Setting Name="AppSteamWorkshopFile" Type="System.String" Scope="Application">
|
||||||
<Value Profile="(Default)">appworkshop_346110.acf</Value>
|
<Value Profile="(Default)">appworkshop_346110.acf</Value>
|
||||||
</Setting>
|
</Setting>
|
||||||
<Setting Name="SteamCmd_Password" Type="System.String" Scope="User">
|
<Setting Name="SteamCmd_Password" Type="System.String" Scope="User">
|
||||||
|
|
@ -308,10 +308,10 @@
|
||||||
<Setting Name="ServerUpdate_OnServerStart" Type="System.Boolean" Scope="User">
|
<Setting Name="ServerUpdate_OnServerStart" Type="System.Boolean" Scope="User">
|
||||||
<Value Profile="(Default)">False</Value>
|
<Value Profile="(Default)">False</Value>
|
||||||
</Setting>
|
</Setting>
|
||||||
<Setting Name="ArkSteamWorkshopFile_SotF" Type="System.String" Scope="Application">
|
<Setting Name="AppSteamWorkshopFile_SotF" Type="System.String" Scope="Application">
|
||||||
<Value Profile="(Default)">appworkshop_407530.acf</Value>
|
<Value Profile="(Default)">appworkshop_407530.acf</Value>
|
||||||
</Setting>
|
</Setting>
|
||||||
<Setting Name="ArkSteamWorkshopFolderRelativePath_SotF" Type="System.String" Scope="Application">
|
<Setting Name="AppSteamWorkshopFolderRelativePath_SotF" Type="System.String" Scope="Application">
|
||||||
<Value Profile="(Default)">steamapps\workshop\content\407530\</Value>
|
<Value Profile="(Default)">steamapps\workshop\content\407530\</Value>
|
||||||
</Setting>
|
</Setting>
|
||||||
<Setting Name="WorkshopCacheFile_SotF" Type="System.String" Scope="Application">
|
<Setting Name="WorkshopCacheFile_SotF" Type="System.String" Scope="Application">
|
||||||
|
|
@ -350,16 +350,16 @@
|
||||||
<Setting Name="LatestASMBetaPatchNotesUrl" Type="System.String" Scope="Application">
|
<Setting Name="LatestASMBetaPatchNotesUrl" Type="System.String" Scope="Application">
|
||||||
<Value Profile="(Default)">http://arkservermanager.freeforums.net/board/11/beta-testers</Value>
|
<Value Profile="(Default)">http://arkservermanager.freeforums.net/board/11/beta-testers</Value>
|
||||||
</Setting>
|
</Setting>
|
||||||
<Setting Name="ArkWhitelistFile" Type="System.String" Scope="Application">
|
<Setting Name="ServerWhitelistFile" Type="System.String" Scope="Application">
|
||||||
<Value Profile="(Default)">PlayersJoinNoCheckList.txt</Value>
|
<Value Profile="(Default)">PlayersJoinNoCheckList.txt</Value>
|
||||||
</Setting>
|
</Setting>
|
||||||
<Setting Name="ArkAdminFile" Type="System.String" Scope="Application">
|
<Setting Name="ServerAdminFile" Type="System.String" Scope="Application">
|
||||||
<Value Profile="(Default)">AllowedCheaterSteamIDs.txt</Value>
|
<Value Profile="(Default)">AllowedCheaterSteamIDs.txt</Value>
|
||||||
</Setting>
|
</Setting>
|
||||||
<Setting Name="SectionServerFilesIsExpanded" Type="System.Boolean" Scope="User">
|
<Setting Name="SectionServerFilesIsExpanded" Type="System.Boolean" Scope="User">
|
||||||
<Value Profile="(Default)">False</Value>
|
<Value Profile="(Default)">False</Value>
|
||||||
</Setting>
|
</Setting>
|
||||||
<Setting Name="ArkExclusiveFile" Type="System.String" Scope="Application">
|
<Setting Name="ServerExclusiveFile" Type="System.String" Scope="Application">
|
||||||
<Value Profile="(Default)">PlayersExclusiveJoinList.txt</Value>
|
<Value Profile="(Default)">PlayersExclusiveJoinList.txt</Value>
|
||||||
</Setting>
|
</Setting>
|
||||||
<Setting Name="EmailNotify_ShutdownRestart" Type="System.Boolean" Scope="User">
|
<Setting Name="EmailNotify_ShutdownRestart" Type="System.Boolean" Scope="User">
|
||||||
|
|
@ -462,7 +462,7 @@
|
||||||
<Value Profile="(Default)">True</Value>
|
<Value Profile="(Default)">True</Value>
|
||||||
</Setting>
|
</Setting>
|
||||||
<Setting Name="AutoUpdate_ParallelUpdate" Type="System.Boolean" Scope="User">
|
<Setting Name="AutoUpdate_ParallelUpdate" Type="System.Boolean" Scope="User">
|
||||||
<Value Profile="(Default)">True</Value>
|
<Value Profile="(Default)">False</Value>
|
||||||
</Setting>
|
</Setting>
|
||||||
<Setting Name="AutoUpdate_UpdateReasonPrefix" Type="System.String" Scope="User">
|
<Setting Name="AutoUpdate_UpdateReasonPrefix" Type="System.String" Scope="User">
|
||||||
<Value Profile="(Default)">Server Update Reason:</Value>
|
<Value Profile="(Default)">Server Update Reason:</Value>
|
||||||
|
|
@ -590,10 +590,10 @@
|
||||||
<Setting Name="ServerBranchFolderPrefix" Type="System.String" Scope="Application">
|
<Setting Name="ServerBranchFolderPrefix" Type="System.String" Scope="Application">
|
||||||
<Value Profile="(Default)">__</Value>
|
<Value Profile="(Default)">__</Value>
|
||||||
</Setting>
|
</Setting>
|
||||||
<Setting Name="ArkSteamManifestFile" Type="System.String" Scope="Application">
|
<Setting Name="AppSteamManifestFile" Type="System.String" Scope="Application">
|
||||||
<Value Profile="(Default)">appmanifest_376030.acf</Value>
|
<Value Profile="(Default)">appmanifest_376030.acf</Value>
|
||||||
</Setting>
|
</Setting>
|
||||||
<Setting Name="ArkSteamManifestFile_SotF" Type="System.String" Scope="Application">
|
<Setting Name="AppSteamManifestFile_SotF" Type="System.String" Scope="Application">
|
||||||
<Value Profile="(Default)">appmanifest_407530.acf</Value>
|
<Value Profile="(Default)">appmanifest_407530.acf</Value>
|
||||||
</Setting>
|
</Setting>
|
||||||
<Setting Name="SteamManifestFolderRelativePath" Type="System.String" Scope="Application">
|
<Setting Name="SteamManifestFolderRelativePath" Type="System.String" Scope="Application">
|
||||||
|
|
@ -627,7 +627,7 @@
|
||||||
<Value Profile="(Default)">ArkServerManager</Value>
|
<Value Profile="(Default)">ArkServerManager</Value>
|
||||||
</Setting>
|
</Setting>
|
||||||
<Setting Name="AutoUpdate_SequencialDelayPeriod" Type="System.Int32" Scope="User">
|
<Setting Name="AutoUpdate_SequencialDelayPeriod" Type="System.Int32" Scope="User">
|
||||||
<Value Profile="(Default)">0</Value>
|
<Value Profile="(Default)">10</Value>
|
||||||
</Setting>
|
</Setting>
|
||||||
<Setting Name="SectionStackSizeOverridesEnabled" Type="System.Boolean" Scope="User">
|
<Setting Name="SectionStackSizeOverridesEnabled" Type="System.Boolean" Scope="User">
|
||||||
<Value Profile="(Default)">True</Value>
|
<Value Profile="(Default)">True</Value>
|
||||||
|
|
|
||||||
|
|
@ -804,7 +804,8 @@ namespace ServerManagerTool.Lib
|
||||||
success = false;
|
success = false;
|
||||||
LogProfileMessage("****************************");
|
LogProfileMessage("****************************");
|
||||||
LogProfileMessage("ERROR: Failed server update.");
|
LogProfileMessage("ERROR: Failed server update.");
|
||||||
LogProfileMessage("****************************\r\n");
|
LogProfileMessage("****************************");
|
||||||
|
LogProfileMessage("Check steamcmd logs for more information why the server update failed.\r\n");
|
||||||
|
|
||||||
if (Config.Default.SteamCmdRedirectOutput)
|
if (Config.Default.SteamCmdRedirectOutput)
|
||||||
LogProfileMessage($"If the server update keeps failing try disabling the '{_globalizer.GetResourceString("GlobalSettings_SteamCmdRedirectOutputLabel")}' option in the settings window.\r\n");
|
LogProfileMessage($"If the server update keeps failing try disabling the '{_globalizer.GetResourceString("GlobalSettings_SteamCmdRedirectOutputLabel")}' option in the settings window.\r\n");
|
||||||
|
|
@ -981,6 +982,7 @@ namespace ServerManagerTool.Lib
|
||||||
LogProfileMessage("***************************");
|
LogProfileMessage("***************************");
|
||||||
LogProfileMessage("ERROR: Mod download failed.");
|
LogProfileMessage("ERROR: Mod download failed.");
|
||||||
LogProfileMessage("***************************\r\n");
|
LogProfileMessage("***************************\r\n");
|
||||||
|
LogProfileMessage("Check steamcmd logs for more information why the mod update failed.\r\n");
|
||||||
|
|
||||||
if (Config.Default.SteamCmdRedirectOutput)
|
if (Config.Default.SteamCmdRedirectOutput)
|
||||||
LogProfileMessage($"If the mod update keeps failing try disabling the '{_globalizer.GetResourceString("GlobalSettings_SteamCmdRedirectOutputLabel")}' option in the settings window.\r\n");
|
LogProfileMessage($"If the mod update keeps failing try disabling the '{_globalizer.GetResourceString("GlobalSettings_SteamCmdRedirectOutputLabel")}' option in the settings window.\r\n");
|
||||||
|
|
@ -1195,6 +1197,7 @@ namespace ServerManagerTool.Lib
|
||||||
}
|
}
|
||||||
|
|
||||||
// stop the server
|
// stop the server
|
||||||
|
LogProfileMessage("");
|
||||||
StopServer(CancellationToken.None);
|
StopServer(CancellationToken.None);
|
||||||
|
|
||||||
if (ExitCode != EXITCODE_NORMALEXIT)
|
if (ExitCode != EXITCODE_NORMALEXIT)
|
||||||
|
|
@ -1205,6 +1208,7 @@ namespace ServerManagerTool.Lib
|
||||||
emailMessage.AppendLine($"Server Manager version: {App.Instance.Version}");
|
emailMessage.AppendLine($"Server Manager version: {App.Instance.Version}");
|
||||||
|
|
||||||
// make a backup of the current profile and config files.
|
// make a backup of the current profile and config files.
|
||||||
|
LogProfileMessage("");
|
||||||
CreateProfileBackupArchiveFile(_profile);
|
CreateProfileBackupArchiveFile(_profile);
|
||||||
|
|
||||||
if (ExitCode != EXITCODE_NORMALEXIT)
|
if (ExitCode != EXITCODE_NORMALEXIT)
|
||||||
|
|
@ -1213,6 +1217,7 @@ namespace ServerManagerTool.Lib
|
||||||
if (BackupWorldFile)
|
if (BackupWorldFile)
|
||||||
{
|
{
|
||||||
// make a backup of the current world file.
|
// make a backup of the current world file.
|
||||||
|
LogProfileMessage("");
|
||||||
CreateServerBackupArchiveFile(emailMessage, _profile);
|
CreateServerBackupArchiveFile(emailMessage, _profile);
|
||||||
|
|
||||||
if (ExitCode != EXITCODE_NORMALEXIT)
|
if (ExitCode != EXITCODE_NORMALEXIT)
|
||||||
|
|
@ -1227,6 +1232,7 @@ namespace ServerManagerTool.Lib
|
||||||
alertMessage.AppendLine(Config.Default.Alert_UpdateResults);
|
alertMessage.AppendLine(Config.Default.Alert_UpdateResults);
|
||||||
|
|
||||||
// check if the server needs to be updated
|
// check if the server needs to be updated
|
||||||
|
LogProfileMessage("");
|
||||||
if (updateServer)
|
if (updateServer)
|
||||||
{
|
{
|
||||||
Task.Delay(5000).Wait();
|
Task.Delay(5000).Wait();
|
||||||
|
|
@ -1259,16 +1265,14 @@ namespace ServerManagerTool.Lib
|
||||||
_profile.LastInstalledVersion = GetServerVersion(GetServerVersionFile()).ToString();
|
_profile.LastInstalledVersion = GetServerVersion(GetServerVersionFile()).ToString();
|
||||||
|
|
||||||
LogProfileMessage("Updated server from cache. See patch notes.");
|
LogProfileMessage("Updated server from cache. See patch notes.");
|
||||||
LogProfileMessage($"Server version: {_profile.LastInstalledVersion}.");
|
LogProfileMessage(Config.Default.AppPatchNotesUrl);
|
||||||
|
|
||||||
LogProfileMessage(Config.Default.ArkSE_PatchNotesUrl);
|
|
||||||
|
|
||||||
if (!string.IsNullOrWhiteSpace(Config.Default.Alert_ServerUpdate))
|
if (!string.IsNullOrWhiteSpace(Config.Default.Alert_ServerUpdate))
|
||||||
alertMessage.AppendLine(Config.Default.Alert_ServerUpdate);
|
alertMessage.AppendLine(Config.Default.Alert_ServerUpdate);
|
||||||
|
|
||||||
emailMessage.AppendLine();
|
emailMessage.AppendLine();
|
||||||
emailMessage.AppendLine("Updated server from cache. See patch notes.");
|
emailMessage.AppendLine("Updated server from cache. See patch notes.");
|
||||||
emailMessage.AppendLine(Config.Default.ArkSE_PatchNotesUrl);
|
emailMessage.AppendLine(Config.Default.AppPatchNotesUrl);
|
||||||
|
|
||||||
_profile.ServerUpdated = true;
|
_profile.ServerUpdated = true;
|
||||||
}
|
}
|
||||||
|
|
@ -1289,10 +1293,16 @@ namespace ServerManagerTool.Lib
|
||||||
LogProfileMessage("Server is already up to date, no update required.");
|
LogProfileMessage("Server is already up to date, no update required.");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var serverVersion = GetServerVersion(GetServerVersionFile()).ToString();
|
||||||
|
LogProfileMessage($"Server version: {serverVersion}");
|
||||||
|
|
||||||
|
emailMessage.AppendLine($"Server version: {serverVersion}");
|
||||||
|
|
||||||
if (ExitCode != EXITCODE_NORMALEXIT)
|
if (ExitCode != EXITCODE_NORMALEXIT)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
// check if the mods need to be updated
|
// check if the mods need to be updated
|
||||||
|
LogProfileMessage("");
|
||||||
if (updateModIds.Count > 0)
|
if (updateModIds.Count > 0)
|
||||||
{
|
{
|
||||||
Task.Delay(5000).Wait();
|
Task.Delay(5000).Wait();
|
||||||
|
|
@ -1389,12 +1399,14 @@ namespace ServerManagerTool.Lib
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
LogProfileMessage("Mods are already up to date, no updates required.");
|
if (modIdList.Count > 0)
|
||||||
|
LogProfileMessage("Mods are already up to date, no updates required.");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ExitCode != EXITCODE_NORMALEXIT)
|
if (ExitCode != EXITCODE_NORMALEXIT)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
LogProfileMessage("");
|
||||||
if (Config.Default.AutoUpdate_OverrideServerStartup)
|
if (Config.Default.AutoUpdate_OverrideServerStartup)
|
||||||
{
|
{
|
||||||
if (_serverRunning)
|
if (_serverRunning)
|
||||||
|
|
@ -1419,13 +1431,15 @@ namespace ServerManagerTool.Lib
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (updateModIds.Count > 0)
|
LogProfileMessage("");
|
||||||
|
if (modIdList.Count > 0)
|
||||||
LogProfileMessage("The server and mods files are already up to date, no updates required.");
|
LogProfileMessage("The server and mods files are already up to date, no updates required.");
|
||||||
else
|
else
|
||||||
LogProfileMessage("The server files are already up to date, no updates required.");
|
LogProfileMessage("The server files are already up to date, no updates required.");
|
||||||
|
|
||||||
_serverRunning = GetServerProcess() != null;
|
_serverRunning = GetServerProcess() != null;
|
||||||
|
|
||||||
|
LogProfileMessage("");
|
||||||
if (Config.Default.AutoUpdate_OverrideServerStartup)
|
if (Config.Default.AutoUpdate_OverrideServerStartup)
|
||||||
{
|
{
|
||||||
if (!_serverRunning)
|
if (!_serverRunning)
|
||||||
|
|
@ -1619,7 +1633,10 @@ namespace ServerManagerTool.Lib
|
||||||
{
|
{
|
||||||
// failed max limit reached
|
// failed max limit reached
|
||||||
if (Config.Default.SteamCmdRedirectOutput)
|
if (Config.Default.SteamCmdRedirectOutput)
|
||||||
|
{
|
||||||
|
LogMessage("Check steamcmd logs for more information why the mod cache update failed.\r\n");
|
||||||
LogMessage($"If the mod cache update keeps failing try disabling the '{_globalizer.GetResourceString("GlobalSettings_SteamCmdRedirectOutputLabel")}' option in the Server Manager settings window.");
|
LogMessage($"If the mod cache update keeps failing try disabling the '{_globalizer.GetResourceString("GlobalSettings_SteamCmdRedirectOutputLabel")}' option in the Server Manager settings window.");
|
||||||
|
}
|
||||||
|
|
||||||
ExitCode = EXITCODE_CACHEMODUPDATEFAILED;
|
ExitCode = EXITCODE_CACHEMODUPDATEFAILED;
|
||||||
return;
|
return;
|
||||||
|
|
@ -1738,7 +1755,10 @@ namespace ServerManagerTool.Lib
|
||||||
{
|
{
|
||||||
// failed max limit reached
|
// failed max limit reached
|
||||||
if (Config.Default.SteamCmdRedirectOutput)
|
if (Config.Default.SteamCmdRedirectOutput)
|
||||||
|
{
|
||||||
|
LogBranchMessage(branchName, $"Check steamcmd logs for more information why the server cache update failed.\r\n");
|
||||||
LogBranchMessage(branchName, $"If the server cache update keeps failing try disabling the '{_globalizer.GetResourceString("GlobalSettings_SteamCmdRedirectOutputLabel")}' option in the ASM settings window.");
|
LogBranchMessage(branchName, $"If the server cache update keeps failing try disabling the '{_globalizer.GetResourceString("GlobalSettings_SteamCmdRedirectOutputLabel")}' option in the ASM settings window.");
|
||||||
|
}
|
||||||
|
|
||||||
ExitCode = EXITCODE_CACHESERVERUPDATEFAILED;
|
ExitCode = EXITCODE_CACHESERVERUPDATEFAILED;
|
||||||
return;
|
return;
|
||||||
|
|
@ -1762,13 +1782,13 @@ namespace ServerManagerTool.Lib
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
LogBranchMessage(branchName, "No new version.");
|
LogBranchMessage(branchName, "No new version.");
|
||||||
|
|
||||||
var cacheVersion = GetServerVersion(GetServerCacheVersionFile(branchName)).ToString();
|
|
||||||
LogMessage($"Server cache version: {cacheVersion}");
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
LogBranchMessage(branchName, $"Server cache does not exist.");
|
LogBranchMessage(branchName, $"Server cache does not exist.");
|
||||||
|
|
||||||
|
var cacheVersion = GetServerVersion(GetServerCacheVersionFile(branchName)).ToString();
|
||||||
|
LogBranchMessage(branchName, $"Server cache version: {cacheVersion}");
|
||||||
|
|
||||||
LogBranchMessage(branchName, "-----------------------------");
|
LogBranchMessage(branchName, "-----------------------------");
|
||||||
LogBranchMessage(branchName, "Finished server cache update.");
|
LogBranchMessage(branchName, "Finished server cache update.");
|
||||||
LogBranchMessage(branchName, "-----------------------------");
|
LogBranchMessage(branchName, "-----------------------------");
|
||||||
|
|
@ -2015,13 +2035,6 @@ namespace ServerManagerTool.Lib
|
||||||
files.Add(file.FullName);
|
files.Add(file.FullName);
|
||||||
}
|
}
|
||||||
|
|
||||||
//var playerImageFileFilter = $"*{Config.Default.PlayerImageFileExtension}";
|
|
||||||
//var playerImageFiles = saveFolderInfo.GetFiles(playerImageFileFilter, SearchOption.TopDirectoryOnly);
|
|
||||||
//foreach (var file in playerImageFiles)
|
|
||||||
//{
|
|
||||||
// files.Add(file.FullName);
|
|
||||||
//}
|
|
||||||
|
|
||||||
var comment = new StringBuilder();
|
var comment = new StringBuilder();
|
||||||
comment.AppendLine($"Windows Platform: {Environment.OSVersion.Platform}");
|
comment.AppendLine($"Windows Platform: {Environment.OSVersion.Platform}");
|
||||||
comment.AppendLine($"Windows Version: {Environment.OSVersion.VersionString}");
|
comment.AppendLine($"Windows Version: {Environment.OSVersion.VersionString}");
|
||||||
|
|
@ -2378,16 +2391,23 @@ namespace ServerManagerTool.Lib
|
||||||
{
|
{
|
||||||
if (!string.IsNullOrWhiteSpace(versionFile) && File.Exists(versionFile))
|
if (!string.IsNullOrWhiteSpace(versionFile) && File.Exists(versionFile))
|
||||||
{
|
{
|
||||||
var fileValue = File.ReadAllText(versionFile);
|
try
|
||||||
|
|
||||||
if (!string.IsNullOrWhiteSpace(fileValue))
|
|
||||||
{
|
{
|
||||||
string versionString = fileValue.ToString();
|
var fileValue = File.ReadAllText(versionFile);
|
||||||
if (versionString.IndexOf('.') == -1)
|
|
||||||
versionString = versionString + ".0";
|
|
||||||
|
|
||||||
if (Version.TryParse(versionString, out Version version))
|
if (!string.IsNullOrWhiteSpace(fileValue))
|
||||||
return version;
|
{
|
||||||
|
string versionString = fileValue.ToString();
|
||||||
|
if (versionString.IndexOf('.') == -1)
|
||||||
|
versionString = versionString + ".0";
|
||||||
|
|
||||||
|
if (Version.TryParse(versionString, out Version version))
|
||||||
|
return version;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catch (Exception)
|
||||||
|
{
|
||||||
|
// do nothing, just leave
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -6399,15 +6399,15 @@ namespace ServerManagerTool.Lib
|
||||||
var exclusiveFile = false;
|
var exclusiveFile = false;
|
||||||
var whitelistFile = false;
|
var whitelistFile = false;
|
||||||
|
|
||||||
if (e.Name.Equals(Config.Default.ArkAdminFile, StringComparison.OrdinalIgnoreCase))
|
if (e.Name.Equals(Config.Default.ServerAdminFile, StringComparison.OrdinalIgnoreCase))
|
||||||
{
|
{
|
||||||
adminFile = true;
|
adminFile = true;
|
||||||
}
|
}
|
||||||
if (e.Name.Equals(Config.Default.ArkExclusiveFile, StringComparison.OrdinalIgnoreCase))
|
if (e.Name.Equals(Config.Default.ServerExclusiveFile, StringComparison.OrdinalIgnoreCase))
|
||||||
{
|
{
|
||||||
exclusiveFile = true;
|
exclusiveFile = true;
|
||||||
}
|
}
|
||||||
if (e.Name.Equals(Config.Default.ArkWhitelistFile, StringComparison.OrdinalIgnoreCase))
|
if (e.Name.Equals(Config.Default.ServerWhitelistFile, StringComparison.OrdinalIgnoreCase))
|
||||||
{
|
{
|
||||||
whitelistFile = true;
|
whitelistFile = true;
|
||||||
}
|
}
|
||||||
|
|
@ -6499,7 +6499,7 @@ namespace ServerManagerTool.Lib
|
||||||
|
|
||||||
if (adminFile)
|
if (adminFile)
|
||||||
{
|
{
|
||||||
var file = Path.Combine(InstallDirectory, Config.Default.SavedRelativePath, Config.Default.ArkAdminFile);
|
var file = Path.Combine(InstallDirectory, Config.Default.SavedRelativePath, Config.Default.ServerAdminFile);
|
||||||
if (File.Exists(file))
|
if (File.Exists(file))
|
||||||
{
|
{
|
||||||
adminSteamIds = File.ReadAllLines(file);
|
adminSteamIds = File.ReadAllLines(file);
|
||||||
|
|
@ -6509,7 +6509,7 @@ namespace ServerManagerTool.Lib
|
||||||
|
|
||||||
if (exclusiveFile)
|
if (exclusiveFile)
|
||||||
{
|
{
|
||||||
var file = Path.Combine(InstallDirectory, Config.Default.ServerBinaryRelativePath, Config.Default.ArkExclusiveFile);
|
var file = Path.Combine(InstallDirectory, Config.Default.ServerBinaryRelativePath, Config.Default.ServerExclusiveFile);
|
||||||
if (File.Exists(file))
|
if (File.Exists(file))
|
||||||
{
|
{
|
||||||
exclusiveSteamIds = File.ReadAllLines(file);
|
exclusiveSteamIds = File.ReadAllLines(file);
|
||||||
|
|
@ -6519,7 +6519,7 @@ namespace ServerManagerTool.Lib
|
||||||
|
|
||||||
if (whitelistFile)
|
if (whitelistFile)
|
||||||
{
|
{
|
||||||
var file = Path.Combine(InstallDirectory, Config.Default.ServerBinaryRelativePath, Config.Default.ArkWhitelistFile);
|
var file = Path.Combine(InstallDirectory, Config.Default.ServerBinaryRelativePath, Config.Default.ServerWhitelistFile);
|
||||||
if (File.Exists(file))
|
if (File.Exists(file))
|
||||||
{
|
{
|
||||||
whitelistSteamIds = File.ReadAllLines(file);
|
whitelistSteamIds = File.ReadAllLines(file);
|
||||||
|
|
@ -6566,7 +6566,7 @@ namespace ServerManagerTool.Lib
|
||||||
if (!Directory.Exists(folder))
|
if (!Directory.Exists(folder))
|
||||||
Directory.CreateDirectory(folder);
|
Directory.CreateDirectory(folder);
|
||||||
|
|
||||||
var file = Path.Combine(folder, Config.Default.ArkAdminFile);
|
var file = Path.Combine(folder, Config.Default.ServerAdminFile);
|
||||||
File.WriteAllLines(file, this.ServerFilesAdmins.ToEnumerable());
|
File.WriteAllLines(file, this.ServerFilesAdmins.ToEnumerable());
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
|
|
@ -6583,7 +6583,7 @@ namespace ServerManagerTool.Lib
|
||||||
if (!Directory.Exists(folder))
|
if (!Directory.Exists(folder))
|
||||||
Directory.CreateDirectory(folder);
|
Directory.CreateDirectory(folder);
|
||||||
|
|
||||||
var file = Path.Combine(folder, Config.Default.ArkExclusiveFile);
|
var file = Path.Combine(folder, Config.Default.ServerExclusiveFile);
|
||||||
File.WriteAllLines(file, this.ServerFilesExclusive.ToEnumerable());
|
File.WriteAllLines(file, this.ServerFilesExclusive.ToEnumerable());
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
|
|
@ -6600,7 +6600,7 @@ namespace ServerManagerTool.Lib
|
||||||
if (!Directory.Exists(folder))
|
if (!Directory.Exists(folder))
|
||||||
Directory.CreateDirectory(folder);
|
Directory.CreateDirectory(folder);
|
||||||
|
|
||||||
var file = Path.Combine(folder, Config.Default.ArkWhitelistFile);
|
var file = Path.Combine(folder, Config.Default.ServerWhitelistFile);
|
||||||
File.WriteAllLines(file, this.ServerFilesWhitelisted.ToEnumerable());
|
File.WriteAllLines(file, this.ServerFilesWhitelisted.ToEnumerable());
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
|
|
|
||||||
|
|
@ -789,7 +789,6 @@
|
||||||
<cctl:AnnotatedSlider Grid.Row="6" Grid.Column="0" Margin="0" Label="{DynamicResource GlobalSettings_LoggingMaxArchiveFilesLabel}" Value="{Binding Config.LoggingMaxArchiveFiles}" Minimum="1" Maximum="1000" SmallChange="1" LargeChange="5" TickFrequency="5" LabelRelativeWidth="Auto" SliderRelativeWidth="15*" SuffixRelativeWidth="Auto" SuffixRelativeMinWidth="40" Suffix="{DynamicResource SliderUnits_Files}" ToolTip="{DynamicResource GlobalSettings_LoggingMaxArchiveFilesTooltip}" IsEnabled="{Binding Config.LoggingEnabled}"/>
|
<cctl:AnnotatedSlider Grid.Row="6" Grid.Column="0" Margin="0" Label="{DynamicResource GlobalSettings_LoggingMaxArchiveFilesLabel}" Value="{Binding Config.LoggingMaxArchiveFiles}" Minimum="1" Maximum="1000" SmallChange="1" LargeChange="5" TickFrequency="5" LabelRelativeWidth="Auto" SliderRelativeWidth="15*" SuffixRelativeWidth="Auto" SuffixRelativeMinWidth="40" Suffix="{DynamicResource SliderUnits_Files}" ToolTip="{DynamicResource GlobalSettings_LoggingMaxArchiveFilesTooltip}" IsEnabled="{Binding Config.LoggingEnabled}"/>
|
||||||
</Grid>
|
</Grid>
|
||||||
</GroupBox>
|
</GroupBox>
|
||||||
|
|
||||||
</Grid>
|
</Grid>
|
||||||
</ScrollViewer>
|
</ScrollViewer>
|
||||||
</Grid>
|
</Grid>
|
||||||
|
|
|
||||||
|
|
@ -1,15 +1,4 @@
|
||||||
using Microsoft.WindowsAPICodePack.Dialogs;
|
using System;
|
||||||
using ServerManagerTool.Common;
|
|
||||||
using ServerManagerTool.Common.Lib;
|
|
||||||
using ServerManagerTool.Common.Model;
|
|
||||||
using ServerManagerTool.Common.Serialization;
|
|
||||||
using ServerManagerTool.Common.Utils;
|
|
||||||
using ServerManagerTool.Enums;
|
|
||||||
using ServerManagerTool.Lib;
|
|
||||||
using ServerManagerTool.Lib.ViewModel;
|
|
||||||
using ServerManagerTool.Plugin.Common;
|
|
||||||
using ServerManagerTool.Utils;
|
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Diagnostics;
|
using System.Diagnostics;
|
||||||
using System.Globalization;
|
using System.Globalization;
|
||||||
|
|
@ -24,6 +13,17 @@ using System.Windows.Controls;
|
||||||
using System.Windows.Controls.Primitives;
|
using System.Windows.Controls.Primitives;
|
||||||
using System.Windows.Data;
|
using System.Windows.Data;
|
||||||
using System.Windows.Input;
|
using System.Windows.Input;
|
||||||
|
using Microsoft.WindowsAPICodePack.Dialogs;
|
||||||
|
using ServerManagerTool.Common;
|
||||||
|
using ServerManagerTool.Common.Lib;
|
||||||
|
using ServerManagerTool.Common.Model;
|
||||||
|
using ServerManagerTool.Common.Serialization;
|
||||||
|
using ServerManagerTool.Common.Utils;
|
||||||
|
using ServerManagerTool.Enums;
|
||||||
|
using ServerManagerTool.Lib;
|
||||||
|
using ServerManagerTool.Lib.ViewModel;
|
||||||
|
using ServerManagerTool.Plugin.Common;
|
||||||
|
using ServerManagerTool.Utils;
|
||||||
using WPFSharp.Globalizer;
|
using WPFSharp.Globalizer;
|
||||||
|
|
||||||
namespace ServerManagerTool
|
namespace ServerManagerTool
|
||||||
|
|
@ -638,19 +638,19 @@ namespace ServerManagerTool
|
||||||
|
|
||||||
private void HelpSOTF_Click(object sender, RoutedEventArgs e)
|
private void HelpSOTF_Click(object sender, RoutedEventArgs e)
|
||||||
{
|
{
|
||||||
if (string.IsNullOrWhiteSpace(Config.Default.ArkSotfUrl))
|
if (string.IsNullOrWhiteSpace(Config.Default.AppUrl_SotF))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
Process.Start(Config.Default.ArkSotfUrl);
|
Process.Start(Config.Default.AppUrl_SotF);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void PatchNotes_Click(object sender, RoutedEventArgs e)
|
private void PatchNotes_Click(object sender, RoutedEventArgs e)
|
||||||
{
|
{
|
||||||
var url = string.Empty;
|
var url = string.Empty;
|
||||||
if (Settings.SOTF_Enabled)
|
if (Settings.SOTF_Enabled)
|
||||||
url =Config.Default.ArkSotF_PatchNotesUrl;
|
url =Config.Default.AppPatchNotesUrlSotF;
|
||||||
else
|
else
|
||||||
url = Config.Default.ArkSE_PatchNotesUrl;
|
url = Config.Default.AppPatchNotesUrl;
|
||||||
|
|
||||||
if (string.IsNullOrWhiteSpace(url))
|
if (string.IsNullOrWhiteSpace(url))
|
||||||
return;
|
return;
|
||||||
|
|
@ -791,9 +791,9 @@ namespace ServerManagerTool
|
||||||
|
|
||||||
// <data folder>\SteamCMD\steamapps\workshop\content\<app id>
|
// <data folder>\SteamCMD\steamapps\workshop\content\<app id>
|
||||||
if (this.Settings.SOTF_Enabled)
|
if (this.Settings.SOTF_Enabled)
|
||||||
folder = Path.Combine(Config.Default.DataDir, Config.Default.SteamCmdDir, Config.Default.ArkSteamWorkshopFolderRelativePath_SotF);
|
folder = Path.Combine(Config.Default.DataDir, Config.Default.SteamCmdDir, Config.Default.AppSteamWorkshopFolderRelativePath_SotF);
|
||||||
else
|
else
|
||||||
folder = Path.Combine(Config.Default.DataDir, Config.Default.SteamCmdDir, Config.Default.ArkSteamWorkshopFolderRelativePath);
|
folder = Path.Combine(Config.Default.DataDir, Config.Default.SteamCmdDir, Config.Default.AppSteamWorkshopFolderRelativePath);
|
||||||
if (Directory.Exists(folder))
|
if (Directory.Exists(folder))
|
||||||
{
|
{
|
||||||
foreach (var modFolder in Directory.GetDirectories(folder))
|
foreach (var modFolder in Directory.GetDirectories(folder))
|
||||||
|
|
@ -915,6 +915,9 @@ namespace ServerManagerTool
|
||||||
comment.AppendLine($"HasDiscordBotToken: {!string.IsNullOrWhiteSpace(Config.Default.DiscordBotToken)}");
|
comment.AppendLine($"HasDiscordBotToken: {!string.IsNullOrWhiteSpace(Config.Default.DiscordBotToken)}");
|
||||||
comment.AppendLine($"DiscordBotServerId: {Config.Default.DiscordBotServerId}");
|
comment.AppendLine($"DiscordBotServerId: {Config.Default.DiscordBotServerId}");
|
||||||
comment.AppendLine($"DiscordBotPrefix: {Config.Default.DiscordBotPrefix}");
|
comment.AppendLine($"DiscordBotPrefix: {Config.Default.DiscordBotPrefix}");
|
||||||
|
comment.AppendLine($"DiscordBotLogLevel: {Config.Default.DiscordBotLogLevel}");
|
||||||
|
comment.AppendLine($"DiscordBotAllowAllBots: {Config.Default.DiscordBotAllowAllBots}");
|
||||||
|
comment.AppendLine($"DiscordBotWhitelist: {string.Join(";", Config.Default.DiscordBotWhitelist)}");
|
||||||
comment.AppendLine($"AllowDiscordBackup: {Config.Default.AllowDiscordBackup}");
|
comment.AppendLine($"AllowDiscordBackup: {Config.Default.AllowDiscordBackup}");
|
||||||
comment.AppendLine($"AllowDiscordRestart: {Config.Default.AllowDiscordRestart}");
|
comment.AppendLine($"AllowDiscordRestart: {Config.Default.AllowDiscordRestart}");
|
||||||
comment.AppendLine($"AllowDiscordShutdown: {Config.Default.AllowDiscordShutdown}");
|
comment.AppendLine($"AllowDiscordShutdown: {Config.Default.AllowDiscordShutdown}");
|
||||||
|
|
@ -928,10 +931,15 @@ namespace ServerManagerTool
|
||||||
comment.AppendLine($"EmailNotify_ShutdownRestart: {Config.Default.EmailNotify_ShutdownRestart}");
|
comment.AppendLine($"EmailNotify_ShutdownRestart: {Config.Default.EmailNotify_ShutdownRestart}");
|
||||||
|
|
||||||
comment.AppendLine($"ServerShutdown_UseShutdownCommand: {Config.Default.ServerShutdown_UseShutdownCommand}");
|
comment.AppendLine($"ServerShutdown_UseShutdownCommand: {Config.Default.ServerShutdown_UseShutdownCommand}");
|
||||||
comment.AppendLine($"ServerShutdown_WorldSaveDelay: {Config.Default.ServerShutdown_WorldSaveDelay}");
|
|
||||||
comment.AppendLine($"BackupWorldFile: {Config.Default.BackupWorldFile}");
|
comment.AppendLine($"BackupWorldFile: {Config.Default.BackupWorldFile}");
|
||||||
|
comment.AppendLine($"CloseShutdownWindowWhenFinished: {Config.Default.CloseShutdownWindowWhenFinished}");
|
||||||
comment.AppendLine($"AutoUpdate_VerifyServerAfterUpdate: {Config.Default.AutoUpdate_VerifyServerAfterUpdate}");
|
comment.AppendLine($"AutoUpdate_VerifyServerAfterUpdate: {Config.Default.AutoUpdate_VerifyServerAfterUpdate}");
|
||||||
|
comment.AppendLine($"SteamCmdRemoveQuit: {CommonConfig.Default.SteamCmdRemoveQuit}");
|
||||||
comment.AppendLine($"UpdateDirectoryPermissions: {Config.Default.UpdateDirectoryPermissions}");
|
comment.AppendLine($"UpdateDirectoryPermissions: {Config.Default.UpdateDirectoryPermissions}");
|
||||||
|
comment.AppendLine($"LoggingEnabled: {Config.Default.LoggingEnabled}");
|
||||||
|
comment.AppendLine($"LoggingMaxArchiveDays: {Config.Default.LoggingMaxArchiveDays}");
|
||||||
|
comment.AppendLine($"LoggingMaxArchiveFiles: {Config.Default.LoggingMaxArchiveFiles}");
|
||||||
|
comment.AppendLine($"ServerShutdown_WorldSaveDelay: {Config.Default.ServerShutdown_WorldSaveDelay}");
|
||||||
|
|
||||||
var zipFile = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.Desktop), this.Settings.ProfileID + ".zip");
|
var zipFile = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.Desktop), this.Settings.ProfileID + ".zip");
|
||||||
if (File.Exists(zipFile)) File.Delete(zipFile);
|
if (File.Exists(zipFile)) File.Delete(zipFile);
|
||||||
|
|
|
||||||
|
|
@ -231,9 +231,9 @@ namespace ServerManagerTool.Utils
|
||||||
public static string GetModCachePath(string modId, bool isSotF)
|
public static string GetModCachePath(string modId, bool isSotF)
|
||||||
{
|
{
|
||||||
if (isSotF)
|
if (isSotF)
|
||||||
return IOUtils.NormalizePath(Path.Combine(Config.Default.DataDir, Config.Default.SteamCmdDir, Config.Default.ArkSteamWorkshopFolderRelativePath_SotF, modId));
|
return IOUtils.NormalizePath(Path.Combine(Config.Default.DataDir, Config.Default.SteamCmdDir, Config.Default.AppSteamWorkshopFolderRelativePath_SotF, modId));
|
||||||
|
|
||||||
return IOUtils.NormalizePath(Path.Combine(Config.Default.DataDir, Config.Default.SteamCmdDir, Config.Default.ArkSteamWorkshopFolderRelativePath, modId));
|
return IOUtils.NormalizePath(Path.Combine(Config.Default.DataDir, Config.Default.SteamCmdDir, Config.Default.AppSteamWorkshopFolderRelativePath, modId));
|
||||||
}
|
}
|
||||||
|
|
||||||
public static List<string> GetModIdList(string modIds)
|
public static List<string> GetModIdList(string modIds)
|
||||||
|
|
@ -282,17 +282,17 @@ namespace ServerManagerTool.Utils
|
||||||
public static string GetSteamManifestFile(string installDirectory, bool isSotF)
|
public static string GetSteamManifestFile(string installDirectory, bool isSotF)
|
||||||
{
|
{
|
||||||
if (isSotF)
|
if (isSotF)
|
||||||
return IOUtils.NormalizePath(Path.Combine(installDirectory, Config.Default.SteamManifestFolderRelativePath, Config.Default.ArkSteamManifestFile_SotF));
|
return IOUtils.NormalizePath(Path.Combine(installDirectory, Config.Default.SteamManifestFolderRelativePath, Config.Default.AppSteamManifestFile_SotF));
|
||||||
|
|
||||||
return IOUtils.NormalizePath(Path.Combine(installDirectory, Config.Default.SteamManifestFolderRelativePath, Config.Default.ArkSteamManifestFile));
|
return IOUtils.NormalizePath(Path.Combine(installDirectory, Config.Default.SteamManifestFolderRelativePath, Config.Default.AppSteamManifestFile));
|
||||||
}
|
}
|
||||||
|
|
||||||
public static string GetSteamWorkshopFile(bool isSotF)
|
public static string GetSteamWorkshopFile(bool isSotF)
|
||||||
{
|
{
|
||||||
if (isSotF)
|
if (isSotF)
|
||||||
return IOUtils.NormalizePath(Path.Combine(Config.Default.DataDir, Config.Default.SteamCmdDir, Config.Default.SteamWorkshopFolderRelativePath, Config.Default.ArkSteamWorkshopFile_SotF));
|
return IOUtils.NormalizePath(Path.Combine(Config.Default.DataDir, Config.Default.SteamCmdDir, Config.Default.SteamWorkshopFolderRelativePath, Config.Default.AppSteamWorkshopFile_SotF));
|
||||||
|
|
||||||
return IOUtils.NormalizePath(Path.Combine(Config.Default.DataDir, Config.Default.SteamCmdDir, Config.Default.SteamWorkshopFolderRelativePath, Config.Default.ArkSteamWorkshopFile));
|
return IOUtils.NormalizePath(Path.Combine(Config.Default.DataDir, Config.Default.SteamCmdDir, Config.Default.SteamWorkshopFolderRelativePath, Config.Default.AppSteamWorkshopFile));
|
||||||
}
|
}
|
||||||
|
|
||||||
public static int GetSteamWorkshopLatestTime(string workshopFile, string modId)
|
public static int GetSteamWorkshopLatestTime(string workshopFile, string modId)
|
||||||
|
|
|
||||||
|
|
@ -442,7 +442,7 @@
|
||||||
<value />
|
<value />
|
||||||
</setting>
|
</setting>
|
||||||
<setting name="AutoUpdate_ParallelUpdate" serializeAs="String">
|
<setting name="AutoUpdate_ParallelUpdate" serializeAs="String">
|
||||||
<value>True</value>
|
<value>False</value>
|
||||||
</setting>
|
</setting>
|
||||||
<setting name="AutoUpdate_UpdateReasonPrefix" serializeAs="String">
|
<setting name="AutoUpdate_UpdateReasonPrefix" serializeAs="String">
|
||||||
<value>Server Update Reason:</value>
|
<value>Server Update Reason:</value>
|
||||||
|
|
@ -517,7 +517,7 @@
|
||||||
<value>True</value>
|
<value>True</value>
|
||||||
</setting>
|
</setting>
|
||||||
<setting name="AutoUpdate_SequencialDelayPeriod" serializeAs="String">
|
<setting name="AutoUpdate_SequencialDelayPeriod" serializeAs="String">
|
||||||
<value>0</value>
|
<value>10</value>
|
||||||
</setting>
|
</setting>
|
||||||
<setting name="BackupWorldFile" serializeAs="String">
|
<setting name="BackupWorldFile" serializeAs="String">
|
||||||
<value>True</value>
|
<value>True</value>
|
||||||
|
|
|
||||||
4
src/ConanServerManager/Config.Designer.cs
generated
4
src/ConanServerManager/Config.Designer.cs
generated
|
|
@ -1088,7 +1088,7 @@ namespace ServerManagerTool {
|
||||||
|
|
||||||
[global::System.Configuration.UserScopedSettingAttribute()]
|
[global::System.Configuration.UserScopedSettingAttribute()]
|
||||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||||
[global::System.Configuration.DefaultSettingValueAttribute("True")]
|
[global::System.Configuration.DefaultSettingValueAttribute("False")]
|
||||||
public bool AutoUpdate_ParallelUpdate {
|
public bool AutoUpdate_ParallelUpdate {
|
||||||
get {
|
get {
|
||||||
return ((bool)(this["AutoUpdate_ParallelUpdate"]));
|
return ((bool)(this["AutoUpdate_ParallelUpdate"]));
|
||||||
|
|
@ -1680,7 +1680,7 @@ namespace ServerManagerTool {
|
||||||
|
|
||||||
[global::System.Configuration.UserScopedSettingAttribute()]
|
[global::System.Configuration.UserScopedSettingAttribute()]
|
||||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||||
[global::System.Configuration.DefaultSettingValueAttribute("0")]
|
[global::System.Configuration.DefaultSettingValueAttribute("10")]
|
||||||
public int AutoUpdate_SequencialDelayPeriod {
|
public int AutoUpdate_SequencialDelayPeriod {
|
||||||
get {
|
get {
|
||||||
return ((int)(this["AutoUpdate_SequencialDelayPeriod"]));
|
return ((int)(this["AutoUpdate_SequencialDelayPeriod"]));
|
||||||
|
|
|
||||||
|
|
@ -300,7 +300,7 @@
|
||||||
<Value Profile="(Default)" />
|
<Value Profile="(Default)" />
|
||||||
</Setting>
|
</Setting>
|
||||||
<Setting Name="AutoUpdate_ParallelUpdate" Type="System.Boolean" Scope="User">
|
<Setting Name="AutoUpdate_ParallelUpdate" Type="System.Boolean" Scope="User">
|
||||||
<Value Profile="(Default)">True</Value>
|
<Value Profile="(Default)">False</Value>
|
||||||
</Setting>
|
</Setting>
|
||||||
<Setting Name="AutoUpdate_UpdateReasonPrefix" Type="System.String" Scope="User">
|
<Setting Name="AutoUpdate_UpdateReasonPrefix" Type="System.String" Scope="User">
|
||||||
<Value Profile="(Default)">Server Update Reason:</Value>
|
<Value Profile="(Default)">Server Update Reason:</Value>
|
||||||
|
|
@ -471,7 +471,7 @@
|
||||||
<Value Profile="(Default)">-listen -nosteamclient -game -server -log</Value>
|
<Value Profile="(Default)">-listen -nosteamclient -game -server -log</Value>
|
||||||
</Setting>
|
</Setting>
|
||||||
<Setting Name="AutoUpdate_SequencialDelayPeriod" Type="System.Int32" Scope="User">
|
<Setting Name="AutoUpdate_SequencialDelayPeriod" Type="System.Int32" Scope="User">
|
||||||
<Value Profile="(Default)">0</Value>
|
<Value Profile="(Default)">10</Value>
|
||||||
</Setting>
|
</Setting>
|
||||||
<Setting Name="BackupWorldFile" Type="System.Boolean" Scope="User">
|
<Setting Name="BackupWorldFile" Type="System.Boolean" Scope="User">
|
||||||
<Value Profile="(Default)">True</Value>
|
<Value Profile="(Default)">True</Value>
|
||||||
|
|
|
||||||
|
|
@ -22,6 +22,7 @@ using System.Net.Mail;
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
using System.Security.Cryptography;
|
using System.Security.Cryptography;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
|
using System.Text.RegularExpressions;
|
||||||
using System.Threading;
|
using System.Threading;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using WPFSharp.Globalizer;
|
using WPFSharp.Globalizer;
|
||||||
|
|
@ -762,7 +763,8 @@ namespace ServerManagerTool.Lib
|
||||||
success = false;
|
success = false;
|
||||||
LogProfileMessage("****************************");
|
LogProfileMessage("****************************");
|
||||||
LogProfileMessage("ERROR: Failed server update.");
|
LogProfileMessage("ERROR: Failed server update.");
|
||||||
LogProfileMessage("****************************\r\n");
|
LogProfileMessage("****************************");
|
||||||
|
LogProfileMessage("Check steamcmd logs for more information why the server update failed.\r\n");
|
||||||
|
|
||||||
if (Config.Default.SteamCmdRedirectOutput)
|
if (Config.Default.SteamCmdRedirectOutput)
|
||||||
LogProfileMessage($"If the server update keeps failing try disabling the '{_globalizer.GetResourceString("GlobalSettings_SteamCmdRedirectOutputLabel")}' option in the settings window.\r\n");
|
LogProfileMessage($"If the server update keeps failing try disabling the '{_globalizer.GetResourceString("GlobalSettings_SteamCmdRedirectOutputLabel")}' option in the settings window.\r\n");
|
||||||
|
|
@ -935,6 +937,7 @@ namespace ServerManagerTool.Lib
|
||||||
LogProfileMessage("***************************");
|
LogProfileMessage("***************************");
|
||||||
LogProfileMessage("ERROR: Mod download failed.");
|
LogProfileMessage("ERROR: Mod download failed.");
|
||||||
LogProfileMessage("***************************\r\n");
|
LogProfileMessage("***************************\r\n");
|
||||||
|
LogProfileMessage("Check steamcmd logs for more information why the mod update failed.\r\n");
|
||||||
|
|
||||||
if (Config.Default.SteamCmdRedirectOutput)
|
if (Config.Default.SteamCmdRedirectOutput)
|
||||||
LogProfileMessage($"If the mod update keeps failing try disabling the '{_globalizer.GetResourceString("GlobalSettings_SteamCmdRedirectOutputLabel")}' option in the settings window.\r\n");
|
LogProfileMessage($"If the mod update keeps failing try disabling the '{_globalizer.GetResourceString("GlobalSettings_SteamCmdRedirectOutputLabel")}' option in the settings window.\r\n");
|
||||||
|
|
@ -1152,6 +1155,7 @@ namespace ServerManagerTool.Lib
|
||||||
}
|
}
|
||||||
|
|
||||||
// stop the server
|
// stop the server
|
||||||
|
LogProfileMessage("");
|
||||||
StopServer(CancellationToken.None);
|
StopServer(CancellationToken.None);
|
||||||
|
|
||||||
if (ExitCode != EXITCODE_NORMALEXIT)
|
if (ExitCode != EXITCODE_NORMALEXIT)
|
||||||
|
|
@ -1162,6 +1166,7 @@ namespace ServerManagerTool.Lib
|
||||||
emailMessage.AppendLine($"Server Manager version: {App.Instance.Version}");
|
emailMessage.AppendLine($"Server Manager version: {App.Instance.Version}");
|
||||||
|
|
||||||
// make a backup of the current profile and config files.
|
// make a backup of the current profile and config files.
|
||||||
|
LogProfileMessage("");
|
||||||
CreateProfileBackupArchiveFile(_profile);
|
CreateProfileBackupArchiveFile(_profile);
|
||||||
|
|
||||||
if (ExitCode != EXITCODE_NORMALEXIT)
|
if (ExitCode != EXITCODE_NORMALEXIT)
|
||||||
|
|
@ -1170,6 +1175,7 @@ namespace ServerManagerTool.Lib
|
||||||
if (BackupWorldFile)
|
if (BackupWorldFile)
|
||||||
{
|
{
|
||||||
// make a backup of the current world file.
|
// make a backup of the current world file.
|
||||||
|
LogProfileMessage("");
|
||||||
CreateServerBackupArchiveFile(emailMessage, _profile);
|
CreateServerBackupArchiveFile(emailMessage, _profile);
|
||||||
|
|
||||||
if (ExitCode != EXITCODE_NORMALEXIT)
|
if (ExitCode != EXITCODE_NORMALEXIT)
|
||||||
|
|
@ -1184,6 +1190,7 @@ namespace ServerManagerTool.Lib
|
||||||
alertMessage.AppendLine(Config.Default.Alert_UpdateResults);
|
alertMessage.AppendLine(Config.Default.Alert_UpdateResults);
|
||||||
|
|
||||||
// check if the server needs to be updated
|
// check if the server needs to be updated
|
||||||
|
LogProfileMessage("");
|
||||||
if (updateServer)
|
if (updateServer)
|
||||||
{
|
{
|
||||||
Task.Delay(5000).Wait();
|
Task.Delay(5000).Wait();
|
||||||
|
|
@ -1212,6 +1219,9 @@ namespace ServerManagerTool.Lib
|
||||||
LogProfileMessage("Validated server files (*new*).");
|
LogProfileMessage("Validated server files (*new*).");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// update the version number
|
||||||
|
_profile.LastInstalledVersion = GetServerVersion(GetServerVersionFile()).ToString();
|
||||||
|
|
||||||
LogProfileMessage("Updated server from cache. See patch notes.");
|
LogProfileMessage("Updated server from cache. See patch notes.");
|
||||||
LogProfileMessage(Config.Default.AppPatchNotesUrl);
|
LogProfileMessage(Config.Default.AppPatchNotesUrl);
|
||||||
|
|
||||||
|
|
@ -1241,10 +1251,16 @@ namespace ServerManagerTool.Lib
|
||||||
LogProfileMessage("Server is already up to date, no update required.");
|
LogProfileMessage("Server is already up to date, no update required.");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var serverVersion = GetServerVersion(GetServerVersionFile()).ToString();
|
||||||
|
LogProfileMessage($"Server version: {serverVersion}");
|
||||||
|
|
||||||
|
emailMessage.AppendLine($"Server version: {serverVersion}");
|
||||||
|
|
||||||
if (ExitCode != EXITCODE_NORMALEXIT)
|
if (ExitCode != EXITCODE_NORMALEXIT)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
// check if the mods need to be updated
|
// check if the mods need to be updated
|
||||||
|
LogProfileMessage("");
|
||||||
if (updateModIds.Count > 0)
|
if (updateModIds.Count > 0)
|
||||||
{
|
{
|
||||||
Task.Delay(5000).Wait();
|
Task.Delay(5000).Wait();
|
||||||
|
|
@ -1329,6 +1345,7 @@ namespace ServerManagerTool.Lib
|
||||||
}
|
}
|
||||||
|
|
||||||
ModUtils.CreateModListFile(_profile.InstallDirectory, _profile.ServerModIds);
|
ModUtils.CreateModListFile(_profile.InstallDirectory, _profile.ServerModIds);
|
||||||
|
LogProfileMessage("");
|
||||||
LogProfileMessage("Modlist file updated.");
|
LogProfileMessage("Modlist file updated.");
|
||||||
|
|
||||||
if (ExitCode == EXITCODE_NORMALEXIT)
|
if (ExitCode == EXITCODE_NORMALEXIT)
|
||||||
|
|
@ -1344,12 +1361,14 @@ namespace ServerManagerTool.Lib
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
LogProfileMessage("Mods are already up to date, no updates required.");
|
if (modIdList.Count > 0)
|
||||||
|
LogProfileMessage("Mods are already up to date, no updates required.");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ExitCode != EXITCODE_NORMALEXIT)
|
if (ExitCode != EXITCODE_NORMALEXIT)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
LogProfileMessage("");
|
||||||
if (Config.Default.AutoUpdate_OverrideServerStartup)
|
if (Config.Default.AutoUpdate_OverrideServerStartup)
|
||||||
{
|
{
|
||||||
if (_serverRunning)
|
if (_serverRunning)
|
||||||
|
|
@ -1374,13 +1393,15 @@ namespace ServerManagerTool.Lib
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (updateModIds.Count > 0)
|
LogProfileMessage("");
|
||||||
|
if (modIdList.Count > 0)
|
||||||
LogProfileMessage("The server and mods files are already up to date, no updates required.");
|
LogProfileMessage("The server and mods files are already up to date, no updates required.");
|
||||||
else
|
else
|
||||||
LogProfileMessage("The server files are already up to date, no updates required.");
|
LogProfileMessage("The server files are already up to date, no updates required.");
|
||||||
|
|
||||||
_serverRunning = GetServerProcess() != null;
|
_serverRunning = GetServerProcess() != null;
|
||||||
|
|
||||||
|
LogProfileMessage("");
|
||||||
if (Config.Default.AutoUpdate_OverrideServerStartup)
|
if (Config.Default.AutoUpdate_OverrideServerStartup)
|
||||||
{
|
{
|
||||||
if (!_serverRunning)
|
if (!_serverRunning)
|
||||||
|
|
@ -1574,7 +1595,10 @@ namespace ServerManagerTool.Lib
|
||||||
{
|
{
|
||||||
// failed max limit reached
|
// failed max limit reached
|
||||||
if (Config.Default.SteamCmdRedirectOutput)
|
if (Config.Default.SteamCmdRedirectOutput)
|
||||||
|
{
|
||||||
|
LogMessage("Check steamcmd logs for more information why the mod cache update failed.\r\n");
|
||||||
LogMessage($"If the mod cache update keeps failing try disabling the '{_globalizer.GetResourceString("GlobalSettings_SteamCmdRedirectOutputLabel")}' option in the Server Manager settings window.");
|
LogMessage($"If the mod cache update keeps failing try disabling the '{_globalizer.GetResourceString("GlobalSettings_SteamCmdRedirectOutputLabel")}' option in the Server Manager settings window.");
|
||||||
|
}
|
||||||
|
|
||||||
ExitCode = EXITCODE_CACHEMODUPDATEFAILED;
|
ExitCode = EXITCODE_CACHEMODUPDATEFAILED;
|
||||||
return;
|
return;
|
||||||
|
|
@ -1693,7 +1717,10 @@ namespace ServerManagerTool.Lib
|
||||||
{
|
{
|
||||||
// failed max limit reached
|
// failed max limit reached
|
||||||
if (Config.Default.SteamCmdRedirectOutput)
|
if (Config.Default.SteamCmdRedirectOutput)
|
||||||
|
{
|
||||||
|
LogBranchMessage(branchName, $"Check steamcmd logs for more information why the server cache update failed.\r\n");
|
||||||
LogBranchMessage(branchName, $"If the server cache update keeps failing try disabling the '{_globalizer.GetResourceString("GlobalSettings_SteamCmdRedirectOutputLabel")}' option in the ASM settings window.");
|
LogBranchMessage(branchName, $"If the server cache update keeps failing try disabling the '{_globalizer.GetResourceString("GlobalSettings_SteamCmdRedirectOutputLabel")}' option in the ASM settings window.");
|
||||||
|
}
|
||||||
|
|
||||||
ExitCode = EXITCODE_CACHESERVERUPDATEFAILED;
|
ExitCode = EXITCODE_CACHESERVERUPDATEFAILED;
|
||||||
return;
|
return;
|
||||||
|
|
@ -1721,6 +1748,9 @@ namespace ServerManagerTool.Lib
|
||||||
else
|
else
|
||||||
LogBranchMessage(branchName, $"Server cache does not exist.");
|
LogBranchMessage(branchName, $"Server cache does not exist.");
|
||||||
|
|
||||||
|
var cacheVersion = GetServerVersion(GetServerCacheVersionFile(branchName)).ToString();
|
||||||
|
LogBranchMessage(branchName, $"Server cache version: {cacheVersion}");
|
||||||
|
|
||||||
LogBranchMessage(branchName, "-----------------------------");
|
LogBranchMessage(branchName, "-----------------------------");
|
||||||
LogBranchMessage(branchName, "Finished server cache update.");
|
LogBranchMessage(branchName, "Finished server cache update.");
|
||||||
LogBranchMessage(branchName, "-----------------------------");
|
LogBranchMessage(branchName, "-----------------------------");
|
||||||
|
|
@ -1740,7 +1770,6 @@ namespace ServerManagerTool.Lib
|
||||||
{
|
{
|
||||||
_profile = profile;
|
_profile = profile;
|
||||||
|
|
||||||
|
|
||||||
// create the backup file.
|
// create the backup file.
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
|
@ -2197,6 +2226,8 @@ namespace ServerManagerTool.Lib
|
||||||
|
|
||||||
private static string GetServerCacheTimeFile(string branchName) => IOUtils.NormalizePath(Path.Combine(GetServerCacheFolder(branchName), Config.Default.LastUpdatedTimeFile));
|
private static string GetServerCacheTimeFile(string branchName) => IOUtils.NormalizePath(Path.Combine(GetServerCacheFolder(branchName), Config.Default.LastUpdatedTimeFile));
|
||||||
|
|
||||||
|
private static string GetServerCacheVersionFile(string branchName) => IOUtils.NormalizePath(Path.Combine(GetServerCacheFolder(branchName), Config.Default.ServerBinaryRelativePath, Config.Default.ServerExeFile));
|
||||||
|
|
||||||
private string GetServerExecutableFile() => IOUtils.NormalizePath(Path.Combine(_profile.InstallDirectory, Config.Default.ServerBinaryRelativePath, Config.Default.ServerExeFile));
|
private string GetServerExecutableFile() => IOUtils.NormalizePath(Path.Combine(_profile.InstallDirectory, Config.Default.ServerBinaryRelativePath, Config.Default.ServerExeFile));
|
||||||
|
|
||||||
private DateTime GetServerLatestTime(string timeFile)
|
private DateTime GetServerLatestTime(string timeFile)
|
||||||
|
|
@ -2239,6 +2270,35 @@ namespace ServerManagerTool.Lib
|
||||||
|
|
||||||
private string GetServerSaveFolder() => IOUtils.NormalizePath(Path.Combine(_profile.InstallDirectory, Config.Default.SavedFilesRelativePath));
|
private string GetServerSaveFolder() => IOUtils.NormalizePath(Path.Combine(_profile.InstallDirectory, Config.Default.SavedFilesRelativePath));
|
||||||
|
|
||||||
|
private string GetServerVersionFile() => IOUtils.NormalizePath(Path.Combine(_profile.InstallDirectory, Config.Default.ServerBinaryRelativePath, Config.Default.ServerExeFile));
|
||||||
|
|
||||||
|
public static Version GetServerVersion(string versionFile)
|
||||||
|
{
|
||||||
|
if (!string.IsNullOrWhiteSpace(versionFile) && File.Exists(versionFile))
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
var info = FileVersionInfo.GetVersionInfo(versionFile);
|
||||||
|
var version = $"{info.ProductMajorPart}.{info.ProductMinorPart}";
|
||||||
|
var name = info.ProductName;
|
||||||
|
|
||||||
|
var match = Regex.Match(name, @"\(([0-9]*)\)");
|
||||||
|
if (match.Success && match.Groups.Count >= 2)
|
||||||
|
{
|
||||||
|
var serverVersion = $"{version}.{match.Groups[1].Value}";
|
||||||
|
if (!string.IsNullOrWhiteSpace(serverVersion) && Version.TryParse(serverVersion, out Version temp))
|
||||||
|
return temp;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catch (Exception)
|
||||||
|
{
|
||||||
|
// do nothing, just leave
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return new Version(0, 0);
|
||||||
|
}
|
||||||
|
|
||||||
private string GetServerWorldFile()
|
private string GetServerWorldFile()
|
||||||
{
|
{
|
||||||
var saveFolder = GetServerSaveFolder();
|
var saveFolder = GetServerSaveFolder();
|
||||||
|
|
|
||||||
|
|
@ -737,7 +737,6 @@
|
||||||
<cctl:AnnotatedSlider Grid.Row="6" Grid.Column="0" Margin="0" Label="{DynamicResource GlobalSettings_LoggingMaxArchiveFilesLabel}" Value="{Binding Config.LoggingMaxArchiveFiles}" Minimum="1" Maximum="1000" SmallChange="1" LargeChange="5" TickFrequency="5" LabelRelativeWidth="Auto" SliderRelativeWidth="15*" SuffixRelativeWidth="Auto" SuffixRelativeMinWidth="40" Suffix="{DynamicResource SliderUnits_Files}" ToolTip="{DynamicResource GlobalSettings_LoggingMaxArchiveFilesTooltip}" IsEnabled="{Binding Config.LoggingEnabled}"/>
|
<cctl:AnnotatedSlider Grid.Row="6" Grid.Column="0" Margin="0" Label="{DynamicResource GlobalSettings_LoggingMaxArchiveFilesLabel}" Value="{Binding Config.LoggingMaxArchiveFiles}" Minimum="1" Maximum="1000" SmallChange="1" LargeChange="5" TickFrequency="5" LabelRelativeWidth="Auto" SliderRelativeWidth="15*" SuffixRelativeWidth="Auto" SuffixRelativeMinWidth="40" Suffix="{DynamicResource SliderUnits_Files}" ToolTip="{DynamicResource GlobalSettings_LoggingMaxArchiveFilesTooltip}" IsEnabled="{Binding Config.LoggingEnabled}"/>
|
||||||
</Grid>
|
</Grid>
|
||||||
</GroupBox>
|
</GroupBox>
|
||||||
|
|
||||||
</Grid>
|
</Grid>
|
||||||
</ScrollViewer>
|
</ScrollViewer>
|
||||||
</Grid>
|
</Grid>
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,4 @@
|
||||||
using Microsoft.WindowsAPICodePack.Dialogs;
|
using System;
|
||||||
using ServerManagerTool.Common;
|
|
||||||
using ServerManagerTool.Common.Lib;
|
|
||||||
using ServerManagerTool.Common.Model;
|
|
||||||
using ServerManagerTool.Common.Utils;
|
|
||||||
using ServerManagerTool.Enums;
|
|
||||||
using ServerManagerTool.Lib;
|
|
||||||
using ServerManagerTool.Plugin.Common;
|
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Diagnostics;
|
using System.Diagnostics;
|
||||||
using System.Globalization;
|
using System.Globalization;
|
||||||
|
|
@ -20,8 +12,15 @@ using System.Windows;
|
||||||
using System.Windows.Controls;
|
using System.Windows.Controls;
|
||||||
using System.Windows.Controls.Primitives;
|
using System.Windows.Controls.Primitives;
|
||||||
using System.Windows.Data;
|
using System.Windows.Data;
|
||||||
using System.Windows.Documents;
|
|
||||||
using System.Windows.Input;
|
using System.Windows.Input;
|
||||||
|
using Microsoft.WindowsAPICodePack.Dialogs;
|
||||||
|
using ServerManagerTool.Common;
|
||||||
|
using ServerManagerTool.Common.Lib;
|
||||||
|
using ServerManagerTool.Common.Model;
|
||||||
|
using ServerManagerTool.Common.Utils;
|
||||||
|
using ServerManagerTool.Enums;
|
||||||
|
using ServerManagerTool.Lib;
|
||||||
|
using ServerManagerTool.Plugin.Common;
|
||||||
using WPFSharp.Globalizer;
|
using WPFSharp.Globalizer;
|
||||||
|
|
||||||
namespace ServerManagerTool
|
namespace ServerManagerTool
|
||||||
|
|
@ -685,6 +684,9 @@ namespace ServerManagerTool
|
||||||
comment.AppendLine($"HasDiscordBotToken: {!string.IsNullOrWhiteSpace(Config.Default.DiscordBotToken)}");
|
comment.AppendLine($"HasDiscordBotToken: {!string.IsNullOrWhiteSpace(Config.Default.DiscordBotToken)}");
|
||||||
comment.AppendLine($"DiscordBotServerId: {Config.Default.DiscordBotServerId}");
|
comment.AppendLine($"DiscordBotServerId: {Config.Default.DiscordBotServerId}");
|
||||||
comment.AppendLine($"DiscordBotPrefix: {Config.Default.DiscordBotPrefix}");
|
comment.AppendLine($"DiscordBotPrefix: {Config.Default.DiscordBotPrefix}");
|
||||||
|
comment.AppendLine($"DiscordBotLogLevel: {Config.Default.DiscordBotLogLevel}");
|
||||||
|
comment.AppendLine($"DiscordBotAllowAllBots: {Config.Default.DiscordBotAllowAllBots}");
|
||||||
|
comment.AppendLine($"DiscordBotWhitelist: {string.Join(";", Config.Default.DiscordBotWhitelist)}");
|
||||||
comment.AppendLine($"AllowDiscordBackup: {Config.Default.AllowDiscordBackup}");
|
comment.AppendLine($"AllowDiscordBackup: {Config.Default.AllowDiscordBackup}");
|
||||||
comment.AppendLine($"AllowDiscordRestart: {Config.Default.AllowDiscordRestart}");
|
comment.AppendLine($"AllowDiscordRestart: {Config.Default.AllowDiscordRestart}");
|
||||||
comment.AppendLine($"AllowDiscordShutdown: {Config.Default.AllowDiscordShutdown}");
|
comment.AppendLine($"AllowDiscordShutdown: {Config.Default.AllowDiscordShutdown}");
|
||||||
|
|
@ -698,10 +700,15 @@ namespace ServerManagerTool
|
||||||
comment.AppendLine($"EmailNotify_ShutdownRestart: {Config.Default.EmailNotify_ShutdownRestart}");
|
comment.AppendLine($"EmailNotify_ShutdownRestart: {Config.Default.EmailNotify_ShutdownRestart}");
|
||||||
|
|
||||||
comment.AppendLine($"ServerShutdown_UseShutdownCommand: {Config.Default.ServerShutdown_UseShutdownCommand}");
|
comment.AppendLine($"ServerShutdown_UseShutdownCommand: {Config.Default.ServerShutdown_UseShutdownCommand}");
|
||||||
comment.AppendLine($"ServerShutdown_WorldSaveDelay: {Config.Default.ServerShutdown_WorldSaveDelay}");
|
|
||||||
comment.AppendLine($"BackupWorldFile: {Config.Default.BackupWorldFile}");
|
comment.AppendLine($"BackupWorldFile: {Config.Default.BackupWorldFile}");
|
||||||
|
comment.AppendLine($"CloseShutdownWindowWhenFinished: {Config.Default.CloseShutdownWindowWhenFinished}");
|
||||||
comment.AppendLine($"AutoUpdate_VerifyServerAfterUpdate: {Config.Default.AutoUpdate_VerifyServerAfterUpdate}");
|
comment.AppendLine($"AutoUpdate_VerifyServerAfterUpdate: {Config.Default.AutoUpdate_VerifyServerAfterUpdate}");
|
||||||
|
comment.AppendLine($"SteamCmdRemoveQuit: {CommonConfig.Default.SteamCmdRemoveQuit}");
|
||||||
comment.AppendLine($"UpdateDirectoryPermissions: {Config.Default.UpdateDirectoryPermissions}");
|
comment.AppendLine($"UpdateDirectoryPermissions: {Config.Default.UpdateDirectoryPermissions}");
|
||||||
|
comment.AppendLine($"LoggingEnabled: {Config.Default.LoggingEnabled}");
|
||||||
|
comment.AppendLine($"LoggingMaxArchiveDays: {Config.Default.LoggingMaxArchiveDays}");
|
||||||
|
comment.AppendLine($"LoggingMaxArchiveFiles: {Config.Default.LoggingMaxArchiveFiles}");
|
||||||
|
comment.AppendLine($"ServerShutdown_WorldSaveDelay: {Config.Default.ServerShutdown_WorldSaveDelay}");
|
||||||
|
|
||||||
var zipFile = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.Desktop), this.Settings.ProfileID + ".zip");
|
var zipFile = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.Desktop), this.Settings.ProfileID + ".zip");
|
||||||
if (File.Exists(zipFile)) File.Delete(zipFile);
|
if (File.Exists(zipFile)) File.Delete(zipFile);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue