Jump to content

console error from SkillTree

Pending 1.5.5

Aelanna
Aelanna

Posted

I keep having this error show up in my console, I'm not sure why or what is means. Any idea?

Failed to call hook 'OnEntityTakeDamage' on plugin 'SkillTree v1.5.5' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.SkillTree.OnEntityTakeDamage (BaseCombatEntity entity, HitInfo info) [0x00cfa] in <c0452070ea4b4d6e978310492b51f811>:0 slprs                                                                            7kb/s in, 25kb/s out
  at Oxide.Plugins.SkillTree.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x07cef] in <c0452070ea4b4d6e978310492b51f811>:0
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <795304323ac74a298b8ed190a1dfa739>:0
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000de] in <beb2b64691c64e2b95b99491bd85442c>:0
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <beb2b64691c64e2b95b9949

 

imthenewguy

Posted

That is a tricky one to work out as its a direct hook call exception (not a method).

Does it happen after a server restart?

 

Aelanna

Posted

Yes, it happens every day. The server restarts at 4am every night. I have it on my screen right now.

 

imthenewguy

Posted

How often is it happening? IE how many messages are you receiving an hour during peak play times?

HAVOC805

Posted

Sorry to chime in but I'm also getting this same error it happens when someone hits a barrel.

at Oxide.Plugins.SkillTree.OnEntityTakeDamage (BaseCombatEntity entity, HitInfo info) [0x00cfa] in <c3d22d312e4f486f9647ce8af020df4b>:0 
  at Oxide.Plugins.SkillTree.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x07cef] in <c3d22d312e4f486f9647ce8af020df4b>:0 
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <795304323ac74a298b8ed190a1dfa739>:0 
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000de] in <beb2b64691c64e2b95b99491bd85442c>:0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <beb2b64691c64e2b95b99491bd85442c>:0 

imthenewguy

Posted

The only way to debug it is to add outputs between lines to see where the issue is generating.

Aelanna

Posted

Confirmed here. Every time a player hits a barrel it throws that error.

Aelanna

Posted

HAVOC805, are you using any barrel hitting plugins like Instant Barrels or One Hit?

 

Aelanna

Posted

Users have also said that the rad protection skill is not working. They say two weeks ago it worked but not now.

Aelanna

Posted

I downgraded back to version 1.5.3 and rad protection is now working. Still throwing barrel console errors, however.

HAVOC805

Posted

5 hours ago, Aelanna said:

HAVOC805, are you using any barrel hitting plugins like Instant Barrels or One Hit?

 

I am using one hit plugin, although the error pops up it does not seems to have any affect on gameplay that I can see other then the console error spamming whenever there is a barrel broken.

imthenewguy

Posted

Does the error persist if you unload all other plugins?

HAVOC805

Posted

Unloaded OneHit plugin and failedhooks error are no longer coming up so I believe there is a conflict with the two plugins.

Aelanna

Posted

I am also using that plugin. I thought it might be something like that. The plugin can be found at:

 

 

imthenewguy

Posted (edited)

If you are using OneHit, just disable the Barrel Smasher perk.

        "Barrel Smasher": {
          "Permission required to show this node": null,
          "Minimum prestige required to unlock this node": 0,
          "Skill required to unlock node [Requires max level]": null,
          "Skill that if unlocked, will prevent this node from unlocking": null,
          "enabled": false,
          "max_level": 1,
          "tier": 1,
          "value_per_buff": 1.0,
          "buff_info": {
            "Key": "Barrel_Smasher",
            "Value": "IO"
          },
          "icon_url": "https://www.dropbox.com/s/sebu0m6s5v2sual/Barrel_Smasher.png?dl=1",
          "skin": 2873051884,
          "permissions": null
        },

If you are using the AutoLoot function in OneHit, disable Loot Magnet.

        "Loot Magnet": {
          "Permission required to show this node": null,
          "Minimum prestige required to unlock this node": 0,
          "Skill required to unlock node [Requires max level]": null,
          "Skill that if unlocked, will prevent this node from unlocking": null,
          "enabled": false,
          "max_level": 5,
          "tier": 1,
          "value_per_buff": 0.2,
          "buff_info": {
            "Key": "Loot_Pickup",
            "Value": "Percentage"
          },
          "icon_url": "https://www.dropbox.com/s/hqthffkbbm73krh/Loot_Magnet.png?dl=1",
          "skin": 2873965904,
          "permissions": null
        },

 

Edited by imthenewguy
Aelanna

Posted (edited)

On my server, One Hit is a perk for VIP players. Non-VIP players gain the abilities through Skill Tree.

I confirmed the error came up when a VIP player hit a barrel, but he did not have either the Barrel Smasher or the Lott Magnet perk from SkillTree. Should that still cause an error if he's getting it from One Hit only?

Edited by Aelanna
Aelanna

Posted

I disabled the Barrel Smasher and Loot Magnet skills in SkillTree and removed the two skills from any player that had them, then restarted the plugin. I'm still getting the error when someone hits a barrel. I will try restarting the server and see if it helps.

Aelanna

Posted

I upgraded back to SkillTree 1.5.5, restarted the server, and the error is now gone with the two skills disabled. Anybody who wants those two will now have to get VIP to access OneHit

Aelanna

Posted

Now that I'm back on 1.5.5 I'm getting console errors whenever someone with radiation perks enters a rad area:

NullReferenceException: Object reference not set to an instance of an object
NullReferenceException: Object reference not set to an instance of an object
  at Oxide.Plugins.SkillTree+RadiationProtection_Patch.Postfix (BasePlayer __instance, System.Single& __result) [0x00019] in <1ccc4da48c854354b31859d752972683>:0 its|Raid Bases|NO WIPE [Procedural Map]                   39fps 154gc 1h5m42s
  at (wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition.BasePlayer.RadiationProtection_Patch3(BasePlayer)ut
  at BaseEntity.get_radiationLevel () [0x0005a] in <2ff7c465f6954e3698e3caeec80e70d4>:0
  at PlayerMetabolism.RunMetabolism (BaseCombatEntity ownerEntity, System.Single delta) [0x006d1] in <2ff7c465f6954e3698e3caeec80e70d4>:0
  at BaseMetabolism`1[T].ServerUpdate (BaseCombatEntity ownerEntity, System.Single delta) [0x00040] in <2ff7c465f6954e3698e3caeec80e70d4>:0
  at PlayerMetabolism.ServerUpdate (BaseCombatEntity ownerEntity, System.Single delta) [0x00000] in <2ff7c465f6954e3698e3caeec80e70d4>:0
  at BasePlayer.ConnectedPlayerUpdate (System.Single deltaTime) [0x00096] in <2ff7c465f6954e3698e3caeec80e70d4>:0
  at BasePlayer.ServerUpdate (System.Single deltaTime) [0x001f3] in <2ff7c465f6954e3698e3caeec80e70d4>:0
  at BasePlayer.ServerCycle (System.Single deltaTime) [0x00087] in <2ff7c465f6954e3698e3caeec80e70d4>:0
  at ServerMgr.Update () [0x00234] in <2ff7c465f6954e3698e3caeec80e70d4>:0
UnityEngine.DebugLogHandler:Internal_LogException(Exception, Object)
UnityEngine.DebugLogHandler:LogException(Exception, Object)
UnityEngine.Logger:LogException(Exception, Object)
UnityEngine.Debug:LogException(Exception, Object)
ServerMgr:Update()

I am not using any other rad plugins.

imthenewguy

Posted

The only reason that would throw an error is if the baseProtection properties of the player were not instantiated. That comes with it's own problems.

Ill add a null check for baseProperties, but the fact that the field is null is a problem.

imthenewguy

Posted

Also I found the issue you were having with the barrel smasher perk. Ill fix it next release.

Aelanna

Posted

1 hour ago, imthenewguy said:

The only reason that would throw an error is if the baseProtection properties of the player were not instantiated. That comes with it's own problems.

Ill add a null check for baseProperties, but the fact that the field is null is a problem.

What does that mean, exactly? Is it something I can fix?

 

Aelanna

Posted

1 hour ago, imthenewguy said:

Also I found the issue you were having with the barrel smasher perk. Ill fix it next release.

Awesome!

 

HAVOC805

Posted

weird after version update the errors went away and randomy started again 

Failed to call hook 'OnEntityTakeDamage' on plugin 'SkillTree v1.5.7' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.SkillTree.OnEntityTakeDamage (BaseCombatEntity entity, HitInfo info) [0x00d49] in <5db8854782a24014a11c995a522152ef>:0 
  at Oxide.Plugins.SkillTree.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x07e9b] in <5db8854782a24014a11c995a522152ef>:0 

1.4m

Downloads

Total number of downloads.

6.9k

Customers

Total customers served.

102.1k

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.