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>
This commit is contained in:
parent
cd3ccfd550
commit
8260c60494
17 changed files with 539 additions and 125 deletions
|
|
@ -76,6 +76,16 @@ internal static class RynthCoreShell
|
|||
public static void Render(int frameCount)
|
||||
{
|
||||
ApplyTheme();
|
||||
|
||||
// Hide the entire shell while we are NOT in-world. Between RecvNotice_Logoff
|
||||
// and the next SendLoginCompleteNotification the AC client tears down its
|
||||
// world / UI state; rendering the bar (and the plugin shortcuts it hosts)
|
||||
// during that window has been observed to crash D3D9 because plugin
|
||||
// controls reach into half-released game data.
|
||||
bool inWorld = LoginLifecycleHooks.HasObservedLoginComplete;
|
||||
if (!inWorld)
|
||||
return;
|
||||
|
||||
RenderControlBar(frameCount);
|
||||
|
||||
if (_showDemoWindow)
|
||||
|
|
|
|||
Loading…
Reference in a new issue