From 9b18fb27c3dc3b5b41e51b4c1064896d624b650e Mon Sep 17 00:00:00 2001 From: James Manker Date: Fri, 18 Feb 2022 22:28:30 -0600 Subject: [PATCH] Update Space Engineers Fixed the config file getting overwritten on update Added Sleep functionality Fixed Steam direct connect link Properly hid Port/IP settings Removed unused Port 3 --- space-engineers-generic.kvp | 99 ++++++++++++++++++++---------- space-engineers-genericconfig.json | 12 ++-- 2 files changed, 75 insertions(+), 36 deletions(-) diff --git a/space-engineers-generic.kvp b/space-engineers-generic.kvp index 8c3f838..ef88741 100644 --- a/space-engineers-generic.kvp +++ b/space-engineers-generic.kvp @@ -1,41 +1,76 @@ -App.AdminMethod=STDIO -App.ApplicationReadyMode=RegexMatch +Meta.DisplayName=Space Engineers +Meta.Description=Space Engineers Dedicated Server +Meta.OS=Windows +Meta.Arch=x86_64 +Meta.Author=IceOfWraith, CubeCoders(base) +Meta.URL=https://store.steampowered.com/app/244850/Space_Engineers/ +Meta.DisplayImageSource=steam:244850 +Meta.EndpointURIFormat=steam://connect/{ip}:{GenericModule.App.ApplicationPort2} +Meta.ConfigManifest=space-engineers-genericconfig.json +Meta.MetaConfigManifest=space-engineers-genericmetaconfig.json +Meta.ConfigRoot=space-engineers-generic.kvp +Meta.MinAMPVersion=2.3.0.9 +Meta.SpecificDockerImage= +Meta.ContainerPolicy=Supported +Meta.Prerequsites=[] +Meta.ConfigReleaseState=NotSpecified +App.DisplayName=Space Engineers +App.RootDir=./space-engineers-generic/ +App.BaseDirectory=./space-engineers-generic/298740/ +App.ExecutableWin=298740\DedicatedServer64\SpaceEngineersDedicated.exe +App.ExecutableLinux=298740/ +App.WorkingDir=298740 +App.LinuxCommandLineArgs= +App.WindowsCommandLineArgs= +App.CommandLineArgs=-console -path "{{$FullBaseDir}}servers" {{$FormattedArgs}} +App.AppSettings={} +App.EnvironmentVariables={"LD_LIBRARY_PATH":"./linux64:%LD_LIBRARY_PATH%","SteamAppId":"298740"} +App.CommandLineParameterFormat=-{0} "{1}" +App.CommandLineParameterDelimiter= +App.ExitMethod=String +App.ExitTimeout=30 +App.ExitString=taskkill /IM +App.ExitFile=app_exit.lck +App.HasWriteableConsole=True +App.HasReadableConsole=True +App.SupportsLiveSettingsChanges=False +App.LiveSettingChangeCommandFormat=set {0} "{1}" +App.ApplicationIPBinding=0.0.0.0 App.RemoteAdminPort=27016 App.ApplicationPort1=27017 App.ApplicationPort2=8777 -App.ApplicationReadyMode=RegexMatch -App.BaseDirectory=./space-engineers-generic/298740/ -App.CommandLineArgs=-console -path "{{$FullBaseDir}}servers" {{$FormattedArgs}} -App.CommandLineParameterDelimiter= -App.CommandLineParameterFormat=-{0} "{1}" -App.DisplayName=Space Engineers (Generic) -App.EnvironmentVariables={"LD_LIBRARY_PATH": "./linux64:%LD_LIBRARY_PATH%", "SteamAppId": "298740"} -App.ExecutableLinux=298740/ -App.ExecutableWin=298740\DedicatedServer64\SpaceEngineersDedicated.exe -App.ExitMethod=String -App.ExitString=taskkill /IM -App.HasReadableConsole=true -App.HasWritableConsole=true +App.ApplicationPort3=0 App.MaxUsers=12 -App.RapidStartup=false -App.RootDir=./space-engineers-generic/ -App.UpdateSource=Multi -App.UpdateSources=[{"UpdateStageName": "SteamCMD Download","UpdateSourcePlatform": "All", "UpdateSource": "SteamCMD", "UpdateSourceData": "298740"},{"UpdateStageName":"Create Config Directory","UpdateSourcePlatform":"All","UpdateSource":"CreateDirectory","UpdateSourceArgs":"space-engineers-generic/298740/servers","OverwriteExistingFiles":false},{"UpdateStageName": "Base Config Download","UpdateSourcePlatform": "All", "UpdateSource": "FetchURL", "UpdateSourceData": "https://github.com/CubeCoders/AMPTemplates/raw/main/SpaceEngineers-Dedicated.cfg","UpdateSourceTarget":"298740/servers"}] -App.WorkingDir=298740 +App.UseRandomAdminPassword=False +App.RemoteAdminPassword=Password123 +App.AdminMethod=STDIO +App.AdminLoginTransform=None +App.RCONConnectDelaySeconds=5 +App.RCONConnectRetrySeconds=5 +App.UpdateSources=[{"UpdateStageName": "SteamCMD Download","UpdateSourcePlatform": "All", "UpdateSource": "SteamCMD", "UpdateSourceData": "298740"},{"UpdateStageName":"Create Config Directory","UpdateSourcePlatform":"All","UpdateSource":"CreateDirectory","UpdateSourceArgs":"space-engineers-generic/298740/servers","OverwriteExistingFiles":false},{"UpdateStageName": "Base Config Download","UpdateSourcePlatform": "All", "UpdateSource": "FetchURL", "UpdateSourceData": "https://github.com/CubeCoders/AMPTemplates/raw/main/SpaceEngineers-Dedicated.cfg","UpdateSourceTarget":"298740/servers","OverwriteExistingFiles":false}] +App.Compatibility=None +App.SteamUpdateAnonymousLogin=True +App.SteamForceLoginPrompt=False +App.RapidStartup=False +App.SupportsUniversalSleep=True +App.UniversalSleepApplicationUDPPort=1 +App.UniversalSleepSteamQueryPort=2 +App.WakeupMode=Any +App.ApplicationReadyMode=RegexMatch +App.TemplateMatchRegex={{(\$?[\w]+)}} +Console.FilterMatchRegex= +Console.FilterMatchReplacement= Console.ThrowawayMessageRegex=^(WARNING|ERROR): Shader.+$ Console.AppReadyRegex=^\d+\-\d+\-\d+ \d+\:\d+\:\d+.\d+\: Game ready.*$ Console.UserJoinRegex=^\d+\-\d+\-\d+ \d+\:\d+\:\d+.\d+\: World request received: (?.+?)$ Console.UserLeaveRegex=^\d+\-\d+\-\d+ \d+\:\d+\:\d+.\d+\: User left (?.+?)$ -Console.UserChatRegex= +Console.UserChatRegex=^\[\d\d:\d\d:\d\d\] \[CHAT\] <(?.+?)> (?.+)$ Console.UpdateAvailableRegex=^\[\d\d:\d\d:\d\d\] \[INFO\] A new server update is available! v[\d\.]+.$ -Meta.Author=IceOfWraith, CubeCoders(base) -Meta.ConfigManifest=space-engineers-genericconfig.json -Meta.MetaConfigManifest=space-engineers-genericmetaconfig.json -Meta.ConfigRoot=space-engineers-generic.kvp -Meta.Description= -Meta.DisplayImageSource=steam:244850 -Meta.DisplayName=Space Engineers (Generic) -Meta.EndpointURIFormat= -Meta.OS=1 -Meta.URL=https://store.steampowered.com/app/244850/Space_Engineers/ -Meta.MinAMPVersion=2.3.0.9 +Console.SuppressLogAtStart=False +Console.ActivateLogRegex= +Console.UserActions={} +Limits.SleepMode=False +Limits.SleepOnStart=False +Limits.SleepDelayMinutes=5 +Limits.DozeDelay=2 +Limits.AutoRetryCount=5 diff --git a/space-engineers-genericconfig.json b/space-engineers-genericconfig.json index 625d0b9..58bc892 100644 --- a/space-engineers-genericconfig.json +++ b/space-engineers-genericconfig.json @@ -1907,7 +1907,8 @@ "IsFlagArgument": false, "ParamFieldName": "/MyConfigDedicated/IP/text()", "IncludeInCommandLine": false, - "EnumValues": {} + "EnumValues": {}, + "Hidden": true }, { "DisplayName": "Server Port", @@ -1919,7 +1920,8 @@ "IsFlagArgument": false, "ParamFieldName": "/MyConfigDedicated/ServerPort/text()", "IncludeInCommandLine": false, - "EnumValues": {} + "EnumValues": {}, + "Hidden": true }, { "DisplayName": "Remote API Port", @@ -1931,7 +1933,8 @@ "IsFlagArgument": false, "ParamFieldName": "/MyConfigDedicated/RemoteApiPort/text()", "IncludeInCommandLine": false, - "EnumValues": {} + "EnumValues": {}, + "Hidden": true }, { "DisplayName": "Steam Port", @@ -1943,7 +1946,8 @@ "IsFlagArgument": false, "ParamFieldName": "/MyConfigDedicated/SteamPort/text()", "IncludeInCommandLine": false, - "EnumValues": {} + "EnumValues": {}, + "Hidden": true }, { "DisplayName": "Remote API Enabled",