LabAPI
LabAPI copied to clipboard
[BUG]: TryRaycastRoom doesnt work
Before You Report
- [x] I have searched for existing reports of this bug, and this bug report is unique.
Version
1.1.6
Description
I know some devs already know about this bug, and Exiled even patches it out right now, but the issue still exists on the client. If you do some weird shenanigans sometimes, you can make players straight up disconnect to the main menu without a kick message
To Reproduce
make primitive that's not in a room and idk tp on / off it or something, it's weird
Expected Behavior
No quit to main menu
Additional Information
here's client log:
NullReferenceException: Object reference not set to an instance of an object.
at RoomLightController.IsInDarkenedRoom (MapGeneration.RoomIdentifier rid, UnityEngine.Vector3 positionToCheck) [0x00000] in <00000000000000000000000000000000>:0
at RoomLightController.IsInDarkenedRoom (UnityEngine.Vector3 positionToCheck) [0x00000] in <00000000000000000000000000000000>:0
at PlayerRoles.FirstPersonControl.FpcStandardRoleBase.get_InDarkness () [0x00000] in <00000000000000000000000000000000>:0
at PlayerRoles.FirstPersonControl.FpcStandardRoleBase.get_AmbientBoost () [0x00000] in <00000000000000000000000000000000>:0
at CustomPlayerEffects.InsufficientLighting.UpdateLocal () [0x00000] in <00000000000000000000000000000000>:0
at CustomPlayerEffects.InsufficientLighting.AlwaysUpdate () [0x00000] in <00000000000000000000000000000000>:0
NullReferenceException: Object reference not set to an instance of an object.
at Outside.Update () [0x00000] in <00000000000000000000000000000000>:0
NullReferenceException: Object reference not set to an instance of an object.
at MapGeneration.RoomUtils.GetCurrentZone (ReferenceHub hub) [0x00000] in <00000000000000000000000000000000>:0
at PlayerRoles.FirstPersonControl.FpcVisibilityController.GetActiveFlags (ReferenceHub observer) [0x00000] in <00000000000000000000000000000000>:0
at PlayerRoles.Visibility.VisibilityController.ValidateVisibility (ReferenceHub hub) [0x00000] in <00000000000000000000000000000000>:0
at PlayerRoles.Voice.VoiceBubble.get_IsHidden () [0x00000] in <00000000000000000000000000000000>:0
at PlayerRoles.Voice.VoiceBubble.UpdateIcon () [0x00000] in <00000000000000000000000000000000>:0
at MainCameraController.ForceUpdatePosition () [0x00000] in <00000000000000000000000000000000>:0
Disconnecting connId=0 to prevent exploits from an Exception in MessageHandler: NullReferenceException Object reference not set to an instance of an object.
at MapGeneration.RoomUtils.GetCurrentZone (ReferenceHub hub) [0x00000] in <00000000000000000000000000000000>:0
at PlayerRoles.FirstPersonControl.FpcVisibilityController.GetActiveFlags (ReferenceHub observer) [0x00000] in <00000000000000000000000000000000>:0
at PlayerRoles.Visibility.VisibilityController.ValidateVisibility (ReferenceHub hub) [0x00000] in <00000000000000000000000000000000>:0
at PlayerRoles.Voice.HumanVoiceModule.ValidateReceive (ReferenceHub speaker, VoiceChat.VoiceChatChannel channel) [0x00000] in <00000000000000000000000000000000>:0
at VoiceChat.Networking.VoiceTransceiver.ClientReceiveMessage (VoiceChat.Networking.VoiceMessage msg) [0x00000] in <00000000000000000000000000000000>:0
at Mirror.NetworkClient+<>c__DisplayClass56_0`1[T].<ReplaceHandler>b__0 (Mirror.NetworkConnection _, T value) [0x00000] in <00000000000000000000000000000000>:0
at Mirror.NetworkMessages+<>c__DisplayClass9_0`2[T,C].<WrapHandler>g__Wrapped|0 (C conn, T msg, System.Int32 _) [0x00000] in <00000000000000000000000000000000>:0
at Mirror.NetworkMessages+<>c__DisplayClass8_0`2[T,C].<WrapHandler>b__0 (Mirror.NetworkConnection conn, Mirror.NetworkReader reader, System.Int32 channelId) [0x00000] in <00000000000000000000000000000000>:0
at Mirror.NetworkClient.UnpackAndInvoke (Mirror.NetworkReader reader, System.Int32 channelId) [0x00000] in <00000000000000000000000000000000>:0
at Mirror.NetworkClient.OnTransportData (System.ArraySegment`1[T] data, System.Int32 channelId) [0x00000] in <00000000000000000000000000000000>:0
at Mirror.LiteNetLib4Mirror.LiteNetLib4MirrorClient+<>c__DisplayClass9_0.<OnNetworkReceive>b__0 () [0x00000] in <00000000000000000000000000000000>:0
at Mirror.LiteNetLib4Mirror.LiteNetLib4MirrorTransport.LateUpdate () [0x00000] in <00000000000000000000000000000000>:0
UnityEngine.DebugLogHandler:Internal_Log(LogType, LogOption, String, Object)
UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
UnityEngine.Logger:Log(LogType, Object)
UnityEngine.Debug:LogError(Object)
Mirror.<>c__DisplayClass8_0`2:<WrapHandler>b__0(NetworkConnection, NetworkReader, Int32)
Mirror.NetworkClient:UnpackAndInvoke(NetworkReader, Int32)
Mirror.NetworkClient:OnTransportData(ArraySegment`1, Int32)
Mirror.LiteNetLib4Mirror.<>c__DisplayClass9_0:<OnNetworkReceive>b__0()
Mirror.LiteNetLib4Mirror.LiteNetLib4MirrorTransport:LateUpdate()
NullReferenceException: Object reference not set to an instance of an object.
at Mirror.LiteNetLib4Mirror.LiteNetLib4MirrorClient+<>c__DisplayClass9_0.<OnNetworkReceive>b__0 () [0x00000] in <00000000000000000000000000000000>:0
at Mirror.LiteNetLib4Mirror.LiteNetLib4MirrorTransport.LateUpdate () [0x00000] in <00000000000000000000000000000000>:0