Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Console Errors

Pending 1.1.0

Quote

Failed to run a 1.00 timer in 'CustomLoot v1.1.0' (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>:
  at Oxide.Plugins.CustomLoot.MakeLoot (System.String config) [0x00406] in <2164a769bd7446ca87b26f1fd0e4fbb9>:0
  at Oxide.Plugins.CustomLoot+<PopulateContainer>c__AnonStorey1.<>m__1 () [0x0004e] in <2164a769bd7446ca87b26f1fd0e4fbb9>:0
  at Oxide.Core.Libraries.Timer+TimerInstance.FireCallback () [0x00018] in <c2afd8354b8b4f3ca451cf5a1aa111c3>:0

I get the above error spammed in my console.
I assume it is some item short name that changed, however I cannot seem to find where or in which file?

Any advice on how to debug this? Or have the console display which Key is throwing the above error?

Share this comment


Link to comment

Hi,

I doubt it's an item name as that's all dynamically maintained.

Could you bundle up your /config/CustomLoot.json and /data/CustomLoot folder and DM to me, please?

Edited by Steenamaroo

Share this comment


Link to comment
On 6/25/2021 at 5:21 PM, Steenamaroo said:

Hi,

I doubt it's an item name as that's all dynamically maintained.

Could you bundle up your /config/CustomLoot.json and /data/CustomLoot folder and DM to me, please?

I've DM'd them to you.

Share this comment


Link to comment

Hi,

Thanks for that. I think I got it - Pretty sure the plugin is trying to create matching ammo for some weapon,
but that ammo is on the blacklist so its entry doesn't exist.

 

Would you mind confirming that this fixes the issue?

 

CustomLoot.cs

Share this comment


Link to comment

 

16 hours ago, Steenamaroo said:

Hi,

Thanks for that. I think I got it - Pretty sure the plugin is trying to create matching ammo for some weapon,
but that ammo is on the blacklist so its entry doesn't exist.

 

Would you mind confirming that this fixes the issue?

 

CustomLoot.cs 39.54 kB · 0 downloads

That did the trick.

While trying to find the issue I did notice setting the weapon's probability to 0 seemed to remove the messages.

Thanks!

Share this comment


Link to comment

Thanks for confirming, and for sharing your files.
I'm a bit surprised this issue didn't come up much sooner!

The fix is in my local copy and will be included in the next public update.

Share this comment


Link to comment

About Us

Codefling is a forward-thinking platform for developers to share and monetize their work from plugins to game assets and everything in-between.

7,016 files sold to 626 customers and $101,638 of payments processed this year!

×
×
  • 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.