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

8
votes
2answers
124 views

Should I use secure WebSockets for a game?

Is SSL necessary for a web game? I'm using Node.js with socket.io. Without it, when using unsecured networks someone on the LAN could change commands being sent to the server and "take over" a ...
4
votes
4answers
331 views

Should the bullet trajectory calculated by server or by client? [duplicate]

In a FPS game like Battlefield or Arma, when playing online, should the bullet trajectory be calculated by the server or by the client?
0
votes
0answers
32 views

How should I store game data in the multiple servers [closed]

I'm developing multiplayer game server on NODE.JS, with SOCKET.IO. For one server I'm saving game instances in memory variable. But few minutes ago I though, what should I do, if there will be a ...
2
votes
3answers
74 views

Storing game data on user end?

A thought occurred to me after seeing this question: Storing data - think character data for an online game - on the user`s computer is definitely less safe (maybe an understatement) than on a server ...
2
votes
1answer
38 views

Network latency compensation problem for laggy players with collision

Say there are two clients connected to an authoritative game server, using input + state synchronization strategy. Client 1’s has a round-trip latency of 100ms and client 2 with 400ms latency. For now ...
1
vote
1answer
51 views

Should I consider a cloud-based networking solution?

In my spare time for the past few years, I have been working on both the front-end and back-end for a space-based online game. This game is initially designed for the PC, and is hopefully able to host ...
1
vote
1answer
69 views

What's the most efficient way to send a users keypresses to the server?

So I've been coding a little project in JS recently, using node.js and socket.io to create a server, and HTML5 canvas to draw the client side. The user receives info from the server every 20ms, and ...
2
votes
2answers
104 views

How to design a server for a multiplayer game? [closed]

I'm trying to write a multiplayer game where players join small matches with other players. What I also want is a way for players to login and go online. How would I design the a server that could ...
0
votes
1answer
48 views

Network Communication For Multi-Player Turn-Based Game

I'm attempting to develop a multi-platform turn-based game that [I suspect] follows the general client-server pattern. For this question, let's assume I only care about communications inside of a ...
1
vote
0answers
37 views

How do I allow clients to move a GameObject that exists on the server?

I started to delve into the UNet system for the first time the other day and I've run into a bit of an issue while testing on a localhost server. In the scene there is a Rigidbody ball that I want ...
0
votes
0answers
31 views

Turning a game into a server-client game

I'm redoing a game i wrote in XNA to Unity. The XNA game was the client to a server I wrote as a console application. How does Unity work with a server exactly, and how do you set that up?
1
vote
1answer
113 views

Handling items at the Server-side

I'm coding a very simple game Rust/Dayz like with Unity, and I'm using Forge Networking as network library. A few days ago, I started to code the Loot system. The Loots in my game are Items that ...
1
vote
1answer
58 views

Is Google's Protocol Buffer viable for the serialisation of game data? [closed]

Simple yes it is suitable, no it is not suitable for communications between game clients and/or server clients. Also is it suitable for serialising and storing game data or is a more customisable, ...
2
votes
0answers
34 views

Does the latest version of Python have libraries for easy host/server connections? [closed]

We're working on a turn-based multiplayer Risk-type strategy game in Pygame, and I was wondering if there were any pre-existing libraries like PodSixNet that worked for Python versions 3 and up that ...
2
votes
1answer
94 views

2015 android multiplayer server based Implementation

There are a lot of old posts about multiplayer implementations on SE, so i'm looking for an up-to-date answer. What is the best server-client implementation of real-time multiplayer now? I have an ...
0
votes
0answers
66 views

I need a script to control NAO robot with Unity3D by wifi network connection

I need a script to control NAO robot with Unity3D by wifi network connection. Unity will be server and NAO will be client. Can anybody help? I have a code for NAO, but I dont know how to write Unity ...
2
votes
1answer
79 views

Looking for good comunication schema in turn-based game with multiple players

based coop game that will need to communicate to the server to handle the game process. Basically I need to be able to invite to the game, progress through turns (one player at a time) and finish in ...
1
vote
0answers
114 views

Best practices for client-server communication in an online Android game

I'm developing an online RPG game for my "Object-Oriented Programming" module laboratory project. The client part must be written in C#, also using Unity 3D as a graphics engine. The problem is that ...
0
votes
1answer
23 views

iOS game center game is out of sync

I've been building a game center game for iOS and it works great so far. I finally started testing the game and theres (obviously) some latency, which is causing the game to be out of sync. ...
0
votes
1answer
64 views

Is it bad practice to for the server to request data for a client from another client?

I'm making a collaborative whiteboard app so that when someone is drawing and uses a rectangle for example, a rectangle packet is sent to the server with parameters like x, y, width, height, color and ...
1
vote
2answers
125 views

Syncing items between server and client

I'm doing this game of mine, and I want to add the items to it. I'm already familiar with the basic concept of syncing data between server and client, Usually using sync state, that's what i've done ...
0
votes
0answers
81 views

Coding against packet injection?

So suppose a game is such that when a player clicks a button a packet is sent to the server with some parameters. And let's say only one of the players in a room can click the button and it's disabled ...
1
vote
0answers
32 views

Client side predicition tick implementation

I've been reading about client side prediction and one question I have is what's the best way to implement the server tick. I thought about using the server frame count from the game engine I'm using ...
2
votes
3answers
275 views

UDP packet reliability and re-sending

Like most people on this exchange concerned with UDP client server connections, I've gone through the Gaffer on Games article about implementing reliability. I understand how the ordering and acks and ...
8
votes
1answer
2k views

How do I create a simple RPG game server? [closed]

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
42 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
33 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 ...
1
vote
1answer
110 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 ...
1
vote
0answers
38 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
91 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
276 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 ...
1
vote
2answers
127 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 ...
2
votes
2answers
189 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 ...
17
votes
3answers
4k 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
521 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
59 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
2k 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 ...
2
votes
1answer
135 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
72 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
850 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
364 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
306 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
130 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 ...
1
vote
3answers
449 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
95 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 ...
8
votes
2answers
806 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
232 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
70 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
240 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 ...