RynthCore - MIT, for the original Asheron's Call client. Public source snapshot (one commit per release). https://aelrynth.com/projects.html#rynth
  • C# 95.9%
  • PowerShell 1.5%
  • C 1.2%
  • Python 1.1%
  • Inno Setup 0.2%
  • Other 0.1%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Daniel Wallace 8c7201dc25 Engine robustness review fixes: crash-log repeats, teardown reserve, mutator gate, OOM dump safety
Native crash logger
- Per-address slots keep hit counts and a last-write tick; a repeat relogs at powers of
  two, after 30 s, or for any non-AV code. The oldest noise slot is evicted when the
  table is full.
- The logger checks its dedupe first, caches the module table, and opens the log
  handle once at install. Managed-noise bucket (coreclr, clrjit, System.Private.CoreLib).

Main-thread queue
- The action ring (ActionRing) rejects non-teardown work during a world transition and
  reserves its top 32 slots for teardown, so a stop is never lost behind held work.
  IsTeardownKind is shared by the enqueue and drain sides. ActionRing.TryPeekAt lets the
  cast drain's StopQueuedAtOrBefore walk the ring it no longer owns directly; the walk
  now checks every queued entry, since an entry's time is taken before the ring's lock.
- MutatorGate: every AC-mutating helper opens with the same gate,
  AcMainThreadQueue.MustQueue(teardown: X); IsDraining and ShouldDefer added; teardown
  helpers are exempt from the hold. tools\check_offthread_mutators.py accepts MustQueue
  as the gate (it asks MainThreadGuard.IsOnMainThread itself).
- MasteryFeed and VaultFeed pause during a transition. The heading slot drops a stale
  heading; the overlay select is kept.
- RequestId never merges into an entry queued at or before the last transition hold;
  EnqueueRequestId returns false during a transition.
- 0xF751 PlayerTeleport starts the 5 s settle window.
- Cast slot: the queue time and Pending are published with Volatile.Write (a plain 64-bit
  store can tear on x86 and the drain reads both without the lock); the stop-wait flag is
  reset before the publishing store.

Appraisals
- Appraisal data survives a client release for 10 min (bounded at 4096); evicted on
  server delete (0xF747) and at session clear. 0xF747 is detected in SmartBox dispatch,
  independent of capture.

Dumps
- Dump start/end markers in the log; the launcher holds its wedge kill while a dump is
  in progress (DumpInProgressRule). The in-progress flag is cleared only when the writer
  thread exits.
- The OOM dump triggers only on the main thread with AC's exact text, before stacks are
  built. Dumps are pruned only after a successful write, and other live clients' dumps
  are kept. CrashDump reads the file length before Delete.
- ExitProcess/RtlExitUserProcess detours forward crash codes first.
- The message box count is decremented first in a finally; 30 s safety reset when no box
  is visible on the main thread.
- UsageStats counts the loader's CoreCLR fatal-error dumps (Logs\dumps\clr_*.dmp) as
  crashes alongside crash_*.dmp.

Tests: EngineRobustnessTests, CrashLogFilterTests, UsageStatsTests.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-12 17:17:59 -07:00
.github/workflows RynthCore as of 2026-09-05 (internal f9abab9) 2026-09-25 21:22:59 -04:00
docs RynthCore as of 2026-10-05 evening (internal 0a2043e): release 2026.10.5.20 - own dat reader, plugin manifests, UI/login hooks with Loot Editor drag-and-drop, server-message stream (API v78), raise attributes and skills (API v79), nameplate sizing and overlay opacity, engine reload held while a plugin is fighting, StatusAgent character sheet, world map and travel for DrakRemote 2026-10-05 14:59:43 -04:00
installer Snapshot for release 2026.10.11.1 (internal 4eca83a) 2026-10-11 15:00:53 -04:00
native Engine robustness review fixes: crash-log repeats, teardown reserve, mutator gate, OOM dump safety 2026-10-12 17:17:59 -07:00
scripts Snapshot for release 2026.10.11.1 (internal 4eca83a) 2026-10-11 15:00:53 -04:00
spikes RynthCore as of 2026-10-04 (internal 843c801): RynthNav auto-travel and the navigation map, plugin API v75 (server and titles), launcher with Available plugins, download progress and the update on the front page, opt-in usage statistics, NPC names, radar colours, title-bar text size, FPS limiter, client action unlocks, release 2026.10.4.6 2026-10-04 18:34:27 -04:00
src Engine robustness review fixes: crash-log repeats, teardown reserve, mutator gate, OOM dump safety 2026-10-12 17:17:59 -07:00
tools Engine robustness review fixes: crash-log repeats, teardown reserve, mutator gate, OOM dump safety 2026-10-12 17:17:59 -07:00
.gitattributes RynthCore as of 2026-09-05 (internal f9abab9) 2026-09-25 21:22:59 -04:00
.gitignore RynthCore as of 2026-10-04 (internal 843c801): RynthNav auto-travel and the navigation map, plugin API v75 (server and titles), launcher with Available plugins, download progress and the update on the front page, opt-in usage statistics, NPC names, radar colours, title-bar text size, FPS limiter, client action unlocks, release 2026.10.4.6 2026-10-04 18:34:27 -04:00
BUILD.md RynthCore as of 2026-10-04 (internal 843c801): RynthNav auto-travel and the navigation map, plugin API v75 (server and titles), launcher with Available plugins, download progress and the update on the front page, opt-in usage statistics, NPC names, radar colours, title-bar text size, FPS limiter, client action unlocks, release 2026.10.4.6 2026-10-04 18:34:27 -04:00
LICENSE RynthCore as of 2026-09-05 (internal f9abab9) 2026-09-25 21:22:59 -04:00
README.md RynthCore as of 2026-10-04 (internal 843c801): RynthNav auto-travel and the navigation map, plugin API v75 (server and titles), launcher with Available plugins, download progress and the update on the front page, opt-in usage statistics, NPC names, radar colours, title-bar text size, FPS limiter, client action unlocks, release 2026.10.4.6 2026-10-04 18:34:27 -04:00
RynthCore.sln RynthCore as of 2026-10-04 (internal 843c801): RynthNav auto-travel and the navigation map, plugin API v75 (server and titles), launcher with Available plugins, download progress and the update on the front page, opt-in usage statistics, NPC names, radar colours, title-bar text size, FPS limiter, client action unlocks, release 2026.10.4.6 2026-10-04 18:34:27 -04:00
THIRD-PARTY-NOTICES.md RynthCore as of 2026-10-05 evening (internal 0a2043e): release 2026.10.5.20 - own dat reader, plugin manifests, UI/login hooks with Loot Editor drag-and-drop, server-message stream (API v78), raise attributes and skills (API v79), nameplate sizing and overlay opacity, engine reload held while a plugin is fighting, StatusAgent character sheet, world map and travel for DrakRemote 2026-10-05 14:59:43 -04:00

RynthCore

RynthCore is a modern .NET 10 modding host for Asheron's Call. It combines an x86 NativeAOT in-process engine, a hot-reload-capable loader, an injector, an Avalonia desktop launcher, and a plugin surface that replaces the legacy Decal + UBService + VTank stack with a self-contained RynthCore-native API.

The plugin code (RynthAi etc.) lives in a sibling repository: RynthSuite.

What it does

  • Launches acclient.exe (suspended if needed) and injects the RynthCore loader
  • Hosts in-game UI through an embedded ImGui overlay, with a parallel Avalonia overlay stack for floating panels (and for Decal coexistence mode where ImGui is disabled)
  • Exposes a growing plugin host API with hooks for chat, combat, targeting, movement, object lifecycle, vendor/trade, vitals, enchantments, and UI events
  • Hot-reloads plugin DLLs without restarting AC; hot-reloads the engine itself via the loader DLL
  • Detects Decal/UBService/VTank coexistence and degrades gracefully (skips D3D9 path, drives plugin tick from a worker thread)

Solution layout

RynthCore.sln
├── src/RynthCore.Loader            x86 NativeAOT DLL — injection target.
│                                    Owns RynthCoreInit; loads + reloads
│                                    the Engine.
├── src/RynthCore.Engine             x86 NativeAOT DLL — the runtime
│                                    injected into acclient.exe. Pattern-
│                                    scanned hooks, D3D9 + ImGui + Avalonia
│                                    overlays, plugin manager, crash logger.
├── src/RynthCore.Injector           x86 console — Win32 LoadLibrary +
│                                    CreateRemoteThread injector with a
│                                    suspended-launch / early-inject path.
├── src/RynthCore.App.Avalonia       Desktop launcher (Avalonia 11.2.3,
│                                    Fluent theme). Profile management,
│                                    server status, launches and injects.
├── src/RynthCore.App                Shared service classes linked into
│                                    both Engine and Avalonia launcher
│                                    via <Compile Include /> — not built
│                                    standalone.
├── src/RynthCore.PluginSdk          Public host API surface for plugins.
└── src/RynthCore.PluginCore         RynthPluginBase + lifecycle helpers.

Prerequisites

  • Windows 10 or 11
  • .NET 10 SDK (x86)
  • Visual Studio 2022 Build Tools with the .NET desktop and C++ desktop workloads (the C++ tools are required by the NativeAOT ILC linker)
  • Asheron's Call client installed (default: C:\Turbine\Asheron's Call\)

The Engine, Loader, and plugin projects target net10.0-windows with RuntimeIdentifier=win-x86 and PublishAot=true. A bundled cimgui.dll ships under src/RynthCore.Engine/Native/.

Build

From the repository root:

$env:DOTNET_CLI_HOME = "$PWD\.dotnet-home"
$env:DOTNET_SKIP_FIRST_TIME_EXPERIENCE = "1"
dotnet build .\RynthCore.sln -c Release

To publish the runtime pieces individually (use publish, not build, for any NativeAOT project):

dotnet publish .\src\RynthCore.Loader\RynthCore.Loader.csproj -c Release
dotnet publish .\src\RynthCore.Engine\RynthCore.Engine.csproj -c Release
dotnet publish .\src\RynthCore.App.Avalonia\RynthCore.App.Avalonia.csproj -c Release

For a clean local deployment, keep the launcher at the top level of C:\Games\RynthCore\ and place the injectable engine and loader payloads under C:\Games\RynthCore\Runtime\. The injector's saved-path resolver prefers Runtime\RynthCore.Loader.dll, falls back to Runtime\RynthCore.Engine.dll for legacy direct-load setups, and walks up sibling directories so manual layouts still work.

You can produce that layout with:

.\scripts\Deploy-RynthCore.ps1

For full deploy details, the Inno Setup installer, and gotchas, see BUILD.md.

Documentation

  • BUILD.md — full build, deploy, and installer instructions
  • CLAUDE.md — project memory file (architecture orientation, technical facts, common pitfalls)
  • docs/ACCLIENT_HOOK_INVENTORY.md — hook target inventory against the user's live acclient.exe
  • docs/PLUGIN_HOOK_MATRIX.md — clean-room hook surface matrix
  • docs/LEGAL_COMPATIBILITY.md — project policy on Decal/VTank compatibility
  • docs/archive/ — archived plans and one-off utilities

Repository notes

  • Local settings, machine-specific files, generated bin/, obj/, .vs/, .dotnet-home/ content, and launcher data (profiles, runtime state) are kept out of source control via .gitignore
  • Plugin code lives in the RynthSuite repo as a sibling clone

Security and secrets

This repository should not contain API keys, local secrets, or machine-specific credentials. If you add any local integrations later, keep them in ignored files such as .env, appsettings.Local.json, or other untracked local config.

License

This project is released under the MIT License. See LICENSE.