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 18th Icon Contest is ON! Choose any ingame unit and give him/her Hero abilities. Good luck to all.
    Dismiss Notice
  4. The Secrets of Warcraft 3 have revealed interesting works. The RESULTS for Abelhawk's Mini-Mapping Contest #15 have come out!
    Dismiss Notice
  5. Contestants are to create a scene set in the Stone Age. Come and see what you can come up with. We wish you the best of luck!
    Dismiss Notice
  6. Colour outside the lines! Techtree Contest #13 is a go. The contest is optionally paired.
    Dismiss Notice
  7. Night Rider gained several songs for his journey. The poll for the 12th Music Contest has started. Check it out!
    Dismiss Notice
  8. Greetings cerebrates, our Swarm needs new spawners that will have numerous children. Join the HIVE's 31st Modeling Contest - Spawners and Spawned! The contest is optionally paired.
    Dismiss Notice
  9. Join other hivers in a friendly concept-art contest. The contestants have to create a genie coming out of its container. We wish you the best of luck!
    Dismiss Notice
  10. 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.

(Solved) Will the new event "Mouse Event Trigger Position" cause desynch for MP?

Discussion in 'The Lab' started by ThisPOT, Aug 11, 2019.

  1. ThisPOT

    ThisPOT

    Joined:
    Feb 23, 2009
    Messages:
    561
    Resources:
    3
    Spells:
    3
    Resources:
    3
    Howdy,

    does anyone know if the new function "Mouse Event Trigger Position" cause desynch for multiplayer?
     
    Last edited: Aug 11, 2019
  2. TriggerHappy

    TriggerHappy

    Code Moderator

    Joined:
    Jun 23, 2007
    Messages:
    3,654
    Resources:
    22
    Spells:
    11
    Tutorials:
    2
    JASS:
    9
    Resources:
    22
    It's synchronized so no it should not cause a desync.
     
  3. BlueSaint

    BlueSaint

    Joined:
    Jun 18, 2012
    Messages:
    2,772
    Resources:
    3
    Tools:
    1
    Spells:
    2
    Resources:
    3
    ^Are there unsynchronized variants?
     
  4. ThisPOT

    ThisPOT

    Joined:
    Feb 23, 2009
    Messages:
    561
    Resources:
    3
    Spells:
    3
    Resources:
    3
    Awesome :)

    -

    You use to be able to fetch the location but it would crash if you used it for anything in multiplayer ^^ (before they added that function)
     
  5. BlueSaint

    BlueSaint

    Joined:
    Jun 18, 2012
    Messages:
    2,772
    Resources:
    3
    Tools:
    1
    Spells:
    2
    Resources:
    3
    It doesn't depend on where it's used? Like this desyncs?
    Code (vJASS):
    local string s = ""
    if GetMouseXLocal() > 0 then
      set s = "MyEffect.mdl"
    endif
    call AddSpecialEffect(s, 0, 0)
     
     
  6. TriggerHappy

    TriggerHappy

    Code Moderator

    Joined:
    Jun 23, 2007
    Messages:
    3,654
    Resources:
    22
    Spells:
    11
    Tutorials:
    2
    JASS:
    9
    Resources:
    22
    Unfortunately, no. Maybe it will be added at some point.
     
  7. BlueSaint

    BlueSaint

    Joined:
    Jun 18, 2012
    Messages:
    2,772
    Resources:
    3
    Tools:
    1
    Spells:
    2
    Resources:
    3
    That's a shame, I was thinking of a multiplayer rhythm game. I hope it's been proposed. Or maybe Blizzard doesn't want bad rep from desyncing custom games.
     
  8. Pyrogasm

    Pyrogasm

    Joined:
    Feb 27, 2007
    Messages:
    2,663
    Resources:
    1
    Spells:
    1
    Resources:
    1
    I fail to see how that's not possible with synched mouse position getters...?
     
  9. BlueSaint

    BlueSaint

    Joined:
    Jun 18, 2012
    Messages:
    2,772
    Resources:
    3
    Tools:
    1
    Spells:
    2
    Resources:
    3
    They introduce latency. I feel like you have to do hit test before networking. If a circle appears at T and you get a perfect score when hitting it before T+50ms and your ping is more than 50ms you'll have to preemptively hit it. And at that point it's no longer a rhythm game, because you have to do input 50ms+ before rhythm.
     
  10. ThisPOT

    ThisPOT

    Joined:
    Feb 23, 2009
    Messages:
    561
    Resources:
    3
    Spells:
    3
    Resources:
    3
    Hmmm like a predictive mode? That does sound nice. If they could add a desynch'd version that synchs "when possible".

    It would have weird gameplay issues tho (like in PoE) where if the ping is off, you're killing the boss while everyone thinks you're in the room behind ^^.... (Would have to be able to chain orders, which would take a lot of work also)
     
  11. BlueSaint

    BlueSaint

    Joined:
    Jun 18, 2012
    Messages:
    2,772
    Resources:
    3
    Tools:
    1
    Spells:
    2
    Resources:
    3
    Maybe I could have a chat command to specify hit-to-mapping offset; '-ping 50' would mean the hit test is done against a map state 50ms in the past.

    Yes and in WC3 you would've DC'd.