Jump to content

Error on hook onDispencerGather

Closed 1.2.0

Hey, we got allway an error from the Plugin,

I hope you could help us with this, because, it spams alway the console

Failed to call hook 'OnDispenserGather' on plugin 'LootAudit v1.2.0' (IndexOutOfRangeException: Index was outside the bounds of the array.)
at Oxide.Plugins.LootAudit.OnDispenserGather (ResourceDispenser dispenser, BaseEntity entity, Item item) [0x00071] in <984af0b094e44acd85fa2394e923ab1b>:0
at Oxide.Plugins.LootAudit.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x002ee] in <984af0b094e44acd85fa2394e923ab1b>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <cc99cb05b42e4ea494cdf294badea406>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <99d545163fdd4d57a562df7989f2ca0a>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <99d545163fdd4d57a562df7989f2ca0a>:0

 

Share this comment


Link to comment
6 minutes ago, Suerion said:

Hey, we got allway an error from the Plugin,

I hope you could help us with this, because, it spams alway the console

Failed to call hook 'OnDispenserGather' on plugin 'LootAudit v1.2.0' (IndexOutOfRangeException: Index was outside the bounds of the array.)
at Oxide.Plugins.LootAudit.OnDispenserGather (ResourceDispenser dispenser, BaseEntity entity, Item item) [0x00071] in <984af0b094e44acd85fa2394e923ab1b>:0
at Oxide.Plugins.LootAudit.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x002ee] in <984af0b094e44acd85fa2394e923ab1b>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <cc99cb05b42e4ea494cdf294badea406>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <99d545163fdd4d57a562df7989f2ca0a>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <99d545163fdd4d57a562df7989f2ca0a>:0

 

Ok first thing's first.
That is a problem when a player does one of the following:
mines a node
chops a tree
gets meat/bone/ect. from a body

I will try to recreate the issue but if you know what was happening when this happened it might help me narrow it down.

Share this comment


Link to comment
38 minutes ago, Gt403cyl2 said:

Ok first thing's first.
That is a problem when a player does one of the following:
mines a node
chops a tree
gets meat/bone/ect. from a body

I will try to recreate the issue but if you know what was happening when this happened it might help me narrow it down.

hey, he get meat from a deer, i hope this would be help

 

Edited by Suerion

Share this comment


Link to comment
7 minutes ago, Suerion said:

hey, he get meat from a deer, i hope this would be help

 

I will keep trying to recreate it but have been unsuccessful so far
will look into it further.

Share this comment


Link to comment
3 hours ago, Suerion said:

Thanks, i hope i could help you

Will keep looking into this but after about 3 hours of trying different combinations of ways to reproduce this I cannot.
Marking as can't reproduce.

Share this comment


Link to comment
3 hours ago, Suerion said:

you had said,

mines a node
chops a tree
gets meat/bone/ect. from a body

it always drop the errors in the console

20220718172331_1.jpg

Have you tried removing all related files and re-installing?

Config, Data and lang files
The hook "OndispenserGather" only deals with the actions mentioned so it 100% has to be related to one of those actions.

That said that is what I have been testing any and all variations of to recreate the issue, with nothing showing as of yet.
 

Share this comment


Link to comment

We had installed this plugin yesterday, we don't had any data on our server. I had also deleted, all files from testin, but it comes alway, after data wipe

 

Share this comment


Link to comment

Again ->

Failed to call hook 'OnDispenserGather' on plugin 'LootAudit v1.2.0' (IndexOutOfRangeException: Index was outside the bounds of the array.)
at Oxide.Plugins.LootAudit.OnDispenserGather (ResourceDispenser dispenser, BaseEntity entity, Item item) [0x00071] in <3b87d076029545e5be041323e4bb9108>:0
at Oxide.Plugins.LootAudit.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x002ee] in <3b87d076029545e5be041323e4bb9108>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <cc99cb05b42e4ea494cdf294badea406>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <99d545163fdd4d57a562df7989f2ca0a>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <99d545163fdd4d57a562df7989f2ca0a>:0

20220719180418_1.thumb.jpg.89b1f59d642f4ba8fd8c1f117ce1295f.jpg

Share this comment


Link to comment

Ohhh.. i think i know, whats the problem, could it be, it is the problem with an other plugin?

its modify the dispensergather from wood

sorry...

 

Edited by Suerion

Share this comment


Link to comment
17 minutes ago, Suerion said:

Ohhh.. i think i know, whats the problem, could it be, it is the problem with an other plugin?

its modify the dispensergather from wood

sorry...

 

Yeah that would do it....

Share this comment


Link to comment

hey, i had entered an

try{}
catch{}


block, now it works fine.
yet we had an other problem

Spams a lot and often this message ->

 

Quote

25/07 20:33:12 | Calling 'OnItemRemovedFromContainer' on 'LootAudit v1.2.0' took 186ms [GARBAGE COLLECT]

 

On 7/19/2022 at 6:29 PM, Gt403cyl2 said:

Changed Status from Not a Bug to Closed

 

Share this comment


Link to comment
6 hours ago, Suerion said:

hey, i had entered an

try{}
catch{}


block, now it works fine.
yet we had an other problem

Spams a lot and often this message ->

 

 

 

How have you setup the permissions?

Share this comment


Link to comment
15 hours ago, Gt403cyl2 said:

How have you setup the permissions?

Hey, we had on our RP server a few trolls, we don't could found the crime player, yet has an other admin added the default group on the log, now it loggs all players

Share this comment


Link to comment
3 hours ago, Suerion said:

Hey, we had on our RP server a few trolls, we don't could found the crime player, yet has an other admin added the default group on the log, now it loggs all players

Yeah it is not meant to log a lot of players, that is why it’s taking so long when it’s calling that function.

 

it also will generate a lot of logs and may impact server performance depending on the population, I recommend only applying it to players that are suspect or you want to keep an eye on.

Share this comment


Link to comment
1.1m

Downloads

Total number of downloads.

5.7k

Customers

Total customers served.

82.4k

Files Sold

Total number of files sold.

1.6m

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.