• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

[Trigger] Game Crashes! Trigger!

Status
Not open for further replies.
Level 37
Joined
Aug 14, 2006
Messages
7,601
Hey!

I just tested my own campaign and the whole game crashes. I wonder what's wrong. The game crashes after few second after elite boss fight. Here are some triggers that may cause this. Any help? What makes the game crash? What i should fix? The one who helps will gain some REP!

Trigger 1:
  • Anthanex Spell
    • Events
      • Unit - ! 0007 <gen> Is attacked
    • Conditions
      • (Mana of ELITE_BOSS) Greater than or equal to 150.00
    • Actions
      • Trigger - Turn off (This trigger)
      • Unit - Set mana of ELITE_BOSS to 0.00%
      • Set Elite_Boss_Real_Distance = 150.00
      • Set Elite_Boss_Real_Degree = 0.00
      • Set Elite_Boss_Real = 0.00
      • For each (Integer Elite_Boss_Integer) from 1 to 25, do (Actions)
        • Loop - Actions
          • Set Elite_Boss_Real_Distance = (Elite_Boss_Real_Distance + 30.00)
          • Set Elite_Boss_Real_Degree = (Elite_Boss_Real_Degree + 50.00)
          • Set TempGroup2 = (Units owned by Player 1 (Red))
          • Set TempLoc = ((Position of ELITE_BOSS) offset by Elite_Boss_Real_Distance towards Elite_Boss_Real_Degree degrees)
          • Set TempGroup = (Units within 250.00 of TempLoc matching ((((Matching unit) is alive) Equal to True) and ((((Matching unit) is in TempGroup2) Equal to True) and (((Matching unit) has buff Invulnerable) Equal to False))))
          • Unit - Create 1 Elite Boss Spell Dummy for Neutral Passive at TempLoc facing Default building facing degrees
          • Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
          • Unit Group - Pick every unit in TempGroup and do (Actions)
            • Loop - Actions
              • Unit - Cause ELITE_BOSS to damage (Picked unit), dealing 300.00 damage of attack type Spells and damage type Normal
              • Special Effect - Create a special effect attached to the head of (Picked unit) using Abilities\Spells\Items\AIob\AIobSpecialArt.mdl
              • Special Effect - Destroy (Last created special effect)
          • Custom script: call RemoveLocation(udg_TempLoc)
          • Custom script: call DestroyGroup(udg_TempGroup2)
          • Custom script: call DestroyGroup(udg_TempGroup)
          • Wait 0.10 seconds
      • Wait 15.00 seconds
      • Trigger - Turn on (This trigger)
Trigger 2:
  • STR PLUS
    • Events
      • Time - Every 2.00 seconds of game time
    • Conditions
      • (ELITE_BOSS is alive) Equal to True
    • Actions
      • Hero - Modify Strength of ELITE_BOSS: Add 1
Trigger 3:
  • Mana Bonus
    • Events
      • Unit - A unit Dies
    • Conditions
      • Or - Any (Conditions) are true
        • Conditions
          • (Unit-type of (Dying unit)) Equal to Ice Element (Level 4)
          • (Unit-type of (Dying unit)) Equal to Ice Element (Level 5)
          • (Unit-type of (Dying unit)) Equal to Ice Element (Level 6)
          • (Unit-type of (Dying unit)) Equal to ! (Galeoth)
          • (Unit-type of (Dying unit)) Equal to Ice Polar
      • (Killing unit) Equal to ELITE_BOSS
    • Actions
      • Special Effect - Create a special effect attached to the origin of ELITE_BOSS using Abilities\Spells\Other\Charm\CharmTarget.mdl
      • Special Effect - Destroy (Last created special effect)
      • Unit - Set mana of ELITE_BOSS to 100.00%
Trigger 4:
  • Anthanex Event Spells
    • Events
      • Unit - ! 0007 <gen> Is attacked
    • Conditions
    • Actions
      • Trigger - Turn off (This trigger)
      • Set Random = (Random integer number between 1 and 3)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Random Equal to 1
        • Then - Actions
          • Unit - Add [] Anthanex (Event 1) to ELITE_BOSS
          • Unit - Order ELITE_BOSS to Human Mountain King - Activate Avatar
          • Wait 15.00 seconds
          • Unit - Remove [] Anthanex (Event 1) from ELITE_BOSS
          • Wait 15.00 seconds
          • Trigger - Turn on (This trigger)
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Random Equal to 2
        • Then - Actions
          • Unit - Add [] Anthanex (Event 2) to ELITE_BOSS
          • Wait 15.00 seconds
          • Unit - Remove [] Anthanex (Event 2) from ELITE_BOSS
          • Wait 15.00 seconds
          • Trigger - Turn on (This trigger)
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Random Equal to 3
        • Then - Actions
          • Unit - Add [] Anthanex 3 (Event 3) to ELITE_BOSS
          • Unit - Order ELITE_BOSS to Undead Necromancer - Unholy Frenzy ELITE_BOSS
          • Wait 15.00 seconds
          • Unit - Remove [] Anthanex 3 (Event 3) from ELITE_BOSS
          • Wait 15.00 seconds
          • Trigger - Turn on (This trigger)
        • Else - Actions
 
Last edited:
Level 8
Joined
Jul 22, 2008
Messages
331
trigger is ok.
although desperate times requres desperate acts. try to put turn of trigger right before
func "wait 15 secs"
and can you explain me, plz, why are those custo script funcs?
I know what they do, but why?
when it's safe to destroy?
because of leaks?
 

Rui

Rui

Level 41
Joined
Jan 7, 2005
Messages
7,550
information_icon_new.gif
Sticky: Have a trigger related question? READ THIS BEFORE POSTING!
[self="http://www.hiveworkshop.com/forums/forumdisplay.php?f=269"]
triggersandscriptsforum.gif
»»» Triggers & Scripts
[/self]

(...)
Any trigger-fixing threads go on [self="http://www.hiveworkshop.com/forums/forumdisplay.php?f=269"]Triggers & Scripts[/self], while trigger-creation threads go on the World Editor Help Zone.
A mistake from a user with over 150 reputation >.< /facepalm

~Thread Moved
 
Level 37
Joined
Aug 14, 2006
Messages
7,601
RunBa said:
trigger is ok.
So there are no problem with triggers, ehh? Are you 100% sure?

RunBa said:
talthough desperate times requres desperate acts. try to put turn of trigger right before
func "wait 15 secs"
What do you mean by this? X_x

RunBa said:
and can you explain me, plz, why are those custo script funcs?
I know what they do, but why?
when it's safe to destroy?
because of leaks?
Because of leaks of course!
 
Last edited by a moderator:
Level 37
Joined
Aug 14, 2006
Messages
7,601
RunBa said:
what i meant is to put "turn off this trigger" at the bottom of the trigger, right before action "wait for 15 seconds"
Ahh, oh yea, You are right. About this: +rep

However, it's still buggin. I fought against the boss about 5 min. Then came this.

37394d1220534842-game-crashes-trigger-666.jpg


Someone know how to solve this? This is the first time when the campaign crashes.

EDIT: Triggers updated.
 

Attachments

  • 666.JPG
    666.JPG
    21.8 KB · Views: 488
Last edited:
Trigger 4:
  • Anthanex Event Spells
    • Events
      • Unit - ! 0007 <gen> Is attacked
    • Conditions
    • Actions
      • Trigger - Turn off (This trigger)
      • Set Random = (Random integer number between 1 and 3)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Random Equal to 1
        • Then - Actions
          • Unit - Add [] Anthanex (Event 1) to ELITE_BOSS
          • Unit - Order ELITE_BOSS to Human Mountain King - Activate Avatar
          • Wait 15.00 seconds
          • Unit - Remove [] Anthanex (Event 1) from ELITE_BOSS
          • Wait 15.00 seconds
          • Trigger - Turn on (This trigger)
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Random Equal to 2
        • Then - Actions
          • Unit - Add [] Anthanex (Event 2) to ELITE_BOSS
          • Wait 15.00 seconds
          • Unit - Remove [] Anthanex (Event 2) from ELITE_BOSS
          • Wait 15.00 seconds
          • Trigger - Turn on (This trigger)
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Random Equal to 3
        • Then - Actions
          • Unit - Add [] Anthanex 3 (Event 3) to ELITE_BOSS
          • Unit - Order ELITE_BOSS to Undead Necromancer - Unholy Frenzy ELITE_BOSS
          • Wait 15.00 seconds
          • Unit - Remove [] Anthanex 3 (Event 3) from ELITE_BOSS
          • Wait 15.00 seconds
          • Trigger - Turn on (This trigger)
        • Else - Actions

Change the above trigger to be like this:
  • Anthanex Event Spells
    • Events
      • Unit - ! 0007 <gen> Is attacked
    • Conditions
    • Actions
      • Trigger - Turn off (This trigger)
      • Set Random = (Random integer number between 1 and 3)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Random Equal to 1
        • Then - Actions
          • Unit - Add [] Anthanex (Event 1) to ELITE_BOSS
          • Unit - Order ELITE_BOSS to Human Mountain King - Activate Avatar
          • Wait 15.00 seconds
          • Unit - Remove [] Anthanex (Event 1) from ELITE_BOSS
          • Wait 15.00 seconds
          • Trigger - Turn on (This trigger)
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • Random Equal to 2
            • Then - Actions
              • Unit - Add [] Anthanex (Event 2) to ELITE_BOSS
              • Wait 15.00 seconds
              • Unit - Remove [] Anthanex (Event 2) from ELITE_BOSS
              • Wait 15.00 seconds
              • Trigger - Turn on (This trigger)
            • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • Random Equal to 3
                • Then - Actions
                  • Unit - Add [] Anthanex 3 (Event 3) to ELITE_BOSS
                  • Unit - Order ELITE_BOSS to Undead Necromancer - Unholy Frenzy ELITE_BOSS
                  • Wait 15.00 seconds
                  • Unit - Remove [] Anthanex 3 (Event 3) from ELITE_BOSS
                  • Wait 15.00 seconds
                  • Trigger - Turn on (This trigger)
                • Else - Actions
Then check if the fatal error still occurs...
 
Status
Not open for further replies.
Top