×

Langue

Fermer
Atelier 801
  • Forums
  • Dev Tracker
  • Connexion
    • English Français
      Português do Brasil Español
      Türkçe Polski
      Magyar Română
      العربية Skandinavisk
      Nederlands Deutsch
      Bahasa Indonesia Русский
      中文 Filipino
      Lietuvių kalba 日本語
      Suomi עברית
      Italiano Česky
      Hrvatski Slovensky
      Български Latviešu
      Estonian
  • Langue
  • Forums
  • /
  • Transformice
  • /
  • Discussions
  • /
  • Sync explained
Sync explained
Bolodefchoco
« Sénateur »
1623374340000
    • Bolodefchoco#0095
    • Profil
    • Derniers messages
    • Tribu
#1
  6

How the sync works:


Game objects such as shaman items should be on the same spot on the screen for every player. This is necessary to enable the same gameplay experience for everybody. Therefore one player is chosen (people usually call this player the sync) to keep track of all objects' positions & velocities throughout the current round. This means that this player's game recognizes players interacting with those objects (for example pushing a box around). All objects' positions & velocities are sent every 500ms from this player to all other players in the room. For this player all objects move smoothly around, without lagging. For all other players the objects "jump" into their new position & velocities once they received the updated information from the sync.

Why the sync is needed:


Players have lag (depending on their ping). If the game would not synchronize the objects every 500ms among all players, the objects would be at different positions for each player, resulting in a different gameplay experience for everybody. For example player A would see a box close to a high ledge so they can jump from the box to the ledge, but for player B the box is still far away from the ledge so they can not jump there. This would be unfair and chaotic. The sync is taking care that the box is at the same position for everybody. Since the objects are updated only every 500ms and the sync player might have a bad internet connection the objects can still lag, there is no way to solve this problem.

How the sync is chosen:


http://i.imgur.com/xYSinxF.png



Longest cumulative connection time
is not the connection time of your current session. It is also not the time since you made your account. It is the time that your profile has been connected to the server in total. Imagine you have a stopwatch that you start when you first log in to the game. If you log out you pause the stopwatch. When you log in again, you start the stopwatch and it keeps going from the time when you logged out. This time is the cumulative connection time. (It's comparable to the steam function which tells you how long you played a certain game.) You can check your own cumulative connection time by writing /time into the chat.
The flowchart says blue shaman because of the possibility of double shaman maps.

Credits to Epoki#0095 for the original thread! You can find the post at https://atelier801.com/topic?f=6&t=1535&p=182#m3623

Dernière modification le 1623430080000
Kanskje
« Sénateur »
1623375660000
    • Kanskje#5156
    • Profil
    • Derniers messages
    • Tribu
#2
  0
Woah amazing. I always wondered how it works http://img.atelier801.com/3524f143.png
Lemonpowerz
« Citoyen »
1623684600000
    • Lemonpowerz#0000
    • Profil
    • Derniers messages
#3
  1
Oohh, I thought it was based on the player with the highest score, but longevity of a connection to the server does not prove stability. Why can't it be the person with the best ping to ensure they don't miss the 500ms threshold as often? And, If a sync leaves, I'm assuming a new one is chosen? The reason I say this is because sometimes during the event or certain mech maps items seem to fling around everywhere anyways. What do you think would be a better system to this?
King_seniru
« Censeur »
1623846060000
    • King_seniru#5890
    • Profil
    • Derniers messages
    • Tribu
#4
  0
Really useful topic, thanks a lot!

Lemonpowerz a dit :
And, If a sync leaves, I'm assuming a new one is chosen?

I just checked, and yes, it chooses a new one (according to the sync choosing algorithm most possibly)
  • Forums
  • /
  • Transformice
  • /
  • Discussions
  • /
  • Sync explained
© Atelier801 2018

Equipe Conditions Générales d'Utilisation Politique de Confidentialité Contact

Version 1.27