Hi,
I just started playing around with this and I'm hitting a lot of errors. The below causes this every time:
1. Create a zone with zone_add (or use the CreateOrUpdateZone hook)
2. Do /zone_wipe
3 Create another zone
This will spam a generic "NullReferenceException: Object reference not set to an instance of an object" error in the console (instantly, but also seemingly whenever you move around in the zone).
If you then try and use /zone_wipe again, you get:
Failed to call hook 'cmdChatZoneReset' on plugin 'ZoneManager v3.0.23' (NullReferenceException: )
at (wrapper managed-to-native) UnityEngine.Component.get_gameObject(UnityEngine.Component)
at Oxide.Plugins.ZoneManager.DestroyUpdateBehaviour () [0x0000e] in <b0de1dc35c154c9db0c4639e738318a9>:0
at Oxide.Plugins.ZoneManager.Unload () [0x00000] in <b0de1dc35c154c9db0c4639e738318a9>:0 1kb/s in, 6kb/s out
at Oxide.Plugins.ZoneManager.cmdChatZoneReset (BasePlayer player, System.String command, System.String[] args) [0x0003a] in <b0de1dc35c154c9db0c4639e738318a9>:0
at Oxide.Plugins.ZoneManager.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x03843] in <b0de1dc35c154c9db0c4639e738318a9>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <b6af59acae274e5a94fb209dfc179b8f>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <bae5f1223fce49c493b01571c99dce02>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <bae5f1223fce49c493b01571c99dce02>:0
NullReferenceException: Object reference not set to an instance of an objectAnd if you unload or reload the plugin:
Failed to call hook 'Unload' on plugin 'ZoneManager v3.0.23' (NullReferenceException: )
at (wrapper managed-to-native) UnityEngine.Component.get_gameObject(UnityEngine.Component)
at Oxide.Plugins.ZoneManager.DestroyUpdateBehaviour () [0x0000e] in <b0de1dc35c154c9db0c4639e738318a9>:0
at Oxide.Plugins.ZoneManager.Unload () [0x00000] in <b0de1dc35c154c9db0c4639e738318a9>:0
at Oxide.Plugins.ZoneManager.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00fda] in <b0de1dc35c154c9db0c4639e738318a9>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <b6af59acae274e5a94fb209dfc179b8f>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <bae5f1223fce49c493b01571c99dce02>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <bae5f1223fce49c493b01571c99dce02>:0