Failed to call hook 'isPlaying' on plugin 'EventManager v3.0.76' (NullReferenceException: Object reference not set to an instance of an object)
at Oxide.Plugins.EventManager.isPlaying (BasePlayer player) [0x00014] in <726296817ec34c90badcc856fa75ecd9>:0
at Oxide.Plugins.EventManager.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x01cb5] in <726296817ec34c90badcc856fa75ecd9>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <9affce1cd15c4ec183941adef8db1722>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <4452f821def6406d834e4149849fe7ea>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <4452f821def6406d834e4149849fe7ea>:0
NullReferenceException at isPlayingError
This is getting spammed in console, any solution for this yet?
The error is either caused by the "player" being passed to this plugin from another being null (no null check in here for it) or "Joiners" being null, but more than likely the player.
Just checked and I have null checks in the appropriate plugins, I also edited the isplaying function in EventManager to add `if (player == null) return false;`:
but it will still error. I think as you said the issue might be in joiners. Any ideas Wulf?
Merged post
Ahh I figured it out! Due to ZoneManager having an issue at the moment, EventManager wasn't fulling initialising. This meant that joiners wasn't initialised properly, hence the problem. I fixed up ZoneManager and all is well.
[HookMethod("isPlaying")]
public bool isPlaying(BasePlayer player)
{
if (player == null) return false;
if (GetUser(player) != null) return true;
if (Joiners.Contains(player)) return true;
return false;
}but it will still error. I think as you said the issue might be in joiners. Any ideas Wulf?
Merged post
Ahh I figured it out! Due to ZoneManager having an issue at the moment, EventManager wasn't fulling initialising. This meant that joiners wasn't initialised properly, hence the problem. I fixed up ZoneManager and all is well.
Any idea why this would happen?
I received this error today. I was unloading all the mods in an effort to beat the RPC Error Life Infographic UIDeathScreen Issue. I'm making a seperate post for the Backpacks message; I just include it 'cuz the error was thrown a few times and each time the Backpacks error message was as well.
I thought there was a persistence.db file that could be deleted and re-made on server restart, as a troubleshooting step. I think this is related to my RPC error.
(11:39:33) | Failed to call hook 'isPlaying' on plugin 'EventManager v3.0.76' (NullReferenceException: Object reference not set to an instance of an object)
at Oxide.Plugins.EventManager.isPlaying (BasePlayer player) [0x00014] in <abb8e3e9cf084454b63deb74d767dac4>:0
at Oxide.Plugins.EventManager.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x01cb5] in <abb8e3e9cf084454b63deb74d767dac4>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <98321e516fc1420ea57d4d2088213a59>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <ac41dd3599754d448b8c218b34645820>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <ac41dd3599754d448b8c218b34645820>:0
(11:39:33) | Failed to run a 0.50 timer in 'Backpacks v3.1.0' (InvalidCastException: Null object cannot be converted to a value type.)
at System.Convert.ChangeType (System.Object value, System.Type conversionType, System.IFormatProvider provider) [0x00029] in <437ba245d8404784b9fbab9b439ac908>:0
at System.Convert.ChangeType (System.Object value, System.Type conversionType) [0x0000c] in <437ba245d8404784b9fbab9b439ac908>:0
at Oxide.Core.Plugins.Plugin.Call[T] (System.String hook, System.Object[] args) [0x00008] in <ac41dd3599754d448b8c218b34645820>:0
at Oxide.Plugins.Backpacks+Backpack.Open (BasePlayer looter) [0x000df] in <320e78ea62354c23ab60674a80ee495c>:0
at Oxide.Plugins.Backpacks+<OpenBackpackChatCommand>c__AnonStorey3.<>m__0 () [0x00010] in <320e78ea62354c23ab60674a80ee495c>:0
at Oxide.Core.Libraries.Timer+TimerInstance.FireCallback () [0x00018] in <ac41dd3599754d448b8c218b34645820>:0I thought there was a persistence.db file that could be deleted and re-made on server restart, as a troubleshooting step. I think this is related to my RPC error.
when i load the plugin in i get this