Jump to content

  • Log In with Google      Sign In   
  • Create Account

FREE SOFTWARE GIVEAWAY

We have 4 x Pro Licences (valued at $59 each) for 2d modular animation software Spriter to give away in this Thursday's GDNet Direct email newsletter.


Read more in this forum topic or make sure you're signed up (from the right-hand sidebar on the homepage) and read Thursday's newsletter to get in the running!


How to synchronize players' stats


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
1 reply to this topic

#1 Tannerd   Members   -  Reputation: 117

Like
0Likes
Like

Posted 17 July 2014 - 02:58 AM

Hi all,

what are the best practices to keep data synchronized in a multiplayer game?

Is usually the server responsible to send up to date data based on the order at which it receives the events from the clients?

Think for instance of a shooter game where players have rechargable shields:

the simplest way that I can think of is that the server receives a "hit" event and then computes the up to date shield value of the hit player according to the time from the game start at which it _receives_ the event.

Then the server sends the new shield value of the hit player to all of the clients (including the shooter player) that simply accept the new value.

Has anyone ever thought of a strategy to move this computation away from the server?

Is it something it is worth enough to think of, anyway?

 

Many thanks.



Sponsor:

#2 hplus0603   Moderators   -  Reputation: 5723

Like
0Likes
Like

Posted 17 July 2014 - 10:07 AM

Probably > 50% of the posts in the multiplayer and networking forum talk about this question.

There is no one "best" way, because what kinds of trade-offs you choose depend on the particular needs of your game.

The FAQ for this forum (stickied at the top) contains a number of links to a variety of articles on the subject for different kinds of games.

Some good articles to start with include:

"1,500 archers on a 28.8 modem"

"zen of networked character physics"

"source engine networking"


enum Bool { True, False, FileNotFound };




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS