ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: indexFixed
Failed to call hook 'OnPlayerDeath' on plugin 'NightZombies v3.3.15' (ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index)
  at System.ThrowHelper.ThrowArgumentOutOfRangeException (System.ExceptionArgument argument, System.ExceptionResource resource) [0x00029] in :0 
  at System.ThrowHelper.ThrowArgumentOutOfRangeException () [0x00000] in :0 
  at Oxide.Plugins.NightZombies+SpawnController.GetPlayer (BasePlayer& player) [0x000c5] in :0 
  at Oxide.Plugins.NightZombies+NightZombie.Respawn () [0x00049] in :0 
  at Oxide.Plugins.NightZombies+NightZombie.OnDeath () [0x0005a] in :0 
  at Oxide.Plugins.NightZombies+SpawnController.Respawn (BaseCombatEntity entity) [0x00013] in :0 
  at Oxide.Plugins.NightZombies.OnPlayerDeath (ScarecrowNPC entity, HitInfo info) [0x00021] in :0 
  at Oxide.Plugins.NightZombies.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x0013d] in :0 
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in :0 
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in :0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in :0 
Scarecrow was killed by 1212451[1212451] at (-1033.1, 23.5, 751.9)
Failed to call hook 'OnPlayerDeath' on plugin 'NightZombies v3.3.15' (ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index)
  at System.ThrowHelper.ThrowArgumentOutOfRangeException (System.ExceptionArgument argument, System.ExceptionResource resource) [0x00029] in :0 
  at System.ThrowHelper.ThrowArgumentOutOfRangeException () [0x00000] in :0 
  at Oxide.Plugins.NightZombies+SpawnController.GetPlayer (BasePlayer& player) [0x000c5] in :0 
  at Oxide.Plugins.NightZombies+NightZombie.Respawn () [0x00049] in :0 
  at Oxide.Plugins.NightZombies+NightZombie.OnDeath () [0x0005a] in :0 
  at Oxide.Plugins.NightZombies+SpawnController.Respawn (BaseCombatEntity entity) [0x00013] in :0 
  at Oxide.Plugins.NightZombies.OnPlayerDeath (ScarecrowNPC entity, HitInfo info) [0x00021] in :0 
  at Oxide.Plugins.NightZombies.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x0013d] in :0 
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in :0 
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in :0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in :0 
Scarecrow was killed by sentry.scientist.static (entity) at (-12.7, 34.4, 687.7)

 

Getting these errors when the zombie dies / killed by some npc or pve entity.

My config:

{
  "Spawn Settings": {
    "Spawn near players": true,
    "Min pop for near player spawn": 5,
    "Min distance from player": 25.0,
    "Max distance from player": 55.0,
    "Spawn Time": 19.8,
    "Destroy Time": 7.3,
    "Zombie Settings": {
      "Display Name": "Scarecrow",
      "Scarecrow Population (total amount)": 30,
      "Scarecrow Health": 200.0,
      "Make Breathing Sound": true,
      "Scarecrow Kits": []
    },
    "Chance Settings": {
      "Chance per cycle": 100.0,
      "Days betewen spawn": 0
    }
  },
  "Destroy Settings": {
    "Leave Corpse, when destroyed": false,
    "Leave Corpse, when killed by player": true,
    "Spawn Loot": true,
    "Half bodybag despawn time": true,
    "Quick destroy corpses": true
  },
  "Behaviour Settings": {
    "Attack sleeping players": false,
    "Zombies attacked by outpost sentries": false,
    "Throw Grenades": true,
    "Ignore Human NPCs": true,
    "Ignored entities (full entity shortname)": [
      "scientistjunkpile.prefab",
      "scarecrow.prefab"
    ]
  },
  "Broadcast Settings": {
    "Broadcast spawn amount": true
  }
}

Getting the same errors.
Whe i googled it i found a comment to update oxide.
But oxide is updated just fine.
This error goes around a long time.
And the plugin is updated a month ago.
So its still not fixed

 



Merged post

The moment i added PlaguedNPCs the errors where gone.

I am experiencing this issue, can you illaborate on the fix?

YVRg7SDLMpQxP0Q.png Stangarrang

I am experiencing this issue, can you illaborate on the fix?

Yeah well a few hours after i installed Plagued that issue came back.
And also everytime i changed something in the config.
First i thougt it was the safe traps plugin or Murderers plugin.
So i went installing the plugins one by one and nothing helped.
Dunno if i overlook something or not.
But i stopped with those plugins

 

I dont have any of those other plugins, - Hopefully the Author can assist with the original errors.

Ive seen reports about this issue for 8 months or more.
So don't hold ur breath to long 😁

Locked automatically