Jump to content

Error with zone from ZoneManager

Closed 0.1.3 0.1.3

Kobani
Kobani

Posted (edited)

@IIIaKa I just created a zone with the zone manager using the chat command /zone_add.
then reloaded zonestatus because the image is not displayed. And then I get the following error message in the console

Failed to call hook 'OnServerInitialized' on plugin 'ZoneStatus v0.1.3' (NullReferenceException: Object reference not set to an instance of an object)
at Oxide.Plugins.ZoneStatus.SendBar (BasePlayer player, System.String zoneID, Oxide.Plugins.ZoneStatus+ZonesList list) [0x001a2] in <472baa22555d4d4ca5265a2549f9bd41>:0
at Oxide.Plugins.ZoneStatus.InitZones () [0x000bf] in <472baa22555d4d4ca5265a2549f9bd41>:0
at Oxide.Plugins.ZoneStatus.OnServerInitialized () [0x000ca] in <472baa22555d4d4ca5265a2549f9bd41>:0
at Oxide.Plugins.ZoneStatus.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00751] in <472baa22555d4d4ca5265a2549f9bd41>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <87ce9ac9776a48658bc55eae6debe38b>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <cd7231f30b444d86bc6cca8a53cdd2ea>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <cd7231f30b444d86bc6cca8a53cdd2ea>:0

Edited by Kobani
  • Like 1
Kobani

Posted

Here are the configurations. as i said. i just added the zone and changed the name. after reloading, the above error occurs and the image is not displayed. i would appreciate any feedback and help.

20240415133030_1.jpg

zone_data.json zones.json

Kobani

Posted

I was able to narrow down the problem.
The error message only appears when ImageLibrary is loaded.

Here are the plugins I am currently testing with.

01 "ZoneStatus" (0.1.3) by IIIaKa (0.02s / 968 KB) - ZoneStatus.cs
 02 "Vanish" (1.8.0) by Whispers88 (0.02s / 352 KB) - Vanish.cs
 03 "Image Library" (2.0.62) by Absolut & K1lly0u (0.04s / 5 MB) - ImageLibrary.cs
 04 "Flying God Status" (0.1.1) by IIIaKa (0.01s / 120 KB) - FlyingGodStatus.cs
 05 "Fuel Status" (0.1.0) by IIIaKa (0.01s / 32 KB) - FuelStatus.cs
 06 "Godmode" (4.2.14) by Wulf/lukespragg/Arainrr/dFxPhoeniX (0.01s / 20 KB) - Godmode.cs
 07 "Monuments Watcher" (0.1.3) by IIIaKa (0.01s / 512 KB) - MonumentsWatcher.cs
 08 "Advanced Status" (0.1.14) by IIIaKa (0.01s / 392 KB) - AdvancedStatus.cs
 09 "Vanish Status" (0.1.3) by IIIaKa (0.01s / 348 KB) - VanishStatus.cs
 10 "Zone Manager" (3.1.4) by k1lly0u (0.01s / 12 KB) - ZoneManager.cs
 11 "Wipe Status" (0.1.4) by IIIaKa (0.00s / 336 KB) - WipeStatus.cs

 

IIIaKa

Posted

Hey, sorry for the delay in responding. Regarding the image, when creating a new zone, the bar is rendered immediately for those who are in the zone, while the image is added to the download queue. You don't necessarily need to reload the plugin, simply re-enter the zone for the bar to redraw.

Reloading the plugin is only necessary if you change the image in the settings files.

IIIaKa

Posted

In the last update, when I split the config files, I forgot to change the list for the zones.
Try redownloading the file.

IIIaKa

Posted

Changed Status from Pending to Closed

Changed Fixed In to 0.1.3

IIIaKa

Posted

If the issue persists, feel free to report it in this thread.

Kobani

Posted

Thank you very much for the quick help and the update. this has solved the problem. 

  • Like 1
Kobani

Posted (edited)

Unfortunately, there is currently a problem again - it spams the console all the time.

Failed to call hook 'OnExitMonument' on plugin 'ZoneStatus v0.1.3' (NullReferenceException: Object reference not set to an instance of an object)
at Oxide.Plugins.ZoneStatus.OnExitMonument (System.String monumentID, BasePlayer player, System.String type) [0x0000a] in <9284ca51b1fb41499418d1e57f8dd170>:0
at Oxide.Plugins.ZoneStatus.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00692] in <9284ca51b1fb41499418d1e57f8dd170>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <87ce9ac9776a48658bc55eae6debe38b>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <cd7231f30b444d86bc6cca8a53cdd2ea>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <cd7231f30b444d86bc6cca8a53cdd2ea>:0

Screenshot (37).png

Edited by Kobani
The complete message added.
IIIaKa

Posted

Changed Status from Closed to Pending

IIIaKa

Posted

Hello! Are you using a custom map?

IIIaKa

Posted

Try to update MonumentsWatcher to 0.1.4

IIIaKa

Posted

Changed Status from Pending to Closed

1.4m

Downloads

Total number of downloads.

6.9k

Customers

Total customers served.

102.2k

Files Sold

Total number of files sold.

2m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.