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

@ -153,7 +153,7 @@ internal static class ChatCallbackHooks
}
_statusMessage = $"Ready. incoming={incomingStatus}, outgoing={outgoingStatus}.";
RynthLog.Compat($"Compat: chat callback hooks ready - incoming={incomingStatus}, outgoing={outgoingStatus}");
RynthLog.Verbose($"Compat: chat callback hooks ready - incoming={incomingStatus}, outgoing={outgoingStatus}");
}
catch (Exception ex)
{
@ -169,7 +169,7 @@ internal static class ChatCallbackHooks
if (CurrentIncomingMode is not IncomingChatMode.WrapperQueuedText and not IncomingChatMode.WrapperQueuedTextHostEat)
{
RynthLog.Compat("Compat: preferred incoming chat seam unavailable - falling back to wrapper path.");
RynthLog.Verbose("Compat: preferred incoming chat seam unavailable - falling back to wrapper path.");
return TryInstallIncomingWrapperHook(textSection, out incomingStatus);
}
@ -310,7 +310,7 @@ internal static class ChatCallbackHooks
int count = Interlocked.Increment(ref _incomingCallCount);
if (count <= 0)
RynthLog.Compat($"Compat: incoming chat #{count} type={chatType} len={length}");
RynthLog.Verbose($"Compat: incoming chat #{count} type={chatType} len={length}");
return line;
}
@ -491,7 +491,7 @@ internal static class ChatCallbackHooks
if (IsLikelyExternalHookOpcode(entryByte))
{
resolution = $"skipped (prepatched-0x{entryByte:X2})";
RynthLog.Compat($"Compat: outgoing chat entry at 0x{OutgoingChatVa:X8} appears prepatched (opcode 0x{entryByte:X2}) - skipping RynthCore outgoing hook to avoid conflicting with another injector.");
RynthLog.Verbose($"Compat: outgoing chat entry at 0x{OutgoingChatVa:X8} appears prepatched (opcode 0x{entryByte:X2}) - skipping RynthCore outgoing hook to avoid conflicting with another injector.");
return false;
}
}