Author Topic: What is different/purpose of GameServer and LobbyServer  (Read 2208 times)

Alcaros

  • Newbie
  • *
  • Thank You
  • -Given: 3
  • -Receive: 0
  • Posts: 4
    • View Profile
What is different/purpose of GameServer and LobbyServer
« on: July 07, 2014, 04:15:33 PM »
As the title say..

and How I connect 2 standalone (non-unity) GameServers each other ?
When new players connect to server, should them connect to GameServer or TcpLobbyServer ?

Thanks for answers.

Alcaros

  • Newbie
  • *
  • Thank You
  • -Given: 3
  • -Receive: 0
  • Posts: 4
    • View Profile
Re: What is different/purpose of GameServer and LobbyServer
« Reply #1 on: July 08, 2014, 04:27:58 AM »
Another Question: How I implement servers with this structure (see attachment below)

Structure explanation:
Login server: Client log-in , select/create character and select world/channel to enter. login server send authorized data to channel server for auth-player.

World server: contains connected player in all channel and forward packet from channel to other channel (private chat , friend online/offline status)

Channel server: Auth-players connect here to interactive with other players/NPCs , manage character themselves and can create or join room.

World server should be extended from GameServer or LobbyServer ?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: What is different/purpose of GameServer and LobbyServer
« Reply #2 on: July 08, 2014, 04:34:24 PM »
You can't connect two game servers to each other. A game server is a stand-alone entity. Why would you connect them? To what end?

Login server can be a customized lobby server. A player will connect and the first thing they should do is send their login credentials. The server would then verify it, and send a list of game servers. If a packet arrives other than the login one as the first packet, simply disconnect the client. If no packet arrives for X time, disconnect the client.

The lobby server has a list of game servers, and all game servers should register with the lobby (as is normal TNet behaviour).

World server and channel server are the same thing. You can do private chat by sending RFCs to target players. You can do global chat by sending broadcasts. There is no need to have separate servers.

Now when you enter a zone, you will enter a channel. This channel is the primary means of communication. All players in the same channel can communicate via RFCs meant only for them.