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
12
votes
2 answers

Dealing with lag in XNA + lidgren

I am experimenting with lidgren in XNA and I'm having some issues with the 'lag'. I've downloaded their XNA sample and noticed that even their sample lags. The thing is, the movement is not smooth on the other side, and I'm trying this on a LAN (on…
Andreas Grech
  • 105,982
  • 98
  • 297
  • 360
8
votes
2 answers

Can lidgren-network library connect directly peer to peer given both IP addresses

I am using lidgen-network library 3 to try and create a peer to peer connection. I am new to network programming which is why i'm using this library. Using the DiscoverKnownPeer() function i have been able to connect within my network. What i have…
5
votes
1 answer

C# network programming using lidgren with mono

I'm currently writing a small online game using c# XNA and lidgren and I want to use mono + lidgren to write the server-program that is able to run on linux (cheaper hosting solutions). Is it possible to use lidgren and mono together? Should I use a…
Pruit
  • 101
  • 1
  • 5
5
votes
5 answers

Debugging an application called from another in Visual Studio?

I have a lobby application which invokes a client-application (think: League of Legends). They're two separate applications and the first invokes the second from itself - how can I get Visual Studio to debug this application as well?
Vaughan Hilts
  • 2,839
  • 1
  • 20
  • 39
3
votes
1 answer

Why does my simple lidgren client use so much memory?

I have a simple client and server that uses lidgren. The client continually sends requests to the server (messages consisting of one byte with value 1), and the client responds with "data" (2000 ushorts). It's doing this approximately 20 times a…
dpsla
  • 101
  • 1
  • 7
3
votes
1 answer

Lidgren create server instance for a second time results in System.Net.Sockets.SocketException

I am using Lidgren in Monogame. There is a possibility that a player would want to host a game, then exits the lobby, and wants to host again. However, when I do this in my code, the following exception is raised: System.Net.Sockets.SocketException:…
Danahi
  • 98
  • 1
  • 11
3
votes
0 answers

Not sure if need to compress data, or too large of a loop

I've been all over google looking for an answer to my problem, hoping someone here can shed some light on the whole thing. Okay, so, I'm working on a 2D Online RPG (Role Playing Game. Think Final Fantasy, but online). I've been working on it for…
Perfekt
  • 31
  • 3
3
votes
0 answers

Reliable Ordered Messages, Not read by client after first time. (Lidgren)

This may be a little long of a post I have a server and a client, and i have the ability to see the sent/rec messages and count them on both machines live, so that i dont have to go into debug in VS2012, i am running my server on an alternate…
2
votes
1 answer

How should i go about getting lidgren set up in XNA?

I've tried to do some research on lidgren but it has proven very difficult to find an in-depth tutorial on how to use lidgren 3 to fully manage a game. I have a few questions relating to lidgren integration. I've already made half my game. Will…
fatalwin
  • 35
  • 1
  • 4
2
votes
1 answer

How to use nuget package code inbetween #if DEBUG #endif directives?

I'm using the latest .NET core target Lidgren fork: https://github.com/soccermitchy/lidgren-network-gen3 and I'm trying to simulate packet loss / high latency. There is documentation on how to do this here:…
Koeno
  • 1,493
  • 2
  • 16
  • 30
2
votes
2 answers

Why can't I receive messages from 3rd party clients with Lidgren?

I'm using Lidgren as a networking library for my server application. I am just trying to learn how things can tie together in a real environment (database access, networking, physics, etc), so I decided that I would write a basic server application…
Dan
  • 10,282
  • 2
  • 37
  • 64
2
votes
1 answer

XNA - How to "install" Lidgren?

How do I use Lidgren.Network? I mean, "install" it so I can use it in my project? Because I would love to get started with simple multiplayer games, but I can't find any good tutorials online, but I've heard that Lidgren.Network is good :D I tried…
QuackTheDuck
  • 75
  • 1
  • 2
  • 8
2
votes
1 answer

XNA & Lidgren 3d networking game not drawing other models/players

I'm using the xna game engine and Lidgren library for networking. I have tested and made a 2d game where the clients connect to the server and the clients can see other players. However I've moved to trying to create a 3D game and the clients…
1
vote
1 answer

Best image compression for C#

I'm currently working on some software which captures your monitor image and sends it over to clients over the internet. So far I have it working in my local area network but when I go to test it over the internet, hardly any of the images get…
Jamie
  • 130
  • 1
  • 4
  • 14
1
vote
1 answer

Networking flow

I'm designing a game in C#, I'm sure you get it a lot - but my question is a bit different in that I want to design something around an observer pattern to my understanding - and I can't find much information it. All of my packets implement a basic…
1
2 3 4