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 haven't received your rank award? Then please contact the administration.
    Dismiss Notice
  3. Fill your cup and take your pick among the maps best suited for this year's Hive Cup. The 6th Melee Mapping Contest Poll is up!
    Dismiss Notice
  4. Shoot to thrill, play to kill. Sate your hunger with the 33rd Modeling Contest!
    Dismiss Notice
  5. Do you hear boss music? It's the 17th Mini Mapping Contest!
    Dismiss Notice
  6. 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:
    255
    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:
    255
    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:
    411
    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,293
    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:
    255
    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