1. Updated Resource Submission Rules: All model & skin resource submissions must now include an in-game screenshot. This is to help speed up the moderation process and to show how the model and/or texture looks like from the in-game camera.
    Dismiss Notice
  2. DID YOU KNOW - That you can unlock new rank icons by posting on the forums or winning contests? Click here to customize your rank or read our User Rank Policy to see a list of ranks that you can unlock. Have you won a contest and still havn't received your rank award? Then please contact the administration.
    Dismiss Notice
  3. The Lich King demands your service! We've reached the 19th edition of the Icon Contest. Come along and make some chilling servants for the one true king.
    Dismiss Notice
  4. The 4th SFX Contest has started. Be sure to participate and have a fun factor in it.
    Dismiss Notice
  5. The poll for the 21st Terraining Contest is LIVE. Be sure to check out the entries and vote for one.
    Dismiss Notice
  6. The results are out! Check them out.
    Dismiss Notice
  7. Don’t forget to sign up for the Hive Cup. There’s a 555 EUR prize pool. Sign up now!
    Dismiss Notice
  8. The Hive Workshop Cup contest results have been announced! See the maps that'll be featured in the Hive Workshop Cup tournament!
    Dismiss Notice
  9. Check out the Staff job openings thread.
    Dismiss Notice
Dismiss Notice
60,000 passwords have been reset on July 8, 2019. If you cannot login, read this.

What causes Multiplayer Desyncs?

Discussion in 'Triggers & Scripts' started by Daethz, Apr 25, 2019.

  1. Daethz

    Daethz

    Joined:
    Mar 25, 2008
    Messages:
    199
    Resources:
    1
    Maps:
    1
    Resources:
    1
    I got reports that this caused a desync, is there anything wrong with this?

    • Player - Player 1 (Red) types a chat message containing -color as A substring
    • Player Group - Pick every player in (Player group((Triggering player))) and do (Actions)
      • Loop - Actions
        • Set Colorpick = (Picked player)
        • Player Group - Pick every player in (All players) and do (Actions)
          • Loop - Actions
            • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
              • If - Conditions
                • (Entered chat string) Equal to -color red
                • (Color of (Picked player)) Not equal to Red
              • Then - Actions
                • Player - Change color of Colorpick to Red, Changing color of existing units
                • Game - Display to (Player group((Picked player))) for 2.00 seconds the text: ((Name of (Triggering player)) + has just changed their player color to Red!)
              • Else - Actions
                • Do nothing

    Theres a event for every player slot and one of these for every color.
     
    Last edited: May 1, 2019
  2. Daethz

    Daethz

    Joined:
    Mar 25, 2008
    Messages:
    199
    Resources:
    1
    Maps:
    1
    Resources:
    1
    Or could things like this cause a desync, if this unit is dead and removed from the game it is still part of the job trigger when you obtain the job, could calling on changing the ownership of a nonexistant unit cause desyncs?
    yet this is part of all loaps and i have never heard of this caliber of desyncs, if it did i could add them all to unit groups and have it give ownership of the unit group and have them removed from the unit group after the job is obtained for the first time, other than that idk.
    • Unit - Change ownership of Officer 0038 <gen> to (Owner of (Triggering unit)) and Change color
     
    Last edited: May 1, 2019
  3. DD_legionTN

    DD_legionTN

    Joined:
    Dec 19, 2012
    Messages:
    410
    Resources:
    0
    Resources:
    0
    Please refrain from multiple posting, use edit instead. From site rules :
    Also, when posting GUI trigger, use [trigger]GUI trigger here[/trigger] tag, not [code] tag.


    Back to topic :
    The trigger you posted will not cause desync. Why do you have double pick player actions in the first place? Also, what Warcraft 3 version are your friends playing on?
     
  4. Wrda

    Wrda

    Joined:
    Nov 18, 2012
    Messages:
    1,098
    Resources:
    3
    Maps:
    1
    Spells:
    2
    Resources:
    3
    Yes it's a fact when they brought new patches they introduced more stuff but also broke a lot of other crap, and many more desyncs were happening. Maybe try to send your map to blizzard so they can fix it with next patch, Idk, seems like it worked with some people.
     
  5. Daethz

    Daethz

    Joined:
    Mar 25, 2008
    Messages:
    199
    Resources:
    1
    Maps:
    1
    Resources:
    1
    I would imagine they are playing the latest live version if they are playing on battlenet.

    How do you submit a map to blizzard?

    The first one selects the triggering player, the second one selects all players and makes sure they aren't using that color
     
    Last edited: May 1, 2019