Questions tagged [udp]

Questions about using unreliable UDP protocol in games which requires data exchange via network.

Filter by
Sorted by
Tagged with
-2
votes
0answers
45 views

how can i separate a network function so i can run it each frame?. c++ game development [closed]

full disclosure: i am not a very experienced C++ developer so i think i am asking something basic. i have this snippet of code that start my client: ...
2
votes
0answers
59 views

C# UDP Multiplayer Networking - issue with choppiness and consistency

I know I've done this incorrectly, but I don't know what the right way is. Right now I have two clients that connect to a server. Each tick the players send a packet of information containing their ...
0
votes
1answer
41 views

Multiplayer network architecture - why do we need to verify local movements?

I'm messing around with a 2D game using UDP. I've read some books and articles on the logic of a dedicated server to clients multiplayer game and I can't wrap my head around one thing: What I've read:...
0
votes
0answers
35 views

Client-side Prediction Divergence with Input Packets and Time Differences | Multiplayer FPS

I am running into a problem while implementing client-side prediction in my multiplayer FPS. I'm not entirely sure if I've completely and correctly understood the concepts. I have read the articles ...
0
votes
1answer
98 views

TCP vs. Reliable UDP? Sending Reliable Packets in Fast-paced Multiplayer Games?

I'm currently working on a networking framework for Unity3D in order to simplify making multiplayer games. I'm using UDP for any kind of synchronisation and unimportant data. My question is: how do ...
0
votes
1answer
374 views

Creating A UDP Game Server

I am currently creating a game in need of networking i.e. server and clients. I have basic experience with socket programming and am able to transfer data between two machines via UDP sockets using ...
0
votes
2answers
223 views

Should I create thread for both UDP and TCP?

So I have TCP connection for stuff like leveing, player info, etc..And I have UDP datagram for stuff like player position, rotation, etc..Should I create new thread for both TCP and UDP on both client ...
0
votes
0answers
35 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 ...
0
votes
0answers
24 views

Can a mobile device create a game server for two-player online games in turn? [duplicate]

First of all excuse me if I say crazy things. I'm trying to make a turn-based multiplayer logic game for two players. This is my purpose: Two types of user, the one who creates the map and the one ...
1
vote
1answer
183 views

Why can I only connect one client to my server?

I am currently working on a Udp server and client system, where I worked out a way to "verify" which user is sending the updates. Essentially, the very first package they send is "blank", which the ...
1
vote
0answers
257 views

Using UDP vs Websockets

I am running a Unity Game on a PC (for development purposes) and then on an Android phone (for production). I need to send data to the Game continuously from a WiFi enabled microcontroller (Esp32). Is ...
1
vote
1answer
189 views

How to properly handle sending arrow-key movement data to a authoritative server?

I've made a little C# server which receives UDP packets and shows me the incoming information. I want to make an authoritative server in C# which simulates character movement and interaction in a 2D ...
-1
votes
1answer
149 views

Getting the same message while using Facepunch.Steamworks

I use Facepunch.Steamworks for P2P game made in Unity, so I send packets through it(UnreliableNoDelay sendtype), but I've got a problem, since I send message like this: Move:0 and get this: Move:00,...
2
votes
1answer
117 views

RTS game: How to handle disconnects in a fully connected peer to peer architecture?

I'm currently working on a game in which I am considering implementing a networking architecture as described in this article: http://www.gamasutra.com/view/feature/131503/...
5
votes
1answer
167 views

Will TCP really affects UDP if used in different context?

I have read some questions about using both TCP and UDP in multiplayer game, such as Does it make sense to use both TCP and UDP at once? and Is UDP still better than TCP for data-heavy realtime games?....
1
vote
1answer
127 views

Network limitation in multiplayer game

I have a multiplayer cooperative game (PVE) in where there can be up to 200 enemies at a time (somewhere around that) and I was wondering how devs generally synchronize these? I already have packets ...
0
votes
0answers
93 views

Duplicate packets and termination of packets in multiplayer game

I'm making a multiplayer game (lazertag) with real hardware. After hours of research, I'm choosing the UDP instead of the TCP protocol to exchange data. Because of how unreliable UDP is and because ...
0
votes
0answers
97 views

How to reduce server traffic for 100+ multiplayers game?

I'm working on fast-paced multiplayer game which has 100+ players in single session. To sync entire game state to each player, server should send massive data if I did not any compression: ...
0
votes
2answers
211 views

Latency issue on multiplayer game networking

I am currently writing a 2D top-down shooting multiplayer game using Java. I have a game loop at the client-side that does the following in order in each game tick (The client is running in a tick ...
0
votes
1answer
1k views

udp over cellular networks? [closed]

I'm starting to build a multiplayer iOS game using UDP. I want the game to be playable over cellular networks, but I can't really find that much information on it. Many people say that it's dependent ...
3
votes
1answer
485 views

What is a reasonable bandwidth usage for a RT multiplayer game? [closed]

My game uses UDP communication only. Meaning: after the lobby connect (performed by Google Play Services), not a single TCP transmission is made. Only unreliable messages are used. The game is ...
16
votes
4answers
6k views

Acknowledgement reliability using UDP

I have a question about UDP. For context, I'm working on a real-time action game. I've read quite a bit about the differences between UDP and TCP and I feel I understand them quite well, but there's ...
5
votes
3answers
1k views

Synchronizing over UDP

I have two apps communicating over UDP. One of the apps is a remote control and the other is a robot. When the robot has some new data, for example a new sensor ...
0
votes
1answer
110 views

Handling Player “sessions” on a UDP based server

I've been building a UDP server and have hit a bit of a stumbling point. Since UDP is not a persisted connection, there really isn't a way for me to track if the Player has left the current session/...
0
votes
2answers
1k views

Sending Vector3 from Unity to custom C# server

I'm working on a multiplayer game in which the server is a custom C# server. What I want to do is to store the position of each player in my database. In my case I'm sending Vector3 as an object ...
1
vote
2answers
2k views

Network protocol for chat — UDP or TCP

I'm trying to develop a fast-paced multiplayer game. Now I'm using UDP as a transport-layer protocol to communicate between clients and server. But what if I want to implement a chat? Should I send ...
4
votes
1answer
1k views

How to organize messages queue in a fast-paced multiplayer game

I'm trying to develop a fast-paced multiplayer game. I decided to build my own protocol over UDP and now I'm stuck with the following question. The idea of the protocol is very basic and it's similar ...
3
votes
1answer
886 views

UDP server in unity not working

I know there are a lot of UDP examples out there, but I really need to know specifically what I am doing wrong. I have Wireshark monitoring my data traffic and according to that program Unity is not ...
1
vote
0answers
113 views

UDP client code throwing a very nonspecific exception

so I'm writing a UDP server and client on a couple of the machines in my virtual reality environment to allow (in this case) data from the location in the environment to trigger some air nozzles. The ...
10
votes
4answers
5k views

Does it make sense to use both TCP and UDP at once?

After reading Is UDP still better than TCP for data-heavy realtime games?, I'm wondering if it makes sense to use both TCP and UDP at the same time, but for different things: TCP for sending ...
73
votes
10answers
30k views

Is UDP still better than TCP for data-heavy realtime games?

I know that UDP is usually recommended for real-time multiplayer games with high data usage. Most articles are serval years old, and since ~80% of all data transmitted on the internet is TCP, a lot ...
0
votes
1answer
114 views

Send OpenGL video flux via UDP [closed]

It is possible to send the video flux of an OpenGL desktop app via UDP on Linux ? I looked up FBO and off-screen rendering but I still can't figure out how to extract the video flux and send it. I'm ...
1
vote
0answers
96 views

Extrapolation - synchronize destination point on a second device while moving

First of all, I read all of the Valve and Gaffer articles but I still have no clue, how to achieve my goal. I am creating a UDP multiplayer game with a lot of physics (knockbacks, attacks). Packets ...
1
vote
0answers
171 views

Host Migration (P2P) with RTMFP and AS3

I was wondering if this is a possibility with RTMFP since it acts like UDP/P2P.. Host Migration Player A starts and host a game.. Player B and C connects.. Player A quits.. Player B is now assigned ...
2
votes
2answers
1k views

Do I need more than one UDP socket on the server?

I'm trying to make a UDP game server using the SDL_net library. This library offers SocketSets which are, according to the documentation, an analogy to the select ...
1
vote
1answer
329 views

How do I keep 1v1 player positions consistent over UDP on Kryonet?

I have a server which is simple: When two connections comes in, it opens a game room, pass their connections to it and runs a thread with a gameloop. (Everything is running on Kryonet) So... I made ...
0
votes
2answers
586 views

Simple mobile multiplayer game. TCP/UDP? [duplicate]

I'm tying to dive into multiplayer game programming. The game is quite simple, it's a 2D scroller mobile game, the player need to touch the screen in order to move 1 step and it could contain up to 4 ...
5
votes
3answers
3k 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 ...
5
votes
0answers
2k views

Unity3D LLAPI and Pyhton UDP communication

I need a Unity3D game on Android to receive UDP packages from a Python script running on a different device. Using System.Net is not (yet) an option, as it is only supported on Android with a valid ...
2
votes
2answers
4k 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 ...
7
votes
1answer
5k 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 ...
0
votes
2answers
6k views

How to send object transform position coordinates over UDP from Unity 3D

I'm trying to send the x, y and z coordinates of an in-game object over UDP. I found a script in a Unity forum which should send info over UDP and as I understand it it should send the information ...
0
votes
2answers
887 views

TCP For RTS Game?

My RTS game abides by the lockstep system so keeping everyone up to date is import and guaranteeing the safe arrival of packets would make my life a lot easier. With that said, I still need decent ...
0
votes
1answer
656 views

How to estimate number or packets required to sent per second in a multiplayer lockstep RTS game?

Considered a typical lockstep implementation, what's a solid rate to send packets at for UDP protocol that games can start with in the beginning? If anyone has experience in this field, I'd like to ...
1
vote
1answer
665 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
3k views

Too much delay while sending object over UDP to server

I'm getting 4 sec delay when sending objects over UDP. Working on small game and trying to implement multiplayer. For now just trying to synchronize movements of 2 balls on the screen. StartingPoint....
1
vote
2answers
2k views

UDP Netcode Architecture for Fighting Game

I am programming a fighting game that uses a UDP client/server architecture for multiplayer. The server can handle multiple clients, two of which (or one being the server) are playing and the rest are ...
4
votes
2answers
5k views

Kryonet usage for game networking

Im making a game where real-time data is exchanged between server and clients, and I was using java UDP sockets straight up, but I reached a point where I actually need to know if a few specific ...
4
votes
2answers
3k views

Is there a maximum delay an UDP packet can have?

I am currently implementing a real-time network protocol for a multiplayer game using UDP. I am not having any technical difficulties, but as I always have to care about late UDP packets I am ...
1
vote
2answers
1k views

How to I access “Deny” message from a Lidgren client?

I'm using the Lidgren v3 network for a UDP client/server networking model. On the server end, I'm initializing a NetServer object with the NetIncomingMessage.ConnectionApproval message type enabled. ...