Jump to content

Error when trying to reset data

Closed 1.4.12

snapple
snapple

Posted

The command resetdata <name> doesn't appear to work from chat, F1 console, or server console. Getting these errors -

 

Console - 

Failed to call hook 'ResetXPConsole' on plugin 'SkillTree v1.4.12' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.SkillTree.RunResetCommands (System.String playerID, System.Int32 level_achieved) [0x00037] in <2eb7ee76c46544f8801c9e6befa180f8>:0 
  at Oxide.Plugins.SkillTree.HandleDataReset (BasePlayer target) [0x00060] in <2eb7ee76c46544f8801c9e6befa180f8>:0 
  at Oxide.Plugins.SkillTree.ResetXPConsole (ConsoleSystem+Arg arg) [0x00093] in <2eb7ee76c46544f8801c9e6befa180f8>:0 
  at Oxide.Plugins.SkillTree.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x02f57] in <2eb7ee76c46544f8801c9e6befa180f8>: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 <18d4f19bbc844191b11ed9e69284d09b>:0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <18d4f19bbc844191b11ed9e69284d09b>:0 

Chat- 
Failed to call hook 'ResetXP' on plugin 'SkillTree v1.4.12' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.SkillTree.RunResetCommands (System.String playerID, System.Int32 level_achieved) [0x00037] in <2eb7ee76c46544f8801c9e6befa180f8>:0 
  at Oxide.Plugins.SkillTree.HandleDataReset (BasePlayer target) [0x00060] in <2eb7ee76c46544f8801c9e6befa180f8>:0 
  at Oxide.Plugins.SkillTree.ResetXP (BasePlayer player, System.String command, System.String[] args) [0x0006e] in <2eb7ee76c46544f8801c9e6befa180f8>:0 
  at Oxide.Plugins.SkillTree.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x02f82] in <2eb7ee76c46544f8801c9e6befa180f8>: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 <18d4f19bbc844191b11ed9e69284d09b>:0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <18d4f19bbc844191b11ed9e69284d09b>:0 

imthenewguy

Posted

Can you paste me the level commands section of your config?
The error indicates that the RunResetCommands method is throwing an exception.

snapple

Posted

Ah, I see where there may be an issue with that. I asked about this in your discord when setting this up. I currently have all these commands in one comma separated list after my last level unlock. 

It looks like in each level this was added and I never noticed it. 

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

Does this need to be filled out per level then rather than one list at the end?

snapple

Posted

Sent you a DM on discord with more info btw

snapple

Posted

Resolved the issue. I had initially setup the reset commands wrong. It needs to be per level unlock it would appear rather that an all in one in the last level.

 

Thanks for pointing me in the right direction! 

1.4m

Downloads

Total number of downloads.

6.9k

Customers

Total customers served.

102.3k

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.