The client-server model is a centralized computing model where one node (the server) performs some service for other nodes (the clients).

learn more… | top users | synonyms

1
vote
1answer
89 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 ...
0
votes
3answers
141 views

Is it worth it to encrypt data?

I am using Java to write a moderately simple video game and I need to transfer some large files (edit: Live game data and possibly assets.) between the client and the server. I need to decide whether ...
3
votes
3answers
213 views

How do I resolve asynchronous client actions against an authoritative server state?

I have a multiplayer card game which I am in the process of developing. The game is relatively simple; players have a certain number of cards which they can activate, sell, or use in various other ...
2
votes
2answers
97 views

Using peer to peer for prediction in a client-server network model

By implementing peer to peer connections between clients in a client-server network model I should be able to increase the prediction fidelity as this theoretically would provide the client with other ...
14
votes
4answers
2k views

Should a socket server and game server be separate processes?

Assume a simple standard client/server game. For the server, is it worthwhile to have a separate process that listens for connections and messages from clients and sends the data via local sockets or ...
1
vote
1answer
83 views

Does compressing data before transfer make a game run faster?

I want to make my game as fast as possible as it is real time and fast paced. I have already decided to encrypt my data here and I was wondering whether compressing it would be faster for the client ...
6
votes
3answers
85 views

Player acceleration formula and using it with authoritative server

I know the theory behind authoritative client-server architecture, it works very well for character movement in a tile-based world: you send messages like "I moved one square to the right", the server ...
9
votes
2answers
864 views

How to handle realtime random movement with client side prediction

I'm building a realtime multiplayer game that runs the same 'physics' loop on client and server. I'm using a steering behavior 'wander' that is essential random movement. The client and server ...
4
votes
4answers
273 views

How to avoid duplication using client-server model

I am using a client-server model to write a multiplayer-capable game (in Java). Currently the clients and the server are using the same code to run the game logic, in order to enable client-side ...
0
votes
1answer
30 views

Device and user progression conflicts

Im designing a game with both digital currency and player progression, but have hit a confusing snag, where I possibly can't be the first to come to a decent solution. To keep it simple, it's a ...
1
vote
1answer
88 views

Server to client update rate

I am building a game that uses client-server architecture and have the following question regarding server to client updates. Currently the server is doing 60 ticks per second and is sending updates ...
0
votes
3answers
123 views

How should I store game data in a game server?

I'm new to game server development. I'm facing this issue: I want to develop a card game server, but I'm not sure about the solution to hold the game data while playing. Example: In a poker game, ...
2
votes
2answers
244 views

MMO Client / Server Architecture (NoSQL)

The main aim is to keep the games variables server-side for obvious security reasons. I believe having server-side code to check before updating the games database values will protect me from classic ...
5
votes
2answers
422 views

Running multiple box2D world objects on a server

I'm creating a multiplayer game using LibGdx (with Box2d) and Kryonet. Since this is the first time I work on multiplayer games, I read a bit about server - client implementations, and it turns out ...
0
votes
1answer
81 views

Multiplayer and creeps (NPC enemies): how to compute bullet hits given the lag?

We are making a multiplayer co-op game, where players will shoot not each other but AI enemies (creeps), controlled by the game. The chosen implementation is client-server with an authoritative ...
1
vote
1answer
126 views

Why is there a huge update-delay in my client/server code?

I'm working on my Java game with Libgdx and having trouble with the network code. I can create a server, make multiple clients connect to it, but there is a huge delay between the player's input and ...
0
votes
0answers
62 views

Client-server architecture with box2d

I am running a client-server architecture with an authoritative server running box2d and the client running box2d as well. If gravity is set to 0, is there any point to linear interpolation and ...
2
votes
1answer
68 views

How to sync gamestate between server and clients in turn based 4x game?

Background information: I am developing a game similar to other 4x games like Sots, MoO,... I am storing all information about the game(like star/planet/ship/fleet positions, owners and a lot of ...
4
votes
3answers
317 views

How do I handle packet loss in a client-server network model?

In a client-server network model, the clients only send commands to the server (i.e. coordinates of a click, fire gun, etc.) and the server then runs those commands to produce a game state. But what ...
0
votes
2answers
66 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
92 views

Human vs human android chess game design [closed]

First of all I am total amateur in game development and sorry for my poor English. I want to make android human vs human chess game. So I am wondering how to design it? scenario 1: User connect to ...
0
votes
0answers
63 views

Client side latency when using prediction

I've implemented Client-Side prediction into my game, where when input is received by the client, it first sends it to the server and then acts upon it just as the server will, to reduce the ...
-4
votes
1answer
228 views

How to set up a client-server architecture for a browser based game [closed]

I'm really curious about how to set up a game so like Hayday or Clash Of Clans, especially with regards towards the server-client architecture. How does one set up such an artitecture? What are the ...
-1
votes
3answers
226 views

Handling packet impersonating in client-server model online game

I am designing a server-client model game library/engine. How do I, and should I even bother to handle frequent update packet possible impersonating? In my current design anyone could copy a packet ...
2
votes
1answer
176 views

Online RTS Game Architecture for Mobiles [closed]

We came up with an idea for a real-time strategy game for mobile devices that can play with other players over a network. I'm trying to plan out the architecture/protocol required for such as system. ...
1
vote
1answer
540 views

php multiplayer game - server&client model

I'm working on a simple round&web-based multiplayer game. The idea of the game is very simple: The players get an array of audio files which they listen to and write the transcripts for in 5 ...
3
votes
1answer
155 views

game mod security question

So I'm in the process of building a game in C++ for the engine and Python for behavior and moddability. One of the planned major features is that when the game client connects to a game server with ...
14
votes
2answers
2k views

What to send to server in real time FPS game?

What is the right way to tell the position of our local player to the server? Some documents say that it is better to send the inputs whenever they are produced. And some documents say the client ...
0
votes
1answer
140 views

How to solve problems with movement in simple tile based multiplayer game?

I'm making a simple tile based 2D multiplayer game in JavaScript using socket.io where you can move one tile every 200 ms. The two solutions I've tried are as follows: The client sends "walk one ...
1
vote
2answers
65 views

Managing past/present game state

I'm not sure if "game state" is the correct term, as my searching shows me a lot of results that are not relevant to my question. When I say "game state", I'm talking about the internal state of the ...
1
vote
1answer
76 views

Packet Loss Affecting Client-Side Prediction

I have been reading about client-side prediction lately and I have been thinking of ways to implement it into my multiplayer game. I think I have a pretty good understanding of client-side prediction ...
14
votes
5answers
2k 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
2answers
125 views

What are the security implications of this method of tracking countdowns?

Consider a multiplayer (client/server) game where you initiate the construction of some building. Let's assume construction will complete after 60 minutes. My plan for dealing with this information ...
3
votes
2answers
1k views

Synchronize turn based browser game

I'm writing a browser game in php and Sql. I'm also using Javascript - Ajax and Mysql. I'm stack on the battle system because I want to Synchronize the turns of the players in the battle. What I ...
0
votes
2answers
217 views

Is networking programming quite generic

I have only looked into the basics, at least I assume it gets more complex. So does network code really change from one game to the next or is it pretty much portable. For example I can create say a 2 ...
4
votes
3answers
297 views

Can game replays be used as cheat protection?

Say you're writing a complex turn based multiplayer strategy game in the browser (i.e. JavaScript). The game state is big and complicated (think line of sight calculations in a 3d world). There can be ...
8
votes
2answers
1k views

Java code for client-server game on Android

I have developed a game on Android. Now I want to play it on wifi or 3G. I have game packets which I want to send form client (mobile) to server then to another client (mobile). I don't know how to ...
2
votes
1answer
199 views

Is host advantage real?

I'm sure many of you have heard the term host advantage through out your time playing action video games. However, I was curious if this was a real studied and proven concept in game design, computer ...
-1
votes
1answer
525 views

Distributed Multiplayer Game Server Architecture [closed]

I'm programming a multiplayer game for mobile phones.I'm working on a distributed server architecture for handling lots of concurrent players. Here is my architecture on my mind: Some questions ...
0
votes
1answer
262 views

How do I implement pixel-exact collision server-side?

Recently I made a 2D offline game with HTML5 Canvas and JavaScript. I'm detecting collisions by first checking whether image bounding boxes overlap. If they do, I check against the bounding boxes, ...
9
votes
1answer
581 views

How do I sync client and server when sending player speed changes?

I'm implementing client-side prediction. Most explanations assume the client sends messages like "Move my player up by 1 position". What if I send messages like "Set my player's velocity to x"? On ...
4
votes
1answer
541 views

How do I avoid losing prediction responsiveness due to client interpolation?

In my online game, I am using client prediction and client interpolation to give the illusion of responsiveness over a networked connection. The client prediction applies inputs that haven't yet been ...
1
vote
0answers
108 views

What are the disadvantages of client-side prediction?

There's lots of talk of server-side prediction, but I haven't seen a client-side alternative implemented anywhere. My game uses mouse-based movement, so it's easy to predict the player's location ...
19
votes
3answers
3k views

How to predict movement correctly when a player is invisible?

I have a multiplayer game and I'm doing client-side prediction, but some players can drink a potion and become invisible... The problem is that when they become invisible I don't share anything that ...
2
votes
1answer
277 views

Does client side prediction sync with the server in the past?

I've spent some time now messing around and just trying to learn dead reckoning and client side prediction for the fun of it. Most of what I do doesn't need it, so i've never had a need to go down ...
0
votes
2answers
845 views

GameServer UDP or TCP Java [closed]

This is a Java related question. I've got this question and I searched on the internet but didn't really get any clear answer. I want to develop a little multyplayer game which needs real time ...
1
vote
4answers
458 views

What would be best practice of client comunication in a multiplayer game

Assume that we have a multiplayer game and the users are moving their characters (might be a circle) on the game area. At every game loop some changes can be happened. Should clients send their ...
1
vote
1answer
239 views

Client-side prediction and interpolation

Although my game uses a peer-to-peer model, I've still taken the approach of assigning each player to be a partial authority. What I mean by this is that each player acts as the "server" for a number ...
3
votes
3answers
158 views

How does server code modify game state on the server while still accepting additional server game calls

Question first, then explanation second. How can a webservice backend to a game modify and alter the server game state while the game simultaneously accepts webservice calls from other users of the ...
4
votes
2answers
179 views

How do I synchronise real-time moves of players on a grid?

I'm working on a real-time game based on a grid. Each player can move a single square at a time. A server tracks the game state and notifies clients of changes. It's possible for two players to make ...