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.
156 questions
0
votes
0
answers
42
views
How to handle draw events without synchronization issues
So in my game I'm using a message queue for everything, very similar to an event manager or event queue pattern. I've seen that lots of people use them, and they decouple when the event fires and ...
1
vote
1
answer
105
views
Should I use UDP to create a movement logic like League of Legends?
These are features of my game.
You can only move by clicking the mouse like LOL.
30~50 players can play at a time. (So the game map will be larger than LOL)
No jump
Should I use UDP to update client'...
0
votes
0
answers
63
views
Drifting local time vs server time synchronization
Imagine a server sending you (the client) game snapshots each 30ms.
Your interpolation time is set at around 100ms, so ideally you are interpolating between 4th and 3rd snapshot, so by the time you ...
0
votes
2
answers
169
views
How to synchronize NPCs across LAN?
As of now, players are synced using:
...
0
votes
1
answer
141
views
Improve performance of server updating game state
I have a Node.js game that sends update packets to players every 30ms.
The code I currently use works this way:
Get the entities within each player's vision.
Create a temporary object that stores ...
1
vote
0
answers
71
views
0
votes
1
answer
122
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 ...
1
vote
1
answer
186
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 ...
0
votes
0
answers
465
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 ...
1
vote
1
answer
781
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 ...
0
votes
1
answer
546
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 '...
0
votes
0
answers
53
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 ...
2
votes
0
answers
99
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. ...
0
votes
1
answer
1k
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 ...
0
votes
0
answers
177
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. ...
2
votes
0
answers
58
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 ...
0
votes
0
answers
508
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
1
answer
98
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, ...
1
vote
1
answer
253
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 ...
1
vote
1
answer
289
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
1
answer
256
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 ...
2
votes
1
answer
2k
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
1
answer
343
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 ...
1
vote
2
answers
187
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 ...
0
votes
1
answer
357
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 ...