maj00r 93f914c868 feat(settings): a standard mode as the old starter's panel, the rest behind a warning
The settings keep only the keys master reads, Vulkan left out. The standard
mode is the old starter's panel; the advanced mode opens behind a warning
whose yes takes a click only after 20 seconds in front of the player.

- Sliders go by fixed steps (SliderRanges), held to the standard ranges there:
  fpslimit up to 240, sleeperdistance up to 1000 m.
- On the first start everyone is moved to the standard mode once: what is
  outside it goes back to its default, the sliders' values to their ranges,
  and a copy of eu07.ini is kept as eu07.ini.before-standard.
- "Restore defaults" puts every setting back, the language, the simulator,
  the UART port and the control keys kept.
- Monitors and renderers are found anew (Monitors, Renderers), Displays and
  SettingReach gone.
- mousescale writes its second number as the old starter did, 0.5 or -0.5
  for an inverted vertical axis; an axis that would not move gets the default.
- Depot, in the standard mode: no AI or drivable-only filters, empty consists
  not listed, the crew shown but not changed.
- Randomizing the textures of a whole scenery no longer rebuilds the view per
  consist, and finds its candidates by mini, so the window keeps answering.
- A long operator in the vehicle list is cut short instead of over the name.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 00:02:29 +01:00
2026-11-07 06:27:16 +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
2026-08-30 22:29:45 +02: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 9
  • 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
Description
No description provided
Readme MPL-2.0 4.9 MiB
Languages
C# 100%