Commit graph RynthCore/src/RynthCore.Engine
Author SHA1 Message Date
BlankenshipG
3f06ed3e09 fix(engine): open docked panels clear of popped-out windows
- PanelSpec.OpenCentered (Dungeon Map): first open centred instead of the cascade.
- A docked panel more than half hidden by popped-out windows opens at the nearest
  clearer spot (LayeredWindow.VisibleContentRects), logged by ImGuiPanelHost.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-05 10:25:39 -04:00
BlankenshipG
69cfe7515b feat(engine): Skills panel Progression tab and Char launcher menu
- SkillsFace Progression tab (ILT worlds): exact XP planner plus RynthAi's augmentation
  and enlightenment planners via the new UiSources.Progression (RynthPluginGetProgressionJson)
  and 'prog' remote commands, with confirmations for /enl and arming auto-enlighten.
- Char launcher right-click menu: ILT Hub, Pets window, Quests window, Progression.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-05 10:01:18 -04:00
BlankenshipG
31ab351ffe feat(engine): inventory menu item to add an item to RynthAi's item count HUD
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-05 09:51:19 -04:00
BlankenshipG
5fac4560f8 fix(engine): submit ImGui draw data after the Avalonia blit
The aelrynth merge took upstream's EngineFrameController, which submits the ImGui
frame inside OnEndScene, before EndSceneHook blits the Avalonia quad, so panels hid
the ILT Hub and other overlay windows. Restore 6b94752's order: OnEndScene keeps the
built frame and EndSceneHook calls RenderDeferredImGui after OverlayTextureRenderer.
The Win32Backend mouse priority from 6b94752 survived; only its doc comment moved.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-05 09:49:31 -04:00
BlankenshipG
08c63f4cc3 fix(engine): hand plugins the ImGui context for overlay windows, Char/Hub on the ImGui dashboard, warn on hidden log categories
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-05 09:19:15 -04:00
BlankenshipG
64628a3d5e feat(merge): merge aelrynth upstream RynthCore 2026.10.5.1
Three-way merge of upstream/main (c3e1548) on top of the recorded 9b5e276 base.
Upstream's UI data hub, ImGui faces, EngineFrameController, CoreCLR engine and
Decal bridge are adopted; SK-local features are ported into the new structure:
plugin API v77 (GetMergeStackResult appended), plugin overlay windows, chat
standard filters and match modes, Shields, Inventory HUDs button, RynthAi
dashboard remote buttons. Installer keeps the two-folder layout and gains
-NativeAot and Decal-detecting bridge staging.

See Changelog/2026-10-05-aelrynth-2026.10.5.1-merge.md.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-05 08:24:38 -04:00
c3e15480e5 RynthCore as of 2026-10-05 (internal 0d3c210): dashboard slide-outs on the left (Ranges with the selected monster, Files, Patrol), fixed draggable vital bar, click an item to add a loot rule, loot rules by WCID, chat and loot editor typing no longer leaks into the game, title-bar text size, plugin API v76 (close container), plugin exception traces, plates drawn under the game UI (in testing), launcher account passwords encrypted with Windows DPAPI (in testing), release 2026.10.5.1 2026-10-05 08:03:08 -04:00
BlankenshipG
51307657d9 feat(chat): standard UB-IT-style chat filters, plain-text custom rule modes and a line tester
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-05 00:13:13 -04:00
BlankenshipG
ccfa22af09 fix(engine): keep off-thread int reads current with server property updates
Patch the appraisal cache from PublicUpdateProperty messages and fall back to the update cache off-thread, so a refilled pet essence no longer reads 0 charges from a stale ID snapshot.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-04 23:46:20 -04:00
BlankenshipG
0943058ab0 feat(engine): serve IconOverlay/IconUnderlay DID properties from the PWD
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-04 22:38:55 -04:00
BlankenshipG
eb52a6afc0 feat(engine): RynthAi panel Char and Hub launcher buttons
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-04 22:32:54 -04:00
BlankenshipG
75a1f63c68 feat(engine): Inventory HUDs button in Avalonia Settings inventory section
Sends /ra huds show to the RynthAi plugin. Includes the floating HUDs changelog (RynthAi 0.6.23).

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-04 21:10:57 -04:00
BlankenshipG
b90e49486f feat(engine): wire RynthAi panel Map and Lua buttons to remote window toggles
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-04 20:42:27 -04:00
BlankenshipG
aa0f65d2a2 feat(engine): Shields section and Add Selected Shield in the Avalonia Items panel
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-04 20:38:26 -04:00
BlankenshipG
6908c64807 fix(engine): destroy panel windows on their owner thread; hold login pop-out until game window is hooked
LayeredWindow.Dispose now destroys inline when the caller owns the HWND, else posts WM_RYNTH_SELF_DESTROY to the panel itself. Floating-panel restore at login waits for Win32Backend.CanRunOnGameThread so the HWND is created on AC's game thread.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-04 19:56:52 -04:00
BlankenshipG
e5bc26cb33 fix(engine): publish plugin render snapshot after load; add ImGui pipeline diagnostics
The snapshot publish sat unreachable after a return in TryGetCanonicalPath, so RenderAll/RenderOverlayAll iterated an empty list and no plugin ImGui window (e.g. ILT Hub) ever drew. CS0162 is now a build error.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-04 19:37:31 -04:00
BlankenshipG
19095e17c0 fix(engine): make GetMergeStackResult thunk cdecl to stop plugin stack corruption (API v69)
The delegate lacked [UnmanagedFunctionPointer(Cdecl)], so x86 marshalled a stdcall thunk; cdecl callers popped args twice and AutoStack corrupted RynthAi's stack until the client died. SDK now requires v69 before calling it; release build rejects any non-cdecl API delegate. Adds one-time RenderOverlay diagnostics.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-04 19:18:16 -04:00
BlankenshipG
6b94752128 feat(engine,launcher): ILT Hub panel button, ImGui windows over Avalonia, live per-category logging
RynthAi Avalonia panel gains an ILT Hub button (hub show via ApplyRemoteCommand). ImGui draw data is submitted after the Avalonia blit and ImGui gets mouse priority when hovered. Engine reads LoggingLevel (now incl. Off) and LogCategories from engine.json live; launcher 0.1.5 edits engine and RynthAi log levels on the fly.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-04 18:52:01 -04:00
a24ed6df7c 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
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-04 18:34:27 -04:00
BlankenshipG
6f9b9858fa fix(engine): snapshot PWD ints off-thread and report merge-stack results (API v68)
Main-thread position walk now captures stack size, max stack, container, wielder, location, capacities and material so off-thread reads stop returning unknown (finding #24). MergeStackInternal records every outcome; new GetMergeStackResult API slot exposes it to plugins.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-04 18:17:31 -04:00
BlankenshipG
a7cdbee135 fix(engine): seed object name/type at create; fatal-only native crash logger
CreateObject hook reads _name/_type from the PublicWeenieDesc so off-thread lookups work before the 500 ms identity snapshot resolves names (empty for ~10 s after login).

SehTrampoline v2: stack sweep bounded by StackBase, per-thread guards for self-faults and SEH_* wrapper AVs, unhandled-exception filter for fatal crashes, NativeAOT-module AVs logged immediately, other first-chance AVs deferred to a ring flushed only if the process dies.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-04 17:58:22 -04:00
BlankenshipG
7a58cdc095 feat(engine): RynthPluginRenderOverlay - plugin extra windows while the ImGui shell is off
PluginManager.RenderOverlayAll runs the optional export when EnableImGuiShell is off (engine.json EnablePluginOverlayWindows, default true). A throw disables only that plugin's overlay, never the plugin. Fixes RynthAi ILT Hub window never showing.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-04 17:37:55 -04:00
BlankenshipG
45f9ad2075 fix(engine): nav panel waypoint list no longer resets scroll every poll
The 1s poll rebuilt the whole panel including a new ScrollViewer, snapping the list to the top and eating clicks. Keep one ScrollViewer, restore its offset, rebuild only on changed JSON, and defer while the pointer is over the list.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-04 17:05:28 -04:00
BlankenshipG
f47d2cf1ad fix(build): restore full-installer engine/injector csproj
SK-local's cimgui de-duplication deleted the plain cimgui.dll that
Build-Installer.ps1 requires in Runtime\ and plugins import by name; the
DesktopLog reference is no longer used by the engine or injector.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-04 16:26:18 -04:00
BlankenshipG
36ffa94252 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>
2026-10-04 16:16:24 -04:00
BlankenshipG
f5002902c9 feat(installer): full RynthCore + RynthSuite installer with user-chosen folders
- RynthCore.iss: one installer for the launcher/engine/Loot Editor and RynthSuite
  (RynthAi plugin, Monster Editor), with a second folder page for RynthSuite
  (/SUITEDIR= for silent installs), HKA Software\Rynth CoreDir/SuiteDir values and
  cleanup of 0.4.x / RynthBundle leftovers that broke the 2026-10-04 reinstall
- RynthInstallPaths: env var -> HKCU -> HKLM (32-bit) -> C:\Games default resolver,
  linked into launcher, engine, loader, injector and status agent; replaces every
  hard-coded C:\Games\RynthCore / RynthSuite path
- Launcher consumes PendingPluginRegistration on start (adds the installed RynthAi
  DLL, prunes rows for files the installer removed, syncs engine.json)
- Build-Installer.ps1: Monster Editor publish, core/suite staging, deps.json staging
  check, previous-release archiving, versioned RynthCore-Setup-<ver>.exe
- Release 2026.10.4.2 (previous 2026.10.4.1)

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-04 14:30:28 -04:00
BlankenshipG
c596208e42 fix(deps): pin Tmds.DBus.Protocol 0.21.3 to clear NU1903 (GHSA-xrw6-gwf8-vvr9)
Direct reference overrides Avalonia's vulnerable transitive 0.20.x in App.Avalonia and Engine. Release notes in Changelog/.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-04 14:03:01 -04:00
Cursor Agent
4ddbb52eb2
feat: port aelrynth 2026.9.27.2 snapshot onto GitHub history
Overlay upstream/main (9b5e276) onto BlankenshipG main without rewriting
history. Keep origin-only Decal/plugin/docs trees. Re-apply aelrynth.com
and sibling-fork URL fixes that aelrynth git still has as tombohar links.

Co-authored-by: BlankenshipG <BlankenshipG@users.noreply.github.com>
2026-10-04 15:43:50 +00:00
9b5e2765b7 RynthCore as of 2026-09-27 (internal d359eee): items past the old object-id range, no idle logoff, overlay popups without the panel flash, UI hidden at character select, vendor trading (API 67), Settings rows and Vendoring tab, release 2026.9.27.2 2026-09-27 20:25:45 -04:00
f407326377 RynthCore as of 2026-09-27 (internal b778a81): version display, RynthChat Tell button, retail chat usable, release 2026.9.27.1
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-27 00:26:16 -04:00
040b797be5 RynthCore as of 2026-09-26 (internal 5326694): panels re-bind plugin exports after RL; deploy checks launcher locks
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-26 14:20:07 -04:00
68c301dac8 RynthCore as of 2026-09-05 (internal f9abab9)
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>
2026-09-25 21:22:59 -04:00
BlankenshipG
5edb6915ed inital SK upload 2026-04-26 14:27:26 -04:00
8260c60494 Fix logout crash, add OnLogout plugin export, and read true buffed skill
The long-standing "DX9 error / client crash on logout" was ChatHooks.TickHide
calling SetVisible() on a stale gmMainChatUI pointer that AC frees during the
world-to-charselect transition. TickHide now gates on HasObservedLoginComplete
and the cached instance is reset in DispatchPendingLogout. CrashLogger gained a
register dump + EBP-frame walk + ESP sweep with module resolution that made
this trace possible.

Plugin contract bumped to v57 with optional RynthPluginOnLogout export.
LogoutLifecycleHooks hooks CPlayerSystem::ExecuteLogOff (fires after the user
confirms the logoff prompt — not RecvNotice_EndCharacterSession which fires on
the menu click before the prompt) plus RecvNotice_Logoff as fallback.
RynthCoreShell + PluginManager.RenderAll gate on HasObservedLoginComplete so
the bar/plugins hide between sessions.

ClientObjectHooks.TryGetObjectSkill now calls CACQualities::InqSkill(raw=0)
for the truly buffed skill — the old code returned InitialLevel +
LevelFromPracticePoints which is just the base trained level, missing
attribute / augmentation / spell-buff contributions.

CharacterCaptureHooks latches _autoLoginEverFired so manual logout doesn't
re-fire auto-login from the next 0xF658 packet. AccountProfileDialog drops
the now-redundant Character/Slot field. UpdateObjectInventoryHooks pack scan
also matches by wielderID so wielded items are picked up.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-25 23:36:56 -04:00
cd3ccfd550 Add power bar suppression API, pin imgui.ini, bump SDK to v56
- New PowerbarHooks scaffold hooking gmPowerbarUI's RecvNotice_Begin/Level/
  Finish trio. SetPowerbarSuppressed exposed via the plugin contract; current
  implementation no-ops the notices (a deeper SetVisible/HidePowerBar path
  crashed on the captured pointer, so full hide is parked for later).
- ImGuiController pins io.IniFilename to a stable absolute path
  (C:\Games\RynthSuite\RynthAi\imgui.ini) so window positions, sizes, and
  dock layout persist across RL hot-reload and AC restarts. Default ImGui
  behavior wrote into the host process working dir which varied per launch.
- PluginContract version bumped to 56 with SetPowerbarSuppressedFn added to
  RynthCoreAPI; SDK exposes Has/Set methods on RynthCoreHost.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-25 10:03:58 -04:00
01c7a549bd Add radar/chat suppression hooks and custom-widget API
- ChatHooks: captures gmMainChatUI via ListenToElementMessage and hides it
  via UIElement::SetVisible(false), re-asserted every frame from EndSceneHook.
  Suppression toggle restores visibility when flipped off.
- RadarHooks: also suppresses gmRadarUI::DrawChildren (bezel/compass/coords)
  alongside DrawObjects so the whole retail radar goes blank.
- PluginContract v55: SetRadarSuppressed + SetChatSuppressed fn pointers
  exposed to plugins via RynthCoreHost.
2026-04-23 21:08:26 -04:00
2c3d2410a8 Add radar rect API, jump primitives, account profile tweaks
- Hook gmRadarUI::DrawObjects to capture the UI singleton; expose
  host.TryGetRadarRect via UIElement::GetSurfaceBox (API v53).
- Plumb CommenceJump/DoJump/LaunchJumpWithMotion through
  ClientActionHooks and PlayerPhysicsHooks.
- Account profile dialog + LaunchAccountProfile adjustments.
- Viewport platform backend tweak.
2026-04-22 21:28:29 -04:00
0d8579b796 Add multi-viewport support, FPS governor, mana stone looting, and viewport focus fixes
Engine:
- ViewportPlatformBackend: Win32 platform backend for ImGui multi-viewport (pop-out windows)
- ViewportRendererBackend: D3D9 swap chain rendering for viewport windows
- ViewportPlatformBackend: WS_EX_NOACTIVATE + MA_NOACTIVATE always + SW_SHOWNA — viewport
  windows never steal focus; single click works without prior window activation
- ImGuiController/RynthCoreShell: wire multi-viewport callbacks, map always renders
  independent of main dashboard visibility
- Win32Backend: improved input handling for viewport windows
- EndSceneHook: FPS governor (focused/background targets), periodic FPS measurement
- D3D9VTable: vtable discovery improvements
- PluginContract/PluginManager/RynthCoreHost: expose UseObjectOn, GetItemType,
  GetObjectIntProperty to plugins

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-19 20:29:34 -04:00
ba7b7d8375 Fix hourglass cursor after UseObject portal, add CastSpell client path, quiet logging
- Fix stuck hourglass after UseObject portal teleport by directly zeroing
  ClientUISystem.m_cBusy and calling UpdateCursorState to force cursor re-eval
- Add CommandInterpreter::ClearAllCommands and TakeControlFromServer for
  post-teleport action cleanup
- Switch CastSpell to ClientMagicSystem::CastSpell (0x00568DE0) with game
  action 0x4A fallback — fixes ring spell casting
- Move all success/info Compat log calls to Verbose; log file now errors-only

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-17 22:08:27 -04:00
36e8208caa Add Plugins tab, remove WinForms launcher, add BUILD.md
- Add Plugins tab to Avalonia launcher with add/remove plugin DLL management
- Plugin paths sync to engine.json for runtime loading
- Engine loads plugins from custom DLL paths via EngineSettings
- Remove defunct WinForms launcher (RynthCore.App project, MainForm, Program)
- Shared source files remain in src/RynthCore.App for Avalonia and Engine
- Add BUILD.md with full publish/deploy instructions for all components

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-16 17:08:26 -04:00
ccb08ecb4a Add door/vendor/motion hooks, auto-ID service, and int property caching
Adds engine-side support for door interaction (DoMotion, SmartBoxSetState,
physics state, bitfield reading), vendor open/close events, automatic
object identification service, int property appraisal caching, container
item counts, and property update hooks. Cleans up verbose inventory logging.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-14 20:24:46 -04:00
610c9feaec Add skill level, attribute, vitals, and appraisal engine API
- InqSkill with raw param (0=buffed, 1=base incl. attribute contribution)
- InqAttribute for primary attributes (Str/End/Qui/Coo/Foc/Self, buffed + base)
- InqAttribute2nd for max vitals base level (health/stamina/mana)
- InqInt64 delegate for quad properties
- AppraisalHooks: full item appraisal support via AC client appraisal path
- PlayerVitalsHooks and BusyCountHooks additions
- Expose all new hooks through PluginContract/PluginManager/RynthCoreApiNative/RynthCoreHost (contract version 46)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-12 21:06:22 -04:00
c2ca425f87 Add salvage, appraisal, account, teleport hooks and expand engine API
New hooks:
- AppraisalHooks: hook CM_Examine::SendNotice_SetAppraiseInfo (0x006B05B0) to
  cache bool properties from server appraisal data; fixes wobjectgetboolprop
  returning 0 for inventory items whose m_pQualities is null in client memory
- SalvageHooks: hook gmSalvageUI::OpenSalvagePanel to capture singleton instance
  for use by SalvagePanelAddItem and SalvagePanelExecute
- AccountHooks: capture account name and world/server name from login flow
- TeleportStateHooks: track teleport/portal state via SmartBox

ClientObjectHooks: check AppraisalHooks cache before CBaseQualities::InqBool in
TryGetObjectBoolProperty so identified inventory items return correct values

API v40 additions (PluginContract / PluginManager / PluginSdk):
- GetCurrentCombatMode: direct read from ClientCombatSystem without hook
- SalvagePanelOpen / SalvagePanelAddItem / SalvagePanelExecute
- GetVitae: reads vitae multiplier via CACQualities::GetVitaeValue
- GetAccountName / GetWorldName
- GetObjectWcid: reads PublicWeenieDesc._wcid fast path

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-12 00:27:17 -04:00
bb4399b69e Remove HelloBox plugin, disable desktop log file, update ImGui theme
- Delete HelloBox plugin and its panel (RynthCore.sln updated accordingly)
- Remove File.AppendAllText from EntryPoint.Log() — no longer writes to Desktop\RynthCore.log; in-memory buffer (RecentLogLines) retained
- Tune RynthCoreShell ImGui color theme (darker blues, frame borders, unified slider/tab palette)
- Add AGENTS.md, find_bytes.cs, loot-port-plan.txt

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-11 01:06:27 -04:00
80b71d295d Initial commit
A modern .NET 9 NativeAOT framework for Asheron's Call client modding.
Self-contained injection system that hooks D3D9 EndScene to render an
ImGui overlay inside the AC client process.
2026-04-10 18:38:07 -04:00