using lidgren

The Lidgren network library (C#) seems like a natural fit for Unity multiplayer games, but I have been trying to integrate recently and I am getting hard crashes from Unity every time I try to start a simple server.

I used the durable server example and as soon as it tries to read a message it crashes the editor.

Anyone have an example or tips for how to integrate Lidgren?

Thanks

If you use unity for client and server don’t waste time on other network libraries. you can just as well use unity networking through RPC

if you use lidgren I would expect that you use unity for client only, server in pure .net

Yes, I was hoping to use pure .Net on the server side. Lidgren would give more low level control over what data was sent.

For scalability and a lightweight executable, thought Lidgren would be more suitable.

well then I don’t see why you try to make unity the server … confused

Sorry for the confusion, dreamora. I was trying both the server and client in Unity as a “proof of concept” just to see if I could get the library working by sending a simple message. Was then planning to move the server over to just .Net executable.

I will look again at the RPC functionality of Unity. I think it may get the job done for now.

thanks again!