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 Dominic Moret · Feb 16 at 07:09 AM · MatchmakingdataTitle Data

Where to save a list of all running matches

I'm trying to implement my custom matchmaking/lobbying with Cloud Script.

The reason why I'm not using to available matchmaking is because I want that the first player who wants to play already starts a new match (with RequestMultiplayerServer) and enters the level until enough players are in the lobby. Than the actual match starts. If I use matchmaking, I can only start the game when 2 players have matched.

If there is another way to make this work with the inbuilt matchmaking, please let me know.

If not, I want to save a list containing every active match/server (and some corresponding data, like the game mode (FFA, CTF), which map, max. allowed players etc.

My question is, where can I save this list? In Title data? I read that updating this shouldn't happen too often.

I think this is not possible with the ListMultiplayerServers function, or can I store custom data through the RequestMultiplayerServer function

Thanks for your help

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

2 Replies

· Add your reply
  • Sort: 
avatar image

Answer by Citrus Yan · Feb 16 at 09:27 AM

Correct, you cannot store some custom data that is available for ListMultiplayerServers , or even GetMultiplayerServerDetails, via the RequestMultiplayerServer API. For your case, you’d need an external data table, such as Redis, to manage the status of all running matches(servers).

Comment

People who like this

0 Show 4 · 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
avatar image Dominic Moret · 6 days ago 0
Share

Would it be bad practice to just create a custom player and save the data in the player data and access it through CloudScript?

Too bad that such a basic feature isn't available.

avatar image Citrus Yan ♦ Dominic Moret · 5 days ago 1
Share

That's definitely not recommended. Here is a workaround: since you can get ConnectedPlayers in MultiplayerServerSummary from ListMultiplayerServers, just save the data in those connected players (in player data, or entity objects) and access it later.

avatar image Dominic Moret Citrus Yan ♦ · 2 days ago 0
Share

Would this work even if two players start the game (almost) at the same time? Or does it take some time after ReqiestMultiplayerServer until ListMultiplayerServers returns the newly requested server?

Show more comments
avatar image

Answer by laggyluk · 5 days ago

What I did for time being is that first player starts the matchmaking and if it times out then he requests server allocation, not ideal but gotta work with something.

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

    How to get Catalog item custom data when login ? 1 Answer

    There is a way to save data per demand as global variable that all players can access? 1 Answer

    We need to store data for a turn based game, that data is about like 5kb because are long turns. 1 Answer

    Admin panel in unity, to modify the statistics of the player you want / choose,Modify player data in a unit panel 1 Answer

    Creating a Territory War game like like Lord's Mobile or Pokemon Go 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