• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Trigger] Computer Freezes

Status
Not open for further replies.
Level 11
Joined
Dec 2, 2007
Messages
282
Hello people! Need help here!

When the following trigger runs in-game, my computer freezes, and I have to turn it off to get it working again.


I need help, what is wrong with it, and how do I make it work?

Edit: Don't mind reading more, it works now. Thank you for the help!
 
Last edited:
Level 23
Joined
Nov 29, 2006
Messages
2,482
Alright, then, the freeze is probably due to the massive amount of unit created on a location which leaks. Use a temppoint-variable to avoid leaking. Also, since you are creating N units, it returns 'last created unit group'. Avoid using 'Units in region' since it leaks another unit group, and you have this action 3 times, resulting to 3 unit groups and a huge amount of pointleaks.

  • Untitled Trigger 001
    • Events
      • Unit - A unit enters region1
    • Conditions
      • ((Owner of (Triggering unit)) controller) Equal to User
    • Actions
      • Set temppoint = (Center of region1)
      • Game - Display to (All players) the text: ((Name of (Triggering player)) + has triggered the next wave!)
      • Unit - Create (Playernumber x 3) Skeleton Warrior for Player 12 (Brown) at temppoint facing Default building facing degrees
      • Custom script: call RemoveLocation( udg_temppoint )
      • Set temppoint = (Center of Section1Entry)
      • Unit Group - Order (Last created unit group) to Move To temppoint
      • Custom script: call RemoveLocation( udg_temppoint )
-------- As it goes for the waits, and same actions again, Im not sure why you do that. --------

 
Level 23
Joined
Nov 29, 2006
Messages
2,482
No I dont... I assumed that player brown is a computer player, thus the trigger will never be ran for a computer player (the condition check). And as it would be pretty simple to fix anyways...

And spell my name right next time please.
 
Level 6
Joined
Sep 5, 2007
Messages
264
  • Actions
    • Disable trigger <this trigger>
    • ** Insert the rest of the actions **
    • Enable trigger <this trigger>
If the trigger is active when the units are created, then there's a chance that the newly created unit will activate the trigger again, causing an infinate (or close enough to it) loop that would make Wc3 lock up.

I'm pretty sure that this is what everyone else has been trying to say, I've just rapped it up.
 
Status
Not open for further replies.
Top