Search Unity

Dark rift 2 - multiple unity based servers question

Discussion in 'Connected Games' started by xred13, Oct 31, 2018.

  1. xred13

    xred13

    Joined:
    Jul 14, 2018
    Posts:
    74
    Hello, i'm still new to development and coding and i have decided to go with dark rift 2 for my game. I thought of having unity based servers, but i don't know how to handle some situations:

    How do i handle new client connections?
    Is it through a dark rift server with plugins and start new unity based servers with dark rift throught that exe? in that case, how would i transition all the clients to a server (100 ppl per server)? lets say, when i have 100 new people joined in waiting for a match

    Do i need to write something to handle clients and then pass the clients to the unity based servers?
    Example something in tcp that upon receiving 100 new clients, opens a new server and tells the clients... still same question as before, whats the best approach to have the clients connect to that new server?
     
  2. xred13

    xred13

    Joined:
    Jul 14, 2018
    Posts:
    74
    Bump
     
  3. Joe-Censored

    Joe-Censored

    Joined:
    Mar 26, 2013
    Posts:
    6,534
    I haven't used DarkRift, but from my understanding on your matchmaker server you'll match up various client connections until your match is full. You may want to use the matchmaker plugin for this, but it is a DarkRift pro only feature. If a gameplay server isn't ready, you'd launch a new one. When it is ready for clients I'd assume you would send a message to all matched clients with the IP address and port number of the gameplay server to connect to. Then it would just be a matter of the clients disconnecting themselves from the matchmaking server, loading whatever scene is appropriate for actually playing the match, and connecting to the new server at the provided IP/port.

    You'll probably want your servers to talk to each other, so your matchmaker server will know the status of the various gameplay servers, and know what server hardware resources are available to launch new gameplay servers on (or to reuse existing ones already running), but DarkRift says that feature isn't in yet, instead is "Coming 2018" and will again be a pro only feature.

    Client disconnect:
    https://darkriftnetworking.com/DarkRift2/Docs/2.3.0/html/62a69197-d317-2ee1-c658-ac5af8fc2a9c.htm
    Client connect:
    https://darkriftnetworking.com/DarkRift2/Docs/2.3.0/html/167f0678-4ebe-443d-7f09-1441bcc3f6ef.htm
    Matchmaker:
    https://darkriftnetworking.com/DarkRift2/Docs/2.3.0/html/880745cf-5177-4237-9bb8-2f981c16cad1.htm

    You might get better answers posting over in the DarkRift thread.

    https://forum.unity.com/threads/darkrift-networking-2.516271/
     
    xred13 likes this.
  4. xred13

    xred13

    Joined:
    Jul 14, 2018
    Posts:
    74
    Thanks, that was all i hoped for and more!
     
  5. theuncas

    theuncas

    Joined:
    Feb 21, 2015
    Posts:
    23
    TrulyStupidNewb likes this.