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

learn more… | top users | synonyms

2
votes
1answer
384 views

Unity 5.x Network Synchronization Concepts

Bear with me, It will be long read^^ I am working on the new Unity Networking system. I was using Photon and old (legacy) unity network API's before. But as it seems there are some good benefits of ...
0
votes
0answers
23 views

How do I instantiate enemys for dealing them damage and attacking them on Photon for Unity?

Ive done a tutorial for Photon Network server for Unity but now I have a problem, the player is not seeing the network player attacking or damaging the enemy. How do I instantiate these to ...
0
votes
0answers
64 views

How to sync animations of 2 different characters in Unity 3D?

I am working on an endless running 3d game. I have 2 characters. One of them is a small kid and another one is a security guard. Both characters and animations are exported as separate FBXs. The ...
0
votes
1answer
88 views

Android: Synchronizing timers across multiple devices

Im writing a turn-based multiplayer game that implements a chess timer. When the current players turn starts, all devices start timing for the current player, however, as his turn proceeds, the timers ...
1
vote
0answers
46 views

Extrapolation - synchronize destination point on a second device while moving

First of all, I read all of the Valve and Gaffer articles but I still have no clue, how to achieve my goal. I am creating a UDP multiplayer game with a lot of physics (knockbacks, attacks). Packets ...
2
votes
3answers
107 views

Synchronisation on a non authoritative networked peer to peer scene

I currently have a piece of coursework that requires 3 or more 3d simulations connected via p2p to maintain a simulation that is visually consistent amoung all peers. A big issue is that I'm not ...
12
votes
5answers
5k views

Synchronization between game logic thread and rendering thread

How does one separate game logic and rendering? I know there seem to already be questions on here asking exactly that but the answers are not satisfactory to me. From what I understand so far the ...
6
votes
2answers
3k views

How to make footsteps sound sync with animation (FMOD/Wwise/similar)

How do you pros out there implement footstep sounds in so that they're synced with character animation? I have an idea in mind: an FMOD event that has two footstep playback triggers, and a parameter ...
1
vote
2answers
163 views

Syncing items between server and client

I'm doing this game of mine, and I want to add the items to it. I'm already familiar with the basic concept of syncing data between server and client, Usually using sync state, that's what i've done ...
0
votes
0answers
34 views

Time based animations desynchronize

I have a ingame timer which increases constantly by the FPS rate. The problem I got yesterday: I started to implement attack animations, but they only run synchronous. That means, if I attack object ...
1
vote
0answers
44 views

How to synchronize events to clients?

I need to keep the client updated on data that's rarely changed (like health) or when an event occurs (like when a player is attacked and should have "-10 hp" above him). Those 2 specific part should ...
2
votes
1answer
81 views

Client and server loops don't match up

I'm trying to build a small networked game using WebGL and NodeJS. I have a basic client and server setup and I'm at the point where I'm trying to implement dead reckoning to simulate what happens on ...
1
vote
0answers
48 views

How to detect when client state drifts from server state?

I'm obviously talking about an authoritative server to which client sends commands and gets state updates. My question is when I get a position update and know how many milliseconds ago it was ...
2
votes
2answers
3k views

Client-Server RTS networking with lockstep and lag

The peer to peer lockstep networking model would seem to indicate that everyone's input is delayed the same amount. And so this would indicate that everyone would feel the same lag in response to ...
4
votes
3answers
2k views

How do I sync multiplayer game state more efficiently than full-state updates?

I've done a little game network coding before, but primarily with TCP for games without real-time needs. I am working on a 2D Java game with networked multiplayer. For learning, I want to do this ...
0
votes
1answer
40 views

Box2D: Making it Determinsitic?

From articles on the web, I found that floating point math generally has accuracy of at least 6 digits. With this in mind, is it possible to make Box2D which uses floats fully deterministic through ...
2
votes
4answers
256 views

How can I avoid sending the full game state so often?

I'm making a real-time 2D MMORPG in Java. Currently data all surrounding NPCs' and players' data is sent so frequently that the client crashes—it can't handle the data quickly enough. I'm sending data ...
8
votes
2answers
1k views

How to keep server-client clocks in-sync for precision networked games like Quake 3?

I'm working on a 2D top-down-shooter and doing my best to copy concepts used in networked games like Quake 3. I have an authorative server. The server sends snapshots to clients. Snapshots contain a ...
2
votes
1answer
156 views

RTS Lockstep: How to deal with high latency and packet drops?

In the lockstep RTS model, I understand how games can be made deterministic by sending across commands to run at designated frames in the future. Then, to keep everyone in sync, confirmations are sent ...
2
votes
1answer
545 views

In-Depth Lockstep Explanation

I'm making a multiplayer game built upon a lockstep system and I'd just like a better grasp on the concept. My main question is on how to get every command to simulate at the same time on every client,...
0
votes
1answer
124 views

In lockstep networking game, how to handle sudden lags and disconnection?

I am trying to implement a game similar to "Street Fighter" by using lockstep networking model so that two players can play remotely via Internet. I have read a lot of articles about lockstep ...
1
vote
1answer
169 views

Synchronization with game tick

I'm working on a multiplayer game and it's currently set up like this. It accepts packets from the client on the fly and does whatever processing it needs to. There is also a main game tick which is ...
7
votes
2answers
560 views

How do I duplicate a Box2d simulation, mid-simulation?

I want to serialize the state mid-game, send it over the network to an identical computer (same CPU, same OS, same binary), load it there, and have the two games run in tandem doing the exact same ...
2
votes
1answer
283 views

Is there a pattern for handling multiple game states?

I'm experimenting with writing a multiplayer game, almost from scratch (I'm using C++, OpenGL, ENet, and platform-specific APIs) with a client/server networking model where the server is authoritative....
5
votes
1answer
248 views

Is there a way to prevent the user from playing the game simultaneously on 2 devices

Our game uses Google Play Services for authentication, multiplayer and cloud saves. We save the users inventory as a cloud save, and as the player partakes in multiplayer matches they might use items ...
8
votes
3answers
616 views

How can I keep two racing players synchronised?

I am working on a Unity mobile game, much like a multiplayer version of Temple Run. I'm seeing a fluctuating network latency (generally 200-500ms) because of the mobile platform. The two player ...
0
votes
2answers
76 views

Can the different computation power in a multi-player game affect each player's performance?

In case an RTS game allows the clients to perform some calculations such as path-finding after the player clicks the map for a destination, and taking into account the game should be synchronised for ...
1
vote
1answer
118 views

Inventory management syncronized network

I'm implementing an inventory system with items in 1x1 slots in a open-world multiplayer game. But I can't decide how I want to synchronize the item management with the server. I see two options here. ...
3
votes
2answers
391 views

How to synchronize the ball in a network pong game?

I’m developing a multiplayer network pong game, my first game ever. The current state is, I’ve running the physic engine with the same configurations on the server and the clients. The own paddle ...
5
votes
2answers
906 views

How to sync client and server at the first frame

I'm making a game where an authoritative server sends information to all clients about states and positions for objects in a 3d world. The player can control his character by clicking on the screen to ...
0
votes
1answer
264 views

How to sync towers and enemies in Tower Defense?

I'm going to build a tower defense (like) game. In a heavy tower defense, it takes time to processing. So, if i set a time interval, it costs interval+processing time so it's not fair. If i make a ...
14
votes
5answers
3k views

Networking for Real Time Strategy games

I'm developing a real time strategy game for a computer science course I'm taking. One of the harder aspects of it seems to be client-server networking and synchronization. I've read up on this topic (...
0
votes
0answers
102 views

synchronizing character movement in different clients

i want to synchronize the character movement in different clients, while i got an problem here. The script below is attach at the other players' characters, say if you are player A in client A, then ...
3
votes
2answers
451 views

Purpose of Displaying Loading Screen

Is it necessary for a game developer (on Android, game consoles, online, or desktop) to display the loading screen to cover unfinished rendered game environments and prevent users from thinking that ...
1
vote
1answer
5k views

Jumping with Mecanim synchronization

I am using Unity3D 4.1 for one of my projects. I have a robot character which is always running. I am using mecanim animation system. What I really want:When I press Space bar, the character should ...
8
votes
2answers
2k views

How to synchronize actions like jump in multiplayer?

I am a newbie game developer and I have been researching about multiplayer games. I observed that there's always some latency, the players always get updates from past actions. But there are ...
4
votes
1answer
788 views

XNA: Networking gone totally out of sync

I'm creating a multiplayer interface for a game in 2D some of my friends made, and I'm stuck with a huge latency or sync problem. I started by adapting my game to the msdn xna network tutorial and ...
3
votes
1answer
381 views

How to sync game tick in peer to peer game?

I am making a 2-player iphone action game using a synchronization service (in this case Firebase). The service allows state syncing through the internet, but I have to execute all game logic on the ...
-1
votes
2answers
519 views

Start timer in two clients the same time

I want to create a client/server turned-based game where each player will have 5 seconds in order to play. If extends this time will be other player's turn to play. In order to do this, I have created ...
1
vote
2answers
257 views

Implementing the “earn resource every N seconds” mechanism common to F2P games

In many free-to-play games, play will be rate limited in some manner by a resource that you naturally earn on a timed interval, but can opt to increase artificially through buy-ins. A current example ...
4
votes
5answers
2k views

Can I write code from 2 computers at the same time? [closed]

So I know it might not be that related to game dev, but I'm now starting a project with friends and we want to code. Thing is, we are not living close, and when several programmers write different ...
2
votes
2answers
519 views

Lockstep Game Loop

I have an XNA game using a basic lockstep update loop. The client sends all commands to the server, and updates only if it has received the next turn's commands from the server. When does a turn end? ...
0
votes
1answer
365 views

Approaching syncing between client and server, in a Tower Defense game

I am currently working on a Multiplayer TD, players can join games, and place towers on a map, so far so good. This is how the game works as of today, when a new game is created, the server ...
1
vote
1answer
82 views

Resynchronize game state on reconnect

Suppose in a multiplayer first person shooter game that a player loses their connection. On reconnect they need to synchronize with the current game state. But while they are getting a snapshot of the ...
1
vote
1answer
184 views

synchronizing view state between nodes in a rendering cluster

I'm building a display wall demo application. The environment: N machines, each driving up to six displays Wired gigabit switch OpenTK application to draw the pretty pictures, running 1 copy on ...
-1
votes
4answers
261 views

build a server clock in client

Like Warcraft of World, there is a clock to display the time of server rather than local time of the client. How to do this? If this can be done by server send only one package to tell client the ...
1
vote
0answers
234 views

Architecture for mixing synchronous and asynchronous program flow to maximize faux real-time yet logical gameplay?

What I am attempting to make is a faux real-time game engine in node.js (taking advantage of the non-blocking I/O). When I say 'faux real-time' what I mean is I want players to interact with the world ...
2
votes
2answers
2k views

Sync clocks on a real time multiplayer game - Is this ok?

I'm developing a multiplayer game through Gamecenter in unity with prime31 plugin. This is how I sync the clocks of the two players (right now there will only be 2 player in one match), and I wanted ...
3
votes
2answers
780 views

Syncing game states in a multiplayer RTS game

I'm working in a group with 2 friends on our Gr. 12 final project for programming. We're making a multiplayer RTS game. I've been assigned to the networking section of the game, and none of us have ...
6
votes
3answers
1k views

Networking for RTS games with lockstep using UDP

Apparently from what I can gather Starcraft 2 moved to UDP in a patch. Now obviously with fps games there is no dispute that UDP is the only way to go. But with RTS games what benefits does UDP give ...