Triggers Take Too Long

B

BKnight760

Guest
Okay, so my new level that I am making aparently has too many triggers or something. When I run the map, it sometimes takes up to a minute for it to finish processing all the qued tiggers. What can I do to fix this? I attached the map just in case you wanted to see what I mean...
 

Attachments

  • circle of power defense.w3m
    80.8 KB · Views: 447
S

Swilo

Guest
Mayeb if I knew what a qued trigger is I could help.
Perhaps it's trying to do too much at once and your comp is getting bogged down?
 
B

BKnight760

Guest
Here's the deal...

I have several triggers that cue every 1.00 or 5.00 seconds... but the events that take place inside them take more than 1.00 or 5.00 seconds to complete. So by the time the trigger has finished, it has already cued the same trigger like 5 more times. So is there some way that i can make all my actions go faster?
 
S

Swilo

Guest
What are the actions? Some things like camera movements you can speed up.
I'm thinking you would simply have to increase the delay between triggers so that they don't overlap.
 
B

BKnight760

Guest
Ok, here is one such Trigger, that dosn't seem to run fast enough. I think that on its own, it might run fine, however, it runs with aproximately 34 other periodic time triggers and several other action triggers(10). So is it better to have a lot of action triggers rather than periodic time triggers?


Events
+Time - Every 5.00 seconds of game time

Conditions
+Wave = 1
+NumberOfAttackers = 0
+Wavestarted = 1

Actions
+Unit - Create ((number of players in (allies of player 1 [red]))xwave) Grunt for player 12 [brown] at center of [region1of8] facing center of playable map area
+ Next 7 actions are same as above, but for a different location on the map.

+Unit Group - order (Units owned by (player 12 [brown])) to move to (center of playable map area)
+Set NumberOfAttackers = (number of units in (units owned by player12 [brown])
+Set WaveStarted = 1
 
N

Neo_HoJo

Guest
Ah yes, I have had this problem before. The solution is simple. You need to combine your triggers. When you have 2 triggers that fire every 3 seconds, or so, instead make them one trigger. This will help your map think. Also, with your waves, instead of doing Time-Periodic, You need to do either Time-elapsed game time, or have no conditions, and activate them from a remote trigger. One last tip, if your time-periodic triggers have conflicting conditions, put the conditions in an If/Than/Else gate, and from there, remember and/or gates!
 
B

BKnight760

Guest
Cool, cool...

Alright, combining the triggers make sense... as long as I have no conditions on any of them. Alright, good deal. I didn't think too much about doing that. I was attacking the problem from the wrong perspective. I was trying to lengthen the time-periodic events so that they would occour less often... which really wasnt helping at all. I'll try to create if/then/else situations, but they are just a pain to set up when creating maps for 10 players and have to check all of them... yuck. Anyway, I'll get back to you on that!
 
B

BKnight760

Guest
Effective!

Yes, combinig triggers helps a lot on speeding up the trigger queue... However, I suggest limiting the use of actions that check every unit a player has... such as "Unit - Count units in unit group." Those take a long time for the game to evaluate. But above all else, what works nicely is to have a trigger that turns your time - periodic triggers on and off. That way they are not running needlessly. Make sense? Anyway, that's what I did and it seems to be working great for the moment.

However, does anyone know how many If/Then/Else actions you can have in one trigger before it starts slowing it down? Or are those just so fast they are negligable?
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • The Helper The Helper:
    So what it really is me trying to implement some kind of better site navigation not change the whole theme of the site
  • Varine Varine:
    How can you tell the difference between real traffic and indexing or AI generation bots?
  • The Helper The Helper:
    The bots will show up as users online in the forum software but they do not show up in my stats tracking. I am sure there are bots in the stats but the way alot of the bots treat the site do not show up on the stats
  • Varine Varine:
    I want to build a filtration system for my 3d printer, and that shit is so much more complicated than I thought it would be
  • Varine Varine:
    Apparently ABS emits styrene particulates which can be like .2 micrometers, which idk if the VOC detectors I have can even catch that
  • Varine Varine:
    Anyway I need to get some of those sensors and two air pressure sensors installed before an after the filters, which I need to figure out how to calculate the necessary pressure for and I have yet to find anything that tells me how to actually do that, just the cfm ratings
  • Varine Varine:
    And then I have to set up an arduino board to read those sensors, which I also don't know very much about but I have a whole bunch of crash course things for that
  • Varine Varine:
    These sensors are also a lot more than I thought they would be. Like 5 to 10 each, idk why but I assumed they would be like 2 dollars
  • Varine Varine:
    Another issue I'm learning is that a lot of the air quality sensors don't work at very high ambient temperatures. I'm planning on heating this enclosure to like 60C or so, and that's the upper limit of their functionality
  • Varine Varine:
    Although I don't know if I need to actually actively heat it or just let the plate and hotend bring the ambient temp to whatever it will, but even then I need to figure out an exfiltration for hot air. I think I kind of know what to do but it's still fucking confusing
  • The Helper The Helper:
    Maybe you could find some of that information from AC tech - like how they detect freon and such
  • Varine Varine:
    That's mostly what I've been looking at
  • Varine Varine:
    I don't think I'm dealing with quite the same pressures though, at the very least its a significantly smaller system. For the time being I'm just going to put together a quick scrubby box though and hope it works good enough to not make my house toxic
  • Varine Varine:
    I mean I don't use this enough to pose any significant danger I don't think, but I would still rather not be throwing styrene all over the air
  • The Helper The Helper:
    New dessert added to recipes Southern Pecan Praline Cake https://www.thehelper.net/threads/recipe-southern-pecan-praline-cake.193555/
  • The Helper The Helper:
    Another bot invasion 493 members online most of them bots that do not show up on stats
  • Varine Varine:
    I'm looking at a solid 378 guests, but 3 members. Of which two are me and VSNES. The third is unlisted, which makes me think its a ghost.
    +1
  • The Helper The Helper:
    Some members choose invisibility mode
    +1
  • The Helper The Helper:
    I bitch about Xenforo sometimes but it really is full featured you just have to really know what you are doing to get the most out of it.
  • The Helper The Helper:
    It is just not easy to fix styles and customize but it definitely can be done
  • The Helper The Helper:
    I do know this - xenforo dropped the ball by not keeping the vbulletin reputation comments as a feature. The loss of the Reputation comments data when we switched to Xenforo really was the death knell for the site when it came to all the users that left. I know I missed it so much and I got way less interested in the site when that feature was gone and I run the site.
  • Blackveiled Blackveiled:
    People love rep, lol
    +1
  • The Helper The Helper:
    The recipe today is Sloppy Joe Casserole - one of my faves LOL https://www.thehelper.net/threads/sloppy-joe-casserole-with-manwich.193585/

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top