• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

Time of day trigger crash

Status
Not open for further replies.
Level 10
Joined
Jun 15, 2022
Messages
96
1669560864604.png

IDK why, but then game time becomes 6.00 - game crashes like alt+f4 without errors. Not critical for my map, if i turns off trigger, but.... why?!
 
 
Just tried this myself and using wait this way does work (tested on reforged v1.33)
  • Untitled Trigger 002
    • Events
      • Game - The in-game time of day becomes Equal to 7.00
    • Conditions
    • Actions
      • Wait 0.00 seconds
      • Game - Set time of day speed to 300.00% of the default speed
My guess is that changing time of day or time of day speed causes all game time-related events to be reevaluated and possibly activated/fired again.
I imagine the following scenario:
1) Event - Time of day hits 7:00
2) Action - Time of day speed is changed
3) Previous step causes reevaluation of all game-time events
4) When reevaluation is finished, it is still 7:00 -> the game can fire the event in step 1 once again.

The above would repeat over and over, leading to infinite loop, resulting in game crash.
But this is just my guess, I have no proof or anything.
 
But this is just my guess, I have no proof or anything.
Modify your trigger as below. If the crash is avoided then you're right:
  • Untitled Trigger 002
    • Events
      • Game - The in-game time of day becomes Equal to 7.00
    • Conditions
      • BOOLEAN equal to False
    • Actions
      • Wait 0.00 seconds
      • Set BOOLEAN = True
      • Game - Set time of day speed to 300.00% of the default speed
      • Set BOOLEAN = False
 
Status
Not open for further replies.
Back
Top