• 🏆 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!

This trigger causes a crash

Status
Not open for further replies.
Level 30
Joined
Sep 30, 2008
Messages
1,460
The trigger below is activated when a player destroys a gate. It plays a short intro cinematic for one my maps bosses.

However, towards the end, the game crashes. Perhaps something to do with the 1.24 patch? I was wondering if anyone can see any faults that I'm unware of?

Thanks! :)

  • TP Intro
    • Events
      • Destructible - Gate (Vertical) 0659 <gen> dies
    • Conditions
    • Actions
      • For each (Integer A) from 1 to 6, do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • Inventory_Player_Is_Viewing[(Integer A)] Equal to True
            • Then - Actions
              • Game - Force (Player((Integer A))) to press Escape/Cancel
            • Else - Actions
      • Wait 0.10 seconds
      • Set Heroes[1] = No unit
      • Set Heroes[2] = No unit
      • Set Heroes[3] = No unit
      • Set Heroes[4] = No unit
      • Set Heroes[5] = No unit
      • Set Heroes[6] = No unit
      • Cinematic - Turn cinematic mode On for (All players)
      • Player Group - Pick every player in (All players) and do (Actions)
        • Loop - Actions
          • Camera - Apply Camera 020 <gen> for (Picked player) over 4.00 seconds
          • Camera - Shake the camera for (Picked player) with magnitude 4.00
      • Wait 1.00 game-time seconds
      • Animation - Play Acolyte 0183 <gen>'s Stand Work Gold animation
      • Animation - Play Acolyte 0182 <gen>'s Stand Work Gold animation
      • Animation - Play Acolyte 0215 <gen>'s Stand Work Gold animation
      • Animation - Play Acolyte 0216 <gen>'s Stand Work Gold animation
      • Animation - Play Acolyte 0217 <gen>'s Stand Work Gold animation
      • Wait 2.00 game-time seconds
      • Animation - Play Acolyte 0183 <gen>'s Stand Work Gold animation
      • Animation - Play Acolyte 0182 <gen>'s Stand Work Gold animation
      • Animation - Play Acolyte 0215 <gen>'s Stand Work Gold animation
      • Animation - Play Acolyte 0216 <gen>'s Stand Work Gold animation
      • Animation - Play Acolyte 0217 <gen>'s Stand Work Gold animation
      • Unit - Explode Villager (Female) 0049 <gen>
      • Unit - Explode Villager (Female) 0088 <gen>
      • Unit - Explode Villager (Female) 0052 <gen>
      • Wait 3.00 game-time seconds
      • Animation - Play Acolyte 0183 <gen>'s Stand Work Gold animation
      • Animation - Play Acolyte 0182 <gen>'s Stand Work Gold animation
      • Animation - Play Acolyte 0215 <gen>'s Stand Work Gold animation
      • Animation - Play Acolyte 0216 <gen>'s Stand Work Gold animation
      • Animation - Play Acolyte 0217 <gen>'s Stand Work Gold animation
      • Game - Display to (All players) for 8.00 seconds the text: |cffffb509Thousand ...
      • Special Effect - Create a special effect at (Center of Rect 149 <gen>) using war3mapImported\ExplosionBIG.mdx
      • Unit - Move |cff804040Thousand Pounder|r 0142 <gen> instantly to (Center of Rect 149 <gen>)
      • Wait 0.10 seconds
      • Unit - Explode Acolyte 0183 <gen>
      • Unit - Explode Acolyte 0182 <gen>
      • Unit - Explode Acolyte 0215 <gen>
      • Unit - Explode Acolyte 0216 <gen>
      • Unit - Explode Acolyte 0217 <gen>
      • Wait 0.50 seconds
      • Player Group - Pick every player in (All players) and do (Actions)
        • Loop - Actions
          • Camera - Stop swaying/shaking the camera for (Picked player)
      • Destructible - Close Gate (Vertical) 0659 <gen>
      • Destructible - Make Gate (Vertical) 0659 <gen> Invulnerable
      • Set Heroes[1] = Red_Hero
      • Set Heroes[2] = Blue_Hero
      • Set Heroes[3] = Teal_Hero
      • Set Heroes[4] = Purple_Hero
      • Set Heroes[5] = Yellow_Hero
      • Set Heroes[6] = Orange_Hero
      • Unit - Move Blue_Hero instantly to (Center of Rect 075 <gen>)
      • Unit - Move Red_Hero instantly to (Center of Rect 074 <gen>)
      • Unit - Move Teal_Hero instantly to (Center of Rect 076 <gen>)
      • Unit - Move Purple_Hero instantly to (Center of Rect 077 <gen>)
      • Unit - Move Yellow_Hero instantly to (Center of Rect 078 <gen>)
      • Unit - Move Orange_Hero instantly to (Center of Rect 079 <gen>)
      • Trigger - Turn off (This trigger)
      • Cinematic - Turn cinematic mode Off for (All players)
 
Level 5
Joined
Oct 18, 2009
Messages
149
That's freaky, I crashed once when one of my triggers that would make some units spawn automaticly started.

I think it's a spelling mystake, try to save your current progress as another file then try to re-write it and see if the same thing happens.
 
Level 5
Joined
Oct 18, 2009
Messages
149
Well, I'm not sure. Try revive the gate before you close and make it invulnerable, this may cause a crash? And you got alot of leaks that you should take care off, to make your map run smoother.

Else, I can't really see what will cause a crash... Weird...

Maybe it's the new patch, it messes up many things
 
Level 16
Joined
May 1, 2008
Messages
1,605
Seas =)

Hmm can you tell me when exactly the game crushes?

Because now I can't see any fault in this trigger ...

  • Special Effect - Create a special effect at (Center of Rect 149 <gen>) using war3mapImported\ExplosionBIG.mdx
this can be the problem - maybe some effect error - I don't know because the other stuff looks fine for me ( I didn't look at all leaks you got =) )

Edit: I thought the same thing with the gate - but I tried it couple of times - this isn't the mistake.
 
Level 19
Joined
Aug 16, 2007
Messages
881
Seas =)

Hmm can you tell me when exactly the game crushes?

Because now I can't see any fault in this trigger ...

  • Special Effect - Create a special effect at (Center of Rect 149 <gen>) using war3mapImported\ExplosionBIG.mdx
this can be the problem - maybe some effect error - I don't know because the other stuff looks fine for me ( I didn't look at all leaks you got =) )

Edit: I thought the same thing with the gate - but I tried it couple of times - this isn't the mistake.

Ah, okey. Then we know that the gate isn't the problem. But maybe as you said, it's the effect that causes the problem. We'll never know untill he disables that action and tries it. :)

But if I don't remember wrong... I think I had problems with...

  • Player Group - Pick every player in (All players) and do (Actions)
  • Loop - Actions
  • Camera - Stop swaying/shaking the camera for (Picked player)
...actions such as this, but I don't know. Try to disable actions and find what action causes the crash and add some debug strings. ^^
 
Level 15
Joined
Aug 11, 2009
Messages
1,606
Ah, okey. Then we know that the gate isn't the problem. But maybe as you said, it's the effect that causes the problem. We'll never know untill he disables that action and tries it. :)

But if I don't remember wrong... I think I had problems with...

  • Player Group - Pick every player in (All players) and do (Actions)
  • Loop - Actions
  • Camera - Stop swaying/shaking the camera for (Picked player)
...actions such as this, but I don't know. Try to disable actions and find what action causes the crash and add some debug strings. ^^

You might had problems with it,most of them would be bugs,but NOT crashes.My opinion is that the problem is somewhere else.Maybe a lot of special effects?

P.S you leak.
 
Last edited:
Level 12
Joined
Dec 10, 2008
Messages
850
@PvSvN Gates are a weird thing. They arn't techcniclly "dead" if you break them, and ordering it to close normally, well, closes it.

Also, this leaks a location and an SFX. You might want to check the model to see if it acually can be created by using it as an SFX too.

  • Special Effect - Create a special effect at (Center of Rect 149 <gen>) using war3mapImported\ExplosionBIG.mdx
If it's the models fault, then you'll need to bind it to a unit, and scale it, and create and play the correct animations.
 
Status
Not open for further replies.
Top