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 Mark · Dec 07, 2016 at 05:03 AM · game manager

Accurate PlayFabGameServer Instructions

I am a newbie trying to follow an example to connect to PlayFab and interact with the web site. This is the second example that has not worked due to inaccurate or misunderstood ReadMe files.

I am trying to follow the README.TXT in the PlayFabGameServer example (https://github.com/PlayFab/PlayFabGameServer). In the "A quick setup step before I forget to tell you" (https://github.com/PlayFab/PlayFabGameServer#a-quick-setup-step-before-i-forget-to-tell-you), it says "Locate the GameServerContext and expand it down. Then Click on PlayFabServerManager."

I cannot locate this. What am I missing?

p.s. "To do this, open up the StartUp scene in the StartUpScene folder." is also inaccurate, as there is NO folder titled "StartUpScene". There IS GameServerClientExample/Scenes folder. There is only one file, StartupScene. Maybe the wording could be made less ambiguous.

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 ryancoastek · Dec 08, 2016 at 02:04 AM

If you have imported the package into unity and accessed the StartUpScene, you will see that in the hierarchy panel contains an empty gameobject named "GameServerContext". If you expand that gameobject you will see it has three children, one being the "PlayFabServerManager". That is where the readme is alluding to.

I may be mistaken, but I do not think you actually need to manually add the titleid. The command attached to the ServerManager actually grabs it from command line parameters and sets it automatically.

Comment

People who like this

0 Show 2 · 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 Mark · Dec 10, 2016 at 05:05 AM 0
Share

On my imported package, the hierarchy contains 4 items: Main Camera, ClientExampleGameObject, Canvas and EventSystem. Canvas is the only item that has children.

I have downloaded the package and opened the "PlayFabGameServerClientExample" in Unity 4.1f1.

I am looking for the PlayFabServerManager.

What am missing?

Thanks

avatar image Mark · Dec 10, 2016 at 06:16 AM 0
Share

OK. This "example" package README is messed up!

The GitHub package contains two folders; GameServerSource and PlayFabGameServerClientExample. **

The README fails to indicate to open the GameServerSource. It says: "open up the StartUp scene in the StartUpScene folder." But, there is no such file or directory in either of the main directories (**).

I believe the README is should say something like this to:

1) Open the "GameServerSource" directory in Unity.

2) In the Assets area, expand "GameServerContext", under the "Scenes" folder open the "ServerScene".

3) In the Hierarchy area, expand the "GameServerContext" and select "PlayFabServerManager".

4) In the Inspector area, there is a "ServerSettingsData" component. "Put your TitleId in the Title Id meta field."

Now, let us see how accurate the rest of the README is...

avatar image

Answer by amazdeh · Dec 10, 2016 at 09:43 AM

@Brendan I know you'll see this but just as feedback. Many don't need or don't want to use your IOC container. I myself read the source of that and just created my own network manager for client and server so I would suggest add a sample without all of the unnecessary IOC container which is indeed a bit strange and honestly speaking not that useful for most parts of a game (granted if anywhere, it is useful in backend service and UI related parts).

Comment

People who like this

0 Show 1 · 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 Brendan ♦♦ · Dec 11, 2016 at 06:43 PM 0
Share

There's no requirement to use any of our code - sample or SDK - so that's not a problem. You should feel free to use whatever works best for you. I've asked our tools team to review this thread and reply with an update.

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

    An error occurred while loading data from the server. ?,hi , i'm new to playfab , i've create a new game and was trying to add in photon but i keep getting this error below... 2 Answers

    Scheduled operation events 1 Answer

    What are "alert notifications" in the email preferences section of the Game Manager?,What are "alert notifications" in the "email preferences" section of the Game Manager? 1 Answer

    Player search in game manager not working 1 Answer

    How to stop cheaters 3 Answers

    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