Hey guys,
I'm making a rather complicated map. It's pretty much a zombie apocalypse map set in a sprawling city full of lots of different units.
I've been having problems recently with what I think is a memory leak, I'm not sure I'm not experienced with dealing with that. Unit movement is very jittery and chaotic, also when I try to exit the program, the game freezes. I end up having to End Task every time.
I've gone through my triggers and I think I've zero'd in on the problem, attachments to units.
I've got a lot of units which are part of the Police and the Medical Authorities and they all have their own armour and weapon attachments to help show who they are in game.
This is definitely one of the triggers causing the problem...
When ever I add this trigger and other similar ones which I'm trying to pin point, I get that problem.
Does anyone know how to fix this?
Could it be that there's either just too many attachments in the map, or that trying to spawn them all at once on initiation is too much?
There are at least 70 units currently in the map that use triggers like this, varying in the amount of attachments.
Thanks.
I'm making a rather complicated map. It's pretty much a zombie apocalypse map set in a sprawling city full of lots of different units.
I've been having problems recently with what I think is a memory leak, I'm not sure I'm not experienced with dealing with that. Unit movement is very jittery and chaotic, also when I try to exit the program, the game freezes. I end up having to End Task every time.
I've gone through my triggers and I think I've zero'd in on the problem, attachments to units.
I've got a lot of units which are part of the Police and the Medical Authorities and they all have their own armour and weapon attachments to help show who they are in game.
This is definitely one of the triggers causing the problem...
-
Riot Police Spawn
-
Events
- Unit - A unit enters (Entire map)
-
Conditions
- (Unit-type of (Entering unit)) Equal to Riot Police
-
Actions
- Special Effect - Create a special effect attached to the chest of (Entering unit) using BlackSteelChainMail.mdx
- Special Effect - Create a special effect attached to the head of (Entering unit) using riot helmet.mdx
- Special Effect - Create a special effect attached to the foot left of (Entering unit) using Metal_Boots_Tier1_Portrait.mdx
- Special Effect - Create a special effect attached to the foot right of (Entering unit) using Metal_Boots_Tier1.mdx
- Special Effect - Create a special effect attached to the hand left of (Entering unit) using Guantlet_Metal_Tier2_Portrait.mdx
- Special Effect - Create a special effect attached to the hand right of (Entering unit) using Guantlet_Metal_Tier2.mdx
- Special Effect - Create a special effect attached to the hand right of (Entering unit) using Spiked Club.mdx
- Special Effect - Create a special effect attached to the hand left of (Entering unit) using Riot_Shield.mdx
-
Events
When ever I add this trigger and other similar ones which I'm trying to pin point, I get that problem.
Does anyone know how to fix this?
Could it be that there's either just too many attachments in the map, or that trying to spawn them all at once on initiation is too much?
There are at least 70 units currently in the map that use triggers like this, varying in the amount of attachments.
Thanks.