Skip to content

Errors when a cheater joins #44

Description

@ratijas

Bug report, presumably related to MiniMap detection feature.

Anti-cheat fails to kick players on join, throws two exceptions.

[Error  :  HarmonyX] Error while running static bool AntiCheat.Patches.HUDManagerMapPatch::AddTextMessageServerRpc(Unity.Netcode.NetworkBehaviour target, Unity.Netcode.FastBufferReader reader, Unity.Netcode.__RpcParams rpcParams). Error: System.ArgumentOutOfRangeException: The value needs to be either -1 (signifying an infinite timeout), 0 or a positive integer.
Parameter name: millisecondsDelay
  at System.Threading.Tasks.Task.Delay (System.Int32 millisecondsDelay, System.Threading.CancellationToken cancellationToken) [0x00004] in <1071a2cb0cb3433aae80a793c277a048>:0
  at System.Threading.Tasks.Task.Delay (System.Int32 millisecondsDelay) [0x00000] in <1071a2cb0cb3433aae80a793c277a048>:0
  at AntiCheat.Patches.PatchHelper.Check (Unity.Netcode.__RpcParams rpcParams, GameNetcodeStuff.PlayerControllerB& p) [0x000dd] in ./Patches/Infrastructure/PatchHelper.cs:392
  at AntiCheat.Patches.HUDManagerMapPatch.AddTextMessageServerRpc (Unity.Netcode.NetworkBehaviour target, Unity.Netcode.FastBufferReader reader, Unity.Netcode.__RpcParams rpcParams) [0x00001] in ./Patches/Features/ChatValidation/HUDManagerMapPatch.cs:18
  at (wrapper dynamic-method) HUDManager.DMD<HUDManager::__rpc_handler_2787681914>(Unity.Netcode.NetworkBehaviour,Unity.Netcode.FastBufferReader,Unity.Netcode.__RpcParams)
[Info   : Unity Log] Setting animation on client
[Error  :  HarmonyX] Error while running static bool AntiCheat.Patches.HUDManagerRoundSyncPatch::SyncAllPlayerLevelsServerRpc(Unity.Netcode.NetworkBehaviour target, Unity.Netcode.FastBufferReader reader, Unity.Netcode.__RpcParams rpcParams). Error: System.ArgumentOutOfRangeException: The value needs to be either -1 (signifying an infinite timeout), 0 or a positive integer.
Parameter name: millisecondsDelay
  at System.Threading.Tasks.Task.Delay (System.Int32 millisecondsDelay, System.Threading.CancellationToken cancellationToken) [0x00004] in <1071a2cb0cb3433aae80a793c277a048>:0
  at System.Threading.Tasks.Task.Delay (System.Int32 millisecondsDelay) [0x00000] in <1071a2cb0cb3433aae80a793c277a048>:0
  at AntiCheat.Patches.PatchHelper.Check (Unity.Netcode.__RpcParams rpcParams, GameNetcodeStuff.PlayerControllerB& p) [0x000dd] in ./Patches/Infrastructure/PatchHelper.cs:392
  at AntiCheat.Patches.HUDManagerRoundSyncPatch.SyncAllPlayerLevelsServerRpc (Unity.Netcode.NetworkBehaviour target, Unity.Netcode.FastBufferReader reader, Unity.Netcode.__RpcParams rpcParams) [0x00001] in ./Patches/Features/RoundSync/HUDManagerRoundSyncPatch.cs:19
  at (wrapper dynamic-method) HUDManager.DMD<HUDManager::__rpc_handler_4217433937>(Unity.Netcode.NetworkBehaviour,Unity.Netcode.FastBufferReader,Unity.Netcode.__RpcParams)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions