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

@ -86,22 +86,22 @@ internal static class ClientCombatHooks
// Verify the combat system singleton is accessible
IntPtr cs = _getCombatSystem();
IntPtr globalPtr = Marshal.ReadIntPtr(new IntPtr(CombatSystemPtrVa));
RynthLog.Compat($"Compat: ClientCombat GetCombatSystem()=0x{cs:X8}, global=0x{globalPtr:X8}");
RynthLog.Verbose($"Compat: ClientCombat GetCombatSystem()=0x{cs:X8}, global=0x{globalPtr:X8}");
if (cs == IntPtr.Zero && globalPtr == IntPtr.Zero)
{
_statusMessage = "GetCombatSystem returned null — client not ready.";
RynthLog.Compat($"Compat: ClientCombat probe - {_statusMessage}");
RynthLog.Verbose($"Compat: ClientCombat probe - {_statusMessage}");
// Don't fail — the pointer may be valid after login
}
else
{
IntPtr used = cs != IntPtr.Zero ? cs : globalPtr;
RynthLog.Compat($"Compat: ClientCombatSystem at 0x{used:X8}");
RynthLog.Verbose($"Compat: ClientCombatSystem at 0x{used:X8}");
}
_initialized = true;
_statusMessage = "Ready.";
RynthLog.Compat("Compat: ClientCombat hooks ready — native attack pipeline available.");
RynthLog.Verbose("Compat: ClientCombat hooks ready — native attack pipeline available.");
return true;
}
catch (Exception ex)