diff --git a/space-engineers2-se2online.kvp b/space-engineers2-se2online.kvp new file mode 100644 index 000000000..d30fac776 --- /dev/null +++ b/space-engineers2-se2online.kvp @@ -0,0 +1,117 @@ +Meta.DisplayName=Space Engineers 2 (SE2 Online) +Meta.Description=SE2 Online community dedicated server for Space Engineers 2. Needs a Steam login that owns the game, and the server zip from se2-online.yellow51.dev uploaded to the instance's upload folder. +Meta.OS=Windows, Linux +Meta.AarchSupport=Unsupported +Meta.Arch=x86_64 +Meta.Author=amp-template-bot +Meta.URL=https://se2-online.yellow51.dev/ +Meta.DisplayImageSource=steam:1133870 +Meta.EndpointURIFormat= +Meta.ConfigManifest=space-engineers2-se2onlineconfig.json +Meta.MetaConfigManifest=space-engineers2-se2onlinemetaconfig.json +Meta.ConfigRoot=space-engineers2-se2online.kvp +Meta.MinAMPVersion=2.6.0.0 +Meta.SpecificDockerImage=cubecoders/ampbase:wine-stable +Meta.DockerRequired=False +Meta.DockerBaseReadOnly=False +Meta.ContainerPolicy=SupportedOnWindows, RecommendedOnLinux +Meta.ContainerPolicyReason=The server is Windows-only and runs under Wine on Linux. Using a container avoids the need for you to install Wine on the host. +Meta.ExtraSetupStepsURI= +Meta.Prerequisites=[] +Meta.ExtraContainerPackages=[] +Meta.ConfigReleaseState=NotSpecified +Meta.NoCommercialUsage=True +Meta.ConfigVersion=1 +Meta.ReleaseNotes=Initial release +Meta.BreakingReleaseNotes= +Meta.AppConfigId=5b0e8f3a-9c47-4d2e-b1a6-7e3f2c8d9a41 +Meta.ImportableExtensions=[] +Meta.AppIsMultiIPAware=False +App.DisplayName=Space Engineers 2 (SE2 Online) +App.RootDir=./space-engineers2/ +App.BaseDirectory=./space-engineers2/ +App.ExecutableWin=server\Y51_SE2Online.DedicatedServer.exe +App.ExecutableLinux=/usr/bin/wine +App.WorkingDir=server +App.LinuxCommandLineArgs="./Y51_SE2Online.DedicatedServer.exe" +App.WindowsCommandLineArgs= +App.CommandLineArgs={{$PlatformArgs}} --nogui +App.UseLinuxIOREDIR=False +App.AppSettings={} +App.EnvironmentVariables={"DOTNET_ROOT":"{{$FullBaseDir}}server/dotnet","SteamAppId":"1133870","WINEPREFIX":"{{$FullRootDir}}.wine","WINEARCH":"win64","WINEDEBUG":"-all"} +App.CommandLineParameterFormat=-{0} "{1}" +App.CommandLineParameterDelimiter= +App.ExitMethod=String +App.ExitTimeout=90 +App.ExitString=stop now +App.ExitFile=app_exit.lck +App.RestartDelaySeconds=0 +App.HasWriteableConsole=True +App.HasReadableConsole=True +App.UDPLogger=False +App.SupportsLiveSettingsChanges=False +App.LiveSettingChangeCommandFormat=set {0} "{1}" +App.ForceIPBinding=False +App.SupportsIPv6=False +App.ApplicationIPBinding=0.0.0.0 +App.Ports=@IncludeJson[space-engineers2-se2onlineports.json] +App.AdminPortRef=RconPort +App.PrimaryApplicationPortRef=ServerPort +App.UniversalSleepApplicationUDPPortRef=0 +App.UniversalSleepSteamQueryPortRef=0 +App.MaxUsers=8 +App.UseRandomAdminPassword=False +App.PersistRandomPassword=True +App.RemoteAdminPassword= +App.AdminMethod=STDIO +App.IgnoreSTDOUTAfterRCON=False +App.AdminLoginTransform=None +App.StripANSIControlCodes=True +App.LoginTransformPrefix= +App.RCONConnectDelaySeconds=5 +App.RCONConnectRetrySeconds=5 +App.RCONHeartbeatMinutes=0 +App.RCONHeartbeatCommand=status +App.RCONSelectIPMethod=Default +App.TelnetLoginFormat={0} +App.TelnetNewLineType=Default +App.TailLogFilePath= +App.UpdateSources=@IncludeJson[space-engineers2-se2onlineupdates.json] +App.PreStartStages=[] +App.CommandTriggers={} +App.UserActions=[] +App.ForceUpdate=False +App.ForceUpdateReason= +App.Compatibility=None +App.SteamUpdateAnonymousLogin=False +App.SteamForceLoginPrompt=False +App.RapidStartup=False +App.SmartExcludeExemptions=["*.cfg","*.conf","*.config","*.ini","*.json","*.xml","*.properties","*.kvp","*.yml","*.yaml","*.toml","*.lua"] +App.SmartExcludeSupported=True +App.DumpFullChildProcessTree=False +App.MonitorChildProcessName= +App.MonitorDirectChildOnly=False +App.SupportsUniversalSleep=False +App.WakeupMode=Any +App.ApplicationReadyMode=RegexMatch +Console.FilterMatchRegex= +Console.FilterMatchReplacement= +Console.ThrowawayMessageRegex= +Console.AppReadyRegex=^\[[\d:]+\] Hosting \(Steam dedicated server\)$ +Console.UserJoinRegex=^\[[\d:]+\] (?.+?) joined the server\.$ +Console.UserLeaveRegex=^\[[\d:]+\] (?.+?) left the server\.$ +Console.UserChatRegex= +Console.UpdateAvailableRegex= +Console.PreConnectRegex= +Console.ConnectIPRegex= +Console.MetricsRegex= +Console.ServerInfoRegex= +Console.HideFromConsoleRegex= +Console.SuppressLogAtStart=False +Console.UserActions={} +Limits.SleepMode=False +Limits.SleepOnStart=False +Limits.SleepDelayMinutes=5 +Limits.DozeDelay=2 +Limits.AutoRetryCount=2 +Limits.SleepStartThresholdSeconds=25 diff --git a/space-engineers2-se2onlineconfig.json b/space-engineers2-se2onlineconfig.json new file mode 100644 index 000000000..e1f7bd654 --- /dev/null +++ b/space-engineers2-se2onlineconfig.json @@ -0,0 +1,393 @@ +[ + { + "DisplayName": "Session Name", + "Category": "SE2 Online:rocket_launch", + "Subcategory": "Server:dns:1", + "Description": "Sets the server name shown in the SE2 Online server browser", + "Keywords": "session,server,name,SessionName", + "FieldName": "SessionName", + "InputType": "text", + "IsFlagArgument": false, + "ParamFieldName": "$.Network.SessionName", + "IncludeInCommandLine": false, + "DefaultValue": "SE2 Online Server", + "EnumValues": {} + }, + { + "DisplayName": "Description", + "Category": "SE2 Online:rocket_launch", + "Subcategory": "Server:dns:1", + "Description": "Sets the server description shown in the SE2 Online server browser", + "Keywords": "description,Description", + "FieldName": "Description", + "InputType": "text", + "IsFlagArgument": false, + "ParamFieldName": "$.Network.Description", + "IncludeInCommandLine": false, + "DefaultValue": "", + "EnumValues": {} + }, + { + "DisplayName": "Server Password", + "Category": "SE2 Online:rocket_launch", + "Subcategory": "Server:dns:1", + "Description": "Sets the password players must enter to join. Default is no password", + "Keywords": "password,Password", + "FieldName": "Password", + "InputType": "password", + "IsFlagArgument": false, + "ParamFieldName": "$.Network.Password", + "IncludeInCommandLine": false, + "DefaultValue": "", + "EnumValues": {} + }, + { + "DisplayName": "Max Players", + "Category": "SE2 Online:rocket_launch", + "Subcategory": "Server:dns:1", + "Description": "Sets the maximum number of players", + "Keywords": "max,players,MaxPlayers", + "FieldName": "$MaxUsers", + "InputType": "number", + "MinValue": "1", + "MaxValue": "64", + "IsFlagArgument": false, + "ParamFieldName": "$.Network.MaxPlayers", + "IncludeInCommandLine": false, + "DefaultValue": "8", + "EnumValues": {} + }, + { + "DisplayName": "Advertise", + "Category": "SE2 Online:rocket_launch", + "Subcategory": "Server:dns:1", + "Description": "If set, the server is listed in the SE2 Online server browser", + "Keywords": "advertise,list,browser,Advertise", + "FieldName": "Advertise", + "InputType": "checkbox", + "IsFlagArgument": false, + "ParamFieldName": "$.Network.Advertise", + "IncludeInCommandLine": false, + "DefaultValue": "true", + "EnumValues": { + "False": "false", + "True": "true" + } + }, + { + "DisplayName": "Allow Direct IP", + "Category": "SE2 Online:rocket_launch", + "Subcategory": "Server:dns:1", + "Description": "If set, players can join by IP address and port as well as through Steam", + "Keywords": "direct,ip,AllowDirectIp", + "FieldName": "AllowDirectIp", + "InputType": "checkbox", + "IsFlagArgument": false, + "ParamFieldName": "$.Network.AllowDirectIp", + "IncludeInCommandLine": false, + "DefaultValue": "true", + "EnumValues": { + "False": "false", + "True": "true" + } + }, + { + "DisplayName": "Friends Only", + "Category": "SE2 Online:rocket_launch", + "Subcategory": "Server:dns:1", + "Description": "If set, only Steam friends of the server account can join", + "Keywords": "friends,only,FriendsOnly", + "FieldName": "FriendsOnly", + "InputType": "checkbox", + "IsFlagArgument": false, + "ParamFieldName": "$.Network.FriendsOnly", + "IncludeInCommandLine": false, + "DefaultValue": "false", + "EnumValues": { + "False": "false", + "True": "true" + } + }, + { + "DisplayName": "Public Address", + "Category": "SE2 Online:rocket_launch", + "Subcategory": "Server:dns:1", + "Description": "Sets the public IP address advertised for direct IP joins. Leave blank to detect it automatically", + "Keywords": "public,address,ip,PublicAddress", + "FieldName": "PublicAddress", + "InputType": "text", + "IsFlagArgument": false, + "ParamFieldName": "$.Network.PublicAddress", + "IncludeInCommandLine": false, + "DefaultValue": "", + "EnumValues": {} + }, + { + "DisplayName": "Message of the Day", + "Category": "SE2 Online:rocket_launch", + "Subcategory": "Server:dns:1", + "Description": "Sets the message shown to players when they join", + "Keywords": "motd,message,Motd", + "FieldName": "Motd", + "InputType": "text", + "IsFlagArgument": false, + "ParamFieldName": "$.Motd", + "IncludeInCommandLine": false, + "DefaultValue": "", + "EnumValues": {} + }, + { + "DisplayName": "Listen Port", + "Category": "SE2 Online:rocket_launch", + "Subcategory": "Server:dns:1", + "Description": "", + "Keywords": "", + "FieldName": "$ServerPort", + "InputType": "number", + "IsFlagArgument": false, + "ParamFieldName": "$.Network.ListenPort", + "IncludeInCommandLine": false, + "Hidden": true, + "DefaultValue": "27016", + "EnumValues": {} + }, + { + "DisplayName": "Bind Address", + "Category": "SE2 Online:rocket_launch", + "Subcategory": "Server:dns:1", + "Description": "", + "Keywords": "", + "FieldName": "$ApplicationIPBinding", + "InputType": "text", + "IsFlagArgument": false, + "ParamFieldName": "$.Network.BindAddress", + "IncludeInCommandLine": false, + "Hidden": true, + "DefaultValue": "0.0.0.0", + "EnumValues": {} + }, + { + "DisplayName": "World Name", + "Category": "SE2 Online:rocket_launch", + "Subcategory": "World:public:2", + "Description": "Sets the name of the world created when no save is loaded", + "Keywords": "world,name,WorldName", + "FieldName": "WorldName", + "InputType": "text", + "IsFlagArgument": false, + "ParamFieldName": "$.WorldName", + "IncludeInCommandLine": false, + "DefaultValue": "Default SE2 Online World", + "EnumValues": {} + }, + { + "DisplayName": "Save ID", + "Category": "SE2 Online:rocket_launch", + "Subcategory": "World:public:2", + "Description": "Sets the save to load from the server's profile folder. Leave blank to create a new world", + "Keywords": "save,id,load,SaveId", + "FieldName": "SaveId", + "InputType": "text", + "IsFlagArgument": false, + "ParamFieldName": "$.SaveId", + "IncludeInCommandLine": false, + "DefaultValue": "", + "EnumValues": {} + }, + { + "DisplayName": "PvP", + "Category": "SE2 Online:rocket_launch", + "Subcategory": "World:public:2", + "Description": "If set, players can damage each other and each other's grids", + "Keywords": "pvp,Pvp", + "FieldName": "Pvp", + "InputType": "checkbox", + "IsFlagArgument": false, + "ParamFieldName": "$.Network.Pvp", + "IncludeInCommandLine": false, + "DefaultValue": "true", + "EnumValues": { + "False": "false", + "True": "true" + } + }, + { + "DisplayName": "Offline Raid Protection", + "Category": "SE2 Online:rocket_launch", + "Subcategory": "World:public:2", + "Description": "If set, grids of offline players are protected from damage", + "Keywords": "offline,raid,protection,OfflineRaidProtection", + "FieldName": "OfflineRaidProtection", + "InputType": "checkbox", + "IsFlagArgument": false, + "ParamFieldName": "$.Network.OfflineRaidProtection", + "IncludeInCommandLine": false, + "DefaultValue": "true", + "EnumValues": { + "False": "false", + "True": "true" + } + }, + { + "DisplayName": "Progression", + "Category": "SE2 Online:rocket_launch", + "Subcategory": "World:public:2", + "Description": "If set, research progression is enabled", + "Keywords": "progression,research,Progression", + "FieldName": "Progression", + "InputType": "checkbox", + "IsFlagArgument": false, + "ParamFieldName": "$.Network.Progression", + "IncludeInCommandLine": false, + "DefaultValue": "true", + "EnumValues": { + "False": "false", + "True": "true" + } + }, + { + "DisplayName": "Enable Autosave", + "Category": "SE2 Online:rocket_launch", + "Subcategory": "World:public:2", + "Description": "If set, the world is saved automatically", + "Keywords": "autosave,save,EnableAutosave", + "FieldName": "EnableAutosave", + "InputType": "checkbox", + "IsFlagArgument": false, + "ParamFieldName": "$.EnableAutosave", + "IncludeInCommandLine": false, + "DefaultValue": "true", + "EnumValues": { + "False": "false", + "True": "true" + } + }, + { + "DisplayName": "Autosave Interval", + "Category": "SE2 Online:rocket_launch", + "Subcategory": "World:public:2", + "Description": "Sets the time between automatic saves", + "Keywords": "autosave,interval,SaveIntervalSeconds", + "FieldName": "SaveIntervalSeconds", + "InputType": "number", + "MinValue": "60", + "IsFlagArgument": false, + "ParamFieldName": "$.SaveIntervalSeconds", + "IncludeInCommandLine": false, + "DefaultValue": "300", + "Suffix": "seconds", + "EnumValues": {} + }, + { + "DisplayName": "Enable RCON", + "Category": "SE2 Online:rocket_launch", + "Subcategory": "Remote Console:terminal:3", + "Description": "If set, SE2 Online's remote console listens on the RCON port", + "Keywords": "rcon,remote,console,RconEnabled", + "FieldName": "RconEnabled", + "InputType": "checkbox", + "IsFlagArgument": false, + "ParamFieldName": "$.RconEnabled", + "IncludeInCommandLine": false, + "DefaultValue": "false", + "EnumValues": { + "False": "false", + "True": "true" + } + }, + { + "DisplayName": "RCON Password", + "Category": "SE2 Online:rocket_launch", + "Subcategory": "Remote Console:terminal:3", + "Description": "Sets the password for the remote console", + "Keywords": "rcon,password,RconPassword", + "FieldName": "RconPassword", + "InputType": "password", + "IsFlagArgument": false, + "ParamFieldName": "$.RconPassword", + "IncludeInCommandLine": false, + "DefaultValue": "", + "EnumValues": {} + }, + { + "DisplayName": "RCON Steam Sign-in", + "Category": "SE2 Online:rocket_launch", + "Subcategory": "Remote Console:terminal:3", + "Description": "If set, remote console users can sign in with their Steam account", + "Keywords": "rcon,steam,auth,RconSteamAuth", + "FieldName": "RconSteamAuth", + "InputType": "checkbox", + "IsFlagArgument": false, + "ParamFieldName": "$.RconSteamAuth", + "IncludeInCommandLine": false, + "DefaultValue": "true", + "EnumValues": { + "False": "false", + "True": "true" + } + }, + { + "DisplayName": "RCON Port", + "Category": "SE2 Online:rocket_launch", + "Subcategory": "Remote Console:terminal:3", + "Description": "", + "Keywords": "", + "FieldName": "$RconPort", + "InputType": "number", + "IsFlagArgument": false, + "ParamFieldName": "$.RconPort", + "IncludeInCommandLine": false, + "Hidden": true, + "DefaultValue": "27020", + "EnumValues": {} + }, + { + "DisplayName": "RCON Bind Address", + "Category": "SE2 Online:rocket_launch", + "Subcategory": "Remote Console:terminal:3", + "Description": "", + "Keywords": "", + "FieldName": "$ApplicationIPBinding", + "InputType": "text", + "IsFlagArgument": false, + "ParamFieldName": "$.RconBindAddress", + "IncludeInCommandLine": false, + "Hidden": true, + "DefaultValue": "0.0.0.0", + "EnumValues": {} + }, + { + "DisplayName": "Server Self-Update", + "Category": "SE2 Online:rocket_launch", + "Subcategory": "Installation:download:4", + "Description": "If set, the SE2 Online server checks for and installs its own updates while running", + "Keywords": "auto,update,AutoUpdate", + "FieldName": "AutoUpdate", + "InputType": "checkbox", + "IsFlagArgument": false, + "ParamFieldName": "$.AutoUpdate.Enabled", + "IncludeInCommandLine": false, + "DefaultValue": "false", + "EnumValues": { + "False": "false", + "True": "true" + } + }, + { + "DisplayName": "Restart On Crash", + "Category": "SE2 Online:rocket_launch", + "Subcategory": "Installation:download:4", + "Description": "If set, SE2 Online restarts the world itself after a crash. AMP's own crash restart works either way", + "Keywords": "restart,crash,RestartOnCrash", + "FieldName": "RestartOnCrash", + "InputType": "checkbox", + "IsFlagArgument": false, + "ParamFieldName": "$.AutoRestart.RestartOnCrash", + "IncludeInCommandLine": false, + "DefaultValue": "false", + "EnumValues": { + "False": "false", + "True": "true" + } + } +] \ No newline at end of file diff --git a/space-engineers2-se2onlinemetaconfig.json b/space-engineers2-se2onlinemetaconfig.json new file mode 100644 index 000000000..68a8cb95e --- /dev/null +++ b/space-engineers2-se2onlinemetaconfig.json @@ -0,0 +1,8 @@ +[ + { + "ConfigFile": "server/server.json", + "AutoMap": true, + "Importable": true, + "ConfigType": "json" + } +] diff --git a/space-engineers2-se2onlineports.json b/space-engineers2-se2onlineports.json new file mode 100644 index 000000000..a34f75e28 --- /dev/null +++ b/space-engineers2-se2onlineports.json @@ -0,0 +1,16 @@ +[ + { + "Protocol": "UDP", + "Port": 27016, + "Ref": "ServerPort", + "Name": "Game Port", + "Description": "Port used for game traffic and direct IP joins" + }, + { + "Protocol": "TCP", + "Port": 27020, + "Ref": "RconPort", + "Name": "RCON Port", + "Description": "Port used for SE2 Online's remote console when RCON is enabled" + } +] diff --git a/space-engineers2-se2onlineupdates.json b/space-engineers2-se2onlineupdates.json new file mode 100644 index 000000000..5da3ddd07 --- /dev/null +++ b/space-engineers2-se2onlineupdates.json @@ -0,0 +1,105 @@ +[ + { + "UpdateStageName": "SE2 Online Server Install", + "UpdateSourcePlatform": "Windows", + "UpdateSource": "Executable", + "UpdateSourceData": "powershell.exe", + "UpdateSourceArgs": "-NoProfile -ExecutionPolicy Bypass -Command \"$ErrorActionPreference='Stop'; $ProgressPreference='SilentlyContinue'; Set-Location -LiteralPath '{{$FullRootDir}}'; New-Item -ItemType Directory -Force -Path 'server','upload' | Out-Null; $z = Get-ChildItem -Path 'upload' -Filter '*.zip' -File | Sort-Object LastWriteTime -Descending | Select-Object -First 1; if ($z) { Write-Output ('Extracting ' + $z.Name + ' into the server folder'); tar.exe -xf $z.FullName -C server; if ($LASTEXITCODE -ne 0) { Write-Output ('Could not extract ' + $z.Name + '. Upload it again and click Update'); exit 1 }; if (-not (Test-Path -LiteralPath 'server/Y51_SE2Online.DedicatedServer.exe')) { Write-Output ($z.Name + ' is not the SE2 Online dedicated server zip (no Y51_SE2Online.DedicatedServer.exe inside)'); exit 1 }; Remove-Item -LiteralPath $z.FullName -Force; Write-Output 'SE2 Online server installed. The uploaded zip was removed' } elseif (Test-Path -LiteralPath 'server/Y51_SE2Online.DedicatedServer.exe') { Write-Output 'No new server zip in the upload folder. Keeping the installed SE2 Online server' } else { Write-Output 'SE2 Online server files not found. Download the dedicated server zip from https://se2-online.yellow51.dev/ (sign in with Steam), upload it to the upload folder with the File Manager, then click Update again'; exit 1 }\"", + "SkipOnFailure": false + }, + { + "UpdateStageName": "SE2 Online Server Install", + "UpdateSourcePlatform": "Linux", + "UpdateSource": "Executable", + "UpdateSourceData": "/bin/bash", + "UpdateSourceArgs": "-c \"cd \\\"{{$FullRootDir}}\\\" && mkdir -p server upload; z=$(ls -t upload/*.zip 2>/dev/null | head -n1); if [[ -n \\\"$z\\\" ]]; then echo \\\"Extracting $(basename \\\"$z\\\") into the server folder\\\"; if ! unzip -oq \\\"$z\\\" -d server; then echo \\\"Could not extract $(basename \\\"$z\\\"). Upload it again and click Update\\\"; exit 1; fi; if [[ ! -f server/Y51_SE2Online.DedicatedServer.exe ]]; then echo \\\"$(basename \\\"$z\\\") is not the SE2 Online dedicated server zip (no Y51_SE2Online.DedicatedServer.exe inside)\\\"; exit 1; fi; rm -f \\\"$z\\\"; echo \\\"SE2 Online server installed. The uploaded zip was removed\\\"; elif [[ -f server/Y51_SE2Online.DedicatedServer.exe ]]; then echo \\\"No new server zip in the upload folder. Keeping the installed SE2 Online server\\\"; else echo \\\"SE2 Online server files not found. Download the dedicated server zip from https://se2-online.yellow51.dev/ (sign in with Steam), upload it to the upload folder with the File Manager, then click Update again\\\"; exit 1; fi\"", + "SkipOnFailure": false + }, + { + "UpdateStageName": "SteamCMD Download", + "UpdateSourcePlatform": "All", + "UpdateSource": "SteamCMD", + "UpdateSourceData": "1133870", + "UpdateSourceTarget": "1133870", + "ForceDownloadPlatform": "Windows", + "SkipOnFailure": false + }, + { + "UpdateStageName": "Steamworks Redistributable Download", + "UpdateSourcePlatform": "All", + "UpdateSource": "SteamCMD", + "UpdateSourceData": "1007", + "UpdateSourceTarget": "server", + "ForceDownloadPlatform": "Windows", + "SkipOnFailure": false + }, + { + "UpdateStageName": "Steamworks Library Copy 1", + "UpdateSourcePlatform": "All", + "UpdateSource": "CopyFilePath", + "UpdateSourceData": "{{$FullBaseDir}}1133870/Game2/steamclient64.dll", + "UpdateSourceArgs": "{{$FullBaseDir}}server/steamclient64.dll", + "OverwriteExistingFiles": true, + "SkipOnFailure": false + }, + { + "UpdateStageName": "Steamworks Library Copy 2", + "UpdateSourcePlatform": "All", + "UpdateSource": "CopyFilePath", + "UpdateSourceData": "{{$FullBaseDir}}1133870/Game2/tier0_s64.dll", + "UpdateSourceArgs": "{{$FullBaseDir}}server/tier0_s64.dll", + "OverwriteExistingFiles": true, + "SkipOnFailure": false + }, + { + "UpdateStageName": "Steamworks Library Copy 3", + "UpdateSourcePlatform": "All", + "UpdateSource": "CopyFilePath", + "UpdateSourceData": "{{$FullBaseDir}}1133870/Game2/vstdlib_s64.dll", + "UpdateSourceArgs": "{{$FullBaseDir}}server/vstdlib_s64.dll", + "OverwriteExistingFiles": true, + "SkipOnFailure": false + }, + { + "UpdateStageName": ".NET Desktop Runtime Download", + "UpdateSourcePlatform": "Windows", + "UpdateSource": "Executable", + "UpdateSourceData": "powershell.exe", + "UpdateSourceArgs": "-NoProfile -ExecutionPolicy Bypass -Command \"$ProgressPreference='SilentlyContinue'; [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; Set-Location -LiteralPath '{{$FullBaseDir}}server'; try { $v = (Invoke-RestMethod -UseBasicParsing -Uri 'https://builds.dotnet.microsoft.com/dotnet/release-metadata/9.0/releases.json').'latest-runtime' } catch { Write-Output 'Could not reach the Microsoft .NET release feed'; exit 1 }; if (Test-Path -LiteralPath ('dotnet/shared/Microsoft.WindowsDesktop.App/' + $v)) { Write-Output ('.NET Desktop Runtime ' + $v + ' already installed. Skipping'); exit 0 }; Remove-Item -LiteralPath 'dotnet' -Recurse -Force -ErrorAction SilentlyContinue; New-Item -ItemType Directory -Force -Path 'dotnet' | Out-Null; try { Invoke-WebRequest -UseBasicParsing -Uri ('https://builds.dotnet.microsoft.com/dotnet/Runtime/' + $v + '/dotnet-runtime-' + $v + '-win-x64.zip') -OutFile 'dotnet-runtime.zip' -ErrorAction Stop; Invoke-WebRequest -UseBasicParsing -Uri ('https://builds.dotnet.microsoft.com/dotnet/WindowsDesktop/' + $v + '/windowsdesktop-runtime-' + $v + '-win-x64.zip') -OutFile 'dotnet-desktop.zip' -ErrorAction Stop } catch { Write-Output 'Download failed from the Microsoft CDN. Aborting'; exit 1 }; tar.exe -xf dotnet-runtime.zip -C dotnet; tar.exe -xf dotnet-desktop.zip -C dotnet; Remove-Item -LiteralPath 'dotnet-runtime.zip','dotnet-desktop.zip' -Force; Write-Output ('.NET Desktop Runtime ' + $v + ' installed')\"", + "SkipOnFailure": false + }, + { + "UpdateStageName": ".NET Desktop Runtime Download", + "UpdateSourcePlatform": "Linux", + "UpdateSource": "Executable", + "UpdateSourceData": "/bin/bash", + "UpdateSourceArgs": "-c \"cd \\\"{{$FullBaseDir}}server\\\" || exit 1; v=$(wget -qO- https://builds.dotnet.microsoft.com/dotnet/release-metadata/9.0/releases.json | grep -o '\\\"latest-runtime\\\": *\\\"[0-9.]*\\\"' | head -n1 | grep -o '[0-9][0-9.]*'); if [[ -z \\\"$v\\\" ]]; then echo \\\"Could not reach the Microsoft .NET release feed\\\"; exit 1; fi; if [[ -d \\\"dotnet/shared/Microsoft.WindowsDesktop.App/$v\\\" ]]; then echo \\\".NET Desktop Runtime $v already installed. Skipping\\\"; exit 0; fi; rm -rf dotnet && mkdir -p dotnet; wget -qO dotnet-runtime.zip https://builds.dotnet.microsoft.com/dotnet/Runtime/$v/dotnet-runtime-$v-win-x64.zip && wget -qO dotnet-desktop.zip https://builds.dotnet.microsoft.com/dotnet/WindowsDesktop/$v/windowsdesktop-runtime-$v-win-x64.zip || { echo \\\"Download failed from the Microsoft CDN. Aborting\\\"; exit 1; }; unzip -oq dotnet-runtime.zip -d dotnet && unzip -oq dotnet-desktop.zip -d dotnet; rm -f dotnet-runtime.zip dotnet-desktop.zip; echo \\\".NET Desktop Runtime $v installed\\\"\"", + "SkipOnFailure": false + }, + { + "UpdateStageName": "Initialise Wine", + "UpdateSourcePlatform": "Linux", + "UpdateSource": "Executable", + "UpdateSourceData": "/bin/bash", + "UpdateSourceArgs": "-c \"WINEPREFIX=\\\"{{$FullRootDir}}.wine\\\" WINEARCH=win64 WINEDEBUG=-all WINEDLLOVERRIDES=\\\"mscoree,mshtml=\\\" /usr/bin/wineboot --init --update\"", + "SkipOnFailure": false + }, + { + "UpdateStageName": "Runner Config Creation", + "UpdateSourcePlatform": "All", + "UpdateSource": "CreateFile", + "UpdateSourceData": "{\n \"GameDirectory\": \"../1133870/Game2\",\n \"Configuration\": \"server.json\",\n \"Profile\": \"profile\",\n \"Plugin\": \"Y51_SE2Online.dll\",\n \"ShowWindow\": false,\n \"Headless\": true\n}", + "UpdateSourceArgs": "{{$FullBaseDir}}server/runner.json", + "OverwriteExistingFiles": false, + "SkipOnFailure": false + }, + { + "UpdateStageName": "Server Config Creation", + "UpdateSourcePlatform": "All", + "UpdateSource": "CopyFilePath", + "UpdateSourceData": "{{$FullBaseDir}}server/server.json", + "UpdateSourceArgs": "{{$FullBaseDir}}server/server.example.json", + "OverwriteExistingFiles": false, + "SkipOnFailure": false + } +] \ No newline at end of file