Jump to content

Cant get to work :( error in console

Pending 1.0.2

geekyplaster
geekyplaster

Posted

Hi, Not used plugin for a while. setup today but I get an error in console when leaving zone and indicator does not change.

Failed to call hook 'OnExitZone' on plugin 'ZoneCustomUI v1.0.2' (NullReferenceException: Object reference not set to an instance of an object) at Oxide.Plugins.ZoneCustomUI.OnExitZone (System.String ZoneID, BasePlayer player) [0x0006a] in <1d6a5f843f174a0889109a58a525ee2a>:0 at Oxide.Plugins.ZoneCustomUI.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00173] in <1d6a5f843f174a0889109a58a525ee2a>:0 at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <42f9bedc659b4f4786eb778d3cd58968>:0 at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000de] in <112d89ea5d3348c8b949af0ab1a866d2>:0 at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <112d89ea5d3348c8b949af0ab1a866d2>:0

here is my config file - the command /rzinfo didnt seem to change or update the config file so I added the zone manually.

 

{
  "Default icon URL for CustomStatusFramework": "https://i.imgur.com/MLRiCM0.png",
  "Settings outside the zone": {
    "Id": "0",
    "Name": "Outside",
    "AnchorMin": "0.649 0.041",
    "AnchorMax": "0.695 0.081",
    "Color_Background": "0.9 0.2 0.2 0.8",
    "Color_Text": "1 1 1 1",
    "TextSize": "16",
    "TextPlaceHolder": "PVP",
    "ShowZonenameOnStatusFramework": false,
    "IconURL": "https://i.imgur.com/MLRiCM0.png"
  },
  "Default settings for the new zone": {
    "Id": "1",
    "Name": "Default",
    "AnchorMin": "0.649 0.041",
    "AnchorMax": "0.695 0.081",
    "Color_Background": "0.1 0.8 0.1 0.8",
    "Color_Text": "1 1 1 1",
    "TextSize": "16",
    "TextPlaceHolder": "PVE",
    "ShowZonenameOnStatusFramework": false,
    "IconURL": "https://i.imgur.com/MLRiCM0.png"
  },
  "Zones list": [
    {
      "Id": "43470134",
      "Name": "Default",
      "AnchorMin": "0.249 0.041",
      "AnchorMax": "0.295 0.081",
      "Color_Background": "0.1 0.8 0.1 0.8",
      "Color_Text": "1 1 1 1",
      "TextSize": "16",
      "TextPlaceHolder": "PVE",
      "ShowZonenameOnStatusFramework": false,
      "IconURL": "https://i.imgur.com/MLRiCM0.png"
    }
  ]
}

Fruster

Posted

Hi, thanks, I'll check it later

  • Like 1
Fruster

Posted

Is this still an issue? I added a few zones and refreshed them with the /rzinfo command, and everything still works fine. Please try deleting the ZoneCustomUI config. Restart the plugin, then refresh the zone list with the /rzinfo command. If that doesn't work, run the /rzinfo command again. That should definitely work. Please let me know the results.

geekyplaster

Posted

Hi, I tried as suggested but still doesnt work.

I removed both ZoneCustomUI & zone manager, restarted server reinstalled both plugins created a zone and ran /rzinfo the config file is created on plugin startup but does not update after command is run. any other ideas would be appreciated thanks

geekyplaster

Posted

Failed to call hook 'rzinfo' on plugin 'ZoneCustomUI v1.0.2' (KeyNotFoundException: The given key 'Name' was not present in the dictionary.) at System.Collections.Generic.Dictionary`2[TKey,TValue].get_Item (TKey key) [0x0001e] in <8ce0bd04a7a04b4b9395538239d3fdd8>:0 at Oxide.Plugins.ZoneCustomUI.LoadData () [0x00054] in <44e0c5c7dfde45bebe44eccb1967c5ff>:0 at Oxide.Plugins.ZoneCustomUI.rzinfo (Oxide.Core.Libraries.Covalence.IPlayer iplayer, System.String command, System.String[] args) [0x0001c] in <44e0c5c7dfde45bebe44eccb1967c5ff>:0 at Oxide.Plugins.ZoneCustomUI.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x0039d] in <44e0c5c7dfde45bebe44eccb1967c5ff>:0 at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <42f9bedc659b4f4786eb778d3cd58968>:0 at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000de] in <112d89ea5d3348c8b949af0ab1a866d2>:0 at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <112d89ea5d3348c8b949af0ab1a866d2>:0

 

Fruster

Posted

Try the following sequence:

  1. Shut down the server
  2. Delete all zones by deleting the \oxide\data\ZoneManager folder
  3. Delete the ZoneCustomUI plugin and its configuration file
  4. Start the server
  5. Create one zone using the /zone_add command in chat
  6. Upload the ZoneCustomUI plugin to the server

After the ZoneCustomUI plugin initializes, the zone should be automatically added to the list. You can then create more zones using the /zone_add command.
If the list isn't updating, try using /rzinfo

geekyplaster

Posted

Thanks, that is pretty much what I had already tried but no joy. my version of zonemanager is v3.1.10 if that helps

2.1m

Downloads

Total number of downloads.

10k

Customers

Total customers served.

145.4k

Files Sold

Total number of files sold.

3.1m

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.