• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[Trigger] HELP Trigger crash

Status
Not open for further replies.
Level 17
Joined
Apr 3, 2010
Messages
1,101
Okay basically for some unknown reason the map is crashing at start . yes i know i have leaks and i know its a bit messy but if u have the time could you tell me whats wrong with it cause i been pulling my hair out trying to figure what ive done wrong to cause the crash. If you are able to help please fix it or notify me on which part or section or my triggers contain the bug/error ty for your time the Map is attached below
Ty
 

Attachments

  • The end of oblivion v0.8.w3x
    2.7 MB · Views: 37
Level 20
Joined
Jul 6, 2009
Messages
1,885
I've checked your map's triggers and noticed that trigger "Order to attack gates Copy" has an infinite loop.
  • Order toa ttack gates Copy
    • Events
      • Time - Elapsed game time is 5.00 seconds
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • And - All (Conditions) are true
            • Conditions
              • (Elven Gate (Horizontal) 0635 <gen> is dead) Equal to True
              • (City Entrance 0641 <gen> is dead) Equal to True
              • (City Entrance 0640 <gen> is dead) Equal to True
              • (City Entrance 0639 <gen> is dead) Equal to True
        • Then - Actions
          • Trigger - Turn off Order toa ttack gates <gen>
          • Trigger - Turn on Zombie Ai 1 <gen>
          • Trigger - Run Zombei ai 2 <gen> (checking conditions)
          • Trigger - Run Zombie Ai 3 <gen> (checking conditions)
        • Else - Actions
          • Trigger - Run (This trigger) (checking conditions)
The last action
  • Trigger - Run (This trigger) (checking conditions)
causes the bug. After 5 seconds,trigger runs and if conditions aren't true (which happens at start),the trigger will run again and this will happen over and over again.
To fix it,replace old trigger with this:
  • Order toa ttack gates Copy
    • Events
      • Time - Every 5.00 seconds of game time
    • Conditions
      • (Elven Gate (Horizontal) 0635 <gen> is dead) Equal to True
      • (City Entrance 0641 <gen> is dead) Equal to True
      • (City Entrance 0640 <gen> is dead) Equal to True
      • (City Entrance 0639 <gen> is dead) Equal to True
    • Actions
      • Trigger - Turn off Order toa ttack gates <gen>
      • Trigger - Turn on Zombie Ai 1 <gen>
      • Trigger - Run Zombei ai 2 <gen> (checking conditions)
      • Trigger - Run Zombie Ai 3 <gen> (checking conditions)
 
Level 17
Joined
Apr 3, 2010
Messages
1,101
Ty so much that seemed to do the trick :D Now i can get back to map making with some spirit till the next problem arises :p +rep
 
Status
Not open for further replies.
Top