Jump to content
  • Advertisement
moeen k

need information on how to share data in special type of game?

Recommended Posts


I have worked on turn based games but I just started a practice project on making real-time online game that there is possibility  to turn to a publishable game. I want to know about how different types of data are updated through net. for example in a shooter game how player positions are updated? is it updated for every frame or amount of frames or just input is send to server?   how aiming and shooting is implemented? for example just player shoots and raycasting is calculated on client side. if it was a hit result will be sent to server or other are other methods? how different pings and connection problems are handled? are these issues should be obtained by test and fail or there are standards for all types of games in game industry? is there any reference to handle these or other mis-counted issues that I said?


thank you for helping


Share this post

Link to post
Share on other sites

Perhaps one place to start is Lee & Chang's paper On "shot around the corner" in first-person shooter games if you have access (http://ieeexplore.ieee.org/document/7991545/, but search on google for the title, authors sometimes have copies elsewhere). They briefly talk about synchronization but also reference a lot of neat information that you might want to check out.

Share this post

Link to post
Share on other sites

There are many, many ways that this happens, depending on the specific games.

Some games send the inputs for each player for each simulation frame to all other players, and implement deterministic / lock-step simulation.

Some games send inputs for each player to all other players, but buffer some number of simulation ticks at a time, and then let the server "correct" player positions every once in a while.

Some games send inputs only to the server, and the server sends a stream of entity updates at some network tick rate.

Some games send player positions to server, which forwads to others. (This option makes it pretty easy to cheat, so it's less common.)

I highly recommend you download the source code for a number of games for which the source is available, and check them out. This may be anything from good-old Quake III, to the latest Unreal Tournament Next.


Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!