System Sound Resync

Vicboy

Ultra Cool Member
Reaction score
44
Did you know, if you made a map with its focus on song... One lag, pause or [Saving Game...] can desync it from the map?

That's why I made this system for you to use in those kinds of maps.

Okay, so, this idea came while making my map.

I was making a map based on a song and traps enabling when the song reaches a point and I always feared this..

What if someone suddenly lagged and cause the song to desync the current events?

Then I made this system!

Trigger:
  • Start
    • Events
      • Player - Player 1 (Red) types a chat message containing start as An exact match
    • Conditions
    • Actions
      • Sound - Play LALLALALAL <gen>
      • Trigger - Turn on Milli Second <gen>
      • Trigger - Turn on Resync <gen>
      • Trigger - Turn on Periodic Effect <gen>
      • Trigger - Turn off Start <gen>


Trigger:
  • Periodic Effect
    • Events
      • Time - Every 2.00 seconds of game time
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Execution count of (This trigger)) Equal to 30
        • Then - Actions
          • Cinematic - Clear the screen of text messages for (All players)
          • Game - Display to (All players) for 1000000000.00 seconds the text: 60 seconds are up. ...
          • Trigger - Turn off (This trigger)
          • Trigger - Turn off Milli Second <gen>
          • Trigger - Turn off Resync <gen>
        • Else - Actions
      • Special Effect - Create a special effect at (Center of (Playable map area)) using Abilities\Spells\Human\ThunderClap\ThunderClapCaster.mdl

Trigger:
  • Resync
    • Events
      • Player - Player 1 (Red) skips a cinematic sequence
    • Conditions
    • Actions
      • Sound - Stop music Immediately
      • Sound - Play LALLALALAL <gen>, skipping the first ((Real((Execution count of Milli Second <gen>))) / 100.00) seconds and fading in over 0.00 seconds

Trigger:
  • Milli Second
    • Events
      • Time - Every 0.01 seconds of game time
    • Conditions
    • Actions


http://epicwar.com/maps/97732/
 

Attachments

  • Sound%20Resync.w3x
    229.7 KB · Views: 258

Sevion

The DIY Ninja
Reaction score
413
Apparantly, "here" means different site, huh?

What is the point of the trigger "Milli Second"?
 

Jesus4Lyf

Good Idea™
Reaction score
397
It's a timer used in Resynch. It's kind of clever.

Better question:
>Special Effect - Create a special effect at (Center of (Playable map area)) using Abilities\Spells\Human\ThunderClap\ThunderClapCaster.mdl
Whyyy? You're spamming memory leaks and unwanted effects.

Have you tried this online? Does it actually work? Could be kind of neat. :) Don't know how useful it is in its current form, but for cinematics, this is nearly exactly what I needed once.
 

Vicboy

Ultra Cool Member
Reaction score
44
It's a timer used in Resynch. It's kind of clever.
Thank you :)

Better question:
>Special Effect - Create a special effect at (Center of (Playable map area)) using Abilities\Spells\Human\ThunderClap\ThunderClapCaster.mdl
Whyyy? You're spamming memory leaks and unwanted effects.
It's just to present if the game is desynced with the sound.

Have you tried this online? Does it actually work? Could be kind of neat. :) Don't know how useful it is in its current form, but for cinematics, this is nearly exactly what I needed once.
I have tried it online (Not this system but a game) and it works like a charm. The downside to it is that it has a sudden pause (for a millisecond) when it corrects the sound with the game.

The only bugs I've noticed is an additional 0.001 (not hundredth...) second to the timer every 20 seconds and a small pause when resyncing it. (That's why you resync it once only or by player interaction)

And also, the reason why you don't see multiplayer musical maze maps is because a desync can totally ruin it.
 

Jesus4Lyf

Good Idea™
Reaction score
397
>multiplayer musical maze maps
I see them all the time, and strongly dislike them. =]

Problem is, this isn't really a system. It's some sort of script. The sound is hard coded. What if you want two sounds? Have to copy paste it all again. I dunno. I'd be inclined for this to be written in JASS instead with a simple PlaySoundSync(sound whichSound) functionality. And have it automatically resynch. <_< *Shrugs*
 

Sevion

The DIY Ninja
Reaction score
413
You can make Jass functions???

Zomg?

Yes...? Look at all the JASS things people have made like the Knockback System or Recipe or Save/Load.

You really think that the command to "Save" a unit and all his stuff is really built in to WC3? They had to make it ;)
 

Romek

Super Moderator
Reaction score
964
I lol'd at post #3.
Read #2 again, Vicboy.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top