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

@ -167,7 +167,7 @@ internal static class ClientHelperHooks
_gmSalvageUISalvage = Marshal.GetDelegateForFunctionPointer<GmSalvageUISalvageDelegate>(new IntPtr(GmSalvageUISalvageVa));
_initialized = true;
_statusMessage = "Ready.";
RynthLog.Compat("Compat: helper hooks ready - validated select/state/chat helpers plus mapped interaction and inventory helpers.");
RynthLog.Verbose("Compat: helper hooks ready - validated select/state/chat helpers plus mapped interaction and inventory helpers.");
return true;
}
catch (Exception ex)
@ -385,7 +385,7 @@ internal static class ClientHelperHooks
int room = maxStack - targetCount;
if (room <= 0)
{
RynthLog.Compat($"Compat: Event_StackableMerge skipped - target 0x{targetObjectId:X8}({targetCount}) is full (max={maxStack})");
RynthLog.Verbose($"Compat: Event_StackableMerge skipped - target 0x{targetObjectId:X8}({targetCount}) is full (max={maxStack})");
return false;
}
amount = Math.Min(sourceCount, room);
@ -401,7 +401,7 @@ internal static class ClientHelperHooks
try
{
byte rv = _eventStackableMerge(sourceObjectId, targetObjectId, amount);
RynthLog.Compat($"Compat: Event_StackableMerge from=0x{sourceObjectId:X8}({sourceCount}) to=0x{targetObjectId:X8}({targetCount}) amount={amount}/{maxStack} rv={rv}");
RynthLog.Verbose($"Compat: Event_StackableMerge from=0x{sourceObjectId:X8}({sourceCount}) to=0x{targetObjectId:X8}({targetCount}) amount={amount}/{maxStack} rv={rv}");
return rv != 0;
}
catch (Exception ex)
@ -622,7 +622,7 @@ internal static class ClientHelperHooks
if (line.Length == 0)
return false;
RynthLog.Compat($"Compat: InvokeParser text='{line}'");
RynthLog.Verbose($"Compat: InvokeParser text='{line}'");
return ChatCommandDispatcher.Dispatch(line);
}
catch (Exception ex)
@ -673,7 +673,7 @@ internal static class ClientHelperHooks
return;
_interactionLogCount++;
RynthLog.Compat($"Compat: {message}");
RynthLog.Verbose($"Compat: {message}");
}
private static uint ReadUInt32(int address)