Questions tagged [networking]

Two or more computers connected together via cable bound or wireless communication links for the purpose of information exchange.

Filter by
Sorted by
Tagged with
0
votes
1answer
89 views

NavMesh - LoS and "Containing"

For a gameserver/backend, I have a navmesh for "walkable" areas in form of points/triangles. Now I want to check every gametick if the client is still in a legit place and if he shots/casts a spell, ...
0
votes
1answer
43 views

With GGPO rollback netcode, how many times might I need to update my game engine in one frame?

I'm working on a game that's going to use GGPO for rollback netcode. I understand the need for a deterministic engine whose state can be saved, restored, advanced from user inputs, etc. I understand ...
0
votes
0answers
26 views

How can we implement tick rate on iOS?

I am really new to gaming development. For my multi-player game, I want to send my gaming update to the server 64 times per second. Is it a good idea to use ...
0
votes
0answers
25 views

Testing graphical & network performance of a game

I'm trying to compile a list things I should test to measure whether the development of a multiplayer game is going well. I've put a few links referring to Unreal to illustrate because that's what ...
3
votes
0answers
34 views

Client Side Prediction Doesn't Work with Fluctuating Latency

Ive been working on a prototype for client side prediction in multiplayer games, Ive managed to make it work but for some reason the prediction breaks when the latency fluctuates. For example if I ...
0
votes
0answers
25 views

UE4 Best way to store the winner of a multiplayer game?

Ok I have a Game Mode, and a Game State, the game mode counts player kills and when a player reaches 10, the game mode enters the end state. It stores the winner on the game state, which the clients ...
1
vote
1answer
41 views

Networked game with physics and client side prediction and server reconsiliation causes lag

I'm trying to make a multiplayer platformer game. I can almost get client side prediction and server reconsiliation to work, but there is one issue that I just can't wrap my head around. Lets say that ...
1
vote
1answer
201 views

NodeJS client gameloop running slightly faster than server gameloop

So I'm working on a real time multiplayer game in NodeJs (Client and Server). Both loops handle the same "physics" (movement at a constant rate) and both are running at 40hz or 40 times per second. I ...
2
votes
1answer
807 views

problem using OnStartServer() for unity multiplayer networked game

UPDATE: i am still scratching my head over this. The way i see it, the Awake() function is only invoked when I load it in the Editor, but if I put the prefab Loading line into OnStartServer() it just ...
3
votes
1answer
875 views

Authoritative server controlling objects in multiple scenes in Unity3D

I am working on a multiplayer project that involves loading into different scenes and playing some kind of mini-game with any other players that happen to be in the scene at that time. These mini-...
4
votes
1answer
539 views

Start Broadcast Unity Network Discovery

I am using the unity NetworkDiscovery component, and I am wondering how I can auto-start broadcasting when the server starts, instead of the client having to click ...
0
votes
1answer
80 views

processing request in order on game server

I am creating a simple multiplayer puzzle game in which multiple players can join a lobby and compete with each other. the player that submits the answer first gets the highest point, the player that ...
1
vote
0answers
37 views

How is the processing for FPS games with massive worlds (like Planetside 2) distributed between servers?

For such massively sized maps with an insane amount of players when it came out (or maybe it still has thousands of players in one general area at once still?), I'm almost certain the entire world is ...
0
votes
1answer
60 views

Online convertible board game that is not online but based on multiple players

I'm wondering how a system can be made compatible with networking operations (client-server). By saying "networking operations" I mean a system that can handle online operations, multiple ...
0
votes
1answer
67 views

Connecting clients with UDP and WebSocket connections

I'm in the process of making a physics intensive multiplayer game. Naturally I use a UDP to transfer packets regarding rigidbodies between client and an authoritative server. However non-essential ...
4
votes
2answers
4k views

How do I resolve the error "Trying to send command for object without authority."?

I don't know what I did wrong I tried couple different ways from not using commands to using SpawnWithClientAuthority. But It either gives build and compile errors ...
1
vote
0answers
32 views

How to have different world states on each client but treat them as though they were the same?

I've got a voxel-based, Minecraft-like, 3rd-person isometric multiplayer game with camera rotation. Roofs are always the same height. Players can walk on roofs, and shoot or be shot while standing on ...
2
votes
0answers
63 views

Sidecar Processes in Unity?

I'm a .NET Core web developer trying to learn Unity. In web development, if I want to perform more than one domain function at a time, I either want to run it as a totally separate service (disjointed/...
4
votes
1answer
1k views

Changing scene while joining room and RPC buffer problem

I have a button on my main menu that creates and has the player join a random room. After the client joins this room, I change the scene to the game (main) scene in the ...
0
votes
3answers
516 views

Unity FPS Offline Multiplayer (MultiLan) Player Animation

I am creating an FPS game in local multiplayer. One player creates the hot-spot game, and the other one connects through WiFi network and plays the game. And i am doing this using unity MultiLan ...
6
votes
1answer
302 views

Lidgren not starting server properly

I have a server set up for my game with Lidgren, and it works well when I have it set up on one machine, but if I try to run the server on another machine, I am unable to connect from other machines. ...
0
votes
1answer
43 views

In a multi-player game where one player becomes invisible, is the data about the invisible player sent to the enemy game clients?

In my 3d FPS game, there is a feature where a player could have it's character become invisible for some time. The character is only invisible, they're still there and can move around: the other ...
0
votes
1answer
197 views

400 bad request UnityWebRequest

hey everyone any ideas why im getting a 400 error? im trying to post a json to a subscription list. doing that through postman works just fine! ...
2
votes
1answer
2k views

Unity 5 Networking Send Rate: Send Rate is Zero but server movement is still happening

I have a client server scenario, just a player moving about on the client and he moves about on the server using the built in networking provided in Unity 5. I have my client scene running in the ...
4
votes
1answer
207 views

Synchronizing actions with animations across network

I'm working on a project which allows players to take actions in time-limited turns. All players are connected to a central server, which is authoritative. That means the server sends info that a turn ...
3
votes
2answers
67 views

If a game automatically downloads addon content it doesn't already have when joining a server, how can I test this without a second computer?

What I want to do is host a local test server that has the file, and connect to it from a local client which doesn't have the file. The only issue is that both the server and the client will look for ...
3
votes
2answers
501 views

What is transmitted over the network during multiplayer first person shooter games?

In games like Half-Life 2, Team Fortress 2 etc, when you play against other players online, your local game communicates with a game server. If you've built one of these games, what sort of ...
3
votes
1answer
666 views

Lag Compensation in a Real-Time Game

I have been trying to implement some lag compensation techniques for a real-time game, I've found some good resources online, but I don't think I fully understand the server-side part of the problem. ...
6
votes
1answer
9k views

Sending RPC calls from server to client inside Unity

In my game inside Unity, I have two scenes setup. One for the main server ( acts like authoritative server ) and the other scene for my client. The game starts once my client connects to the server. ...
1
vote
1answer
979 views

Communication between Photon Cloud game and web server

I am creating a multiplayer game using Photon Cloud (Photon Unity Network). For storage of player data (profile, inventory, achievments) I use web server (asp.net mvc & sql server). How to ...
0
votes
3answers
104 views

Authoritative vs REST (server)

I am filling out a Godot user survey, and I'm not sure how to answer this question: Do you use (or plan to use) networking in your games? * Yes, for real-time peer-to-peer multiplayer Yes, for ...
2
votes
1answer
199 views

How do multiplayer servers handle receiving, handling, and sending packets?

I want to make a fighter jet simulator game. The server (authoritative) and client communicate over udp. The server sends out updates about the gamestate at a fixed rate. Think of plane positions, ...
9
votes
3answers
561 views

How to prevent a hacked-server from spoofing a master server?

I wish to setup a room-based multiplayer game model where players may host matches and serve as host (IE the server with authoritative power). I wish to host a master server which tracks player's ...
3
votes
2answers
64 views

Prevent multiple input packets to authoritative server

I'm working on a simple game with an authoritative server. The player can move in 4 directions on a 2D board. The game samples input at 30hz and sends it to the server. The server also runs at 30hz. ...
1
vote
0answers
16 views

Prediction in deterministic netcode: Mixing predicted and non-predicted elements in display code. How do?

This one is a bit complex. So, I'm working on an FPS game that uses deterministic lockstep netcode, it can predict certain things like the player's own movement, weapon firing, and sounds. Entities ...
1
vote
0answers
41 views

Player speed varies due to interpolation

I'm building a multiplayer FPS in the vein of Quake. This is my setup: Clients send the server a "user command" on every simulation tick (which is fixed at 60 simulation steps per second) ...
1
vote
0answers
55 views

Interpolation hitches caused by Quake-like client-server design

I'm building a very small multiplayer shooter game. I'm facing a problem related to interpolation. In order to explain the problem I have to give an overview of the client-server design of my game (it'...
1
vote
1answer
117 views

How do ticks work on game servers?

So I'm currently learning more about game networking and how clients and servers work, and something that I have a hard time wrapping my head around is how game servers works in terms of ticks. Why do ...
1
vote
0answers
17 views

Sync issues with replaying movement

I am creating a networked game and having issues with keeping positions synced between multiple clients. Essentially what I have happening is one client's movement to replaying on another routed ...
14
votes
2answers
1k views

How to compensate for moving objects with client side prediction?

I'm implementing a game server that supports Star Control-like melee. So you have ships flying and shooting, with super simple velocity/acceleration/dampening physics to drive movement. I've read ...
0
votes
1answer
117 views

ecs network synchronization

I'm working on implementing combat into my isometric RPG game which uses an ECS architecture. When synchronizing the actions of the different clients, is it preferable to serialize and synchronize raw ...
0
votes
0answers
35 views

How to exactly to send game info packets(Player position, rotation, state, etc...) to server, and with what protocol

So the title might be confusing to some but what I fail to figure out how to keep all players perfectly in sync if there are more than lets say 10 players. So what I am trying to do but I think its a ...
5
votes
2answers
3k views

Mobile Multiplayer games and coping with high latency

I'm currently researching regarding a design for an online (realtime) mobile multiplayer game. As such, i'm taking into consideration that latencies (lag) is going to be high (perhaps higher than PC/...
6
votes
2answers
213 views

Networking a fast-paced game (2D) - Forced Movement - Server / Client

I started a new project, a fast-paced online game (some sort of 2D MOBA). I encountered a problem with the part of netcode about client prediction & server reconciliation. Game Mechanics: 2D - ...
2
votes
1answer
798 views

Game communicates with MongoDB in the Editor but not in WebGL build

I was trying to implement MongoDB in my Unity WebGL game and everything is working fine in the editor: I managed to insert and retrieve documents from my Mongo database with no issues. Everything ...
28
votes
9answers
12k views

How does delta compression reduce the amount of data sent over the network?

Many games use the technique of delta compression in order to lower the data load sent. I fail to understand how this technique actually lowers the data load? For example, let's say I want to send a ...
1
vote
0answers
44 views

Client side prediction buffer size considerations for jitter

I am currently having a FPS game with client side prediction. Every 20ms, the client sends it's input to the server. The server buffers 5 ticks worth of input (100ms) and starts consuming the inputs ...
1
vote
1answer
143 views

Where should I put code to be run on the client after connecting to a server?

I'm making a multiplayer game with Unreal Engine, and I need to run some blueprint code on the client after they have connected to the server. This includes creating the HUD widget, uploading the ...
3
votes
0answers
38 views

How is a Challenge implemented for a game networking protocol?

Working on an authoritative online game using LiteNetLib. I've been reading about building a game network protocol and I'm feeling stuck with the "challenge" implementation. The client ...
0
votes
0answers
25 views

Securing a replay-based leaderboard system (as much as possible)

A few years ago, I implemented a basic online leaderboard system in one of my games that sent encrypted score data over the wire. The encryption keys were stored in the game client's binary. Of course,...

1
2 3 4 5
17