Jump to content

giving this error after update

Closed 2.0.6

repoman64129
repoman64129

Posted

Failed to call hook 'OnPlayerSleepEnded' on plugin 'CustomButtons v2.0.6' (NullReferenceException: Object reference not set to an instance of an object)
at Oxide.Plugins.CustomButtons.CreateCui (BasePlayer player) [0x00000] in <6dff4105af114ae18b17b4852f352d01>:0
at Oxide.Plugins.CustomButtons.OnPlayerSleepEnded (BasePlayer player) [0x00000] in <6dff4105af114ae18b17b4852f352d01>:0
at Oxide.Plugins.CustomButtons.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00c70] in <6dff4105af114ae18b17b4852f352d01>: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

David

Posted

Have you noticed anything not working properly or it's just error message?

David

Posted

check your oxide/data/CustomButtons/CuiData.json, there's chance that it's empty, if not then upload the file here so I can have a look at it.

repoman64129

Posted

This is what is in that file. "Market": {
    "uiType": "Overlay",
    "panelType": "button",
    "OffsetMin": "-270 -150",
    "OffsetMax": "-206 -130",
    "text": "Market",
    "panelColor": "0. 27. 70. 34",
    "panelChatCmd": "market",
    "imageUrl": "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcT4bSwzNJjUI5DmSwORiLIDupsxaOM8UbnuhQ&usqp=CAU",
    "imgAnchorMin": null,
    "imgAnchorMax": null,
    "onCmdHide": "true"
  },
  "Shop": {
    "uiType": "Overlay",
    "panelType": "button",
    "OffsetMin": "-200 -150",
    "OffsetMax": "-140 -130",
    "text": "Shop",
    "panelColor": "0 0 0 1.0",
    "panelChatCmd": "Shop",
    "imageUrl": "",
    "imgAnchorMin": null,
    "imgAnchorMax": null,
    "onCmdHide": "true"
  },
  "Kit": {
    "uiType": "Overlay",
    "panelType": "button",
    "OffsetMin": "-135 -150",
    "OffsetMax": "-75 -130",
    "text": "Kit",
    "panelColor": "0 100 100 1.0",
    "panelChatCmd": "kit",
    "imageUrl": null,
    "imgAnchorMin": null,
    "imgAnchorMax": null,
    "onCmdHide": "true"
  },
  "Info": {
    "uiType": "Overlay",
    "panelType": "button",
    "OffsetMin": "-71 -150",
    "OffsetMax": "-11 -130",
    "text": "Info",
    "panelColor": "50 50 0 1.0",
    "panelChatCmd": "info",
    "imageUrl": null,
    "imgAnchorMin": null,
    "imgAnchorMax": null,
    "onCmdHide": "true"
  },
  "Skin": {
    "uiType": "Overlay",
    "panelType": "button",
    "OffsetMin": "-7 -150",
    "OffsetMax": "53 -130",
    "text": "Skin",
    "panelColor": "100 0 0 0.8",
    "panelChatCmd": "skin",
    "imageUrl": null,
    "imgAnchorMin": null,
    "imgAnchorMax": null,
    "onCmdHide": "true"
  },
  "BuyRaid": {
    "uiType": "Overlay",
    "panelType": "button",
    "OffsetMin": "57 -150",
    "OffsetMax": "117 -130",
    "text": "BuyRaid",
    "panelColor": "0 50 0 0.8",
    "panelChatCmd": "buyraid",
    "imageUrl": null,
    "imgAnchorMin": null,
    "imgAnchorMax": null,
    "onCmdHide": "true"
  },
  "VIPnightvision": {
    "uiType": "Overlay",
    "panelType": "button",
    "OffsetMin": "120 -145",
    "OffsetMax": "200 -130",
    "text": "VIPNightVision",
    "panelColor": "0 0 0 1.0",
    "panelChatCmd": "nv",
    "imageUrl": null,
    "imgAnchorMin": null,
    "imgAnchorMax": null,
    "onCmdHide": "true"
  }
}

repoman64129

Posted

Also if i check PlayerData.json i get this error. Error: Parse error on line 27592: ...en": false }, ---------------------^ Expecting 'STRING', got 'EOF'.   And this is what it shows
  "76561198376589790": {
    "hidden": false
  },
  "76561199102087932": {
    "hidden": false
  },
  "76561198351712021": {
    "hidden": false
  },
  "76561198837903047": {
    "hidden": false
  },
  "76561198045284305": {
    "hidden": false
  },                                                               "THIS IS LINE 27592"
 

repoman64129

Posted

Ok i got it working again by changing that line to.
    "hidden": false
  },
  "76561198045284305": {
    "hidden": false
  },
  "76561198251161206": {
    "hidden": false
  }
}

it put in the console this when i made that change and reloaded the plugin.

Unloaded plugin CustomButtons v2.0.6 by David

04/20 13:27:21 | CustomButtons has replaced the 'custombuttonstoggle' chat command previously registered by CustomButtons

04/20 13:27:21 | Loaded plugin CustomButtons v2.0.6 by David.

Thank you for your help with this. Hopefully what i found to fix it may help others later.

  • Like 1
David

Posted

Changed Status from Pending to Closed

1.4m

Downloads

Total number of downloads.

6.9k

Customers

Total customers served.

102.4k

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.