A million backpacks and lag ...... again.


{
"Spawn Settings": {
"Spawn near players": true,
"Min pop for near player spawn": 1,
"Min distance from player": 40.0,
"Max distance from player": 80.0,
"Spawn Time": 19.8,
"Destroy Time": 7.3,
"Zombie Settings": {
"Murderer Population (total amount)": 2,
"Murderer Health": 200.0,
"Scarecrow Population (total amount)": 5,
"Scarecrow Health": 200.0
},
"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,
"Half bodybag despawn time": true,
"Quick destroy corpses": true
},
"Behaviour Settings": {
"Attack sleeping players": false,
"Zombies attacked by outpost sentries": true,
"Ignore Human NPCs": true,
"Ignored entities (full entity shortname)": [
"scientistjunkpile.prefab",
"scarecrow.prefab"
]
},
"Broadcast Settings": {
"Broadcast spawn amount": false,
"Broadcast types separately": false
}
}

Also accompanied by this error : 

Calling 'OnEntitySpawned' on 'NightZombies v3.1.4' took average 1021ms

(00:55:28) | Failed to call hook 'OnItemRemovedFromContainer' on plugin 'SyncPipes v0.9.21' (NullReferenceException: )

at (wrapper managed-to-native) UnityEngine.Component.GetComponentFastPath(UnityEngine.Component,System.Type,intptr)

at UnityEngine.Component.GetComponent[T] () [0x00021] in <c8dc2b468d1841099baa4dd8a110cc44>:0

at Oxide.Plugins.SyncPipes.OnItemRemovedFromContainer (ItemContainer container, Item item) [0x0000a] in <4904ad076bca4ac4b0751211d0bbb85f>:0

at Oxide.Plugins.SyncPipes.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00a71] in <4904ad076bca4ac4b0751211d0bbb85f>:0

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

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

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

Thanks for letting me know I'll see if I can reproduce this.

The error you posted is unrelated to this issue, instead an error from another plugin so you'll have to contact the author of that plugin in regards to that issue.

wXLxOgFUEnSjh1r.png 0x89A

The error you posted is unrelated to this issue, instead an error from another plugin so you'll have to contact the author of that plugin in regards to that issue.

My apologies, it was late :)

We are having this issue too. Getting a ton of zombies spawning and then they are leaving 1000s of bags when they despawn. It's crashing several of my players and cause insane lag. Also bags are not despawning even when plugin is reloaded.

Pushed an update, let me know if the issue persists.

Hey, i found somethink i think it's work.

You need to open NightZombies.cs
Found public void OnDeath()
and add:  _scarecrow.inventory = null;
like this:
public void OnDeath()
            {
                if (Time.time - LastSpawnTime < 0.5f)
                {
		    _scarecrow.inventory = null;
                    _scarecrow.AdminKill();
                    return;
                }

.........​