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

7
votes
1answer
1k views

How do I create a simple RPG game server?

I'm working on a Sprite Kit game. I'd like to make it a true multiplayer game, by which I mean that each person joining the game has their own camera. I've seen tutorials on multiplayer games where ...
0
votes
0answers
24 views

RakNet & Allegro Client/Server Program Lagging?

I have a simple RakNet program that I wrote up with Allegro, and when I run the program and connect the Clients to the Server, they program starts to lag and uses up practically all of my CPU. I ...
1
vote
2answers
28 views

Redeeming an item on a periodic basis

I want to allow a user to redeem a token every X time (i.e. 24 hours). Once they redeem it, they must wait X time again before redeeming the next item. This ensures that users must visit the app daily ...
0
votes
1answer
43 views

Game server/client like wordfeud

My friends and I are creating a game for mobile platforms. We are now in the phase of creating the multiplayer part of the game. We know how to do it but we are not sure how the multiplayer should ...
0
votes
0answers
24 views

How to synchronize events to clients?

I need to keep the client updated on data that's rarely changed (like health) or when an event occurs (like when a player is attacked and should have "-10 hp" above him). Those 2 specific part should ...
0
votes
1answer
58 views

MMO - Boss Action Distribution

I was considering how MMO mechanics work and especially how NPC/mob decisions are calculated and distributed among players. Say for example that you have a team of 5 fighting a boss. The boss's ...
1
vote
2answers
82 views

Networking with UDP, should I keep sockets open on the server

I am working on making a 2D platforming game that will have multiplayer functionality. Over the last few days, I have done a lot of reading regarding how to deal with the networking, and believe that ...
0
votes
2answers
110 views

Do I need TCP socket?

My game uses UDP sockets to stream updates between server and client and I've also made a reliable channel that resends messages if there's no response and makes sure same message isn't processed ...
1
vote
2answers
51 views

Any way to load/execute scripts (game-logic) included in a post-release DLC (Unity3D AssetBundles) on iOS since it seems its not allowed?

We are making a game where players will be granted access to new levels every week and these new levels will probably be downloaded from our server as Unity Asset Bundles The only issue is, as ...
14
votes
3answers
3k views

Why does editing the client's memory in some MMOs allow them to cheat?

Why editing the memory of the game client works? Why so many "Hack protection" tools coming with the clients? If I were to design a client-server game, everything would happen at the server (the ...
4
votes
3answers
308 views

How can one add a level to an already published ios/android unity3D game on a daily basis?

How can one add a level to an already published iOS/Android Unity3D game on a daily/weekly basis? I know this probably isn't feasible but it won't harm if I just made sure of it. Our game requires to ...
1
vote
0answers
45 views

Security-minded design patterns / paradigm for client/server application

I am working on a client/server application and am starting to take it from proof-of-concept to actual implementation. The client is an Android application and the server is in PHP. In similar ...
2
votes
1answer
469 views

Why will my server not execute a command sent by the client in Unity 5.1?

I'm working on a very simple/basic client-server networking program, the basis of a future game I hope to create. Now the client program/project DOES successfully connect with the 'server ...
1
vote
1answer
92 views

Should frame update and network packet sending synchronous or asynchronous?

I am making a game server that has 60 Update-Per-Second (assume I can most of the time achieve it). In the current model, my main loop does the following tasks in sequence: Update game logic ...
0
votes
1answer
61 views

Validating User Actions on the Server

I am currently working on a networked first person shooter. I have created a server implementation that can synchronize player data. But while implementing a damage system, I realized that I almost ...
6
votes
5answers
516 views

Authentication between client, central server, and player ran server

I am developing an open source game that uses a client-server scheme similar to Minecraft. We will control the central authentication server that verifies an account is valid, while players will run ...
4
votes
1answer
141 views

Packet size vs packet frequency

I am making a multiplayer game in Java that uses a client-server model, where all important decisions are made by the server and communicated to all clients over UDP. Currently the clients and the ...
3
votes
1answer
244 views

How do I create a multiplayer server also suitable for local single-player?

I've created a voxel game in C++, OpenGL and SFML, and I want to make it multiplayer. I'd like to make it similar to Minecraft's client-server model: The single-player is just a client to the hidden ...
0
votes
1answer
98 views

How to implement server side auto attack?

I'm writing a basic MMORPG and im trying to implement auto attack. At client side I send an AutoAttackMessage to the server. Should I send this message every X ms to the server, or juste one time ...
0
votes
3answers
226 views

Game Networking: Client request or Server Sending

I'm trying to implement a basic client-server setup for my game. But what confused me was how I would approach sending updates. Would I do: Server has a tickrate, let's say at 20ms. Each tick would ...
1
vote
2answers
70 views

Client Tells Server What Gamestate Data to Send Back

I'm just stepping into the world of MMORPGs and how they function, so assume I know very little. in a game, a client doesn't see everything that the server does. For example, the client can't see ...
0
votes
0answers
45 views

How to deal with cheat avoidance and trusted client issue [duplicate]

I hope not to be off-topic here. At the moment I'm dealing with networking programming for the game I'm working on and I found different possible scenarios. I started to build code using a Platform ...
6
votes
2answers
382 views

How to keep server-client clocks in-sync for precision networked games like Quake 3?

I'm working on a 2D top-down-shooter and doing my best to copy concepts used in networked games like Quake 3. I have an authorative server. The server sends snapshots to clients. Snapshots contain a ...
2
votes
1answer
175 views

Client-Server Game Communication (w/ Protobuf, Relevancy and Delta Compression)

So, I have reached another problem while trying to implement my client-server communication. From everything I've read there are three main ways to minimize packet size: Only send what has changed ...
0
votes
1answer
61 views

Application components dependancy and decoupling

In my client application I have two major components: GameCore - wrapper that handles everything about running the actual game NetworkClient - A layer that takes care of ...
1
vote
1answer
158 views

Should I switch to UDP for a mobile p2p game when considering 3G network?

I have been making a mobile game that is similar to "Street Fighter" where two players play with each other via Internet. The game sends out a small packet (controller status) to the other party ...
0
votes
1answer
146 views

Client/Server best way of telling client which player it is

I'm making a client/server, everything works grand its very simple, a simple login system, ID, empty variable and the X and Y positions of the player. Should my server tell my client who it is? and ...
0
votes
1answer
127 views

Implementing Client-Server Delta Compression (with Protobufs)

I am writing a 2D real-time RPG in C# and I am trying to implement client-server communication using protocol buffers. I am trying to figure out how to implement delta compression to reduce message ...
3
votes
0answers
120 views

client-server network model for top-down WASD game [closed]

I'm currently working on a multiplayer game with top-down camera view and WASD player control, similar to Bloodline Champions. Projectiles, spawned by players are relatively slow and clearly visible, ...
2
votes
1answer
171 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 ...
14
votes
4answers
3k 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
142 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 ...
0
votes
3answers
222 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 ...
10
votes
2answers
983 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 ...
6
votes
3answers
122 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 ...
4
votes
4answers
523 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
42 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
166 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 ...
2
votes
2answers
1k 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 ...
0
votes
3answers
311 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, ...
0
votes
1answer
149 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 ...
0
votes
1answer
93 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 ...
1
vote
1answer
184 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 ...
2
votes
1answer
112 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 ...
0
votes
2answers
71 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 ...
5
votes
3answers
2k 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 ...
2
votes
2answers
155 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 ...
1
vote
1answer
151 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
1answer
211 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
697 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 ...