About online game servers and how to handle data

Posted by TreantBG on Game Development See other posts from Game Development or by TreantBG
Published on 2012-04-01T07:09:22Z Indexed on 2012/04/01 11:42 UTC
Read the original article Hit count: 247

Filed under:

So my question isn't about what technology to use or how to do this or that, but a more general question.

I'm currently developing a action third person shooter. With elements of RPG - weapon,armor upgrades and items.

Players will be able to create new games or join old ones. So my question is how to create the game server that players will play in. I have two ideas on my mind.

  1. The player who made the game is the server. All data passes trough him and he send this data to the server updating the database of the players with their XP points kills/deaths score and other.
  2. Or my host machine is the server, the player who made the game just will open new instance on my host and will be like client. And all players send their input data to the host, the host updates the game and send response back to client for any new changes like where is the enemy and other.

And if i choose option 1 is there a chance the host to change the game content and manipulate the game results? (I think there is but i'm not sure)

And if i choose option 2 isn't that raising the response time and potentially the game lag?

or maybe there is another option?

© Game Development or respective owner

Related posts about online