Jump to content

Suddenly developed errors

No Response 3.0.7

JessieJane
JessieJane

Posted

(15:38:14) | Failed to call hook 'GiveRustReward' on plugin 'RustRewards v3.0.7' (NullReferenceException: Object reference not set to an instance of an object)

at Oxide.Plugins.RustRewards.GetMultiplier (BasePlayer player, System.String weapon, System.Single distance, BaseEntity ent) [0x00044] in <4f6ee8b891354c3b9c93065c80321692>: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) [0x0002a] in <4f6ee8b891354c3b9c93065c80321692>:0

at Oxide.Plugins.RustRewards.GiveRustReward (BasePlayer player, System.Int32 type, System.Double amount, BaseEntity ent, System.String weapon, System.Single distance, System.String name) [0x00000] in <4f6ee8b891354c3b9c93065c80321692>:0

at Oxide.Plugins.RustRewards.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00f3c] in <4f6ee8b891354c3b9c93065c80321692>:0

at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <60c318df79ed41688ea59335e48d61ad>:0

at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <12678b905a6d43c3a9cc366104306651>:0

  • Administrator
Steenamaroo

Posted

Hi,
Would you mind checking your config file to make sure it's intact?
MalS had unusual errors too and it turned out his config file was null.

I thought I'd prevented that being possible but I guess not. I'll be looking into it more.

JessieJane

Posted

You are right... my config file is null

 

  • Administrator
Steenamaroo

Posted

Damn. Sorry about this.
I'll make it a priority to stop that being possible.

  • Administrator
Steenamaroo

Posted (edited)

For the immediate issue? You'd need to ether delete your config file + reload, or replace with one from backup and reload.
For the longer term - I'm not actually sure how/why this happens.
It seems to coincide with wipes which is interesting because RustRewards doesn't do anything when wipe/new map is detected,
and it only seems to happen to one or two people, unless others aren't reporting.

I have written some catches to prevent saving config file if it's null but I'd feel much better if I was able to reproduce the issue.

Edited by Steenamaroo
Hugenious

Posted

Hi Steenamaroo,

If we get this error ?

Failed to call hook 'GiveRustReward' on plugin 'RustRewards v3.0.7' (KeyNotFoundException: The given key was not present in the dictionary.) at System.Collections.Generic.Dictionary`2[TKey,TValue].get_Item (TKey key) [0x0001e] in :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) [0x003c3] in :0 at Oxide.Plugins.RustRewards.GiveRustReward (BasePlayer player, System.Int32 type, System.Double amount, BaseEntity ent, System.String weapon, System.Single distance, System.String name) [0x00000] in :0 at Oxide.Plugins.RustRewards.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00f3c] in :0 at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in :0 at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in :0 at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in :0

Do you also suggest deleting the config and let it re-create ?

I also just made sure that nothing is null in config and data files.

Thanks

  • Administrator
Steenamaroo

Posted

Hi,
These errors are similar, but not quite the same.

In your case I think I've just overlooked something or made a mistake so I'll have a dig and see if I can figure it out.

Thanks for reporting! 🙂

T-Nuts

Posted (edited)

I just saw this error in my console today. Not sure what exactly would be "null" but after searching my config and data file/folder, "null" is not found anywhere.

Failed to call hook 'GiveRustReward' on plugin 'RustRewards v3.0.7' (KeyNotFoundException: The given key was not present in the dictionary.)
at System.Collections.Generic.Dictionary`2[TKey,TValue].get_Item (TKey key) [0x0001e] in <eae584ce26bc40229c1b1aa476bfa589>: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) [0x003c3] in <0f6ff1428d7e4e4e86c5216097745fa9>:0
at Oxide.Plugins.RustRewards.GiveRustReward (BasePlayer player, System.Int32 type, System.Double amount, BaseEntity ent, System.String weapon, System.Single distance, System.String name) [0x00000] in <0f6ff1428d7e4e4e86c5216097745fa9>:0
at Oxide.Plugins.RustRewards.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00f3c] in <0f6ff1428d7e4e4e86c5216097745fa9>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <60c318df79ed41688ea59335e48d61ad>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <12678b905a6d43c3a9cc366104306651>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <12678b905a6d43c3a9cc366104306651>:0

 

Also to note, there is no one on my server at the moment when this happened

Edited by T-Nuts
  • Administrator
Steenamaroo

Posted

Ooh, that's helpful!

I bet it's trying to give a reward to an npc or something dumb like that.
Thank you, @T-Nuts

  • Like 1
  • Administrator
Steenamaroo

Posted

Yup, that's exactly what it is.
The error's coming from BotReSpawn's call to give a reward for killing an npc from a specific profile.
It's trying to give the reward to an npc, and the error is coming from trying to look up that npc's notification preferences which, of course, it doesn't have.

Easy fix - It'll be included in the next BotReSpawn update.

Thanks for the additional info - That was really helpful!

BetterDeadThanZed

Posted

Since this is possibly related, saw this in my console a few minutes ago:

01/21 12:24:55 | Failed to call hook 'OnEntityDeath' on plugin 'RustRewards v3.0.7' (KeyNotFoundException: The given key was not present in the dictionary.)
at System.Collections.Generic.Dictionary`2[TKey,TValue].get_Item (TKey key) [0x0001e] in <eae584ce26bc40229c1b1aa476bfa589>: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) [0x003c3] in <2ebf64d6a6014d08971dbcb8fc5dc718>:0
at Oxide.Plugins.RustRewards.OnEntityDeath (BaseEntity entity, HitInfo info) [0x00225] in <2ebf64d6a6014d08971dbcb8fc5dc718>:0
at Oxide.Plugins.RustRewards.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x0078a] in <2ebf64d6a6014d08971dbcb8fc5dc718>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <60c318df79ed41688ea59335e48d61ad>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <12678b905a6d43c3a9cc366104306651>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <12678b905a6d43c3a9cc366104306651>:0

 

  • Administrator
Steenamaroo

Posted

Yup, same issue - same fix.
Thanks @BetterDeadThanZed

Glad this was something so simple, because i've looked at these a few times and not seen the problem.
Good to get them all sorted. 🙂

  • Like 1
mrdecoder

Posted

i have same problem 

what was fix or is it still being developed?

  • Administrator
Steenamaroo

Posted

Both are fixed at my end. The fix will be in the next public updates for BotReSpawn and RustRewards.

The error's inconsequential, apart from taking up space in your console, so you can safely ignore until then.

Guest

Posted

Changed Status from Pending to No Response

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.