Skip to content

Add Space Engineers 2 (SE2 Online) template - #2130

Open
amp-template-bot[bot] wants to merge 1 commit into
CubeCoders:mainfrom
IceOfWraith:amp-template-bot/2012-space-engineers-2-dedicated-or-standalon
Open

amp-template-bot[bot] wants to merge 1 commit into
CubeCoders:mainfrom
IceOfWraith:amp-template-bot/2012-space-engineers-2-dedicated-or-standalon

Conversation

@amp-template-bot

Copy link
Copy Markdown
Contributor

This adds a template for the SE2 Online community dedicated server. Its download needs a Steam sign-in on the website, so the server owner downloads the zip and uploads it to the instance's upload folder. AMP never fetches anything from se2-online.yellow51.dev.

  • Update stages: the newest zip in upload/ is extracted into server/ and then deleted. With no new zip, the installed server is kept. With no zip and no server, the update fails with a message saying where to download the zip and where to upload it.
  • Game files: the Space Engineers 2 game files (app 1133870, about 55 GB) come from SteamCMD, so the Steam login needs to own the game. The Steamworks redistributable comes from app 1007 (anonymous). Its steamclient64.dll, tier0_s64.dll and vstdlib_s64.dll are copied into Game2, because without them Steam game-server initialisation fails.
  • .NET runtime: the game needs the .NET 9 Desktop runtime. The portable runtime is downloaded from Microsoft into server/dotnet, and DOTNET_ROOT points to it, so nothing has to be installed on the host or in the Wine prefix.
  • Launch and stop: the server starts with --nogui (text console). Under Wine it otherwise tries to open its GUI window and hangs. Stop sends stop now, which does a final save and exits. Ready is matched on the Hosting (Steam dedicated server) line.
  • Ports: only UDP 27016 (Network.ListenPort) is used; Steam query shares it. 7742 is the mod's in-game co-op host port, not used by the dedicated server. RCON (TCP 27020) is off by default.
  • Settings: settings map into server/server.json (AutoMap). The server's own AutoUpdate and RestartOnCrash default to off, so updates go through the uploaded zip and AMP handles crash restarts. update check reaches the mod's update feed from inside AMP. Installing a self-update couldn't be tried because 0.18.4 is the newest release.
  • Linux: runs the Windows build under Wine (cubecoders/ampbase:wine-stable). Saves and profile data stay inside the instance (server/profile).

Tested 0.18.4 on both rigs. The zip was uploaded through the file manager API. Checked: missing-zip message, install, Ready, UDP 27016 listening, clean stop with final save, and a second update with a fresh zip. Also checked that a changed Session Name lands in server.json. Windows container mode wasn't tested.

OS Result
Windows ✅ pass
Linux ✅ pass

Closes #2012

The server owner uploads the SE2 Online dedicated server zip to the
instance's upload folder; update stages extract it, or fail with a clear
message when it is missing. Game files come from SteamCMD (owned login),
the Steamworks redistributable is copied next to the game, and a portable
.NET 9 Desktop runtime is fetched from Microsoft. Runs natively on Windows
and under Wine on Linux with --nogui.

Co-Authored-By: amp-template-bot[bot] <357074996+amp-template-bot[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Space Engineers 2 Dedicated or standalone server

0 participants