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

@ -68,14 +68,14 @@ internal static class UiLifecycleHooks
_statusMessage = $"Hooked SetUIReady @ 0x{_targetAddress.ToInt32():X8}.";
_nextStatusLogTick = Environment.TickCount64 + 3000;
RynthLog.Compat(
RynthLog.Verbose(
$"Compat: UI lifecycle hook ready - SetUIReady=0x{_targetAddress.ToInt32():X8}, uiReadyFlag=0x{_uiReadyFlagAddress.ToInt32():X8}");
if (_uiReadyFlagAddress != IntPtr.Zero && Marshal.ReadInt32(_uiReadyFlagAddress) != 0)
{
HasObservedUiInitialized = true;
_statusMessage = "UI ready already active (late attach).";
RynthLog.Compat("Compat: UI lifecycle already active at inject time.");
RynthLog.Verbose("Compat: UI lifecycle already active at inject time.");
}
}
catch (Exception ex)
@ -98,7 +98,7 @@ internal static class UiLifecycleHooks
if (!_waitingLogged)
{
_waitingLogged = true;
RynthLog.Compat("Compat: UI lifecycle awaiting SetUIReady(1).");
RynthLog.Verbose("Compat: UI lifecycle awaiting SetUIReady(1).");
}
}
@ -116,7 +116,7 @@ internal static class UiLifecycleHooks
HasObservedUiInitialized = true;
_statusMessage = $"UI initialized observed via {source}.";
RynthLog.Compat($"Compat: UI initialized observed via {source}.");
RynthLog.Verbose($"Compat: UI initialized observed via {source}.");
UiInitialized?.Invoke();
}
}