Bears and wolves drop backpack with no lootSolved

I set: "Bear Droprate 0-100": 100.0,

to test drops and loottable and I get no loot 100% .. kille dover 20 bears...

Change to health works great tho..

NjkQsrn.png

I also get error in console:

I removed all plugin files and loaded it back again without any change: same issue..

(08:29:13) | ExType: TypeInitializationException
(08:29:13) | Failed to call hook 'OnEntityDeath' on plugin 'RadTownLoot v1.1.2' (ArgumentNullException: Value cannot be null.
Parameter name: source)
at System.Linq.Enumerable.TryGetFirst[TSource] (System.Collections.Generic.IEnumerable`1[T] source, System.Func`2[T,TResult] predicate, System.Boolean& found) [0x0000d] in <351e49e2a5bf4fd6beabb458ce2255f3>:0
at System.Linq.Enumerable.FirstOrDefault[TSource] (System.Collections.Generic.IEnumerable`1[T] source, System.Func`2[T,TResult] predicate) [0x00000] in <351e49e2a5bf4fd6beabb458ce2255f3>:0
at Rust.Workshop.ApprovedSkinInfo..ctor (System.UInt64 WorkshopdId, System.String Name, System.String Desc, System.String ItemName) [0x00037] in <3e7aefd00832463db94f4a12a618d27d>:0
at Rust.Workshop.Approved.Add_October_8_2020 () [0x00000] in <3e7aefd00832463db94f4a12a618d27d>:0
at Rust.Workshop.Approved.Add_2020 () [0x00000] in <3e7aefd00832463db94f4a12a618d27d>:0
at Rust.Workshop.Approved..cctor () [0x0000a] in <3e7aefd00832463db94f4a12a618d27d>:0

make sure min and max vallues are correct and loot tablele always have to be a min max vallue also.Then it will take the random.

tested this cfg and loot is dropping normaly

{
  "Bear settings": {
    "Change Bear stats on spawns": true,
    "Show Bear spawns in Console": true,
    "Bear Droprate 0-100": 100.0,
    "Minimum Health": 300,
    "Maximum Health": 500,
    "Minimum Strength (Att dmg)": 30,
    "Maximum Strength (Att dmg": 40,
    "Running Speed": 6.0
  },
  "Wolf settings": {
    "Change Wolf stats on spawns": true,
    "Show Wolf spawns in Console": true,
    "Wolf Droprate 0-100": 10.0,
    "Minimum Health": 150,
    "Maximum Health": 450,
    "Minimum Strength (Att dmg)": 13,
    "Maximum Strength (Att dmg)": 23,
    "Running Speed": 6.0
  },
  "Chat Steam64ID": 76561############,
  "Use Random Skins": true,
  "Spawn Min Amount Items": 2,
  "Spawn Max Amount Items": 6,
  "Loot Table": [
    {
      "shortname": "ammo.pistol",
      "amount": 5,
      "skin": 0,
      "amountMin": 5
    },
    {
      "shortname": "ammo.pistol.fire",
      "amount": 5,
      "skin": 0,
      "amountMin": 5
    },
    {
      "shortname": "ammo.pistol.hv",
      "amount": 5,
      "skin": 0,
      "amountMin": 5
    },
    {
      "shortname": "ammo.rifle",
      "amount": 5,
      "skin": 0,
      "amountMin": 5
    },
    {
      "shortname": "ammo.rifle.explosive",
      "amount": 5,
      "skin": 0,
      "amountMin": 5
    },
    {
      "shortname": "ammo.rifle.hv",
      "amount": 5,
      "skin": 0,
      "amountMin": 5
    },
    {
      "shortname": "ammo.rifle.incendiary",
      "amount": 5,
      "skin": 0,
      "amountMin": 5
    },
    {
      "shortname": "ammo.rocket.basic.bp",
      "amount": 1,
      "skin": 0,
      "amountMin": 1
    },
    {
      "shortname": "ammo.rocket.fire.bp",
      "amount": 1,
      "skin": 0,
      "amountMin": 1
    },
    {
      "shortname": "ammo.rocket.hv.bp",
      "amount": 1,
      "skin": 0,
      "amountMin": 1
    },
    {
      "shortname": "ammo.shotgun",
      "amount": 12,
      "skin": 0,
      "amountMin": 8
    },
    {
      "shortname": "explosive.timed",
      "amount": 1,
      "skin": 0,
      "amountMin": 1
    },
    {
      "shortname": "explosives",
      "amount": 1,
      "skin": 0,
      "amountMin": 1
    },
    {
      "shortname": "pistol.m92",
      "amount": 1,
      "skin": 0,
      "amountMin": 1
    },
    {
      "shortname": "rifle.ak.bp",
      "amount": 1,
      "skin": 0,
      "amountMin": 1
    },
    {
      "shortname": "rifle.bolt.bp",
      "amount": 1,
      "skin": 0,
      "amountMin": 1
    },
    {
      "shortname": "shotgun.spas12",
      "amount": 1,
      "skin": 0,
      "amountMin": 1
    },
    {
      "shortname": "smg.2.bp",
      "amount": 1,
      "skin": 0,
      "amountMin": 1
    },
    {
      "shortname": "smg.thompson.bp",
      "amount": 1,
      "skin": 0,
      "amountMin": 1
    },
    {
      "shortname": "weapon.mod.8x.scope.bp",
      "amount": 1,
      "skin": 0,
      "amountMin": 1
    },
    {
      "shortname": "weapon.mod.flashlight.bp",
      "amount": 1,
      "skin": 0,
      "amountMin": 1
    },
    {
      "shortname": "weapon.mod.holosight.bp",
      "amount": 1,
      "skin": 0,
      "amountMin": 1
    },
    {
      "shortname": "weapon.mod.lasersight.bp",
      "amount": 1,
      "skin": 0,
      "amountMin": 1
    },
    {
      "shortname": "weapon.mod.silencer.bp",
      "amount": 1,
      "skin": 0,
      "amountMin": 1
    },
    {
      "shortname": "weapon.mod.small.scope.bp",
      "amount": 1,
      "skin": 0,
      "amountMin": 1
    },
    {
      "shortname": "grenade.f1.bp",
      "amount": 1,
      "skin": 0,
      "amountMin": 1
    },
    {
      "shortname": "pickaxe",
      "amount": 1,
      "skin": 0,
      "amountMin": 1
    },
    {
      "shortname": "hatchet",
      "amount": 1,
      "skin": 0,
      "amountMin": 1
    },
    {
      "shortname": "can.beans",
      "amount": 3,
      "skin": 0,
      "amountMin": 1
    },
    {
      "shortname": "can.tuna",
      "amount": 3,
      "skin": 0,
      "amountMin": 1
    },
    {
      "shortname": "black.raspberries",
      "amount": 5,
      "skin": 0,
      "amountMin": 3
    }
  ]
}

these should be always

  "Spawn Min Amount Items": 2, // atleast 1
  "Spawn Max Amount Items": 6, // max whatever you want

I removed it all : mod and json file. Loaded default again and pasted your json file config. reloaded plugin..

 

(06:56:05) | Failed to call hook 'OnEntitySpawned' on plugin 'RadTownLoot v1.1.2' (NullReferenceException: Object reference not set to an instance of an object)

at Oxide.Plugins.RadTownLoot.OnEntitySpawned (Bear bear) [0x0000d] in <e0a046c1594442838df8463b44f02d09>:0

at Oxide.Plugins.RadTownLoot.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x0034f] in <e0a046c1594442838df8463b44f02d09>:0

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

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

at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <ec05e0208c9149bba43236ca58fea105>:0

ok i tryed reproduce and i am not getting your errors so i have some questions
- Are you using any other plugins that alter loot or animal behaviour or spawns?
- tryed to upload the plugin through webftp instead of (for example) filezilla yet?

No... well I'm using better loot but even if I disable it I get same error.

Error doesnt happen when I load the plugin; only when I kill bear or wolf.

Loaded plugin via FTP client (winscp) and with web browser; same result.

No, no plugin that alter animal spawns, behaviors etc..

 

I'll keep the plugin running; like to give nice boost to bears and wolves. thank you.

 

"Bear Droprate 0-100": 0.0,

"Wolf Droprate 0-100": 0.0,

I have no more error. No loot but no error too.

yeah i cant reproduce it .works fine on all my servers once i know the issue ill update it asap
Locked automatically