Okay, I have multiple triggers of this similar type, and I will show an example of three of them. I have fixed any leaks I can see, and yet they cause immense lag spikes and lag to the point of un-playability after only a few minutes in-game. I need help from other Hive members to find out what exactly the problem is.
This is used to order any units that come into the region:
This is what I use to create units:
This is when spiking becomes so bad, the map is unplayable:
Edit: Pharaoh, I tried it your way, the spikes seemed to have gotten worse after editing it your way... I'm not sure what else to try... -- in fact, it was nearly unplayable spikes whenever the units spawned during the 2nd group of units consisting of footmen and riflemen.
Edit2: I've tried and played around with multiple ways between krisserz's and Destiny.Knight's suggestions, but none worked. I want to make it clear that I have 4 of these triggers active at the same time doing similar things, just at different regions.
This is used to order any units that come into the region:
-
Enclave Bot Attack
-
Events
-
Unit - A unit enters Enclave bot <gen>
-
-
Conditions
-
(Owner of (Entering unit)) Equal to Player 12 (Brown)
-
-
Actions
-
Set Enclave_Bot = (Units in Enclave bot <gen>)
-
Set Castle_Temp = (Center of Castle <gen>)
-
Unit Group - Pick every unit in Enclave_Bot and do (Actions)
-
Loop - Actions
-
If ((Owner of (Entering unit)) Equal to Player 12 (Brown)) then do (Unit Group - Order Enclave_Bot to Attack-Move To Castle_Temp) else do (Wait 1.00 seconds)
-
-
-
Custom script: call DestroyGroup (udg_Enclave_Bot)
-
Custom script: call RemoveLocation (udg_Castle_Temp)
-
-
This is what I use to create units:
-
Enclave bot
-
Events
-
Time - Every 35.00 seconds of game time
-
-
Conditions
-
Actions
-
Set EB_Spawn = (Center of Enclave bot <gen>)
-
Unit - Create 6 Footman for Player 12 (Brown) at EB_Spawn facing 180.00 degrees
-
Custom script: call RemoveLocation (udg_EB_Spawn)
-
Wait until ((In-game time of day) Greater than or equal to 2.30), checking every 1.00 seconds
-
Custom script: call DestroyTrigger(GetTriggeringTrigger())
-
-
This is when spiking becomes so bad, the map is unplayable:
-
Enclave bot 2
-
Events
-
Game - The in-game time of day becomes Equal to 5.00
-
Time - Every 35.00 seconds of game time
-
-
Conditions
-
(In-game time of day) Greater than or equal to 5.00
-
-
Actions
-
Set EB_Spawn = (Center of Enclave bot <gen>)
-
Unit - Create 6 Footman for Player 12 (Brown) at EB_Spawn facing 180.00 degrees
-
Unit - Create 3 Rifleman for Player 12 (Brown) at EB_Spawn facing 180.00 degrees
-
Unit - Create 3 Knight for Player 12 (Brown) at EB_Spawn facing 180.00 degrees
-
Custom script: call RemoveLocation (udg_EB_Spawn)
-
Wait until ((In-game time of day) Greater than or equal to 7.30), checking every 1.00 seconds
-
Custom script: call DestroyTrigger(GetTriggeringTrigger())
-
-
Edit: Pharaoh, I tried it your way, the spikes seemed to have gotten worse after editing it your way... I'm not sure what else to try... -- in fact, it was nearly unplayable spikes whenever the units spawned during the 2nd group of units consisting of footmen and riflemen.
Edit2: I've tried and played around with multiple ways between krisserz's and Destiny.Knight's suggestions, but none worked. I want to make it clear that I have 4 of these triggers active at the same time doing similar things, just at different regions.
Attachments
Last edited: