kfcconnor / TeslaGateControl

A Exiled V2 mod that allows users to control what Roles or Cards allow the ability to pass through tesla gates without setting them off
1 stars 0 forks source link

Occasionally fails to work #3

Open EMPFingers opened 3 years ago

EMPFingers commented 3 years ago

Unlike the other issue ticket this seems to only be intermittent. Plugin works perfectly 90% of the time and then will occasionally just not work for a round, then the next round it starts working again. MA logs kicked out the following error

`[03:01:04] [ERROR] [Exiled.Events] Method "onRoundStart" of the class "TeslaGateControl.eventHandlers" caused an exception when handling the event "Exiled.Events.Events+CustomEventHandler"

[03:01:04] [ERROR] [Exiled.Events] System.NullReferenceException at (wrapper managed-to-native) UnityEngine.Object.GetName(UnityEngine.Object) at UnityEngine.Object.get_name () [0x00001] in :0 at Exiled.API.Features.Room.get_Name () [0x00000] in :0 at TeslaGateControl.eventHandlers.onRoundStart () [0x0001f] in <1b42c7075bba491fadb95255c2d2af82>:0 at Exiled.Events.Extensions.Event.InvokeSafely (Exiled.Events.Events+CustomEventHandler ev) [0x00024] in <400d4a377b9e4d5faff01c6b285aab4b>:0`

We're running EXILED 2.1.21 and 1.1.0 of this plugin. The only other plugin I can think of that impacts it is the tesla gate control compat module from NPCs, which is version 1.5.1

Please let me know if I can provide anything else to help diagnose the issue, our players love the plugin.

EMPFingers commented 3 years ago

Plugin kicks another error that's different from the onRoundStart one for the rest of that round.

[03:01:43] [ERROR] [Exiled.Events] System.NullReferenceException at (wrapper managed-to-native) UnityEngine.Object.GetName(UnityEngine.Object) at UnityEngine.Object.get_name () [0x00001] in <d12a3e1bd6114ae08cce07753f5a0846>:0 at Exiled.API.Features.Room.get_Name () [0x00000] in <a86550ea1f1e4879be447f242305f0a8>:0 at (wrapper dynamic-method) TeslaGateControl.eventHandlers.TeslaGateControl.eventHandlers.PlayerTesla_Patch1(TeslaGateControl.eventHandlers,Exiled.Events.EventArgs.TriggeringTeslaEventArgs) at Exiled.Events.Extensions.Event.InvokeSafely[T] (Exiled.Events.Events+CustomEventHandler1[TEventArgs] ev, T arg) [0x00024] in <400d4a377b9e4d5faff01c6b285aab4b>:0 [03:01:44] [ERROR] [Exiled.Events] Method "PlayerTesla" of the class "TeslaGateControl.eventHandlers" caused an exception when handling the event "Exiled.Events.Events+CustomEventHandler1[[Exiled.Events.EventArgs.TriggeringTeslaEventArgs, Exiled.Events, Version=2.1.22.0, Culture=neutral, PublicKeyToken=null]]"