merge: bring feat/full-installer into SK-local

Integrates the aelrynth snapshot port (main), the full installer, the
tmds.dbus advisory fix and all launcher/engine work into SK-local.

Conflict resolutions:
- Logging: keep SK-local's level-based logging (EngineLogLevel, ShouldLog,
  engine.json LoggingLevel) and adopt full-installer's tagged WRN/ERR,
  LastIssue and per-PID logs; the Desktop rolling log is superseded.
- Launcher: keep the inject-all-sessions toggle and Logging level combo
  alongside the new stagger/crash-relaunch/stuck-client options; the
  LoggingLevel is now written through EngineJsonStore.SetString.
- PluginManager: keep SK-local's basename/canonical-path de-duplication,
  drop the default-directory scan (opt-in via PluginPaths).
- Injector, installer, CI workflow, BUILD.md: take full-installer.
- Solution: add DesktopLog + Loader, drop the stale Plugins/RynthAi stub.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
BlankenshipG 2026-10-04 16:16:24 -04:00
commit 36ffa94252
256 changed files with 62130 additions and 3382 deletions

View file

@ -0,0 +1,12 @@
# Changelog — 2026-10-04 (upstream snapshot)
## feat: port aelrynth git snapshot onto GitHub history
Applied `upstream/main` (`9b5e276`, RynthCore as of 2026-09-27, release 2026.9.27.2) as a new commit on top of BlankenshipG `main`. Histories are unrelated, so this is a tree overlay — not a fast-forward or force-replace.
- Added aelrynth-only product code: Loader, StatusAgent, HookManifest/HookResolver, DComp overlay, SEH trampoline, signed updater, vendor/trade API (PluginContract +16 functions)
- Overlapping engine/launcher files taken from aelrynth (newer than origin 2026-04-25)
- Kept unique origin-only trees: `Plugins/RynthAi/` (Decal-era), `Plugins/RynthCore.Plugin.RynthAi/` stub, `AGENTS.md`/`CLAUDE.md`, `ImGuiController.cs`, `OverlayFrameBuffer.cs`
- Re-applied dead-link fixes: installer + CI clone URLs point at aelrynth.com / `${{ github.repository_owner }}` siblings
No PluginSdk version bump (still 0.2.0 on both trees). Packaged aelrynth installer (2026.10.4.3) is newer than this git tip.

View file

@ -0,0 +1,9 @@
# Changelog — 2026-10-04 (docs/CI)
## fix: point dead tombohar URLs at aelrynth / sibling fork
- `installer/RynthCore.iss` `AppPublisherURL` → https://aelrynth.com/rynth.html
- `.github/workflows/release.yml` sibling clone → `github.com/${{ github.repository_owner }}/RynthSuite`
- Canonical public git remains https://aelrynth.com/git/RynthCore.git (see product page)
No engine/SDK version bump (docs and CI URL-only).

View file

@ -0,0 +1,68 @@
# RynthCore 2026.10.4.2: full RynthCore + RynthSuite installer
**Release date:** 2026-10-04
**Installer:** `installer\Output\RynthCore-Setup-2026.10.4.2.exe` (also copied to `RynthCore-Setup.exe`)
**Previous release:** `2026.10.4.1` (archived to `installer\previous-release\RynthCore-Setup-2026.10.4.1.exe`)
**Branch:** `feat/full-installer` (local test build, not on `main`), based on `fix/tmds-dbus-advisory`
**Bundled RynthSuite:** RynthAi `0.5.3`, Loot Editor, Monster Editor (from RynthSuite `feat/ilt-hub`)
## Why: the launcher would not start
On 2026-10-04 an old **RynthBundle 0.4.7** installer was run over the 2026.10.3.4 install. It replaced
`RynthCore.App.Avalonia.dll` with the 0.4.x build, which needs `RynthCore.DesktopLog.dll`, but left the newer
`RynthCore.App.Avalonia.deps.json`, which does not list it. The renamed apphost (`RynthCore.exe`) loads exactly
what the deps.json lists, so .NET failed at startup with `FileNotFoundException: RynthCore.DesktopLog`
(Event Log, .NET Runtime 1026). The new installer fixes such an install in place (see **Cleanup** below).
## One installer, two folders you choose
- **Wizard pages:**
- **Select Destination Location** picks the RynthCore folder (default `C:\Games\RynthCore`).
- **Select Components** offers Full, RynthCore only, or Custom. RynthCore is always installed; RynthAi and the
Monster Editor are optional.
- **Select RynthSuite Location** picks the RynthSuite folder. It defaults to a `RynthSuite` folder next to
the RynthCore folder you picked, or the folder used last time. The page is skipped when no Suite component is selected.
- **Silent installs:** `RynthCore-Setup-2026.10.4.2.exe /SILENT /DIR="D:\Games\RynthCore" /SUITEDIR="D:\Games\RynthSuite"`.
Without `/SUITEDIR` the Suite goes next to `/DIR`, or to the previously used folder.
- **Registry:** both folders are written to `Software\Rynth` (`CoreDir`, `SuiteDir`). That is HKCU for per-user installs
and HKLM for all-users installs. All of RynthCore and RynthSuite now read them.
- **Plugin auto-registration:** the installer leaves `PendingPluginRegistration` with the RynthAi DLL path. On the next
start the launcher adds it to the Plugins list (replacing any stale entry with the same file name whose file is gone),
syncs `engine.json` and clears the value. A fresh install therefore loads RynthAi with no manual setup.
- **Shortcuts:** RynthCore, Loot Editor, Monster Editor, RynthSuite folder, Uninstall, and an optional desktop icon.
### Cleanup of older layouts
Before copying, the installer deletes leftovers from 0.4.x and RynthBundle installs in the RynthCore folder:
root `*.dll`/`*.json`/`*.pdb`, `RynthCore.App.Avalonia.exe`, old `Runtime\*.dll`/`*.json`, `Runtime\RynthCore.Injector.exe`
and `Runtime\Plugins\`. Then it lays down a complete, matching set. User data (`Logs`, settings in `%APPDATA%\RynthCore`,
everything under `<SuiteDir>\RynthAi`) is never touched, and the RynthSuite data folders survive an uninstall.
## Code: no more hard-coded `C:\Games\...`
New `src/RynthCore.App/RynthInstallPaths.cs`, linked into the launcher, engine, loader, injector and status agent.
It resolves the folders in this order: `RYNTHCORE_DIR`/`RYNTHSUITE_DIR` environment variables, then HKCU, then HKLM
(32-bit view), then the old `C:\Games\...` defaults. It uses a direct `RegGetValueW` P/Invoke, so it is NativeAOT-safe.
The engine resolves it on its init worker, never under the loader lock.
| Was | Now |
|---|---|
| `C:\Games\RynthCore\Logs` (launcher, loader, injector, engine) | `<CoreDir>\Logs` |
| `C:\Games\RynthCore\AcClient\acclient.exe` (injector) | `<CoreDir>\AcClient\acclient.exe` |
| `C:\Games\RynthSuite\RynthAi\imgui.ini`, MetaFiles | `<SuiteDir>\RynthAi\...` |
| Status agent defaults | derived from the resolved folders |
## Build script (`installer\Build-Installer.ps1`)
- **Publishes:** launcher, Engine, Loader, the RynthAi plugin, the Loot Editor, and now the **Monster Editor**
(self-contained win-x86).
- **Staging:** RynthCore goes to `staging\core`, RynthSuite to `staging\suite\RynthAi` (plugin plus `MonsterEditor\`).
- **Versions:** the RynthAi plugin is no longer stamped with the installer version. It keeps its own semantic version
(0.5.3), and everything else gets `-p:Version=<installer version>`.
- **New check:** every project assembly listed in the launcher's `deps.json` must be staged next to it. This guards
directly against the DesktopLog failure above.
- **Previous release:** `installer\previous-release\last-built-version.txt` tracks the last build. When the version
changes, that build's installer is archived to `previous-release\` (git-ignored) before the new one is built.
- **Output:** `RynthCore-Setup-<version>.exe`, plus a `RynthCore-Setup.exe` copy.
## Not included
RynthChat, RynthJuice, RynthNav, RynthTracker and RynthVision are experimental and stay out of the installer.
RynthNav and RynthJuice still hard-code `C:\Games\RynthCore`.

View file

@ -0,0 +1,40 @@
# RynthCore 2026.10.4.3: experimental plugins as optional installer components
**Release date:** 2026-10-04
**Installer:** `installer\Output\RynthCore-Setup-2026.10.4.3.exe` (also copied to `RynthCore-Setup.exe`)
**Previous release:** `2026.10.4.2` (archived to `installer\previous-release\RynthCore-Setup-2026.10.4.2.exe`)
**Branch:** `feat/full-installer` (local test build, not on `main`)
## What's new
The **Select Components** page has a new **RynthSuite: Experimental plugins** group. Each plugin is unchecked by
default in every install type; ticking one switches the install to Custom.
| Component | Installs to | Version |
|---|---|---|
| `experimental\rynthchat` | `<RynthSuite>\RynthChat\RynthCore.Plugin.RynthChat.dll` | 0.1.1 |
| `experimental\rynthjuice` | `<RynthSuite>\RynthJuice\RynthCore.Plugin.RynthJuice.dll` | 0.1.1 |
| `experimental\rynthnav` | `<RynthSuite>\RynthNav\RynthCore.Plugin.RynthNav.dll`, plus `<RynthCore>\NavData\` | 0.5.5 |
| `experimental\rynthtracker` | `<RynthSuite>\RynthTracker\RynthCore.Plugin.RynthTracker.dll` | 0.1.1 |
| `experimental\rynthvision` | `<RynthSuite>\RynthVision\RynthCore.Plugin.RynthVision.dll` | 0.1.1 |
- **Registration:** every selected plugin (RynthAi included) goes into `Software\Rynth\PendingPluginRegistration`
as a `;`-separated list. On next start the launcher adds them all to its Plugins list and syncs `engine.json`.
- **Suite folder page:** shown whenever any RynthSuite component is selected, experimental ones included.
- **RynthNav data:** the installer creates `<RynthCore>\NavData` (kept on uninstall). It ships the starter
`portals.tsv` from `RynthNav.PortalGraph` only when that folder has none, so a newer generated file is never overwritten.
Navmesh tiles (`nav_XXXX.tile`) are **not** shipped; bake them with `RynthNav.Baker --tiled` (its default output
is `C:\Games\RynthCore\NavData`; pass `--out` for a different RynthCore folder).
- **Silent installs:** pick components with `/COMPONENTS`, for example
`/COMPONENTS="core,rynthai,monstereditor,experimental\rynthnav,experimental\rynthvision"`.
## Build script (`installer\Build-Installer.ps1`)
- New step **7/7** publishes the five plugins (NativeAOT, x86), each keeping its own version.
- RynthJuice, RynthNav and RynthVision set `<PublishDir>` to the live `C:\Games\RynthSuite\<Name>\` for dev hot-reload.
The build overrides it to each project's `bin\...\publish\`, so building an installer never touches a live install.
- Staging: `staging\suite\<Name>\` per plugin and `staging\navdata\portals.tsv`. All of them are in the required-files check.
## Upgrade notes
- Re-running the installer without an experimental plugin does not remove one installed earlier. Uninstall
RynthCore, or delete `<RynthSuite>\<Name>\` and its row in the launcher's Plugins tab.
- These plugins are work in progress and may change or break between builds.

View file

@ -0,0 +1,50 @@
# RynthCore 2026.10.4.4: .NET 10 check with automatic download and install
**Release date:** 2026-10-04
**Installer:** `installer\Output\RynthCore-Setup-2026.10.4.4.exe` (also copied to `RynthCore-Setup.exe`)
**Previous release:** `2026.10.4.3` (archived to `installer\previous-release\RynthCore-Setup-2026.10.4.3.exe`)
**Branch:** `feat/full-installer` (local test build, not on `main`)
## Installer: .NET 10 Desktop Runtime (x86)
- **Detection:** setup looks for a 10.x `Microsoft.WindowsDesktop.App` under `Program Files (x86)\dotnet\shared\`, or its
registration in `HKLM\SOFTWARE\dotnet\Setup\InstalledVersions\x86\sharedfx\Microsoft.WindowsDesktop.App` (32-bit view).
x86 matches RynthCore's x86 launcher and tools. The Desktop Runtime also contains the base .NET runtime.
- **When it's missing,** the Tasks page shows a **Prerequisites** task, checked by default: *Download and install the
Microsoft .NET 10 Desktop Runtime (x86)*. When the runtime is already there, the task is not shown at all.
- **Install:** on leaving the Ready page, setup downloads the latest 10.x runtime from Microsoft
(`https://aka.ms/dotnet/10.0/windowsdesktop-runtime-win-x86.exe`, about 55 MB) with a progress page, then runs it
with `/install /quiet /norestart`. The runtime's own installer asks for administrator approval (UAC) when setup
isn't elevated.
- **Silent installs** run the same step just before the files are copied, without a progress page. Skip it with
`/MERGETASKS="!installdotnet"`. That's useful offline, or for the launcher's silent self-update when no one is
there to approve UAC.
- **Never blocking:** exit codes 0, 3010, 1641 and 1638 (a newer runtime is already installed) count as success. A
failed download, a cancelled UAC prompt (1602) or any other error is logged and shown in a message box with the
manual download link, and the RynthCore install carries on.
Why it isn't required: the launcher, Loot Editor and Monster Editor are self-contained (they bundle .NET 10.0.5), and the
engine, loader and plugins are NativeAOT. The shared runtime is a safety net for framework-dependent add-ons and tools.
Earlier blocking .NET pages (0.4.x) had to be made advisory for exactly this reason.
## Build script: .NET 10 SDK
`Build-Installer.ps1` needs a .NET 10 SDK to publish, so before building (skipped with `-SkipBuild`) it:
1. uses the `dotnet` on PATH if it lists a 10.x SDK;
2. otherwise reuses an earlier per-user install in `%LOCALAPPDATA%\Microsoft\dotnet`;
3. otherwise downloads Microsoft's `dotnet-install.ps1`, **checks its Authenticode signature** (must be valid and signed
by Microsoft Corporation), and installs the latest 10.0 SDK per-user. No admin is needed. Then it uses that SDK for the
rest of the build (`DOTNET_ROOT` and `PATH` are set for this session only).
Pass `-NoDotNetInstall` to fail with a download link instead of installing.
**Tested:** in an isolated session with no `dotnet` on PATH, the script verified the signature, installed SDK 10.0.401 to
a scratch folder and found it again on a second run without re-downloading.
NativeAOT publishing also needs the Visual Studio C++ build tools ("Desktop development with C++"). The script doesn't
install those.
## Not tested end to end
The runtime download and install path in the installer was compiled but not run on the build machine. That machine already
has the x86 Desktop Runtime 10.0.7, so the task stays hidden there. Running it would have meant installing 10.0.12
machine-wide.

View file

@ -0,0 +1,31 @@
# RynthCore 2026.10.4.5: installer only reuses a RynthSuite folder from the same install mode
**Release date:** 2026-10-04
**Installer:** `installer\Output\RynthCore-Setup-2026.10.4.5.exe` (also copied to `RynthCore-Setup.exe`)
**Previous release:** `2026.10.4.4` (archived to `installer\previous-release\RynthCore-Setup-2026.10.4.4.exe`). Don't
use 2026.10.4.4 for a per-user install on a machine that also has an all-users install (see below).
**Branch:** `feat/full-installer` (local test build, not on `main`)
## Fix
To pre-fill the **Select RynthSuite Location** page, the installer used to read `Software\Rynth\SuiteDir` from HKCU **and
then HKLM**. A per-user install on a machine that already had an all-users install therefore adopted the all-users
RynthSuite folder. The two installs then shared those files, and **uninstalling the per-user install deleted the
all-users install's RynthAi DLL and Monster Editor.**
The lookup now reads only the hive of the current install mode (Inno's `HKA`: HKCU for per-user, HKLM for all-users),
matching how `GetPreviousData` and `UsePreviousAppDir` already behave. A per-user install with no per-user history
defaults to a `RynthSuite` folder next to its RynthCore folder again.
The runtime resolver (`RynthInstallPaths`: HKCU, then HKLM) is unchanged. A per-user install's own values still
take precedence for that user.
## Found by
A per-user test install of 2026.10.4.4 into a scratch folder on the build machine, which had an all-users 2026.10.4.3
install in `C:\Games`. The test install wrote into `C:\Games\RynthSuite` and its uninstall removed
`RynthAi\RynthCore.Plugin.RynthAi.dll` and the Monster Editor. Both were restored right away from the same-source build
(RynthAi 0.5.3, 217 Monster Editor files). User data folders, the experimental plugins and `C:\Games\RynthCore` were not affected.
## Also in this build
Everything from 2026.10.4.4: the .NET 10 Desktop Runtime check with automatic download and install in the installer,
and the .NET 10 SDK check with per-user auto-install in `Build-Installer.ps1`.

View file

@ -0,0 +1,16 @@
# Installer 2026.10.4.6 — RynthAi tool launch buttons
**Date:** 2026-10-04
**Branch:** `feat/full-installer` (testing only — not merged to `main`)
## Changes
- Bundles **RynthAi 0.5.4**, which adds **Loot Editor** and **Monster Editor** launch buttons to the
in-game Items window and the Advanced Settings → Looting page. No more launching the editors from
the shell or Explorer while playing.
- No installer script changes; tool locations are unchanged (`<CoreDir>\Tools\LootEditor`,
`<SuiteDir>\RynthAi\MonsterEditor`), and RynthAi finds them through the registered install paths.
## Build
- `installer\Build-Installer.ps1 -Version 2026.10.4.6`
- Previous installer archived: `installer\previous-release\RynthCore-Setup-2026.10.4.5.exe`
- Output: `installer\Output\RynthCore-Setup-2026.10.4.6.exe`

View file

@ -0,0 +1,26 @@
# Security: pin Tmds.DBus.Protocol 0.21.3 (NU1903)
**Date:** 2026-10-04
**Branch:** `fix/tmds-dbus-advisory` (based on `main`; not merged)
**Advisory:** NU1903 / [GHSA-xrw6-gwf8-vvr9](https://github.com/advisories/GHSA-xrw6-gwf8-vvr9) (high severity)
## Problem
Avalonia 11.x (through `Avalonia.FreeDesktop`) depends on `Tmds.DBus.Protocol` 0.20.x, which has a
known vulnerability. NuGet restore reported NU1903 for every project that references Avalonia.
## Fix
A direct `PackageReference` to `Tmds.DBus.Protocol` **0.21.3** overrides the vulnerable transitive version:
- `src/RynthCore.App.Avalonia/RynthCore.App.Avalonia.csproj`
- `src/RynthCore.Engine/RynthCore.Engine.csproj`
The same pin is in RynthSuite (`Tools/RynthCore.LootEditor`, `Tools/RynthCore.MonsterEditor`) on `feat/ilt-hub`.
## Verification
- `dotnet restore` / `dotnet list package --include-transitive` resolve `Tmds.DBus.Protocol 0.21.3` in all projects.
- No NU190x warnings remain.
- RynthAi 0.5.2 builds and publishes (NativeAOT) against this branch.
## Notes
- No runtime behaviour change on Windows. D-Bus is only used by Avalonia on Linux desktops.
- Drop the explicit pin once Avalonia ships a release that depends on a fixed version.