Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Solved
  • Unsolved
  • Users
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Darkly)
  • No Skin
Collapse
brainCloud Forums
  1. Home
  2. General
  3. Dedicated server getting all player's username

Dedicated server getting all player's username

Scheduled Pinned Locked Moved Unsolved General
5 Posts 3 Posters 1.6k Views 3 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    tlim
    wrote on last edited by tlim
    #1

    Hi, if I have a dedicated server that the (client)players joins for a match, if the client logs in with Client API Authenticate on their machine and I assume the client will send their profile id to the server.
    Then, how can the server get the user name of all the client that are connected with their profile ids?

    1 Reply Last reply
    0
    • Greg MouldsG Offline
      Greg MouldsG Offline
      Greg Moulds
      brainCloudAdmin
      wrote on last edited by
      #2

      That depends on how players will get matched and ultimately connect to your server. If you use our lobby-based matchmaking facilities, the sequence will go roughly like this:

      1. Players make a FIND_OR_CREATE_LOBBY call to the LobbyService.
      2. The lobby matchmaking process runs and a bunch of players get associated with a lobby instance.
      3. Once the launch conditions are satisfied, brainCloud will launch an instance of your dedicated server.
      4. The dedicated server will start and immediately make an S2S call to ask brainCloud for all the lobby instance details. These details will include each players name.

      If you don't use lobby matchmaking, you'll need to use the S2S api to query brainCloud for the player details manually.

      1 Reply Last reply
      0
      • T Offline
        T Offline
        tlim
        wrote on last edited by
        #3

        thx for your help! I am actually using unity's matchmaking and multiplay, can I know which S2S api to use to query the player details?

        1 Reply Last reply
        0
        • Paul WinterhalderP Offline
          Paul WinterhalderP Offline
          Paul Winterhalder
          brainCloudAdmin
          wrote on last edited by
          #4

          HI @tlim - the S2S API you are looking for is this:
          https://docs.braincloudservers.com/api/capi/user/sysgetuserinfo

          I might suggest that you write a cloud code script though - and send the list of profile ids to it. It can use this call to retrieve the info for each of the players - and return just the information that you need in your server.

          I hope that helps!

          Paul.

          1 Reply Last reply
          0
          • T Offline
            T Offline
            tlim
            wrote on last edited by
            #5

            Oh, server can use client API

            1 Reply Last reply
            0

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Solved
            • Unsolved
            • Users