Questions tagged [synchronization]

A process of maintaining similar game state across players and/or servers, thus giving all players same info about current sutuation on playfield.

Filter by
Sorted by
Tagged with
0 votes
0 answers
17 views

How to synchronize pausing and unpausing game using Photon Unity Networking (PUN)

I need some help figuring out how to synch pausing and unpausing the game to other players. I have a UI button where players can pause using the code I have posted below. Pausing works fine with all ...
Ryan Cat's user avatar
0 votes
1 answer
49 views

How to sync ticks(Frames) between two peers?

I have a peer to peer game where both clients are running their own frame simulation. I'd like to sync the frame ticks so both peers know eachother's frame. But I"m having a bit of issue with ...
Kayla's user avatar
  • 105
1 vote
0 answers
45 views

How to control only own animations while still seeing animations of remote players

I tried using : ...
Cei's user avatar
  • 863
0 votes
1 answer
133 views

How achievable is determinism when client and server run on different hardware?

Soon I'll have to start implementing networking for a game. To be able to simulate the game on both client and server and have no deviation, simulations need to be deterministic. But how can any ...
Maxgmer's user avatar
  • 105
0 votes
1 answer
40 views

Synchronizing in-game clock vs real world clocks across servers started at different times

Regardless if you know how Roblox works or if you know Lua syntax, I just need an algorithm/equation here. Currently, at the start of each server, I reference the seconds of a centralized clock since ...
Brycki's user avatar
  • 1
1 vote
2 answers
217 views

Interpolating server updates with client prediction: how to actually find time variable

I'm working on a 3D web game with client-side prediction, etc. I have implemented interpolation for my entities, but it seems a bit laggy sometimes even on localhost. First I will describe the ...
Pumpudu's user avatar
  • 11
1 vote
1 answer
127 views

How to replicate damage between users in a MUD

I'm working on a text-based MUD (Multi-User-Dungeon) in C++, but the most important thing in a MUD is the MU (Multi-User). Is there any easy way to implement these mechanics? I want a player on one ...
Henery Johnson's user avatar
2 votes
1 answer
96 views

Syncing chest content in a host-client multiplayer setup

I'm modding a FPS game by adding a 2 player co-op multiplayer to an otherwise completely single player game. One game instance acts as the host and I try to implement the synchronization of the ...
akarnokd's user avatar
  • 231
0 votes
0 answers
202 views

Latency handling methods in a fast-paced multiplayer game with moving objects

I am working on a real-time multiplayer soccer game. Currently, on my game, I created an architecture like that: Every client has a copy of the game state, also the server has it too. Clients send ...
Mustafa Akdeniz's user avatar
2 votes
1 answer
545 views

How to synchronize the main thread (rendering, 60 FPS) with the game logic thread (10 FPS)

I wrote some games years ago, and they were always in sync with the main thread. So, for example if the monitor refresh rate is 60 Hz it would look like below. ...
Jarno's user avatar
  • 21
1 vote
1 answer
438 views

Network mechanism for an RTS multiplayer game

I'm writing a real time strategy game in Rust. In this game each player controls one of two armies facing off on a battle zone. To better understand the gameplay, my project is an open source version ...
bux's user avatar
  • 137
1 vote
1 answer
71 views

Multiplayer bullet trails

The problem is as follows: A receives the position of B as 40,40. Now, obviously this position is already out of date. On Bs screen B is of course already at 50, 40. Now A shoots at an angle from 15,0 ...
mroman's user avatar
  • 111
0 votes
1 answer
405 views

Could not find SyncVar hook

I've been following a guide on building a 2D MMORPG, and I ran into a problem when creating a health bar for my players. I get this error message: Could not find hook for 'CurrentHealth', hook name '...
Iyaad Saley's user avatar
0 votes
0 answers
34 views

Delayed rendering of object sprite

I'm trying to replicate an odd feature of an 2.5D online Fighting Game named Grand Chase - that I believe it's is made to hide the latency between players. However, I do not know what exactly is this ...
Luiz Henrique's user avatar
0 votes
0 answers
30 views

Sync issues with replaying movement

I am creating a networked game and having issues with keeping positions synced between multiple clients. Essentially what I have happening is one client's movement to replaying on another routed ...
Charlie's user avatar
  • 101
0 votes
1 answer
488 views

Why players who join late can't see other people data?

I want to show the name of the players above their head but I have a problem where people joining late doesn't get other players' name. For example: Player 1 joins to the server with the name Peter. ...
shlime's user avatar
  • 23
2 votes
0 answers
43 views

Synch clocks between client and server in Java

We're developing a simple boggle game in Java for a college project (purely academic purposes, so we're trying to keep it simple). Our application is composed by a client portion and a server portion. ...
IfLoveWasBornToDie92's user avatar
5 votes
1 answer
892 views

How does an FPS like Overwatch have client time run ahead of the server?

In watching the GDC talk about Overwatch netcode, it mentions that the client is always ahead of the server, that the "current tick" on the server is behind that of the client. From their ...
Nairou's user avatar
  • 584
0 votes
1 answer
657 views

How to Sync the Location After Getting Up from Ragdoll?

I am currently working on multiplayer fighting game and my game will have an anim->ragdoll when the player is knocked out and be able to getting up from it. My problem now is ragdoll is making my ...
Mira's user avatar
  • 139
0 votes
0 answers
268 views

Client/Server state synchronization for RTS

How can I perform state synchronization using client/server networking in an RTS similar to Starcraft 2 and Planetary Annihilation? I'm assuming the server has to do some sort of rewinding time to ...
Nairou's user avatar
  • 584
0 votes
0 answers
132 views

Synchronizing clients

I have a server-client setup where each client has a number of screens attached, and the screens together form the display. As such, the visuals displayed by each client needs to be roughly in sync. ...
user avatar
4 votes
2 answers
852 views

What is transmitted over the network during multiplayer first person shooter games?

In games like Half-Life 2, Team Fortress 2 etc, when you play against other players online, your local game communicates with a game server. If you've built one of these games, what sort of ...
IanT8's user avatar
  • 141
2 votes
0 answers
32 views

Electing a host with WEBRTC

This is similar to Host Migration (P2P) with RTMFP and AS3 I have a webRTC chat room, initially used Twilio and switching to skyway, the situation is that I have a bunch of peers with data broadcast ...
exrhizo's user avatar
  • 21
3 votes
1 answer
166 views

How can I standardize ping?

I hear pros playing Fortnite that have 20-50 ping complain that they cannot perform as well as pros with 0 ping due to wall taking, etc. It's easy to think that a 20ms ping difference is negligible ...
Rage's user avatar
  • 131
0 votes
0 answers
440 views

How can I build an authoritative server to handle players actions taking into consideration scalability of solution

I've started with Unity3D to develop a multiplayer game similar to world of tanks, it's using authoritative server and I was able to sync movements between several clients. I'm using c# and on the ...
Floji's user avatar
  • 101
2 votes
0 answers
1k views

How to sync entities in an ECS game?

I'm wondering how to engineer a client server sync of entities in a multiplayer game which is using an ECS. When the server changes some values of the components of an entity, I thought the best ...
EchtFettigerKeks's user avatar
0 votes
1 answer
61 views

Avoid players getting stuck by placing items in the same place

Let's assume a multiplayer game of two players. These two players have to place six elements at six different positions. The order or exact place does not matter. As the items are placed correctly, ...
Ben's user avatar
  • 103
3 votes
1 answer
229 views

Multiplayer oriented game engine object (C++)

for a personal project i started making a 2d game engine in C++ that uses sfml. The idea is having base "game object" classes from which a game will inherit. Right now i have: Game_engine class ...
Barnack's user avatar
  • 141
1 vote
1 answer
189 views

How to control JavaFX's animations execution order when animations "queue" is being altered in run-time?

What is the proper way of handling synchronization between GUI animations' execution order and the user's dynamic input? More specifically, I would like to know how to enforce some logical ...
Julian Broudy's user avatar
0 votes
1 answer
78 views

Synchronize points from UI and server

I am sorry in advance if it's not perfectly clear. I would like to make a game with let's say the following map (in real it will be a 3D globe). Now this map contain point, and each point is a place ...
Crocsx's user avatar
  • 105
1 vote
1 answer
220 views

Is it always necessary to synchronize rendering in a game loop?

When writing a game loop from scratch in java for an android game applications, it is very common in many tutorials I have read that the keyword synchronized is used to synchronize update and ...
Alex Bükk's user avatar
1 vote
0 answers
50 views

Achieving smooth movement curves & correct collision detection with a google app realtime multiplayer game server

I'm an hobbist game developer. I'm trying to make a clone of a game like this: http://superhex.io/ to experiment with multiplayer online. First of all I'm not sure if there is a better way to ...
Emanuele Paolini's user avatar
1 vote
1 answer
206 views

Keep world changes in sync in client/server architecture

Imagine having a big room (4000w x 4000h) which contains players and items (world objects). The room is spatially partitioned in a 10 x 10 grid for collision detection and changes in the viewport of ...
XverhelstX's user avatar
0 votes
0 answers
124 views

Eager or lazy loading synchronization

Imagine joining a room with 100 (moving) players and a lot of items and being assigned a random position in the room (read: agar.io). At the moment I'm eager loading the other players and items and ...
XverhelstX's user avatar
2 votes
1 answer
1k views

Implementing game synchronization between clients and server

I'm creating a small online multiplayer game where I have multiple thin clients and an authoritative server. Both the client and the server have a fixed game loop. Now I have a game entity with the ...
XverhelstX's user avatar
1 vote
1 answer
91 views

Why is my client's body drifting even after using data from the server, and how do I fix it?

I am trying to use Box2d on nodejs server with libGDX client. What I am trying to apply is authoritative server model so clients are just sending input data to server, server is running simulation and ...
doggodonger's user avatar
1 vote
1 answer
280 views

NodeJS client gameloop running slightly faster than server gameloop

So I'm working on a real time multiplayer game in NodeJs (Client and Server). Both loops handle the same "physics" (movement at a constant rate) and both are running at 40hz or 40 times per second. I ...
DanteVentura's user avatar
0 votes
1 answer
720 views

clock synchronization

Is there something I'm not seeing or there is a flow in this algorithm(which everyone is referring to) http://www.mine-control.com/zack/timesync/timesync.html Assumption 1: When I say a is ...
Sil's user avatar
  • 103
1 vote
2 answers
128 views

Character appearance synchronization in open world multiplayer game

I am working on a multiplayer open world game where you can equip handhelds and armor pieces. In my architecture, there are clients and an authoritative server. Every equipable item is crafted by a ...
Alakanu's user avatar
  • 705
1 vote
1 answer
269 views

Network limitation in multiplayer game

I have a multiplayer cooperative game (PVE) in where there can be up to 200 enemies at a time (somewhere around that) and I was wondering how devs generally synchronize these? I already have packets ...
justanotherdev's user avatar
0 votes
1 answer
286 views

Sync a file across multiple devices

How can a file be synced across multiple devices? I am able to store the data locally using binary serialization, but the user should have the ability to access it on any device at any time. Is this ...
Imagin's user avatar
  • 155
0 votes
1 answer
373 views

The state that is synced when a window is broken in a FPS game

In order to better understand how state syncing works in games, I wanted to pose a specific example. Say you are in a FPS game with multiple players and someone breaks a window in some building. ...
Lance's user avatar
  • 177
1 vote
0 answers
175 views

Spawn network objects in generated map

In my game, the server generates a procedural map, after send generation seed to generate it on the client. The client generates exactly the same map. In the map, I need to synchronize objects with ...
Minebot's user avatar
  • 111
1 vote
1 answer
171 views

How can I synchronize state in my Asteroids game with many networked players?

Wondering how state synchronization works in games with lots of players like MMOs. It seems like a hard problem to solve and I am not aware if there are standard solutions. Specifically, synchronizing ...
Lance's user avatar
  • 177
0 votes
0 answers
483 views

How to reduce server traffic for 100+ multiplayers game?

I'm working on fast-paced multiplayer game which has 100+ players in single session. To sync entire game state to each player, server should send massive data if I did not any compression: ...
Kichang Kim's user avatar
1 vote
2 answers
258 views

How can I handle sharing storage units in multiplayer?

I have recently come across a certain problem in programming my MMORPG: the synchronization of shared storage units. With shared storage unit I intend something like a "chest" that can be accessed ...
Alakanu's user avatar
  • 705
1 vote
0 answers
436 views

Real-time MMO: how should authoritative server update client position

I'm trying to build a real-time MMO game. I'm using Phaser for FE and Node.js + socket.io for BE. I have read all the tutorials like http://www.gabrielgambetta.com/client-side-prediction-server-...
dontHaveName's user avatar
1 vote
0 answers
121 views

Data synchronization between master and slave servers

I am looking for a way to synchronize data between master data server (connected to a database) and slave game servers. The master server should make a decisions about which data should be ...
Epsiloncool's user avatar
2 votes
0 answers
448 views

How to properly separate render thread from logic thread?

I am not asking about parallelization of physics and so on stuff with parallel_for() like stuff. I've managed to have separate rendering thread from logic thread, ...
xakepp35's user avatar
  • 191
2 votes
1 answer
573 views

Should the server calculate the time of a player's input, or trust sent data?

I am curious about the details of lag compensation in games. I have read a lot of articles about it, for example: Source Engine Multiplayer Networking Fast-Paced Multiplayer - Gabriel Gambetta How do ...
Ruslan Plastun's user avatar