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

@ -78,7 +78,7 @@ internal static class AccountHooks
_getAccountName = Marshal.GetDelegateForFunctionPointer<ClientGetAccountNameDelegate>(
new IntPtr(ReferenceClientGetAccountName));
IsInitialized = true;
RynthLog.Compat("Compat: account hooks ready.");
RynthLog.Verbose("Compat: account hooks ready.");
}
catch (Exception ex)
{
@ -121,7 +121,7 @@ internal static class AccountHooks
MinHook.Enable(targetAddress);
WorldHookInstalled = true;
RynthLog.Compat($"Compat: world-name hook ready - ECM_Login::SendNotice_WorldName @ 0x{targetAddress.ToInt32():X8}.");
RynthLog.Verbose($"Compat: world-name hook ready - ECM_Login::SendNotice_WorldName @ 0x{targetAddress.ToInt32():X8}.");
}
catch (Exception ex)
{
@ -149,7 +149,7 @@ internal static class AccountHooks
if (!string.IsNullOrEmpty(name))
{
_cachedWorldName = name;
RynthLog.Compat($"Compat: world name captured - \"{name}\".");
RynthLog.Verbose($"Compat: world name captured - \"{name}\".");
}
}
}