Questions tagged [lidgren]

Lidgren.Network is an open source networking library for .NET Framework with a simple API used mainly in client/server games.

Lidgren Network 3 is a networking library for .NET Framework which uses a single UDP socket to deliver a simple API for connecting a client to a server, reading and sending messages.

46 questions
0
votes
1 answer

Creating a NetIncomingMessage with Lidgren from saved package in a binary file

I am using Lidgren networking library to create a real time multiplayer game. What I am trying to do is, save all incoming packages (including all bytes) to a peer in a binary file. Later when I need to debug some weird behavior of networking, I can…
BigThinker
  • 81
  • 1
  • 11
0
votes
1 answer

Error when using Lidgren Gen3 in Unity3d

i have the newest version from Lidgren (gen3) cloned from GitHub and i am using Unity3d in the newest version with Mono, but i also tryed to use Visual Studio 2015. Everytime i try the compiled DLL from Lidgren in a Unity-Project i got this error:…
DeepX
  • 1
  • 3
0
votes
1 answer

Read message from a certain client in Lidgren

I'm setting up a game with Lidgren, and I was wondering if there was a way to read a message from a certain client instead of just from the server as a whole, such as- //Why doesn't this exist? NetIncomingMessage message =…
TheUnrealMegashark
  • 309
  • 1
  • 6
  • 19
0
votes
1 answer

Networking issues, possible to resolve with async method?

I am learning to use the networking library Lidgren. I have tried to get a basic client/setup server going but I am getting an error thrown at me. So far I just have the server, when I run it the serve runs for maybe 10 seconds then crashes with an…
0
votes
1 answer

New property in class?

Well, my question is simple. I want to add a property to a pre - defined class. Imports Lidgren.Network Module Socket Public Clients As List(Of NetConnection) = New List(Of NetConnection) Need to add the "index " property , so that it is "…
user3571412
  • 105
  • 1
  • 9
0
votes
0 answers

Lidgren send message Client to Client (bypass overloading Server)

I am having problems with network traffic in Unity. A mojority of the traffic can be made to go between clients ( that are near each other in the game and hence need extra detail) in an effort to decrease server load. However the problem is that…
Aaron
  • 45
  • 1
  • 8
0
votes
0 answers

C# XNA Lidgren client receives messages incorrectly

I'm trying to make a simple server and client with Lidgren. The server is a C# console application and the client is made using XNA. The problem is when the client receives a message from the server, when it reads 2 floats it reads them as 0 (I'm…
RontoKing
  • 49
  • 1
  • 6
0
votes
1 answer

Get notified when new connection is established with server

I am using the Lidgren library in order to communicate strings throw computers over network. I can get notified when a client disconnects from the server but I can not when a client connects. I tried this piece of code running in a different thread…
user26830
  • 1,059
  • 4
  • 16
  • 25
0
votes
1 answer

lidgren/XNA how to use DiscoverLocalPeers to return IPs

I want to create a server/client game in XNA 4.0 using lidgren where the client can list available servers/hosts and choose which server to join. How can i use DiscoverLocalPeers or Client.DiscoverLocalPeers(40012); function to return a list of…
Mantsali
  • 1
  • 1
0
votes
1 answer

Lidgren - InvalidOperationException was unhandled

Argh! I'm back, guys! I hate having to bother others with my issues, but I've been working on this for like 3 days now. Using the Chat Application example, I molded it into my game. The client and server connect appropriately but... My client is…
Silver
  • 100
  • 1
  • 10
0
votes
1 answer

C# Lidgren - Send positions and playerstates?

Heey, i've been looking alot on Lidgren, and i've managed to get some simple console client and servers, but i'm having a really hard time with 2D... Basically what i have so far is only Console based applications but i found an Example of a 2D game…
QuackTheDuck
  • 75
  • 1
  • 2
  • 8
0
votes
1 answer

Lidgren message receiving error

I'm working on an xna networked game with lidgren and I can get the client and server to connect, but whenever the client receives a message in the DiscoveryRequest case I get the IndexOutOfRangeException error. Code for recieving messages in…
0
votes
2 answers

Lidgren is not sending/receiving Data messages

I have grabbed the latest edition of Lidgren, from https://code.google.com/p/lidgren-network-gen3/ I've reviewed many tutorials, but none seem to work. I presume I must be missing something in my code. using Lidgren.Network; using System; namespace…
user2286552
0
votes
1 answer

XNA and Lidgren Error: Trying to read past buffer size?

I am trying to create an online game using XNA and the Lidgren Networking Library. However, right now I am having trouble sending and receiving any messages without getting the error: "Trying to read past the buffer size - likely caused by…
Nick M
  • 3
  • 3
0
votes
3 answers

Can connect using loopback (127.0.0.1) but not using my IP Address

I am using a library called Lidgren network that handles all the network part of my application. It uses UDP. I never had any problem with TCP applications and port forwarding (apache, FTP, SMTP, etc). I did some TCP applications using TCP and I…
Pacha
  • 1,438
  • 3
  • 23
  • 46