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
0answers
591 views

How to implement the server-side game loop?

The server needs to handle the physics, because all the movement will be handled by it. So for that I need a game loop. The thing is that the server doesn't have the render part, it's just a console. ...
6
votes
2answers
3k views

MMORPG server-side java architecture

I am currently making a MMORPG game, which is turn-based. The client is supposed to run on Android. Now, my friend is doing the graphics, and I have been doing the game classes (player, weaponry, ...
2
votes
1answer
250 views

How are UDP packets verified as authentic? [closed]

Hey I'm writing a game and have the backend written using a sometimes-reliable UDP scheme. I want to verify that inbound packets are actually originating from the player specified in the packets. My ...
-1
votes
2answers
251 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 ...
2
votes
2answers
229 views

Client-side physics simulation

I am trying to create a very simple client-server based physics game, using box2d library. A simple football game. Obviously, the server runs only the box2d world. My question is: is it correct to ...
0
votes
1answer
121 views

The game-server model to handle user actions

I'm starting to work on a mobile game that will have a server-side part (to handle user's interactions between them) and, of course, the client (game itself) part. It's not meant to be a browser game ...
5
votes
3answers
319 views

How to make sure user is running the newest version of mmo client?

In typical mmorpg game, you have a launcher and a client. You first run the launcher to update the client, then you run the client. In every mmo I tried if you run a client without updating first (if ...
2
votes
2answers
377 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? ...
4
votes
3answers
439 views

How do I allow a player to build a dedicated server, but prevent them from cheating?

Instead of maintaining a central server, many games allow players to build their own server, like Minecraft. But if you give them the server-side program, how could you prevent them from cheating? I ...
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 ...
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 ...
1
vote
2answers
523 views

PHP and Javascript/HTML5 Collaboration [closed]

I've recently been working on a fairly complicated game. I've stored information with local storage, but that allows the player to edit it, and does not transfer from computer to computer. The two ...
4
votes
1answer
352 views

How to define a proper protocol for a turn-based combat system?

I'm working on the server side of a turn-based strategy game. The game has a really complex combat system, like: When you are hit, you summon a phoenix to attack the enemy that deals X damage, and ...
1
vote
1answer
535 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
6answers
537 views

Should Client->Server/Server->Client packets be separate?

When working on network packet structure for games, what is more efficient (in terms of code structure) for packet reading for client/server? Currently, Our packet structure is to send the packet ID ...
3
votes
2answers
590 views

2D destructable terrain with collisions in MMO

Task What I want is to create destructable terrain (like in Worms) and collisions with this terrain (with calculated normals) that will be fast enough to work on server machine. Basically lets say ...
1
vote
1answer
449 views

Do I need to create my own or use a commercial server for the features and matchmaking options I want my game to support? [closed]

So I'm developing an indie turn-based game for iOS and, in coding up a Game Center matchmaking class, I'm starting to question whether Game Center is even the best choice for what I want this game to ...
3
votes
1answer
276 views

How to properly do weapon cool-down reload timer in multi-player laggy environment?

I want to handle weapon cool-down timers in a fair and predictable way on both client on server. Situation: Multiple clients connected to server, which is doing hit detection / physics Clients ...
2
votes
1answer
65 views

extrapolating object state based on updates

I have a networked multi-user collaborative application. To maintain a consistent virtual world, I send updates for objects from a master peer to a guest peer. The update state contains x,y,z ...
1
vote
2answers
1k views

Networking Client Server Packet logic (How they communicate)

I want to know what is the logic behind server client communication through packets for a real time game. for example the server sends x packets then the client receives x packets and processes them.. ...
1
vote
0answers
106 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 ...
2
votes
1answer
198 views

Send less Server Data with “AFK”

I am working on a 2D (Realtime) MultiPlayer Game. With Construct2 and a Socket.IO JavaScript Server. Right now the code does not include the Array for each Player. var io = ...
9
votes
1answer
578 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
2answers
630 views

A simple example of movement prediction

I've seen lots of examples of theory about the reason for client-side prediction, but I'm having a hard time converting it into code. I was wondering if someone knows of some specific examples that ...
1
vote
4answers
211 views

Protecting the integrity of a game state while minimizing amount of data sent

I'm developing a multiplayer game in PHP/jQuery, and naturally have to be wary of any sort of data coming from the client. At present, I have tables of data representing the map (2D roguelike), ...
2
votes
3answers
273 views

General directions on developing a server side control system for JS/Canvas Action RPG

Well, yesterday I asked on anti-cheat JS, and confirmed what I kind of already knew that it's just not possible. Now I wanna measure roughly how hard it is to implement a server side checking that is ...
-6
votes
1answer
573 views

World of Warcraft like C++/C# server (highload) [closed]

I know it is very big topic and maybe my question is very beaten, but I'm interesting of basics how to write highload server for UDP/TCP client-server communications in MMO-like game on C++/C#? I mean ...
1
vote
1answer
174 views

In a client server first person shooter how does the server keep track of each player's hit boxes?

Do all the clients send a transformation matrix for each of the hit boxes which make up the character?
1
vote
2answers
344 views

Implementing Online Leaderboards for indie windows PC Game

I've just finished my game and I'd like to add some ranking functionality to it. I have a mySQL database running on my website and want to be able to insert and retrieve data from it. My knowledge in ...
8
votes
4answers
267 views

Is there any way to verify the GPS location data received from client?

The answer to this question may be "NO" but it's quite important so I think I might as well ask. This should be a problem for all client-server location-aware games where player locations in the ...
7
votes
3answers
4k views

Javascript and PHP for real-time multiplayer?

I'm wondering if combining Javascript clientside with PHP/mysql serverside is a good idea for HTML5 real-time multiplayer (small scale) browser games? My technical knowledge is very limited, and even ...
1
vote
1answer
343 views

Multiplayer (Database, Users,etc) for game

I'm am looking to add multiplayer into my game (2D Platformer in XNA C#) My worlds are quite large (Up to 30 Million tiles max, Average 20 million maybe. 2000x10000). You could say the game is quite ...
3
votes
3answers
435 views

How can multiple clients be out of sync if they use the same RNG seed?

I have been working on a client-server architecture to enable LAN play for my open source game, Aigilas. In its current state, players stay synced in all running instances of the game but enemies and ...
4
votes
2answers
423 views

game multiplayer service development

I'm currently working on a multiplayer game. I've looked at a number of multiplayer services(player.io, playphone, gamespy, and others) but nothing really hits the mark. They are missing features, ...
1
vote
1answer
546 views

How do I go from a simple html5 tic tac toe game to an online 2 player game?

I've been working on an online 2 player Tic Tac Toe solution for blackberries. both old and new. And so far I have html5 code that has a 3 x 3 layout that switches between x and o for the game ...
4
votes
2answers
752 views

How do client-server cooperation based games like Diablo 3 work?

Diablo 3 cooperates with Blizzard servers even during single player games. In fact, Blizzard has had problems with the games "melting their servers." I would like to ask: How do the client and the ...
3
votes
1answer
235 views

How many UDP ports for an MMOFPS

I'm designing an MMOFPS. I'm not sure whether to use one UDP port for all clients or one UDP port per client. Or is there another alternative? Currently UDP is only being used for position data ...
0
votes
2answers
227 views

Server Client position information exchanging

I am doing small game in xna client/server, there can be 50f per seconds, but i don't belive that each client has to sent 50 mesagges about only their position, and then get back from server, regular ...
3
votes
1answer
528 views

XNA server client model

Hi what is the best model for creating client server application in one solution in xna, client as xna application, server as console and model as reference added to client and server? or maybe one ...
5
votes
2answers
2k views

FPS networking with server sending input instead of gamestate

Why do all fps games have the server send gamestate instead of input which is smaller? One reason I can sort of see is that if the server sends input to the clients and a packet gets dropped then the ...
0
votes
1answer
2k views

C# multi-player socket server (need clarification/suggestions)

I've been working on an 2D-RPG for a while and I recently decided to make it into an MMO (not really massive, but multi-player). Anyways, I'm attempting to write a game server in C#. Yes, I know I ...
3
votes
3answers
310 views

Loadbalancing Questions

I have been learning networking for about 4 months. Wrote a single standalone Multiplayer server and succeeded with authoritative approach. Now I want to extend it by splitting the single server into ...
2
votes
2answers
383 views

Would it be too much overhead to keep a HashMap of variables on a server per object for the purpose of syncing object changes with the client?

I am currently writing a server for a multiplayer game. I am trying to find a good solution for synchronizing GameObjects across the server. The server sends each client a snapshot of every object in ...
0
votes
2answers
147 views

How much to bake user input in a client-server?

Assume a client-server game where there server manages all state and the clients are simply rendering / input. How much should I bake user input from the client before sending it off to the server? ...
-1
votes
2answers
2k views

How much server bandwidth does an average RTS game require per month? [closed]

My friend and I are going to write a multiplayer, multiplatform RTS game and are currently analyzing the costs of going with a client-server architecture. The game will have a small map with mostly ...
0
votes
2answers
919 views

How can a NodeJS server be used from Game Maker HTML5?

I want to create a client-server game that runs on Game Maker HTML5-NodeJS. The NodeJS server will be an AI server - a bot that acts like a human opponent and plays against the human player at a ...
7
votes
2answers
1k views

Turn-based Client-Server Card Game - Unicast (TCP) or Multicast (UDP)

I am currently planning to make a card game project where the clients will communicate with the server in a turn-based and synchronous manner using messages sent over sockets. The problem I have is ...
4
votes
1answer
447 views

Components in a client/server network game?

Behavior and logic are executed on the server. The clients are mostly for rendering, audio, and gathering input. It looks as though most of the a components architecture benefits are only realized ...
3
votes
1answer
452 views

What is the best way to code the XNA Game Server for FPS game?

I'm writing a FPS XNA game. It gonna be multiplayer so I came up with following: I'm making two different assemblies — one for the game logic and the second for drawing it and the game irrelevant ...
2
votes
1answer
826 views

XNA 4.0 and Lidgren Library, How do I create a server/client hybrid?

My use of terminology may be off a little bit. I have been playing around with the Lidgren XNA sample for how the library works, and it is simple to implement it looks like. I am curious on the logic ...