- C# 95.9%
- PowerShell 1.5%
- C 1.2%
- Python 1.1%
- Inno Setup 0.2%
- Other 0.1%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
A flight capture from one 26-minute session showed the client sending 3211 IdentifyObject
(0xC8) messages, most of everything it sent, because AutoId appraised every object the
client created. Bots already appraise at the point of use, so the background appraisals
are now limited.
AutoIdMode (engine.json "AutoIdMode", default Limited; /rc autoid all|limited|off, live
and saved; /rc autoid alone reports it):
All the old behaviour.
Limited only the selected target (fresh-cache skip), items in the container the
player has open now, and items in the player's own inventory with nothing
cached. The last two wait until the object is 2 s old and until 30 s after a
world transition's settle window ends (death, portal, teleport, landblock jump;
walking into the next landblock never defers). A container opened after the
settle ended is not deferred. Creatures, ground items, other players: never.
Off nothing, the selected target included.
Plugins' own RequestId calls are not limited; they still merge in the RequestId slot.
The decision is AutoIdPolicy (pure). AutoIdService now keeps a pending list on its drain
timer (waits for age/defer stay, skips leave), classifies each candidate from the PWD
snapshot (container / wielder / side pack owner, and the ground container from
ViewObjectContents), takes InventoryPutObjInContainer (0x0022) moves from the server
message stream, and rescans an opened container 2.5 s after the open.
Requester tagging: a thread-local EngineSendMarker around every engine RequestId call
(AutoId by class, plugin host API, the login self-identify, the Inventory panel hover).
A queued request carries its requester in PendingIdQueue and the main-thread drain
re-enters the marker around the real send. Only a marked send registers with the
flight recorder (FlightCapture.EngineSend, its own 64-entry table so bursts never evict
other engine calls), so its 0xC8 shows as [eng:autoid-target|autoid-container|
autoid-inventory|autoid-world|plugin|self|ui]; an unmarked 0xC8 stays [cli] and counts
as AC's or Decal's.
Per-minute log line "autoid 60s: ..." (its own line, not part of "hb #"): sends by
requester, cli, total, AutoId skips by reason (mode, age, defer, fresh), pending.
EngineSettings keeps upstream's MaxHotReloads, IltServerNames/IltHosts, ReportEndpoint
and CloseOnServerDisconnect next to AutoIdMode (owned keys, load and save).
Tests: EngineRobustnessTests (decision table against an independent expected function,
spot cases, defer window from WorldTransitionState inputs, classification, marker scopes
and thread-locality, requester through PendingIdQueue, heartbeat field names against the
launcher regex), FlightRecorderTests (identify tagging, foreign count, match window, burst),
EngineSettingsTests (AutoIdMode round trip, default left out). check_offthread_mutators.py:
DrainPending allow-listed like DrainTick (it only enqueues).
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
|
||
| .github/workflows | ||
| docs | ||
| installer | ||
| native | ||
| scripts | ||
| spikes | ||
| src | ||
| tools | ||
| .gitattributes | ||
| .gitignore | ||
| BUILD.md | ||
| LICENSE | ||
| README.md | ||
| RynthCore.sln | ||
| THIRD-PARTY-NOTICES.md | ||
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 instructionsCLAUDE.md— project memory file (architecture orientation, technical facts, common pitfalls)docs/ACCLIENT_HOOK_INVENTORY.md— hook target inventory against the user's liveacclient.exedocs/PLUGIN_HOOK_MATRIX.md— clean-room hook surface matrixdocs/LEGAL_COMPATIBILITY.md— project policy on Decal/VTank compatibilitydocs/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.