A snapshot of the working tree for aelrynth.com/git/: the code, build files and public docs. Internal review notes and agent instructions are left out. MIT licensed; see LICENSE. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
12 KiB
Build & Deploy
RynthCore is the injection framework. RynthSuite (separate repo) contains the plugins that run on top of it.
Prerequisites
- Windows 10 or 11
- .NET 10 SDK (x86)
- Visual Studio 2022 Build Tools with the .NET desktop and C++ desktop workloads (required by the NativeAOT ILC linker)
- Asheron's Call client installed
Projects
| Project | Type | Output |
|---|---|---|
src/RynthCore.Loader |
NativeAOT x86 DLL | Injected into acclient.exe — owns RynthCoreInit export and hot-loads the Engine. |
src/RynthCore.Engine |
NativeAOT x86 DLL | The runtime engine — pattern-scans acclient.exe hooks, hosts D3D9/ImGui overlay, runs plugins. |
src/RynthCore.Injector |
x86 console | Standalone CLI injector via LoadLibrary + CreateRemoteThread. The launcher embeds the same EngineInjectionService directly. |
src/RynthCore.App.Avalonia |
Avalonia desktop app | The launcher — server/account profiles, plugin management, suspended-launch + early-inject. |
src/RynthCore.PluginSdk |
Class library | Public host API surface for plugins. |
src/RynthCore.PluginCore |
Class library | RynthPluginBase + lifecycle dispatch helpers. |
src/RynthCore.App |
Shared source | Service classes linked into both Engine and Avalonia launcher (not a standalone build target). |
All projects target net10.0-windows. NativeAOT projects (Loader, Engine, plugins) are x86 only with RuntimeIdentifier=win-x86 and PublishAot=true.
Publish Commands
Whole solution
dotnet build .\RynthCore.sln -c Release
This compiles every project including the Loader (which is now in the .sln). Note: dotnet build is enough for the launcher and SDK projects, but NativeAOT projects require dotnet publish to actually produce the native DLL with exports — see below.
Loader (NativeAOT x86 — small, fast)
dotnet publish .\src\RynthCore.Loader\RynthCore.Loader.csproj -c Release
Output: src\RynthCore.Loader\bin\Release\net10.0-windows\win-x86\publish\RynthCore.Loader.dll
Engine (NativeAOT x86 — slow first build, ~2 min)
Requires vswhere.exe on PATH. If the build fails with 'vswhere.exe' is not recognized, add the VS Installer directory:
$env:PATH += ";C:\Program Files (x86)\Microsoft Visual Studio\Installer"
dotnet publish .\src\RynthCore.Engine\RynthCore.Engine.csproj -c Release
Output: src\RynthCore.Engine\bin\Release\net10.0-windows\win-x86\publish\RynthCore.Engine.dll (~26 MB)
Launcher (Avalonia)
dotnet build .\src\RynthCore.App.Avalonia\RynthCore.App.Avalonia.csproj -c Release
Output: src\RynthCore.App.Avalonia\bin\Release\net10.0-windows\RynthCore.App.Avalonia.dll
RynthAi Plugin (NativeAOT — separate repo)
Always clean first — incremental NativeAOT builds can silently skip recompilation and produce a stale DLL.
cd C:\Projects\RynthSuite\Plugins\RynthCore.Plugin.RynthAi
Remove-Item -Recurse -Force obj\Release, bin\Release -ErrorAction SilentlyContinue
dotnet publish -c Release
Output: bin\Release\net10.0-windows\win-x86\publish\RynthCore.Plugin.RynthAi.dll (~7 MB)
The plugin's MSBuild target also copies the published DLL into the engine's bin\...\Plugins\ folder so a freshly built engine picks it up automatically.
Deploy
Directory Layout
C:\Games\RynthCore\
├── RynthCore.exe ← Launcher (renamed from RynthCore.App.Avalonia.exe)
├── RynthCore.App.Avalonia.dll ← Launcher assembly
├── RynthCore.App.Avalonia.deps.json
├── RynthCore.App.Avalonia.runtimeconfig.json
├── Avalonia.*.dll ← Avalonia framework DLLs
└── Runtime\
├── RynthCore.Loader.dll ← Loader (NativeAOT x86) — injection target
├── RynthCore.Engine.dll ← Engine (NativeAOT x86)
├── minhook.x86.dll ← MinHook (x86), preloaded by EntryPoint
├── cimgui.dll ← ImGui C bindings (x86, docking branch)
└── Plugins\
└── *.dll ← Built-in plugin directory
C:\Games\RynthSuite\RynthAi\
├── RynthCore.Plugin.RynthAi.dll ← RynthAi plugin (recommended deploy location)
├── NavProfiles\ ← Navigation profiles
├── LootProfiles\ ← Loot profiles
└── Metas\ ← Meta files
The injector's saved-path resolver prefers Runtime\RynthCore.Loader.dll. It falls back to Runtime\RynthCore.Engine.dll for legacy direct-load setups, and walks parent directories and sibling layouts (Runtime\Engine\, Runtime\Native\, etc.) so manual layouts continue to work.
Deploy Launcher
The launcher can stay open while you replace its DLL.
copy src\RynthCore.App.Avalonia\bin\Release\net10.0-windows\RynthCore.App.Avalonia.dll C:\Games\RynthCore\
copy src\RynthCore.App.Avalonia\bin\Release\net10.0-windows\RynthCore.App.Avalonia.deps.json C:\Games\RynthCore\
Restart the launcher after deploying.
Deploy Loader + Engine
AC must be closed — the running client holds a file lock on the Loader and Engine DLLs.
copy src\RynthCore.Loader\bin\Release\net10.0-windows\win-x86\publish\RynthCore.Loader.dll C:\Games\RynthCore\Runtime\
copy src\RynthCore.Engine\bin\Release\net10.0-windows\win-x86\publish\RynthCore.Engine.dll C:\Games\RynthCore\Runtime\
If you only changed Engine source, you can deploy just RynthCore.Engine.dll and rely on the Loader's hot-reload to swap it in (click RL on the overlay bar with AC running).
Deploy RynthAi Plugin
AC can stay open — plugins are shadow-copied at load time, so the file is not locked.
Plugin discovery is opt-in: the engine no longer auto-scans Runtime\Plugins\ for DLLs. Plugins load only from paths the user has added via the launcher's Plugins tab → "Add Plugin DLL". Those paths are persisted to %AppData%\RynthCore\engine.json as PluginPaths and read by the engine on each (re)init.
Deploy the plugin DLL to its canonical home and add the full path in the launcher:
C:\Games\RynthSuite\RynthAi\
├── RynthCore.Plugin.RynthAi.dll ← add this path in launcher's Plugins tab
├── NavProfiles\
├── LootProfiles\
└── Metas\
copy C:\Projects\RynthSuite\Plugins\RynthCore.Plugin.RynthAi\bin\Release\net10.0-windows\win-x86\publish\RynthCore.Plugin.RynthAi.dll C:\Games\RynthSuite\RynthAi\
After deploying the DLL:
- Open the RynthCore launcher
- Plugins tab → Add Plugin DLL → select
C:\Games\RynthSuite\RynthAi\RynthCore.Plugin.RynthAi.dll - Launch AC (cold start) — the engine picks up the new path on init.
If AC is already running, click RL on the RynthCore overlay bar to hot-reload the engine; it re-reads engine.json and loads the newly-added plugin path.
Verify
| File | Expected Size | If Wrong |
|---|---|---|
Runtime\RynthCore.Loader.dll |
small (~1–2 MB) | NativeAOT didn't run — check for Generating native code in build output |
Runtime\RynthCore.Engine.dll |
~26 MB | NativeAOT didn't run — same diagnosis |
RynthSuite\RynthAi\RynthCore.Plugin.RynthAi.dll |
~7 MB | Built dotnet build instead of dotnet publish |
Runtime\cimgui.dll |
~1.5 MB | Must match ImGui.NET 1.91.6.1 |
To confirm NativeAOT actually ran, check that .lib and .exp files exist alongside the DLL in the publish output's native\ directory.
Installer
The installer/ directory contains an Inno Setup script and a PowerShell build script that publishes all required projects, stages the output, and produces a single RynthCore-Setup.exe.
Prerequisites
- Inno Setup 6 installed to the default location (
C:\Program Files (x86)\Inno Setup 6\) - All build prerequisites listed above (.NET 10 SDK, VS Build Tools)
Build the installer
cd C:\Projects\RynthCore\installer
.\Build-Installer.ps1
This runs dotnet publish for the Launcher, Loader, Engine, and RynthAi plugin (from RynthSuite), stages everything under installer\staging\app\, then invokes ISCC.exe to produce the installer.
Output: installer\Output\RynthCore-Setup.exe
Options
| Parameter | Default | Description |
|---|---|---|
-Configuration |
Release |
Build configuration |
-IsccPath |
C:\Program Files (x86)\Inno Setup 6\ISCC.exe |
Path to the Inno Setup compiler |
-SkipBuild |
off | Skip dotnet publish steps and re-package using the existing staging directory |
What the installer does
- Installs the launcher, loader, engine, and native dependencies to
C:\Games\RynthCore(user-selectable) - Creates data directories under
C:\Games\RynthSuite\RynthAi\(NavProfiles, LootProfiles, MetaFiles, etc.) — these are preserved on uninstall - Adds Start Menu and optional Desktop shortcuts
- Warns if
acclient.exeis running (the engine + loader DLLs would be locked) - Shows getting-started instructions on the finish page
Multi-Client Coexistence (with ThwargLauncher etc.)
If you also run AC through ThwargLauncher, aclauncher, or any other launcher that may not patch AC's OpenDataFile for shared access, the two stacks will fight over the same DAT files. Once one launcher's clients have the DATs locked exclusively, the other can't open them — symptom is "cannot access the data files" when launching from the second launcher.
Required setup: a second AC client install for RynthCore launches.
C:\Turbine\Asheron's Call\ ← left untouched, used by ThwargLauncher etc.
C:\Games\RynthCore\AcClient\ ← full copy of the AC client (~1.4 GB), used by RynthCore
Setup:
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 - Click somewhere else / save so the change persists
The two installs share Documents\Asheron's Call\UserPreferences.ini (it's user-scoped), so ComputeUniquePort=True applies to all instances regardless of which install they came from.
If your AC client ever gets a real-world patch, apply it to both copies (or robocopy /MIR to re-sync from the canonical install).
Gotchas
dotnet publish, notdotnet buildfor Loader, Engine, and plugins. NativeAOT only runs duringdotnet publish. Adotnet buildproduces a valid managed DLL that compiles fine but has no unmanaged exports and will be silently ignored. The Avalonia launcher is the exception —dotnet buildis fine since it's a normal .NET app.- Clean before plugin publish. Incremental NativeAOT builds can silently reuse stale output. Delete
obj\Releaseandbin\Releasebefore every plugin publish to guarantee a fresh compile. - Engine deploy path is
Runtime\, notC:\Games\RynthCore\directly. The injector resolvesRuntime\RynthCore.Loader.dll(preferred) andRuntime\RynthCore.Engine.dll(legacy) by default. - Close AC before redeploying Loader or Engine. Both are loaded into
acclient.exeand locked while the game is running. Plugins are shadow-copied so they can be hot-swapped without closing AC. - cimgui.dll version must match ImGui.NET NuGet. Post-1.90 struct layouts changed. A mismatched cimgui.dll causes
DisplaySize = <1, 1>or font crashes on frame 2. - vswhere.exe must be on PATH for the NativeAOT link step. Add
C:\Program Files (x86)\Microsoft Visual Studio\Installerto PATH if missing. - Decal coexistence mode. If
decal.dll,UBLoader.dll,Decal.Adapter.dll, orphatacd.dllis loaded into acclient.exe, the engine skips the entire D3D9/ImGui path and runs plugins on a 30 Hz worker tick with Avalonia floating panels viaLayeredWindow(GDI). This is intentional — two D3D9 hookers can't symmetrically save/restore render state. CheckRynthCore.logforD3D9: Decal coexistenceto confirm.