- Joined
- May 21, 2014
- Messages
- 580
Okay. First of all, greetings Hive!
I am in deep trouble. I have a Survival Custom Map. The map is already near completion, but while I was testing it, Warcraft 3 closes with no error message at all; meaning it might have been an error in triggers (possible an infinite loop or whatsoever.)
I can't seem to find the error, and this already happened twice on me.
I already have a lot of triggers, and I don't know where to even look for it.
The crash happens when I complete the final upgrade of the Main Hall, in which completing the final upgrade would replace the Main Builder into a Technician. It works fine, but always after a few seconds, the crash will take place.
Please, Hive, help me in this problem. Thanks...
If you need the triggers, I can post them, but there are too many of them already.
StartingUnits is a Unit Group that stores all the Main Builder Units from all players.
PlayerUnits is a Unit Group that stores all the Units of all Players (Including Main Builders)
EDIT AND UPDATE:
The crash exactly happens when I click the Build button of Techinician. This doesn't have problem with clicking the button of Build in Main Builder. But Technician's Build button triggers the crash.
I am in deep trouble. I have a Survival Custom Map. The map is already near completion, but while I was testing it, Warcraft 3 closes with no error message at all; meaning it might have been an error in triggers (possible an infinite loop or whatsoever.)
I can't seem to find the error, and this already happened twice on me.
I already have a lot of triggers, and I don't know where to even look for it.
The crash happens when I complete the final upgrade of the Main Hall, in which completing the final upgrade would replace the Main Builder into a Technician. It works fine, but always after a few seconds, the crash will take place.
Please, Hive, help me in this problem. Thanks...
If you need the triggers, I can post them, but there are too many of them already.
-
Upgrade Main Builder
-
Events
-
Unit - A unit Finishes an upgrade
-
-
Conditions
-
(Unit-type of (Triggering unit)) Equal to Imbued Town Hall
-
-
Actions
-
Unit Group - Pick every unit in StartingUnits and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Owner of (Triggering unit)) Equal to (Owner of (Picked unit))
-
-
Then - Actions
-
Unit Group - Remove (Picked unit) from StartingUnits
-
Unit Group - Remove (Picked unit) from PlayerUnits
-
Unit - Replace (Picked unit) with a Technician using The new unit's max life and mana
-
Unit Group - Add (Last replaced unit) to StartingUnits
-
Unit Group - Add (Last replaced unit) to PlayerUnits
-
Selection - Select (Last replaced unit) for (Owner of (Last replaced unit))
-
-
Else - Actions
-
-
-
-
-
StartingUnits is a Unit Group that stores all the Main Builder Units from all players.
PlayerUnits is a Unit Group that stores all the Units of all Players (Including Main Builders)
EDIT AND UPDATE:
The crash exactly happens when I click the Build button of Techinician. This doesn't have problem with clicking the button of Build in Main Builder. But Technician's Build button triggers the crash.