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

59
.github/workflows/ci-statusagent.yml vendored Normal file
View file

@ -0,0 +1,59 @@
name: CI — StatusAgent build
# Builds on a Windows runner so the (otherwise Windows/NativeAOT-only) code is
# actually compiled in CI, and publishes a standalone RynthCore.StatusAgent.exe
# as a downloadable artifact. Runs on PRs that touch source + on manual dispatch.
on:
pull_request:
paths:
- 'src/**'
- '.github/workflows/ci-statusagent.yml'
workflow_dispatch:
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup .NET 10
uses: actions/setup-dotnet@v4
with:
dotnet-version: '10.0.x'
# ── Compile-check the engine-side changes (managed build; no ILC/AOT link,
# no RynthSuite needed — this just verifies the C# compiles). ──────────
- name: Compile-check RynthCore.Engine
shell: pwsh
run: |
dotnet build src/RynthCore.Engine/RynthCore.Engine.csproj -c Release
if ($LASTEXITCODE -ne 0) { throw "RynthCore.Engine failed to compile" }
# ── Build + publish the StatusAgent as a standalone single-file exe so it
# runs on the gaming PC with no .NET install. ──────────────────────────
- name: Publish RynthCore.StatusAgent (self-contained win-x64)
shell: pwsh
run: |
dotnet publish src/RynthCore.StatusAgent/RynthCore.StatusAgent.csproj `
-c Release -r win-x64 --self-contained true `
-p:PublishSingleFile=true -p:IncludeNativeLibrariesForSelfExtract=true `
-o publish/StatusAgent
if ($LASTEXITCODE -ne 0) { throw "RynthCore.StatusAgent failed to publish" }
Get-ChildItem publish/StatusAgent | Format-Table Name,Length
- name: Smoke test (--once --dry-run)
shell: pwsh
run: |
# No status files / no AC running on the runner, so this just proves the
# exe starts, reads cleanly, and exits 0 in local print-only mode.
./publish/StatusAgent/RynthCore.StatusAgent.exe --once --dry-run --verbose
if ($LASTEXITCODE -ne 0) { throw "StatusAgent smoke test exited $LASTEXITCODE" }
- name: Upload StatusAgent artifact
uses: actions/upload-artifact@v4
with:
name: RynthCore.StatusAgent-win-x64
path: publish/StatusAgent/**
if-no-files-found: error

View file

@ -10,6 +10,10 @@ on:
description: 'Version number (e.g. 0.3) — creates tag v<version>'
required: true
default: '0.3'
rynthsuite_ref:
description: 'RynthSuite ref to build against (tag/branch/SHA). Blank = matching version tag, else default branch.'
required: false
default: ''
push:
tags:
- 'v*'
@ -31,27 +35,75 @@ jobs:
- name: Checkout RynthCore
uses: actions/checkout@v4
- name: Checkout RynthSuite (sibling of RynthCore)
# Pin the sibling to the matching version tag so a tagged release is
# REPRODUCIBLE (otherwise it builds against whatever RynthSuite main is at
# build time — PluginContractVersion skew is one push away). Falls back to
# the default branch (with a CI warning) if the matching tag doesn't exist
# yet, e.g. a manual dispatch before RynthSuite is tagged.
- name: Checkout RynthSuite (sibling, pinned)
shell: pwsh
run: |
$parent = Split-Path "$env:GITHUB_WORKSPACE" -Parent
$dest = "$parent\RynthSuite"
Write-Host "Cloning RynthSuite to: $dest"
if ("${{ github.event_name }}" -eq "push") { $want = "${{ github.ref_name }}" }
else { $want = "v${{ github.event.inputs.version }}" }
$override = "${{ github.event.inputs.rynthsuite_ref }}"
if ($override) { $want = $override }
Write-Host "Cloning RynthSuite to: $dest (pin target: $want)"
# Sibling fork on the same GitHub owner (BlankenshipG in this environment).
# Canonical public source is https://aelrynth.com/git/RynthSuite.git — CI uses
# the GitHub sibling so the release build matches this fork pair.
# If RynthSuite is private, set a GH_PAT secret and use the token URL:
# git clone https://x-access-token:${{ secrets.GH_PAT }}@github.com/tombohar/RynthSuite.git $dest
git clone https://github.com/tombohar/RynthSuite.git $dest
# git clone https://x-access-token:${{ secrets.GH_PAT }}@github.com/${{ github.repository_owner }}/RynthSuite.git $dest
git clone "https://github.com/${{ github.repository_owner }}/RynthSuite.git" $dest
if ($LASTEXITCODE -ne 0) { throw "git clone RynthSuite failed" }
git -C $dest fetch --tags --quiet
if ($want -and (git -C $dest rev-parse --verify --quiet "$want^{commit}")) {
git -C $dest checkout --quiet $want
if ($LASTEXITCODE -ne 0) { throw "checkout RynthSuite $want failed" }
Write-Host "RynthSuite pinned to: $want"
} else {
Write-Host "::warning::RynthSuite ref '$want' not found; building against default branch HEAD (NOT reproducible)"
}
Write-Host "RynthSuite at commit: $(git -C $dest rev-parse HEAD)"
# ── Toolchain ─────────────────────────────────────────────────────────────
- name: Setup .NET 9
- name: Setup .NET 10
uses: actions/setup-dotnet@v4
with:
dotnet-version: '9.0.x'
dotnet-version: '10.0.x'
- name: Install Inno Setup 6
run: choco install innosetup --yes --no-progress
shell: pwsh
- name: Setup Python (for validation gates)
uses: actions/setup-python@v5
with:
python-version: '3.12'
# ── Validation gates (fail the release before building if any trips) ───────
# Gate 1: off-thread AC-mutator check — guards the off-thread-mutation AV
# class (the root of the 2026-06 crash week). Pure source scan, no binary.
# Gate 2: LootSdk golden tests — 60+ assertions on the loot-profile parser
# that ships in the bundled plugin (run against the pinned RynthSuite).
# Gate 3 (pe_pattern CHECK) is LOCAL-ONLY: it needs the 1.4 GB acclient.exe
# that CI doesn't have, so it runs as a pre-deploy gate in Deploy-RynthCore.ps1.
- name: Validation gates
shell: pwsh
run: |
$parent = Split-Path "$env:GITHUB_WORKSPACE" -Parent
Write-Host "== Gate 1: off-thread AC-mutator check =="
python "$env:GITHUB_WORKSPACE\tools\check_offthread_mutators.py"
if ($LASTEXITCODE -ne 0) { throw "off-thread mutator gate FAILED — an AC mutator is reachable off the main thread" }
Write-Host "== Gate 2: LootSdk golden tests =="
dotnet run --project "$parent\RynthSuite\Tools\RynthCore.LootSdkTests\RynthCore.LootSdkTests.csproj" -c Release
if ($LASTEXITCODE -ne 0) { throw "LootSdk golden tests FAILED" }
Write-Host "== Gate 3: pe_pattern CHECK — LOCAL ONLY =="
Write-Host " (skipped in CI: needs the 1.4 GB acclient.exe; runs pre-deploy via Deploy-RynthCore.ps1)"
# ── Determine version ──────────────────────────────────────────────────────
- name: Resolve version
id: ver
@ -99,18 +151,43 @@ jobs:
body: |
## Installation
1. Download **RynthBundle-Setup-${{ steps.ver.outputs.version }}.exe** below and run it
2. Start Asheron's Call and log in to your character
3. Open **RynthCore** from the Start Menu or Desktop shortcut
4. Click **Inject Running AC** in the launcher
5. The RynthAi panel will appear inside the AC window
1. Download **RynthCore-Setup.exe** below and run it
2. Open **RynthCore** from the Start Menu or Desktop shortcut
---
**First-time setup** — in the RynthCore launcher:
- Set your `acclient.exe` path under **Runtime Paths** if prompted
- The plugin auto-loads from `C:\Games\RynthCore\Runtime\Plugins\`
## ⚠ Important first-time setup
Loot, nav, and meta profiles go in `C:\Games\RynthSuite\RynthAi\`
### 1. Second AC client install (required for multi-client coexistence)
Log file: `%USERPROFILE%\Desktop\RynthCore.log`
If you also play Asheron's Call through ThwargLauncher or another launcher, you **must** keep a separate copy of the AC client for RynthCore launches. Otherwise the two stacks fight over the same DAT files and one of them will fail with "cannot access the data files."
Run this once in PowerShell:
```powershell
robocopy "C:\Turbine\Asheron's Call" "C:\Games\RynthCore\AcClient" /E /MT:8 /NFL /NDL /NJH /NJS /NP /XF "acclient_*.log" "acclient.log"
```
Then in the RynthCore launcher, set **AC Client Path** to:
```
C:\Games\RynthCore\AcClient\acclient.exe
```
(~1.4 GB extra disk. The two installs share `Documents\Asheron's Call\UserPreferences.ini` so multi-port stays in sync.)
### 2. Add the RynthAi plugin (opt-in)
The installer drops the plugin DLL at `C:\Games\RynthSuite\RynthAi\RynthCore.Plugin.RynthAi.dll`. The engine does **not** auto-scan a Plugins folder. To enable RynthAi:
- Open the launcher → **Plugins** tab → **Add Plugin DLL**
- Browse to `C:\Games\RynthSuite\RynthAi\RynthCore.Plugin.RynthAi.dll`
- Launch AC. The RynthAi panel appears inside the AC window.
Loot, nav, and meta profiles also live under `C:\Games\RynthSuite\RynthAi\`.
---
## Logs
- Unified RynthCore log: `C:\Games\RynthCore\Logs\RynthCore.log`
- Crash dumps and engine init traces show up there with `[loader]`, `[engine]`, `[plugin]`, and `[compat]` tags.