Tasharen Entertainment Forum
Support => TNet 3 Support => Topic started by: Leslie on September 11, 2014, 02:26:14 PM
-
I plan on creating a turn based game with support for multiplayer. Matches are always 1vs1. I'm looking for a network solution and want to know few things about TNet.
I will need a lobby server that can make the players visible to each other. They need to be able to see a list of "online" players, chat and set up matches between them. A player should be able to start a public challenge or invite/ challenge someone. This player would start the server and the other player connects as client to him.
Is such a lobby possible and can it be run as for example console app in Linux or Windows?
-
Yes, TNet comes with a pre-compiled server you can launch anywhere. It's about 50kb, and is mono-based, so will run on Windows, OSX and Linux.
You can launch that executable as a lobby server or as a game server (and of course you can do the same thing from within Unity without having to launch anything).
Just note that a lobby server is for servers -- servers register with it, and you can retrieve a list of these servers. It's not a place to chat. If you want a chat room, you need to join an actual game server and either join a channel or use broadcasts.
Each channel can be a separate multiplayer game instance.
-
Thanks for the info.