Jump to content

stresetalldata command not working

Pending 1.6.3

Vergbergler
Vergbergler

Posted

Error in console when using '/stresetalldata' command:
 

Failed to call hook 'ResetAllData' on plugin 'SkillTree v1.6.3' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.SkillTree.RunResetCommands (System.String playerID, System.Int32 level_achieved) [0x00060] in <f4b0e92620254fec92e27c7038b45583>:0                                                                      1kb/s in, 13kb/s out
  at Oxide.Plugins.SkillTree.ResetAllDataCommand (BasePlayer player, System.Boolean fromConsole) [0x000af] in <f4b0e92620254fec92e27c7038b45583>:0
  at Oxide.Plugins.SkillTree.ResetAllData (BasePlayer player) [0x00022] in <f4b0e92620254fec92e27c7038b45583>:0
  at Oxide.Plugins.SkillTree.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x04259] in <f4b0e92620254fec92e27c7038b45583>:0
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <9c80d821d00a44c9a24497c73ad2d20d>:0
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000de] in <d646191a355d43a6b3ab36b7ee14c740>:0
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <d646191a355d43a6b3ab36b7ee14c740>:0


Love you 💋

imthenewguy

Posted

Any errors in oxide/logs/skilltree/

The file name would be named RunResetCommands_Errors

Vergbergler

Posted

I do not have a file by that name. Only logs are for new players entering the server and creating new data for them.

imthenewguy

Posted

You reset commands are null, rather than being an empty list.

For each level:

"List of commands that are fired off when the player data is reset": null

Should be:

"List of commands that are fired off when the player data is reset": [

]

I've added a null check for the next release but for the mean time you can update your config like so and it should stop the errors.

 

1.7m

Downloads

Total number of downloads.

7.9k

Customers

Total customers served.

119.5k

Files Sold

Total number of files sold.

2.4m

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.