Jump to content

OnPlayerDeath NullReferenceException

Pending 3.1.9

Mals
  • Moderator
Mals

Posted

 Failed to call hook 'OnPlayerDeath' on plugin 'RustRewards v3.1.9' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.RustRewards.GiveReward (BasePlayer player, Oxide.Plugins.RustRewards+RewardType type, System.Double amount, BaseEntity ent, System.String weapon, System.Single distance, System.String name) [0x005b2] in <ec3b58779e6c4b288e23ac492fe18ecb>:0 
  at Oxide.Plugins.RustRewards.OnPlayerDeath (BasePlayer player, HitInfo info) [0x00126] in <ec3b58779e6c4b288e23ac492fe18ecb>:0 
  at Oxide.Plugins.RustRewards.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x003b8] in <ec3b58779e6c4b288e23ac492fe18ecb>: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

 

  • Administrator
Steenamaroo

Posted

Thanks @Mals
I've had that one reported before but struggled to replicate it.
Any idea who called what at that particular moment? Logfile might have a record of it.

Nick4576

Posted

Same issue, but can pin it to a certain death rate or anything. 

17:19 [Error] Failed to call hook 'OnPlayerDeath' on plugin 'RustRewards v3.1.9' (FormatException: Index (zero based) must be greater than or equal to zero and less than the size of the argument list.)
  at System.Text.StringBuilder.AppendFormatHelper (System.IFormatProvider provider, System.String format, System.ParamsArray args) [0x000f9] in <8ce0bd04a7a04b4b9395538239d3fdd8>:0 
  at System.String.FormatHelper (System.IFormatProvider provider, System.String format, System.ParamsArray args) [0x00023] in <8ce0bd04a7a04b4b9395538239d3fdd8>:0 
  at System.String.Format (System.String format, System.Object[] args) [0x00020] in <8ce0bd04a7a04b4b9395538239d3fdd8>:0 
  at Oxide.Plugins.RustRewards.Lang (System.String key, System.String id, System.Object[] args) [0x0000e] in <4cc76d39955744e48632c48a53be117f>:0 
  at Oxide.Plugins.RustRewards.GiveReward (BasePlayer player, Oxide.Plugins.RustRewards+RewardType type, System.Double amount, BaseEntity ent, System.String weapon, System.Single distance, System.String name) [0x00505] in <4cc76d39955744e48632c48a53be117f>:0 
  at Oxide.Plugins.RustRewards.OnPlayerDeath (BasePlayer player, HitInfo info) [0x00248] in <4cc76d39955744e48632c48a53be117f>:0 
  at Oxide.Plugins.RustRewards.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x003b8] in <4cc76d39955744e48632c48a53be117f>: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 

  • Administrator
Steenamaroo

Posted

Hi,
That's a different error.
That one looks to be an issue with your RustRewards lang file. Maybe you made a mistake when editing it?

You can prove by taking a backup then just deleting the file, then reloading the plugin.

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.