Microsoft Azure PlayFab logo
    • Multiplayer
    • LiveOps
    • Data & Analytics
    • Add-ons
    • For Any Role

      • Engineer
      • Designer
      • Executive
      • Marketer
    • For Any Stage

      • Build
      • Improve
      • Grow
    • For Any Size

      • Solo
      • Indie
      • AAA
  • Runs on PlayFab
  • Pricing
    • Blog
    • Forums
    • Contact us
  • Sign up
  • Sign in
  • Ask a question
  • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges
  • Home /
  • General Discussion /
avatar image
Question by NJ · Sep 10, 2021 at 01:38 AM · multiplayer

Public rooms lobby system

I want to implement room system like it is in among us.

  1. Player should be able to create room.
  2. Players should be able to see public rooms.
  3. Players can join in public rooms.
  4. Host (player who created room) can click start button and game will start.

Here is my thoughts

  1. When player clicks create room I should call RequestMultiplayerServer api to allocate server and store returned result (ip, port) into external storage. I also need to store game state (waiting) in external storage as well.
  2. I need to get all public rooms from external storage because there is no way to do it only playfab services yes? so I need to implement it on my own.
  3. When we are in room and whenever player clicks start button I just need to update game state from waiting to playing in external storage to hide this room from public ones.

Is this the correct approach? or I am doing it wrong and there is a better way to implement room system like this?

Comment

People who like this

0 Show 0
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
Best Answer

Answer by SethDu · Sep 10, 2021 at 03:09 AM

  1. In the common scenario, I don’t think it is necessary to have an external storage for lobby. Lobby in Among Us is a waiting room in an active game.
    Basically, when a room is created, there are 2 methods to fill in more people. Telling friend room information externally to join or using matchmaking system. If implementing external storage, you may store Ip/port and create GUID for the room and it will be convenient for friends to join. It is not necessary but will improve gaming experience. However, it can be done without external storage, and you may also generate certain string for client to recognize. Meanwhile. If enabled matchmaking, players can directly join when matched.
  2. If you need to list public rooms for players, lobby will be required. Please refer to our lobby sample -- Building Lobbies with Azure PlayFab.
  3. It is not necessary. When the game starts, you simply let the server refuse the additional connections from any other players. However, if you want to expose the state of servers to the public, you are on the right track.
Comment

People who like this

0 Show 0 · Share
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Navigation

Spaces
  • General Discussion
  • API and SDK Questions
  • Feature Requests
  • PlayStream
  • Bugs
  • Add-on Marketplace
  • LiveOps
  • Follow this Question

    Answers Answers and Comments

    2 People are following this question.

    avatar image avatar image

    Related Questions

    Is there any way to generate realtime Bots in Playfab Party. 1 Answer

    Dedicated server / Multiplayer server or Cloud Scripts? 3 Answers

    How can I prevent players from altering game results? 2 Answers

    Unreal Engine Multiplayer Session 1 Answer

    Create a Multiplayer Server Build with PowerShell 1 Answer

    PlayFab

    • Multiplayer
    • LiveOps
    • Data & Analytics
    • Runs on PlayFab
    • Pricing

    Solutions

    • For Any Role

      • Engineer
      • Designer
      • Executive
      • Marketer
    • For Any Stage

      • Build
      • Improve
      • Grow
    • For Any Size

      • Solo
      • Indie
      • AAA

    Engineers

    • Documentation
    • Quickstarts
    • API Reference
    • SDKs
    • Usage Limits

    Resources

    • Forums
    • Contact us
    • Blog
    • Service Health
    • Terms of Service
    • Attribution

    Follow us

    • Facebook
    • Twitter
    • LinkedIn
    • YouTube
    • Sitemap
    • Contact Microsoft
    • Privacy & cookies
    • Terms of use
    • Trademarks
    • Safety & eco
    • About our ads
    • © Microsoft 2020
    • Anonymous
    • Sign in
    • Create
    • Ask a question
    • Create an article
    • Post an idea
    • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Explore
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges