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

Weather effects: causes reforged graphics to crash?

Status
Not open for further replies.
Level 7
Joined
Jun 1, 2009
Messages
104
Hi!
It seems I've got an issue: map crashes for users with Reforged + weather effects enabled. But it works fine with classic graphics.
Maybe some weather effects are known as glitchy for Reforged? (Already googled it, but can't find the info yet).

P.S: Yeah, there is already an option to disable it, and weather is not mandatory in the multiplayer, but still, I would like to know more.
Thanks!

triggers:

  • Weather
    • Events
    • Conditions
      • Weather_Bool Equal to True
    • Actions
      • -------- Round 1 --------
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Round Greater than 0
          • Round Less than 8
        • Then - Actions
          • Trigger - Turn on Lightnings <gen>
          • Environment - Create at (Playable map area) the weather effect Ashenvale Rain (Light)
          • Set VariableSet Weather = (Last created weather effect)
          • Environment - Turn Weather On
          • Environment - Set sky to Lordaeron Fall Sky
          • Skip remaining actions
        • Else - Actions
      • -------- Round 8 --------
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Round Greater than or equal to 8
          • Round Less than 10
        • Then - Actions
          • Environment - Turn Weather Off
          • Environment - Remove Weather
          • Environment - Create at (Playable map area) the weather effect Ashenvale Rain (Heavy)
          • Set VariableSet Weather = (Last created weather effect)
          • Environment - Turn Weather On
          • Environment - Set sky to Lordaeron Fall Sky
          • Skip remaining actions
        • Else - Actions
      • -------- Round 10 --------
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Round Greater than or equal to 10
          • Round Less than 14
        • Then - Actions
          • Trigger - Turn off Lightnings <gen>
          • Environment - Turn Weather Off
          • Environment - Remove Weather
          • Environment - Set sky to Ashenvale Sky
          • Skip remaining actions
        • Else - Actions
      • -------- Round 11 and 52 --------
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Round Equal to 11) or (Round Equal to 52)
        • Then - Actions
          • Environment - Turn Weather Off
          • Environment - Remove Weather
          • Environment - Create at (Playable map area) the weather effect Rays Of Light
          • Set VariableSet Weather = (Last created weather effect)
          • Environment - Turn Weather On
          • Environment - Set sky to Ashenvale Sky
          • Skip remaining actions
        • Else - Actions
      • -------- Round 12 --------
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Round Greater than or equal to 12
          • Round Less than 20
        • Then - Actions
          • Environment - Turn Weather Off
          • Environment - Remove Weather
          • Environment - Set sky to Ashenvale Sky
          • Skip remaining actions
        • Else - Actions
      • -------- Round 20 --------
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Round Greater than or equal to 20
          • Round Less than 30
        • Then - Actions
          • Environment - Turn Weather Off
          • Environment - Remove Weather
          • Environment - Create at (Playable map area) the weather effect Rays Of Moonlight
          • Set VariableSet Weather = (Last created weather effect)
          • Environment - Turn Weather On
          • Environment - Set sky to Fogged Sky
          • Skip remaining actions
        • Else - Actions
      • -------- Round 30 --------
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Round Greater than or equal to 30
          • Round Less than 40
        • Then - Actions
          • Environment - Turn Weather Off
          • Environment - Remove Weather
          • Environment - Create at (Playable map area) the weather effect Dungeon White Fog (Light)
          • Set VariableSet Weather = (Last created weather effect)
          • Environment - Turn Weather On
          • Environment - Set sky to Fogged Sky
          • Skip remaining actions
        • Else - Actions
      • -------- Round 40 --------
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Round Greater than or equal to 40
        • Then - Actions
          • Environment - Turn Weather Off
          • Environment - Remove Weather
          • Environment - Create at (Playable map area) the weather effect Dungeon Green Fog (Light)
          • Set VariableSet Weather = (Last created weather effect)
          • Environment - Turn Weather On
          • Environment - Set sky to Barrens Sky
          • Skip remaining actions
        • Else - Actions
      • -------- Round 51 --------
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Round Equal to 51
        • Then - Actions
          • Environment - Turn Weather Off
          • Environment - Remove Weather
          • Environment - Create at (Playable map area) the weather effect Dungeon Red Fog (Light)
          • Set VariableSet Weather = (Last created weather effect)
          • Environment - Turn Weather On
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • BOSS_Active Equal to True
            • Then - Actions
              • Environment - Set sky to Outland Sky
            • Else - Actions
              • Environment - Set sky to Lordaeron Summer Sky
          • Skip remaining actions
        • Else - Actions
  • Initialize Lightning
    • Events
    • Conditions
    • Actions
      • For each (Integer TempInt[50]) from 0 to 8, do (Actions)
        • Loop - Actions
          • Set VariableSet TempPoint[50] = (Random point in Summon Zone <gen>)
          • Special Effect - Create a special effect at TempPoint[50] using Doodads\Cinematic\Lightningbolt\Lightningbolt.mdl
          • Special Effect - Set Scale of (Last created special effect) to 2.50
          • Set VariableSet Weather_Lightning_Eff[TempInt[50]] = (Last created special effect)
          • Custom script: call RemoveLocation(udg_TempPoint[50])
      • -------- Turn OFF --------
      • Trigger - Turn off (This trigger)
  • Lightnings
    • Events
      • Time - Every 1.50 seconds of game time
    • Conditions
      • Weather_Bool Equal to True
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Round Greater than 0) and (Round Less than 11)
        • Then - Actions
          • For each (Integer TEI[13]) from 0 to 8, do (Actions)
            • Loop - Actions
              • Set VariableSet TEI[14] = (Random integer number between 1 and 3)
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • TEI[14] Equal to 1
                • Then - Actions
                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    • If - Conditions
                      • TEI[13] Equal to 0
                    • Then - Actions
                      • Set VariableSet TempPoint[9] = (Random point in (Playable map area))
                    • Else - Actions
                      • Set VariableSet TempPoint[9] = (Random point in Player_Area[TEI[13]])
                  • Special Effect - Set Position of Weather_Lightning_Eff[TEI[13]] to TempPoint[9]
                  • Special Effect - Play Special Effect: Weather_Lightning_Eff[TEI[13]], Animation: Stand
                  • Sound - Play LightningBolt1 <gen> at 100.00% volume, located at TempPoint[9] with Z offset 0.00
                  • Custom script: call RemoveLocation(udg_TempPoint[9])
                • Else - Actions
        • Else - Actions
 
Last edited:
Level 18
Joined
Mar 16, 2008
Messages
721
wow there's a lot going on here, not sure where the crash would be lurking.

i think you are supposed to create all the weather effects early, maybe at map initialization, then just turn them off or on later.
 
Level 7
Joined
Jun 1, 2009
Messages
104
i think you are supposed to create all the weather effects early, maybe at map initialization, then just turn them off or on later.
Pre-loading weather effects? I never thought about that, thanks. But I think it won't help. Crashes happen quite randomly, and never at the moment weather effect is being created. Maybe it's caused by the lightnings. Should check it soon.
 
Level 7
Joined
Jun 1, 2009
Messages
104
try a save with all imported models removed/set to defaults
Thx, but I want to fix the weather first, cause disabling it has solved the problem.
I've found a glitch: weather can't be turned off for the Reforged graphics, while it can be for classic.

Simple test:
  • Melee Initialization
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Environment - Create at (Playable map area) the weather effect Ashenvale Rain (Heavy)
      • Set VariableSet w = (Last created weather effect)
      • Environment - Turn w Off
If reforged graphics are on - there is rain. If classic - there is no rain at all (as it should be). WUT? :ugly:
I wonder, can it cause a desync?

upd: It happens with Ashenvale\Lordaeron - Rain and Northrend - Snow weathers only.
 
Last edited:
Status
Not open for further replies.
Top