maj00r e1800a20b9 fix: under gamescope the starter fills the screen and every window can be closed
Gamescope, SteamOS's game mode, is no window manager: it gives no
window a title bar or a close button and does not answer a request to
maximize, so it stretched the starter's first size over the screen,
and the tapes window and the black box opened from them could not be
closed at all. Under gamescope the main window now takes the size of
the screen itself, and every window over another gets a bar with its
title and a close button, takes the screen's size too and closes on
Esc, even the tapes, which otherwise stay open beside the starter.
Steam's Big Picture on a desktop keeps its window manager's bars and
is only maximized, as before.
2026-11-30 05:01:07 +01:00
2026-11-07 06:27:16 +01:00
2025-12-23 08:47:36 +01:00
2025-12-23 08:47:36 +01:00

StarterNG

Launcher for the MaSzyna train simulator, written in C# with Avalonia.

Building a native (NativeAOT) build

The project publishes as a self-contained NativeAOT binary — no .NET runtime is needed on the target machine. The commands below are the same ones CI runs, see .github/workflows/dotnet.yml.

Requirements:

  • .NET SDK 10
  • Linux: a native toolchain and zlib headers — sudo apt install clang zlib1g-dev (Debian/Ubuntu) or sudo dnf install clang zlib-devel (Fedora)
  • Windows: the Visual Studio C++ build tools (Desktop development with C++)

Restore for the target runtime first, then publish:

dotnet restore StarterNG/StarterNG.csproj -r linux-x64

dotnet publish StarterNG/StarterNG.csproj \
    -c Release -r linux-x64 --self-contained true --no-restore \
    -p:PublishAot=true -p:PublishTrimmed=true \
    -o publish/linux-x64

For a Windows build swap both linux-x64 occurrences for win-x64 (and the line continuations for PowerShell backticks). NativeAOT does not cross-compile, so the Windows package has to be built on Windows and the Linux one on Linux — that is why CI uses a windows-2022 and an ubuntu-22.04 runner.

The output directory is the whole distributable: the Starter executable, the Skia/HarfBuzz native libraries and startercfg/ with the translations and the default key bindings. The .dbg (or .pdb) file next to it is debug symbols and can be dropped from a release. Trim/AOT analysis warnings during the publish are expected and do not fail the build.

CI builds both runtimes on every push and pull request to main and staging, and on manual dispatch. Pushes additionally replace a rolling pre-release with the packaged artifacts — tagged latest for main and staging for staging.

Development build

dotnet build StarterNG/StarterNG.csproj

Translations

The texts are in StarterNG/startercfg/lang/<code>.xml; en.xml is the reference. The tests require every language to have every key of en.xml except the optional ones (ending in Desc, starting with Cmd.), which fall back to English. After a change to en.xml, or before merging a translation made from an older one:

python tools/sync_lang.py --check   # lists what is missing or no longer used
python tools/sync_lang.py           # adds missing keys in English, removes the unused ones

Added keys are marked <!-- untranslated --> for the translator.

S
Description
No description provided
Readme MPL-2.0 6.1 MiB
Languages
C# 99.7%
Python 0.3%