Stormancer.GameServers.Agent 0.5.4.5-pre

This is a prerelease version of Stormancer.GameServers.Agent.
dotnet tool install --global Stormancer.GameServers.Agent --version 0.5.4.5-pre
                    
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
                    
if you are setting up this repo
dotnet tool install --local Stormancer.GameServers.Agent --version 0.5.4.5-pre
                    
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=Stormancer.GameServers.Agent&version=0.5.4.5-pre&prerelease
                    
nuke :add-package Stormancer.GameServers.Agent --version 0.5.4.5-pre
                    

The Stormancer.GameServer.Agent tool provides a way to control a docker daemon to start, monitor and stop gameservers linked to Stormancer gamesessions.

Installation

Prerequisites

apt-get install docker.io

Install the agent

First create a tool manifest in the folder you want your agent to run from

dotnet new tool-manifest

Then install the Stormancer.GameServer.Agent tool

dotnet tool install --local Stormancer.GameServers.Agent --version <current-version>

Configuration

"Agent": {
  "StormancerEndpoint": "https://serverendpoint.com",
  "StormancerAccount": "account",
  "StormancerApplication": "app",
  "PrivateKeyPassword": "password",
  "PrivateKeyPath": "<path-to-the-private-key-authenticating-the-agent.pfx>"
}

Setting up core dumps

  1. Run echo '/tmp/core-dump.%p' | sudo tee /proc/sys/kernel/core_pattern on the agent to setup the host core pattern.

For more information about the core_pattern : https://www.kernel.org/doc/html/latest/admin-guide/sysctl/kernel.html#core-pattern

To make the change in the host core pattern permanent, add kernel.core_pattern = /tmp/core-dump.%p to /etc/sysctl.conf, then reload it with sysctl -p

  1. Set the CorePath value in the agent configuration to the path of the generated core dump in the container.

    "Agent":{ "CorePath":"/tmp/core-dump.PID" }

Once it's done, if a game server doesn't stop with exit code 0, the agent will zip the server logs, the set of files specified in the app config and the generated core dump, and store the resulting archive in the diagnostics system for later download.

Agent as a service (ubuntu)

Create a service file (gameservers-agent.service) in /etc/systemd/system using nano or your favorite text editor

sudo nano /etc/systemd/system/gameservers-agent.service

  • A sample service file would be as follow:
[Unit]
Description=Game server agent
After=network-online.target

[Service]
Type=simple

#a user with sufficient permissions
User=root 

ExecStart=/usr/bin/dotnet tool run stormancer-gameservers-agent
#use your agent installation folder as WorkingDirectory
WorkingDirectory=/home/agent

Restart=on-failure

TimeoutStopSec=30

[Install]
WantedBy=multi-user.target
  • Enable the service

sudo systemctl daemon-reload sudo systemctl enable gameservers-agent.service

  • Start the service

sudo systemctl start gameservers-agent.service

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

Version Downloads Last Updated
0.5.4.5-pre 54 5/28/2026
0.5.4.4-pre 95 5/22/2026
0.5.4.3-pre 97 5/19/2026
0.5.4.2-pre 96 4/23/2026
0.5.4.1-pre 99 4/23/2026
0.5.4-pre 102 4/23/2026
0.5.3-pre 116 3/12/2026
0.5.2-pre 104 3/11/2026
0.5.1.2 273 3/3/2025
0.5.1.2-pre 175 3/11/2024
0.5.1.1-pre 186 3/11/2024
0.5.1-pre 200 1/17/2024
0.5.0.24-pre 215 12/13/2023
0.5.0.23-pre 228 11/14/2023
0.5.0.22-pre 199 11/13/2023
0.5.0.21-pre 204 11/12/2023
0.5.0.20-pre 218 11/12/2023
0.5.0.19-pre 247 11/12/2023
0.5.0.18-pre 220 11/12/2023
0.5.0.17-pre 229 11/12/2023
Loading failed

Changed
*******
- Improve crash info package creation.
- Update Raknet version
- Do not try downloading an image if the same image is already currently being downloaded.

Added
*****
- Enables preloading docker images according to the app configuration.