Editing zone flags lags out the server and crashes players

Editing zone flags lags out the server and crashes players

 

basically the title, I can't edit certain zone flags with the UI cuz it freezes up and lags out the server. this is the error i got (i left the chat logs from players complaining about the lag lol):

 

(12:53:27) | homelessshelter 16 True

(12:53:39) | Calling 'ccmdEditFlag' on 'ZoneManager v3.1.1' took 12003ms

(12:53:39) | Calling 'ccmdEditFlag' on 'ZoneManager v3.1.1' took average 6ms

(12:53:39) | homelessshelter exit

(12:53:39) | [Better Chat] [Global] supermanmse: bruh

(12:53:39) | [Better Chat] [Global] Ludo: again

(12:53:41) | ZoneManager and DynamicPVP were compiled successfully in 2383ms

(12:53:41) | Calling 'EraseZone' on 'ZoneManager v3.1.1' took 113ms

(12:53:42) | Calling 'EraseZone' on 'ZoneManager v3.1.1' took 246ms

(12:53:42) | Calling 'EraseZone' on 'ZoneManager v3.1.1' took 136ms

(12:53:42) | Calling 'EraseZone' on 'ZoneManager v3.1.1' took 123ms

(12:53:42) | Calling 'EraseZone' on 'ZoneManager v3.1.1' took 170ms

(12:53:42) | Calling 'EraseZone' on 'ZoneManager v3.1.1' took 190ms

this is the error i keep getting spammed

(05:32:10) | courthouse 21 True
(05:32:28) | Calling 'ccmdEditFlag' on 'ZoneManager v3.1.1' took 17954ms
(05:32:28) | Calling 'ccmdEditFlag' on 'ZoneManager v3.1.1' took average 7ms
(05:32:28) | *.*.*.*:60425/76561############/HammeR kicked: Packet Flooding: Player Tick
(05:32:31) | ZoneManager, DynamicPVP and ZonePerms were compiled successfully in 2795ms
(05:32:31) | Calling 'EraseZone' on 'ZoneManager v3.1.1' took 101ms
(05:32:31) | Calling 'EraseZone' on 'ZoneManager v3.1.1' took 276ms
(05:32:31) | Calling 'EraseZone' on 'ZoneManager v3.1.1' took 142ms
(05:32:32) | Calling 'EraseZone' on 'ZoneManager v3.1.1' took 135ms
(05:32:32) | Calling 'EraseZone' on 'ZoneManager v3.1.1' took 160ms
(05:32:32) | Calling 'EraseZone' on 'ZoneManager v3.1.1' took 201ms
(05:32:32) | Calling 'Unload' on 'DynamicPVP v4.2.13' took 1330ms
(05:32:32) | Unloaded plugin Dynamic PVP v4.2.13 by CatMeat/Arainrr
(05:32:32) | Unloaded plugin Zone Perms v1.1.0 by MisterPixie
(05:32:32) | [Building Wrapper] ZoneManager unloaded - BuildingWrapper disabled
(05:32:32) | Unloaded plugin Zone Manager v3.1.1 by k1lly0u
(05:32:32) | [DEBUG] DynamicPVP plugin is waiting for requirements to be loaded: ZoneManager
(05:32:32) | [DEBUG] ZonePerms plugin is waiting for requirements to be loaded: ZoneManager
(05:32:32) | [Building Wrapper] ZoneManager loaded - BuildingWrapper enabled
(05:32:32) | Loaded plugin Zone Manager v3.1.1 by k1lly0u
(05:32:33) | Loaded plugin Dynamic PVP v4.2.13 by CatMeat/Arainrr
(05:32:33) | Loaded plugin Zone Perms v1.1.0 by MisterPixie
(05:32:33) | System.NullReferenceException
at (wrapper managed-to-native) UnityEngine.Component.get_transform(UnityEngine.Component)
at HumanPathFinder.GetBestRoamPoint (AIInformationZone aiZone, UnityEngine.Vector3 anchorPos, UnityEngine.Vector3 currentPos, UnityEngine.Vector3 currentDirection, System.Single clampDistance, System.Single lookupMaxRange) [0x00041] in <42c4c488fd524692a8dbdb797e3812eb>:0
at HumanPathFinder.GetBestRoamPoint (UnityEngine.Vector3 anchorPos, UnityEngine.Vector3 currentPos, UnityEngine.Vector3 currentDirection, System.Single anchorClampDistance, System.Single lookupMaxRange) [0x0003b] in <42c4c488fd524692a8dbdb797e3812eb>:0
at ScientistBrain+RoamState.StateEnter (BaseAIBrain brain, BaseEntity entity) [0x0005f] in <42c4c488fd524692a8dbdb797e3812eb>:0
at BaseAIBrain.SwitchToState (BaseAIBrain+BasicAIState newState, System.Int32 stateContainerID) [0x00064] in <42c4c488fd524692a8dbdb797e3812eb>:0
at BaseAIBrain.SwitchToState (AIState newState, System.Int32 stateContainerID) [0x00018] in <42c4c488fd524692a8dbdb797e3812eb>:0
at BaseAIBrain.EventTriggeredStateChange (System.Int32 newStateContainerID, System.Int32 sourceEventID) [0x00029] in <42c4c488fd524692a8dbdb797e3812eb>:0
at BaseAIEvent.TriggerStateChange (IAIEventListener listener, System.Int32 sourceEventID) [0x00007] in <42c4c488fd524692a8dbdb797e3812eb>:0
at AIEvents.Tick (System.Single deltaTime, StateStatus stateStatus) [0x0014f] in <42c4c488fd524692a8dbdb797e3812eb>:0
at BaseAIBrain.Think (System.Single delta) [0x00085] in <42c4c488fd524692a8dbdb797e3812eb>:0
at BaseAIBrain.DoThink () [0x0000d] in <42c4c488fd524692a8dbdb797e3812eb>:0
at HumanNPC.ServerThink (System.Single delta) [0x0001a] in <42c4c488fd524692a8dbdb797e3812eb>:0
at NPCPlayer.ServerThink_Internal () [0x0000d] in <42c4c488fd524692a8dbdb797e3812eb>:0
at HumanNPC.TryThink () [0x00000] in <42c4c488fd524692a8dbdb797e3812eb>:0
at AIThinkManager.DoProcessing (ListHashSet`1[T] process, System.Single budgetSeconds, System.Int32& last) [0x00014] in <42c4c488fd524692a8dbdb797e3812eb>:0

Same here:

(20:19:59) | Calling 'ccmdEditFlag' on 'ZoneManager v3.1.1' took 8884ms
(20:20:31) | Calling 'ccmdEditFlag' on 'ZoneManager v3.1.1' took 8985ms

Happens for multiple flags



Merged post

The newest version is better, as it only does the lag spike once on closing, but still fully stops the server for at least 8 seconds.