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
3
votes
2answers
89 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 ...
2
votes
0answers
18 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 ...
3
votes
1answer
71 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 ...
0
votes
0answers
79 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 ...
0
votes
0answers
102 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 ...
0
votes
1answer
59 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, ...
0
votes
0answers
52 views

Server Side Simulation Synchronization with Client Box2d

I am running a simple box2d simulation on nodejs server.(planck.js) 2 bodies are connected to each other with distance joint and one is orbiting around another. I also have a java libgdx client with ...
3
votes
1answer
117 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 ...
1
vote
1answer
57 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 ...
0
votes
1answer
66 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 ...
1
vote
1answer
85 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 ...
1
vote
0answers
25 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 ...
1
vote
1answer
164 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 ...
0
votes
0answers
117 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 ...
1
vote
1answer
104 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 ...
1
vote
1answer
68 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 ...
1
vote
1answer
108 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 ...
0
votes
1answer
293 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 ...
1
vote
2answers
89 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 ...
1
vote
1answer
127 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 ...
0
votes
1answer
125 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 ...
0
votes
1answer
254 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. ...
1
vote
0answers
126 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 ...
1
vote
1answer
123 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 ...
0
votes
0answers
97 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: ...
1
vote
2answers
117 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 ...
1
vote
0answers
298 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-...
1
vote
0answers
97 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 ...
2
votes
0answers
274 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, ...
2
votes
1answer
409 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 ...
0
votes
2answers
346 views

Multiplayer Game - Node.js syncing other players' position

I'm creating a multiplayer platformer game with 4 players in multiple rooms. I've read a lot of articles and researched about client prediction and lag compensations. I think I can somehow manage to ...
1
vote
1answer
341 views

Do you really have to sync Physics over the network?

Let's say you want to create a 2D game where a character can shoot a bullet. You have the same code running on the Client and Server (JavaScript so it's exactly the same code). If the client and the ...
1
vote
0answers
382 views

Help needed, following Unity multiplayer Health-Bar tutorial. Only working on Server Host instance of the game

was really hoping someone can be good enough to look over my code, I've been trying to fix it for several days. I followed the Unity tutorial which is fairly basic but the bit that confuses me (and ...
3
votes
0answers
128 views

AI Agent realistic leap to a player in a MMO

In the last month I have been struggling with an issue, movement synchronization of a leap of an AI agent in a MMO. I know some theory and basic movement was not a problem with interpolation and stuff,...
1
vote
0answers
286 views

[SyncVar]s in Unity with client authority

I'm making an networked RTS in Unity, and I have a problem with syncing a boolean on a non-player object. I create the object (which is a boat) using ...
2
votes
2answers
4k views

Unity - Manually sync location of players from server to client

I am new to Unity networking. I've set up my scene with NetworkManager and the Player prefab having NetworkIdentity. I originally had my players set up to sync with a NetworkTransform. This worked, ...
0
votes
1answer
249 views

MMO Player Position Update [duplicate]

I have been looking at the development of MMO games for a while and have got stuck up on one thing. Player Movement. If we have an area with 10 players, each player needs to be able to see the ...
1
vote
0answers
252 views

How can I instantiate and sync a LineRenderer in multiplayer network?

I am trying to make a laser that will be visible to all clients in a multiplayer networked game on Unity. I've tried using a Command Attribute but that hasn't worked. I also found some ideas to use ...
0
votes
0answers
648 views

Do I need to make network game fully deterministic to achieve a non-exploitable MOBA/RTS?

First of all - I know some networking concepts and I coded couple games with GDX/Kryonet/...
0
votes
1answer
1k views

Socketio, nodejs. syncing movement with rigidbodies over the network - unity

I am building a 2d top-down mmo. very lightweight. I have a master client that determines everythings position, and actions and send this information to all other clients. Now I have made a great ...
7
votes
1answer
841 views

Parallelism in GPU's rasterization process

Based on this article I understood the base principle inside the Rasterization algorithm: ...
1
vote
1answer
447 views

Should I sync animations from the server to the client or let the client play its own animations?

For example, if the user presses the "Fire" button which leads to the player character doing some kind of animation, should the client evaluate itself if it can play the animation or wait for a ...
1
vote
2answers
64 views

How to start the game at the same time across two phones?

I am trying to synchronize two devices so that they can start the game at the same time. The mechanism that I've thought about is that I would use the phones' time and set the intervals at, for ...
2
votes
2answers
726 views

What to replicate in a PvP online action game?

We're developing a 2D PvP online action game. You can think of it like Super Smash Bros. We have a function call tree for characters like below: ...
5
votes
3answers
1k views

Synchronizing over UDP

I have two apps communicating over UDP. One of the apps is a remote control and the other is a robot. When the robot has some new data, for example a new sensor ...
1
vote
0answers
66 views

Unity: Editor Window not Syncing

I have four scripts: Engine has a list of MovementWaypoints. EngineEditor simply displays a ...
0
votes
1answer
1k views

How to sync a LineRenderer in a multiplayer game?

After a lot of searching online, I have come here as a last resort for my problem. The question says it all. How to sync a LineRenderer? One answer I found was to use a ClientRpc. I tried it with no ...
1
vote
2answers
238 views

Get different result on different devices (same resolution) after setVelocity

I'm dying with physics , i've tried to use setVelocity however i got slightly different value from different devices. I've tested on iPhone 5 (on simulator) and ...
1
vote
1answer
130 views

How to prevent clients from stuttering while keeping the game in sync in multiplayer Pong?

I wrote Pong in multiplayer. The clients all run their own game, but I have an authoritative server which enforces its ball position onto the clients. The game is in sync and playable, however, there ...
2
votes
2answers
171 views

How to confirm an actor location in a realtime multiplayer game at the exact same time on two devices?

I am trying to figure out how to make a game like Pong in multiplayer. I have two devices that run the same simulation. Now I want to make sure that each of them start at the exact same time and send ...