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 /
  • API and SDK Questions /
avatar image
Question by Alec Degen · Nov 20, 2020 at 02:10 AM · apisunity3dsdksmultiplayer

Unity Mirror and Playfab GameServers

Hello,

I have a working multiplayer game and I am now looking for game servers and matchmaking.

But I am not sure if I can use PlayFab game servers with my game. Can someone explain to me how this works and what I need to do on MY side to have my game on PlayFabs game servers ?

Matchmaking seems pretty straight forward but the game server part makes me really nervous.

Like, is it just about a few API calls I need to implement in my already working multiplayer game? Or do I have to do more? What does the game server want from me to have a game running there?

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 Citrus Yan · Nov 20, 2020 at 09:50 AM

Game servers hosted on PlayFab needs to be integrated with PlayFab systems, and this process is quite straightforward, please follow this tutorial to get started:

https://docs.microsoft.com/en-us/gaming/playfab/features/multiplayer/servers/

For the integration part, basically the following is what you need to do:

Integrating your game servers with the PlayFab Game Server SDK (GSDK)

Determining required DLLs that need to be included in the asset package

Locally debugging game servers and integration with PlayFab

Additionally, we also have a Unity Mirror Game Server sample integrated with GSDK: https://github.com/PlayFab/gsdkSamples/tree/master/UnityMirror, hope you find it helpful.

Comment
Caleb Smith

People who like this

1 Show 3 · 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 Caleb Smith · Feb 19, 2021 at 06:34 AM 0
Share

Is there any way to get a bit more clarification on this Unity Mirror Game Server sample you guys have? I've built both client and server, and am following the instructions here:

https://docs.microsoft.com/en-us/gaming/playfab/features/multiplayer/servers/locally-debugging-game-servers-and-integration-with-playfab

I'm able to get the client to connect but then it immediately logs a message saying silent and disconnects.

I'm also getting a Debug Warning saying:

ReadMessageBlocking: possible allocation attack with a header of: 1213486160 bytes. UnityEngine.Debug:LogWarning(Object) Telepathy.Common:ReadMessageBlocking(NetworkStream, Int32, Byte[]&)

Any help would be appreciated. Thank You.

avatar image Jego Merckx Caleb Smith · Feb 19, 2021 at 05:08 PM 1
Share

Dapper Dino has a great video on showing how to use the playfab servers with mirror. You can find it here: https://www.youtube.com/watch?v=JJESrjLWhNM

avatar image Caleb Smith Jego Merckx · Feb 19, 2021 at 11:35 PM 0
Share

Thank you for the response. I have watched that video, and even gone through Natepacs walkthrough by myself. The difference for me here is that we are using the MockVmAgent and also that I can't quite tell what the program is actually supposed to do. Given that this is an actual example for PlayFab I would have thought something like the allocation attack wouldn't be there, and that maybe there would be something beyond a quick connect and disconnect. Really I'm just curious if I messed up the process somehow to create these issues and if somebody has encountered them before. There is surprisingly little else anywhere about the separated client and servers with Mirror so I was hoping to get this one figured out.

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

    5 People are following this question.

    avatar image avatar image avatar image avatar image avatar image

    Related Questions

    Any difference between Playfab C# SDK and PlayFab Unity SDK? 1 Answer

    Does having PlayFab Editor Extension in Unity and enabling server API expose the developer secret key? 1 Answer

    What is the intended way to deserialize custom data from an api call.,Intended way to deserialize custom data from api call. 1 Answer

    Region Ping measured RTT inaccurate/high using Unity HTTP, recommendations or ICMP ping protocol support? 1 Answer

    What is "AuthenticationContext" in GetTime 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