So, what are my options for 2-4 player co-op multiplayer?

What networking solution can I use. What I need:

  • P2P
  • FPS gameplay
  • 2-4 players, maybe up to 8
  • co-op (cheating is not an issue)
  • easy to use system, but can be fairly low-level

I’d use Unet but I’m concerned about deprecation. Should I be in my case though? I don’t need the relay server I just need the direct P2P net code, and some server for discoverability, and that server could be anything custom I assume.

I’ve seen this library: LiteNetLib - another reliable udp library. But have not looked at it close enough yet.

Are there more networking libraries I could use?

Oh, and the new networking system. How does it integrate with normal object oriented projects?

Get Mirror.

1 Like

Yep, already found it, thanks!

I’m in similar boat. Looking for 1-8 player options for a game like Torchlight. So lobby and then I guess some peer-to-peer network. How is mirror compared to Photon 2?

No CCU limit, easier to use, easy integration with Steam. Stick with Mirror.

FreeWFree soundsasounds good :). Does it have any solution for NAT punchthrough?
How does the steam integration work , does it help with lobby server list, connections etc?

Does Mirror support Host Migration?
The more players are hosted on one of the user’s machines, the more annoying it will be if that user drops out.

Steam integration works just fine. No native NAT punchthrough yet but if you go with Steamworks, NAT punchthrough won’t be a necessity.

No built-in host migration. Most games don’t need that though so it’s no big deal. Lots of big games don’t feature host migration and that’s okay. OP is looking to make a co-op game, plenty of co-op games work just fine without host migration. L4D didn’t need it, Borderlands didn’t need it. It works.

1 Like

Steam integration looks nice. D

Thank you very much. I will also jump into Mirror!

Feel free to hop into the official Mirror discord server to get help should you need any. I’m part of the server. I go by “bonickhausen” on discord, ask us anything!

1 Like