Jump to content

error?

Can't Reproduce 2.0.0

NEXT
NEXT

Posted

Failed to call hook 'OnItemAction' on plugin 'TreasureMaps v2.0.0' (NullReferenceException: Object reference not set to an instance of an object) at Oxide.Plugins.TreasureMaps+<>c__DisplayClass46_0.b__0 (Oxide.Plugins.TreasureMaps+MapConfiguration c) [0x00006] in <691aa094e0ca4f1c878c2e85eb669bc8>:0 at System.Collections.Generic.List`1[T].Find (System.Predicate`1[T] match) [0x0000d] in <5aefc10cb7a348a6a66a4e2036c11d65>:0 at Oxide.Plugins.TreasureMaps.OnItemAction (Item item, System.String action, BasePlayer player) [0x00033] in <691aa094e0ca4f1c878c2e85eb669bc8>:0 at Oxide.Plugins.TreasureMaps.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00cc8] in <691aa094e0ca4f1c878c2e85eb669bc8>:0 at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <9c80d821d00a44c9a24497c73ad2d20d>:0 at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000de] in :0 at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in :0

copcopekcro

Posted

Your config is corupted.. You have something wrong in config.. 

NEXT

Posted

What is broken?

I asked chatGPT to check it and there was no problem.

It is said that the fatal bug is that the plugin does not check the SkinID.

TreasureMaps.json

NEXT

Posted

Cause: OnItemAction() could not find mapConfig, so it continued processing and referenced null.
Code flaw: mapConfig was not passed to SpawnChest(), and was searched for again internally.
Fix: Changed so that mapConfig is passed as an argument to SpawnChest().
Fix: Null references are completely eliminated, preventing errors 100%.

copcopekcro

Posted (edited)

So... Before you try to change code or what ever ..before you make new supp ticket.. (i dont wanna even comment that chatgpt thing , i will just show you this :
var mapConfig = config.Maps.Find(c => c.ItemShortname == item.info.shortname && c.SkinID == item.skin);  so as you can see there is SkinID
)
You shoud try default config first , to see does all work ... IF all works fine with default config then you messed up something in editing your config ..
If default config didnt work , then we need to see whats wrong ...


And btw ... when did you get that error ? When you tryed to unwarp map item , on all of them you get that error or on one of maps ? Or when you get that error ?

 

Edited by copcopekcro
copcopekcro

Posted (edited)

So i tested you config .... All works just fine for me when i unwarp map item ..
I dont know why you get that error ... (i hope you didnt change any code in plugin)
Try to unload rest of your plugin and try again ...
But yea you need to tell me when you get that error !

Edited by copcopekcro
NEXT

Posted

thank you very much

copcopekcro

Posted

20 minutes ago, NEXT said:

thank you very much

did you fix it ? 

NEXT

Posted

Your work is great

  • Love 1
copcopekcro

Posted

Changed Status from Pending to Can't Reproduce

NEXT

Posted

Even if I entered the oxide.reload command while the server was running,
an error log was displayed.

I restarted the server and waited for a few days.

No logs were output at all.

 

copcopekcro

Posted (edited)

What?? 

You are saying that you get that error when You reload plugin? 

But You are not getting that error at all when lets say players unwarping maps? 

 

Even that hook is only trigered by player, when player unwarps map. 

 

Edited by copcopekcro
JustANoob

Posted

   at object Oxide.Plugins.TreasureMaps.OnItemAction(Item item, string action, BasePlayer player)+(MapConfiguration c) => { } [0] in /home/container/carbon/plugins/TreasureMaps.cs:line 1252
   at MapConfiguration System.Collections.Generic.List<Oxide.Plugins.TreasureMaps+MapConfiguration>.Find(Predicate<MapConfiguration> match)
   at object Oxide.Plugins.TreasureMaps.OnItemAction(Item item, string action, BasePlayer player) in /home/container/carbon/plugins/TreasureMaps.cs:line 1252
   at object Oxide.Plugins.TreasureMaps.InternalCallHook(uint hook, object[] args) in TreasureMaps.cs/Internal:line 496</size>
(12:04:57) <size=16>Failed to call internal hook 'OnItemAction' on plugin 'Genie v1.0.6' [3403522973] (Object reference not set to an instance of an object)
   at object Oxide.Plugins.Genie.OnItemAction(Item item, string action, BasePlayer player) in /home/container/carbon/plugins/Genie.cs:line 764
   at object Oxide.Plugins.Genie.InternalCallHook(uint hook, object[] args) in Genie.cs/Internal:line 141</size>
(12:04:57) <size=16>Failed to call internal hook 'OnItemAction' on plugin 'TreasureMaps v2.0.1' [3403522973] (Object reference not set to an instance of an object)
   at object Oxide.Plugins.TreasureMaps.OnItemAction(Item item, string action, BasePlayer player)+(MapConfiguration c) => { } [0] in /home/container/carbon/plugins/TreasureMaps.cs:line 1252
   at MapConfiguration System.Collections.Generic.List<Oxide.Plugins.TreasureMaps+MapConfiguration>.Find(Predicate<MapConfiguration> match)
   at object Oxide.Plugins.TreasureMaps.OnItemAction(Item item, string action, BasePlayer player) in /home/container/carbon/plugins/TreasureMaps.cs:line 1252
   at object Oxide.Plugins.TreasureMaps.InternalCallHook(uint hook, object[] args) in TreasureMaps.cs/Internal:line 496</size>
(12:04:59) <size=16>Failed to call internal hook 'OnItemAction' on plugin 'Genie v1.0.6' [3403522973] (Object reference not set to an instance of an object)
   at object Oxide.Plugins.Genie.OnItemAction(Item item, string action, BasePlayer player) in /home/container/carbon/plugins/Genie.cs:line 764
   at object Oxide.Plugins.Genie.InternalCallHook(uint hook, object[] args) in Genie.cs/Internal:line 141</size>
(12:04:59) <size=16>Failed to call internal hook 'OnItemAction' on plugin 'TreasureMaps v2.0.1' [3403522973] (Object reference not set to an instance of an object)
   at object Oxide.Plugins.TreasureMaps.OnItemAction(Item item, string action, BasePlayer player)+(MapConfiguration c) => { } [0] in /home/container/carbon/plugins/TreasureMaps.cs:line 1252
   at MapConfiguration System.Collections.Generic.List<Oxide.Plugins.TreasureMaps+MapConfiguration>.Find(Predicate<MapConfiguration> match)
   at object Oxide.Plugins.TreasureMaps.OnItemAction(Item item, string action, BasePlayer player) in /home/container/carbon/plugins/TreasureMaps.cs:line 1252
   at object Oxide.Plugins.TreasureMaps.InternalCallHook(uint hook, object[] args) in TreasureMaps.cs/Internal:line 496</size>
(12:05:00) <size=16>Failed to call internal hook 'OnItemAction' on plugin 'Genie v1.0.6' [3403522973] (Object reference not set to an instance of an object)
   at object Oxide.Plugins.Genie.OnItemAction(Item item, string action, BasePlayer player) in /home/container/carbon/plugins/Genie.cs:line 764
   at object Oxide.Plugins.Genie.InternalCallHook(uint hook, object[] args) in Genie.cs/Internal:line 141</size>
(12:05:00) <size=16>Failed to call internal hook 'OnItemAction' on plugin 'TreasureMaps v2.0.1' [3403522973] (Object reference not set to an instance of an object)
   at object Oxide.Plugins.TreasureMaps.OnItemAction(Item item, string action, BasePlayer player)+(MapConfiguration c) => { } [0] in /home/container/carbon/plugins/TreasureMaps.cs:line 1252
   at MapConfiguration System.Collections.Generic.List<Oxide.Plugins.TreasureMaps+MapConfiguration>.Find(Predicate<MapConfiguration> match)
   at object Oxide.Plugins.TreasureMaps.OnItemAction(Item item, string action, BasePlayer player) in /home/container/carbon/plugins/TreasureMaps.cs:line 1252
   at object Oxide.Plugins.TreasureMaps.InternalCallHook(uint hook, object[] args) in TreasureMaps.cs/Internal:line 496</size>
(12:05:01) <size=16>Failed to call internal hook 'OnItemAction' on plugin 'Genie v1.0.6' [3403522973] (Object reference not set to an instance of an object)
   at object Oxide.Plugins.Genie.OnItemAction(Item item, string action, BasePlayer player) in /home/container/carbon/plugins/Genie.cs:line 764
   at object Oxide.Plugins.Genie.InternalCallHook(uint hook, object[] args) in Genie.cs/Internal:line 141</size>
(12:05:01) <size=16>Failed to call internal hook 'OnItemAction' on plugin 'TreasureMaps v2.0.1' [3403522973] (Object reference not set to an instance of an object)
   at object Oxide.Plugins.TreasureMaps.OnItemAction(Item item, string action, BasePlayer player)+(MapConfiguration c) => { } [0] in /home/container/carbon/plugins/TreasureMaps.cs:line 1252
   at MapConfiguration System.Collections.Generic.List<Oxide.Plugins.TreasureMaps+MapConfiguration>.Find(Predicate<MapConfiguration> match)
   at object Oxide.Plugins.TreasureMaps.OnItemAction(Item item, string action, BasePlayer player) in /home/container/carbon/plugins/TreasureMaps.cs:line 1252
   at object Oxide.Plugins.TreasureMaps.InternalCallHook(uint hook, object[] args) in TreasureMaps.cs/Internal:line 496</size>
(12:05:03) <size=16>Failed to call internal hook 'OnItemAction' on plugin 'Genie v1.0.6' [3403522973] (Object reference not set to an instance of an object)
   at object Oxide.Plugins.Genie.OnItemAction(Item item, string action, BasePlayer player) in /home/container/carbon/plugins/Genie.cs:line 764
   at object Oxide.Plugins.Genie.InternalCallHook(uint hook, object[] args) in Genie.cs/Internal:line 141</size>
(12:05:03) <size=16>Failed to call internal hook 'OnItemAction' on plugin 'TreasureMaps v2.0.1' [3403522973] (Object reference not set to an instance of an object)
   at object Oxide.Plugins.TreasureMaps.OnItemAction(Item item, string action, BasePlayer player)+(MapConfiguration c) => { } [0] in /home/container/carbon/plugins/TreasureMaps.cs:line 1252
   at MapConfiguration System.Collections.Generic.List<Oxide.Plugins.TreasureMaps+MapConfiguration>.Find(Predicate<MapConfiguration> match)
   at object Oxide.Plugins.TreasureMaps.OnItemAction(Item item, string action, BasePlayer player) in /home/container/carbon/plugins/TreasureMaps.cs:line 1252
   at object Oxide.Plugins.TreasureMaps.InternalCallHook(uint hook, object[] args) in TreasureMaps.cs/Internal:line 496</size>
(12:05:04) <size=16>Failed to call internal hook 'OnItemAction' on plugin 'Genie v1.0.6' [3403522973] (Object reference not set to an instance of an object)
   at object Oxide.Plugins.Genie.OnItemAction(Item item, string action, BasePlayer player) in /home/container/carbon/plugins/Genie.cs:line 764
   at object Oxide.Plugins.Genie.InternalCallHook(uint hook, object[] args) in Genie.cs/Internal:line 141</size>
(12:05:04) <size=16>Failed to call internal hook 'OnItemAction' on plugin 'TreasureMaps v2.0.1' [3403522973] (Object reference not set to an instance of an object)
   at object Oxide.Plugins.TreasureMaps.OnItemAction(Item item, string action, BasePlayer player)+(MapConfiguration c) => { } [0] in /home/container/carbon/plugins/TreasureMaps.cs:line 1252
   at MapConfiguration System.Collections.Generic.List<Oxide.Plugins.TreasureMaps+MapConfiguration>.Find(Predicate<MapConfiguration> match)
   at object Oxide.Plugins.TreasureMaps.OnItemAction(Item item, string action, BasePlayer player) in /home/container/carbon/plugins/TreasureMaps.cs:line 1252
   at object Oxide.Plugins.TreasureMaps.InternalCallHook(uint hook, object[] args) in TreasureMaps.cs/Internal:line 496</size>
(12:06:17) <size=16>[FancyDrop] Cleared Container</size>
(12:06:27) <size=16>[XStatistics] Custom TOPs have been updated!</size>

 

NEXT

Posted

I don’t know exactly where the problem is occurring.

When obtaining the map

When opening the map

When defeating NPCs on-site

When opening the treasure chest

When picking up the contents
⇒ None of these actions seem to trigger error logs.

The log just starts appearing suddenly, even when nothing is happening.

JustANoob

Posted

when I find out that I'll let you know

copcopekcro

Posted (edited)

2 hours ago, JustANoob said:

when I find out that I'll let you know

You are using carbon ? 
I didnt make carbon refrence in my plugin ... 
 

Edited by copcopekcro
NEXT

Posted

Is there no choice but to ignore the following error when using carbon?😢


Failed to call hook 'OnItemAction' on plugin 'TreasureMaps v2.0.1' (NullReferenceException: Object reference not set to an instance of an object) at Oxide.Plugins.TreasureMaps+<>c__DisplayClass47_0.b__0 (Oxide.Plugins.TreasureMaps+MapConfiguration c) [0x00006] in <109a0eff365848ba840effb5e94dc7e2>:0 at System.Collections.Generic.List`1[T].Find (System.Predicate`1[T] match) [0x0000d] in :0 at Oxide.Plugins.TreasureMaps.OnItemAction (Item item, System.String action, BasePlayer player) [0x00033] in <109a0eff365848ba840effb5e94dc7e2>:0 at Oxide.Plugins.TreasureMaps.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00cc8] in <109a0eff365848ba840effb5e94dc7e2>:0 at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <42f9bedc659b4f4786eb778d3cd58968>:0 at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000de] in <8cb2d664f1574f2b96d53f1c1869d96a>:0 at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <8cb2d664f1574f2b96d53f1c1869d96a>:0

copcopekcro

Posted

Well for now that is only option yea ... 

Maybe i will update to cover carbon also . 

NEXT

Posted

"Is it possible to hide this log?
It appears very frequently and is quite annoying."

copcopekcro

Posted

30 minutes ago, NEXT said:

"Is it possible to hide this log?
It appears very frequently and is quite annoying."

You can move from Carbon to Oxide haha, joking.. 

No, not rly. Thats Carbon thing. 

Without carbon reference in my plugin, that log Will be there. 

NEXT

Posted

😱
ok thank you

"Carbon is annoying."

  • Like 1
copcopekcro

Posted

Well i dont know, iam not using Carbon, and never did.. But one Day, who knows. 

1.7m

Downloads

Total number of downloads.

7.9k

Customers

Total customers served.

119k

Files Sold

Total number of files sold.

2.4m

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.