Jump to content

Blue map spent in error

Not a Bug 2.0.0

BLUBBSON
BLUBBSON

Posted

Hello, I always have this error when using the baluen map and the box is not created only the NPC


Failed to call hook 'OnItemAction' on plugin 'TreasureMaps v1.1.5' (NullReferenceException: Object reference not set to an instance of an object) at Oxide.Plugins.TreasureMaps.PopulateChestWithLoot (StorageContainer chest, Oxide.Plugins.TreasureMaps+MapConfiguration mapConfig) [0x0013f] in <87d0fc80e7e44476afaf5940c14fca50>:0 at Oxide.Plugins.TreasureMaps.SpawnChest (BasePlayer player, Oxide.Plugins.TreasureMaps+Configuration config) [0x00231] in <87d0fc80e7e44476afaf5940c14fca50>:0 at Oxide.Plugins.TreasureMaps.OnItemAction (Item item, System.String action, BasePlayer player) [0x00174] in <87d0fc80e7e44476afaf5940c14fca50>:0 at Oxide.Plugins.TreasureMaps.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00c70] in <87d0fc80e7e44476afaf5940c14fca50>: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 <d646191a355d43a6b3ab36b7ee14c740>:0 at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <d646191a355d43a6b3ab36b7ee14c740>:0

AutomatedEvents.json

copcopekcro

Posted

Hey will check it out ..my config is working fine ..probably some error in config !
While iam testing your config ..save your config and try with default config ...To see will you have errors !

copcopekcro

Posted

ok i tested your config...when i deleted loot table for Blaue Schatzkarte ,added only one item ..it work fine ...
So one of item doesnt have correct values !

BLUBBSON

Posted

Pomegranates does not exist that should be the mistake thanks for your help

copcopekcro

Posted (edited)

5 minutes ago, BLUBBSON said:

Pomegranates does not exist that should be the mistake thanks for your help

not that item only ..this :
bearmeat
wolfmeat.raw
so in your cfg :
{
            "DisplayName": "",
            "Shortname": "meat.bear",    ///// change this to 
bearmeat
            "SkinID": 0,
            "MaxItemAmount": 20,
            "MinItemAmount": 20,
            "Probability": 1.0,
            "IsBlueprint": false
          },
          {
            "DisplayName": "",
            "Shortname": "meat.wolf",   ///// change this to 
wolfmeat.raw
            "SkinID": 0,
            "MaxItemAmount": 20,
            "MinItemAmount": 20,
            "Probability": 1.0,
            "IsBlueprint": false
          },
and that "
Pomegranates"
And probably some others
i will test all your items 😄

Jar of Honey - honey  (you have "Shortname": "jar.honey",)

Edited by copcopekcro
copcopekcro

Posted

ok yea that 4 items ...
meat.bear   -  bearmeat
meat.wolf    -  wolfmeat.raw
jar.honey    -   honey
Pomegranates this doesnt exist 
 

copcopekcro

Posted

1 minute ago, BLUBBSON said:

my goodness what did I do there

And yea dont use for all items "Probability": 1.0, 
When you have :
"MinItemPerChest": 5,
"MaxItemPerChest": 5,
You will get always first 5 items what have 1.0 probability ...so lower chance to items or increase min max items per chest to number of full list of items !

1.7m

Downloads

Total number of downloads.

8.1k

Customers

Total customers served.

122.3k

Files Sold

Total number of files sold.

2.5m

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.