Jump to content

Default Icon

Can't Reproduce 1.0.2 1.0.2

dustyhansen
Island Chronicles

Posted

You can store an icon in the default zone "".

"Zone Settings": {
    "": {
      "Zone Name": "",
      "Zone Background Color": "0.33 0.25 0.46 1",
      "Zone Text Color": "0.33 0.25 0.46 1"
      "Zone Show Icon": false,
      "Zone Icon": null <- Icon URL HERE
    },
...

 

dustyhansen

Posted (edited)

I did this:

{
  "Main config": {
    "Debug": false,
    "Auto Name Update": true,
    "Default Zone Name": "PVE Zone",
    "Default PVP Icon": null,
    "Default PVE Icon": ""
  },
  "Zone Settings": {
    "": {
      "Zone Name": "",
      "Zone Background Color": "0.16 0.24 0.13 1",
      "Zone Text Color": "1 1 1 1",
      "Zone Show Icon": false,
      "Zone Icon": "https://cdn-icons-png.flaticon.com/512/5103/5103350.png"
    }
  }
}

 

And now it won't work and I get this in the console:

}
Failed to initialize plugin 'StatusZoneInfo v1.0.2' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.StatusZoneInfo.UpdateConfigValues () [0x00088] in <666befc060494a2ba937db83244e8172>:0 
  at Oxide.Plugins.StatusZoneInfo.Loaded () [0x00006] in <666befc060494a2ba937db83244e8172>:0 
  at Oxide.Plugins.StatusZoneInfo.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x000c9] in <666befc060494a2ba937db83244e8172>:0 
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <cd9a02fd331347bd82d550bb1a9c8e9f>:0 
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <b76ec77c47d1449e92b2baab8603843d>:0 
  at Oxide.Plugins.CSharpPlugin.HandleAddedToManager (Oxide.Core.Plugins.PluginManager manager) [0x000cf] in <cd9a02fd331347bd82d550bb1a9c8e9f>:0 
Unloaded plugin StatusZoneInfo v1.0.2 by Island Chronicles
No previous version to rollback plugin: StatusZoneInfo

Edited by newp
fix link
dustyhansen

Posted

It seems to load the plugin fine at startup, but if you try to reload it at all you get the message above and it fails to compile.

dustyhansen

Posted

I have the following config and still no default icon showing btw.

{
  "Main config": {
    "Debug": true,
    "Auto Name Update": true,
    "Default Zone Name": "PVE Zone",
    "Default PVP Icon": "https://cdn-icons-png.flaticon.com/512/5103/5103350.png",
    "Default PVE Icon": "https://cdn-icons-png.flaticon.com/512/5103/5103350.png"
  },
  "Zone Settings": {
    "": {
      "Zone Name": "",
      "Zone Background Color": "0.16 0.24 0.13 1",
      "Zone Text Color": "1 1 1 1",
      "Zone Show Icon": true,
      "Zone Icon": "https://cdn-icons-png.flaticon.com/512/5103/5103350.png"
    }
  }
}

 

Island Chronicles

Posted

Please test if it is fixed with the current update or if an error message is displayed

Island Chronicles

Posted

Changed Status from Not a Bug to Can't Reproduce

Changed Fixed In to 1.0.2

1.4m

Downloads

Total number of downloads.

6.9k

Customers

Total customers served.

102.5k

Files Sold

Total number of files sold.

2.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.