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>
This commit is contained in:
tombohar 2026-04-17 22:08:27 -04:00
commit ba7b7d8375
44 changed files with 337 additions and 159 deletions

View file

@ -74,7 +74,7 @@ internal static class SmartBoxHooks
{
delegate* unmanaged[Thiscall]<IntPtr, IntPtr, uint> pSbDetour = &DispatchSmartBoxEventDetour;
MinHook.Hook(sbAddr, (IntPtr)pSbDetour, out _originalDispatchSmartBoxEventPtr);
RynthLog.Compat($"Compat: smartbox hook ready @ 0x{sbAddr.ToInt32():X8}");
RynthLog.Verbose($"Compat: smartbox hook ready @ 0x{sbAddr.ToInt32():X8}");
}
}
else RynthLog.Compat("Compat: smartbox pattern not found.");
@ -88,7 +88,7 @@ internal static class SmartBoxHooks
{
delegate* unmanaged[Thiscall]<IntPtr, IntPtr, uint> pGeDetour = &DispatchGameEventDetour;
MinHook.Hook(geAddr, (IntPtr)pGeDetour, out _originalDispatchGameEventPtr);
RynthLog.Compat($"Compat: game-event hook ready @ 0x{geAddr.ToInt32():X8}");
RynthLog.Verbose($"Compat: game-event hook ready @ 0x{geAddr.ToInt32():X8}");
}
else RynthLog.Compat("Compat: game-event pattern matched already-hooked address.");
}
@ -267,7 +267,7 @@ internal static class SmartBoxHooks
int count = Interlocked.Increment(ref _identifyLogCount);
if (count <= 12)
RynthLog.Compat($"Compat: identify 0xC9 obj=0x{objectId:X8} maxHealth={maxHealth}");
RynthLog.Verbose($"Compat: identify 0xC9 obj=0x{objectId:X8} maxHealth={maxHealth}");
}
}
catch