Errors since last updateSolved
Since last Update I see the following error. Any Idea how to fix it?

(23:45:43) | Failed to call hook 'GetPanel' on plugin 'MagicPingPanel v1.0.5' (ArgumentNullException: Value cannot be null.
Parameter name: source)
at System.Linq.OrderedEnumerable`2[TElement,TKey]..ctor (System.Collections.Generic.IEnumerable`1[T] source, System.Func`2[T,TResult] keySelector, System.Collections.Generic.IComparer`1[T] comparer, System.Boolean descending, System.Linq.OrderedEnumerable`1[TElement] parent) [0x00016] in <351e49e2a5bf4fd6beabb458ce2255f3>:0

at System.Linq.Enumerable.OrderByDescending[TSource,TKey] (System.Collections.Generic.IEnumerable`1[T] source, System.Func`2[T,TResult] keySelector) [0x00000] in <351e49e2a5bf4fd6beabb458ce2255f3>:0

at Oxide.Plugins.MagicPingPanel.GetPanel (BasePlayer player) [0x0004e] in <207dc4eaceb34a0694d7d1ebca1dcd43>:0

at Oxide.Plugins.MagicPingPanel.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x002be] in <207dc4eaceb34a0694d7d1ebca1dcd43>:0

at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <60c318df79ed41688ea59335e48d61ad>:0

at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <50629aa0e75d4126b345d8d9d64da28d>:0

at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <50629aa0e75d4126b345d8d9d64da28d>:0
(23:45:43) | [Magic Panel] DrawPlayersPanel: MagicPingPanel returned no data from GetPanel method

Can you share your config? Sounds like something got messed up there.

The MagicPingPanel.json should be unchanged. I even deleted it and reload the plugin to create a new config.

{
  "Update Rate (Seconds)": 5.0,
  "Enable ping colors": true,
  "Ping Colors": null,
  "Panel Settings": {
    "Dock": "leftmiddle",
    "Width": 0.055,
    "Order": 5,
    "BackgroundColor": "#FFF2DF08"
  },
  "Panel Layout": {
    "Image": {
      "Url": "",
      "Enabled": false,
      "Color": "#FFFFFFFF",
      "Order": 0,
      "Width": 0.0,
      "Padding": {
        "Left": 0.05,
        "Right": 0.0,
        "Top": 0.05,
        "Bottom": 0.05
      }
    },
    "Text": {
      "Text": "Ping: {0}ms",
      "FontSize": 14,
      "TextAnchor": "MiddleCenter",
      "Enabled": true,
      "Color": "#FFFFFFFF",
      "Order": 1,
      "Width": 1.0,
      "Padding": {
        "Left": 0.05,
        "Right": 0.05,
        "Top": 0.05,
        "Bottom": 0.05
      }
    }
  }
}​

I did change the MagiPanel.json though.

{
  "Chat Command": "mp",
  "Use Image Library": true,
  "Parent UI Layer (Overlay, Hud.Menu, Hud, Under)": "Under",
  "Text Outline Settings": {
    "Enable Text Outline": false,
    "Text Outline Color": "#000000FF",
    "Text Outline Distance": "0.5 -0.5"
  },
  "Docks": {
    "lefttop": {
      "Position": {
        "X Position": 0.07,
        "Y Start Position": 0.072,
        "Height": 0.035
      },
      "Enabled": true,
      "Background Color": "#00000000",
      "Panel Alignment (Left, Center, Right)": "Left",
      "Panel Padding": 0.004,
      "Dock Padding": {
        "Left": 0.001,
        "Right": 0.001,
        "Top": 0.0,
        "Bottom": 0.0
      }
    },
    "leftmiddle": {
      "Position": {
        "X Position": 0.07,
        "Y Start Position": 0.036,
        "Height": 0.035
      },
      "Enabled": true,
      "Background Color": "#00000000",
      "Panel Alignment (Left, Center, Right)": "Left",
      "Panel Padding": 0.004,
      "Dock Padding": {
        "Left": 0.001,
        "Right": 0.001,
        "Top": 0.0,
        "Bottom": 0.0
      }
    },
    "leftbottom": {
      "Position": {
        "X Position": 0.07,
        "Y Start Position": 0.0,
        "Height": 0.035
      },
      "Enabled": true,
      "Background Color": "#00000000",
      "Panel Alignment (Left, Center, Right)": "Left",
      "Panel Padding": 0.004,
      "Dock Padding": {
        "Left": 0.001,
        "Right": 0.001,
        "Top": 0.0,
        "Bottom": 0.0
      }
    },
    "image": {
      "Position": {
        "X Position": 0.65,
        "Y Start Position": 0.0,
        "Height": 0.1
      },
      "Enabled": true,
      "Background Color": "#00000000",
      "Panel Alignment (Left, Center, Right)": "Left",
      "Panel Padding": 0.004,
      "Dock Padding": {
        "Left": 0.001,
        "Right": 0.001,
        "Top": 0.0,
        "Bottom": 0.0
      }
    },
    "center": {
      "Position": {
        "X Position": 0.644,
        "Y Start Position": 0.109,
        "Height": 0.035
      },
      "Enabled": true,
      "Background Color": "#00000000",
      "Panel Alignment (Left, Center, Right)": "Right",
      "Panel Padding": 0.004,
      "Dock Padding": {
        "Left": 0.001,
        "Right": 0.001,
        "Top": 0.0,
        "Bottom": 0.0
      }
    },
    "centerupper": {
      "Position": {
        "X Position": 0.4966,
        "Y Start Position": 0.145,
        "Height": 0.035
      },
      "Enabled": true,
      "Background Color": "#00000000",
      "Panel Alignment (Left, Center, Right)": "Center",
      "Panel Padding": 0.004,
      "Dock Padding": {
        "Left": 0.001,
        "Right": 0.001,
        "Top": 0.0,
        "Bottom": 0.0
      }
    },
    "bottom": {
      "Position": {
        "X Position": 0.4966,
        "Y Start Position": 0.0,
        "Height": 0.0235
      },
      "Enabled": true,
      "Background Color": "#00000000",
      "Panel Alignment (Left, Center, Right)": "Center",
      "Panel Padding": 0.004,
      "Dock Padding": {
        "Left": 0.001,
        "Right": 0.001,
        "Top": 0.0,
        "Bottom": 0.0
      }
    },
    "undercompass": {
      "Position": {
        "X Position": 0.4966,
        "Y Start Position": 0.92,
        "Height": 0.035
      },
      "Enabled": true,
      "Background Color": "#00000000",
      "Panel Alignment (Left, Center, Right)": "Center",
      "Panel Padding": 0.004,
      "Dock Padding": {
        "Left": 0.001,
        "Right": 0.001,
        "Top": 0.0,
        "Bottom": 0.0
      }
    }
  }
}


 

Your ping colors field is null. That's probably why you're getting that error. You can copy this over it to fix it.

"Ping Colors": {
    "0": "#00ff00",
    "50": "#ffff00",
    "100": "#ffa500",
    "150": "#ff0000",
    "200": "#000000"
  },​

thx, seems to work

Locked automatically