Questions tagged [networking]
Two or more computers connected together via cable bound or wireless communication links for the purpose of information exchange.
880
questions
0
votes
0
answers
35
views
In online multiplayer games, can we transfer a player between two local (or even distant) servers while game processes are running on both servers?
Brief intro 1: about me:
I have this question in the back of my mind for a really long period of time, and I am currently very busy in establishing the offline aspects of the game(will take more than ...
0
votes
1
answer
58
views
Input processing on the server-side
The problem:
Let's say we want to create top down MMORPG in browser, and we started with implementing movement of your character.
Okay, so how it works?
Character gets inputs and compares if they are ...
0
votes
0
answers
31
views
Display a user webcam over multiplayer session on a wall in the middle of a level?
With the media framework, it’s now quite easy to use webcam or phone camera footage directly in the game.
Is there also a way to share this footage in a multiplayer game? So player A can see the ...
0
votes
0
answers
42
views
How do I send data from client to server using LiteNetLib
I started with the example client and server from here and modified the client to send a response back to the server... which never arrives. What am I doing wrong? How do I do this?
Server:
...
0
votes
1
answer
143
views
How do you upload an AudioClip to a server in Unity?
My current approach is to take an AudioClip, turn it into a byte array, then put it into an UploadHandler, attached to a UnityWebRequest, to send a POST request to a server.
Right now, when I pass ...
1
vote
2
answers
55
views
TCP packets getting more and more delay as time goes by
I have a two processes - a client sending player input data to the server, via TCP.
Right now, it's sending 60 input updates per second. The first update arrives promptly in my test system, where both ...
0
votes
1
answer
39
views
How to redact an event in a prediction/reconciliation networking model
I'm struggling with how to handle a particular situation in a prediction/reconciliation server model.
At t=0, Player A is firing. Player B is moving into A's line ...
0
votes
0
answers
60
views
Multiplayer Trivia Network Game
I am developing a multiplayer trivia game.
What is the correct way to pick up who was the first to answer the answer when it comes to extremely thin time differences
0
votes
0
answers
31
views
Emulating a Forza telemetry server and/or an OBD Bluetooth adapter (in Python)
I'm making a driving game in Pygame, and want to give a player the option to send game data to a Forza-compatible dashboard app (like SIM Dashboard) or to an OBD app (like RevHeadz). How do I do so?
...
0
votes
0
answers
31
views
How should client and server handle delayed attacks?
For the MMO RPG I'm making, there are some attacks that have a bit of FX prior to the actual attack occurring. To do this, here are the steps I have in place:
Client tells server they are performing ...
0
votes
0
answers
80
views
Server-Client Communication
I have a client, and it's basically a potato client. What I mean by that is it's code is something like this: (This is a junky version of the code, just to make a point)
...
0
votes
2
answers
86
views
Host & Client user input moving both Player prefabs at the same time
I have a player controller attached to the Player prefab - along with the NGO components
Network Object Client Network Transform Network Animator
In the Network Manager I have the Player prefab added ...
0
votes
0
answers
45
views
How to listen for a TCP message?
I want to create a Unity WebGL application, that will run in a browser.
I want to allow this application to "listen" for messages, so it needs to be a server.
What could be the developing ...
0
votes
1
answer
62
views
P2P + Authoritative server for Web based game, how to combine?
I'm working on an online Web RPG game (jRPG) with a map, that characters can go around.
Also, an important part, is that each player has his own world and each player can invite his friends to play on ...
1
vote
1
answer
129
views
What makes the network coding for MUDs different from that of MMORPGs?
(I understand this is a bit broad, but I'm not a game developer, so I don't have a particular problem that I'm trying to solve.)
I can understand why the network coding for MMORPGs is so complicated ...
0
votes
0
answers
52
views
Why don't my pieces shuffle on the client's end?
In my game there is a 'Shuffle()' function that both clients and the host can access that shuffles pieces around on a board:
...
0
votes
0
answers
104
views
Game networking with physics different client and server languages
We are currently having only "turn based" multiplayer games in our party game lobby system. Now we considered to add realtime multiplayer games as well, for example golf in 3D. Our current ...
1
vote
1
answer
187
views
Why nobody creates shared world games? [closed]
Vast majority of modern network games use "lobby" conception: when limited amount of players connect to a single lobby server and play the game in isolation from everyone else who is not in ...
2
votes
1
answer
74
views
Syncing chest content in a host-client multiplayer setup
I'm modding a FPS game by adding a 2 player co-op multiplayer to an otherwise completely single player game.
One game instance acts as the host and I try to implement the synchronization of the ...
0
votes
1
answer
99
views
Java Netty cannot connect to the server
I am creating a simple 2d multiplayer game supported by the Netty library. The server is located on my local computer. I have a problem: why are some clients unable to connect? I tested on several ...
0
votes
1
answer
68
views
Informing clients of player actions in 2d platformer
I'm creating an online game (2d platformer) and I'm having some trouble understanding what to send clients. I'm sampling each player's input and sending it to the server after a set amount of time. ...
0
votes
1
answer
97
views
Network racing game position interpolation jitters a lot
I'm making multiplayer racing game and I have problem with interpolating position..
Here's the sequence.
Server simulate the world and send vehicle transform packet through UDP socket every 33ms to ...
0
votes
1
answer
230
views
Pathfinding over network and local avoidance
I'm trying to build a little MOBA game (max 10 players) in Unity and i'm really stuck with the pathfinding / local avoidance.
Here is what i'm doing when user click to move on the map:
Client send a ...
1
vote
1
answer
79
views
GGPO / peer to peer winstate
How do games using GGPO (or maybe peer to peer in general) like Guilty Gear determine a winner? Just reporting a winner consensus might work with many independent players per lobby, but in e.g. a 1v1 ...
0
votes
1
answer
229
views
How to implement rollback
From what I've read, there's several components which go into rollback netcode and requirements.
1: Your game logic update (input/state update) has to be able to run independently of your rendering (...
0
votes
2
answers
156
views
Measuring RTT for my network game?
I'm building networked racing game right now. I'm using winsock with TCP/UDP socket and IOCP.
I'm having trouble with latency masking and I don't even know if my implementation is wrong.
So, I'm ...
1
vote
1
answer
53
views
Do we need an ackowledgment packet in deterministic TCP multiplayer game?
I am trying to implement a deterministic game after having read 1500 archers on a 28.8. The simulation uses fixed-point math and the client only sends commands to the server which sends back the ...
0
votes
0
answers
122
views
Latency handling methods in a fast-paced multiplayer game with moving objects
I am working on a real-time multiplayer soccer game.
Currently, on my game, I created an architecture like that:
Every client has a copy of the game state, also the server has it too.
Clients send ...
0
votes
1
answer
97
views
Unity Multiplayer Sync Bools
I have a little problem with syncing booleans on my networking game.
I use the Mirror-Package for networking and use KCP for transport.
When the players basicly collide each other (using a sphere ...
0
votes
1
answer
607
views
Reliable RPC frequency limits in Unreal Engine
I am implementing a fighting game in Unreal Engine and I want to implement "rollback". The way I envision it so far is that in every frame, the client will send the inputs it received in ...
0
votes
1
answer
119
views
Architecture of networking in game engine
I am currently building a 2d game engine, with the future intention of adding some sort of networking functionality. I have past experience making networking games in Unity and whatnot, however I am ...
0
votes
2
answers
802
views
How to manually Simulate Physics properly on Unity?
I'm trying to simulate physics manualy in a Unity 3D game. I've turned off Physics "Auto Simulation" in Project Settings and wrote this piece of code (it is more or less the unity doc sample)...
1
vote
1
answer
150
views
Sandbox game: TCP or UDP
I know that UDP and TCP are not to be used at the same time, so I should only use one. I have read in this site that TCP should be used for a sandbox game. The problem is, My game is going to have ...
0
votes
1
answer
53
views
How do game clients handle actions that occurred in the past?
Imagine you’re playing an online game with consistent latency. Your local clock is synced closely with the server.
Your character is moving along a straight line, you’re receiving information about ...
1
vote
1
answer
294
views
Network mechanism for an RTS multiplayer game
I'm writing a real time strategy game in Rust. In this game each player controls one of two armies facing off on a battle zone. To better understand the gameplay, my project is an open source version ...
2
votes
2
answers
141
views
Ways to synchronize lists over the network?
Im working on a little plain c# gameserver using an ecs. It follows the principles of the client/server model architecture.
However im often running into the following problem, the server has one or ...
1
vote
1
answer
69
views
Multiplayer bullet trails
The problem is as follows:
A receives the position of B as 40,40. Now, obviously this position is already out of date. On Bs screen B is of course already at 50, 40. Now A shoots at an angle from 15,0 ...
1
vote
1
answer
334
views
Simulating movement input in server-side, with different tick rates
I'm designing a simple MMO game server with the help of ENet (reliable UDP library) and the Godot engine for client-side. I've read tons of articles, guides, stack exchanges questions regarding ...
0
votes
1
answer
97
views
How do i correctly interpolate between 2 positions recieved from server?
I am trying to implement interpolation in client side. I store Vector2 position data recieved from server in a list and try to interpolate (x,y) from previous position to next position as data comes. ...
3
votes
1
answer
56
views
Handling acks during 1+ second packet loss with Glenn Fiedler's Reliable UDP Solution
I've read through Glenn Fiedler's awesome guide on Reliability over UDP and I'm currently working on my own implementation for fun and learning purposes.
One pretty cool piece of Glenn's guide is that ...
1
vote
1
answer
222
views
Rollback netcode: how to avoid teleportation?
I've currently implemented rollback netcode with a central, authoritative server (wooh!). I'm running into issues where if players have zero input delay, the other players see them "teleport"...
0
votes
0
answers
145
views
Game server question: Sharing data between server and client
I'm personally developing a massive multiplayer server for the FPS game genre. (Ex: such as battlefield series or call of duty series)
In general, people usually use a server and client structure to ...
1
vote
0
answers
106
views
Jittery entity Interpolation when tick-rate exceeds framerate
In my current game implementation, our game servers send data to the clients only 10 times per second (~every 100ms). However, due to recent changes, we are now expected to change the server tick-rate ...
0
votes
0
answers
54
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 ...
2
votes
0
answers
63
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 ...
1
vote
0
answers
105
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
1
answer
203
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 ...
0
votes
1
answer
61
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 ...
2
votes
2
answers
78
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 ...
1
vote
3
answers
384
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 ...