Commit graph RynthCore/src/RynthCore.Engine/Plugins/PluginLoader.cs
Author SHA1 Message Date
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
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
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