• Sign Up Login
  • Features
    • Game Services
    • Real-time Analytics
    • LiveOps
    • Add-ons
  • Game Services
  • Real-time Analytics
  • LiveOps
  • Add-ons
  • Games
  • Pricing
  • Blog
  • Support
    • Docs
    • Forums
    • Contact
  • Docs
  • Forums
  • Contact
  • Sign Up Login
  • Ask a question
  • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Topics
    • Questions
    • Ideas
    • Articles
    • Users
    • Badges
  • Home /
  • Bugs /
avatar image
Question by adevill20 · Sep 23, 2017 at 10:19 PM · apissdks

UE4 Blueprint decodeGetMatchmakerGameInfoResult

Hey guys.

For reference I'm using the "PlayFabAllSDK" version 0.0.170828

While developing my game i found that decodeGetMatchmakerGameInfoResult is not available to the clientapi, only in the adminapi. Is this the intended use ? I cannot see how as the client is allowed to see what servers are available ("get current games") ? I've managed to fix this quite easily by adding it to the clientapi in source (can upload to Git if required). Secondly, the decodeGetMatchmakerGameInfoResult function is not working as intended and causes a crash. This was fixed by removing "data" JsonObj field as it doesnt exists at that point anymore (see attached screen shot).

playfab1.jpg (204.6 kB)
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

3 Replies

· Add your reply
  • Sort: 
avatar image
Best Answer

Answer by 1807605288 · Oct 06, 2017 at 08:36 PM

Alright, I'm unable to reproduce the set of blocks that you have in your picture.

I also don't have a game server handy, so I can't test this rigorously, but I believe I have decoded a GameInfo object and fetched some useful values:

I'll be the first to admit that this is obviously not optimal. These objects don't seem to be decoded properly into the expected types, but rather just as arbitrary JsonObjects, which you must decode yourself. The number of Blueprint Nodes is fairly similar, but the process is not straightforward.

I'll investigate an improvement to this but for now, I think this will be useful.


decodegameinstance.png (183.2 kB)
Comment

People who like this

0 Show 6 · 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 1807605288 ♦ · Oct 06, 2017 at 09:54 PM 0
Share

I can now confirm my statement in the code:

    /** array of games found */
    UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "PlayFab | Client | Matchmaking Models")
        TArray<UPlayFabJsonObject*> Games;

The list of games are just UPlayFabJsonObjects, and not properly typed GameInfo objects.

All of our Unreal SDKs have some gaps that need fixing, and this is clearly one of them.

For now, I believe you will need to use my workaround above

avatar image adevill20 · Oct 07, 2017 at 06:05 PM 0
Share

Ok great, no problem. I have created a work around by editing the source, for now it's working good. Thanks for the effort.

avatar image 1807605288 ♦ adevill20 · Oct 12, 2017 at 05:28 PM 0
Share

I would very much like to see those changes if you would. I will likely make them a permanent improvement to the SDK.

Thanks.

avatar image adevill20 1807605288 ♦ · Oct 12, 2017 at 06:38 PM 0
Share

Sure no problem. Github ?

Show more comments
Show more comments
avatar image

Answer by Brendan · Sep 23, 2017 at 10:23 PM

Yes, GetMatchmakerGameInfo was specifically provided to allow developers to access information on completed games to investigate any errors that may have occurred. It returns info for completed games.

You should indeed switch to using GetCurrentGames, as that is the API call used to request info on currently active game sessions.

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 adevill20 · Sep 30, 2017 at 09:56 AM 0
Share

Good day Brendan


I apologize, I wrongly described the error.

On a client machine, we can call "Get Current Games" and the results we can decode and break in order to get an array of "GameInfo" objects. However there is no option for the client to decode/break this "GameInfo" object in order to read the game details.

nodecode.png (195.1 kB)
avatar image 1807605288 ♦ · Oct 04, 2017 at 11:36 PM 0
Share

Sorry for the delay. I'm going to try to build a blueprint that does this correctly as soon as I can. I think there's a way to loop the list, and cast the list-objects to the proper PlayFab object, which can then be broken into individual fields. I haven't done this anytime recently though, so I can't remember the exact process. I will try to get an example to you as soon as I can.

Likewise, I'll tell you if I fail, but I apologize, I haven't had the chance to actually load Unreal and try this yet. Stay tuned.

avatar image

Answer by Andrea · Jul 16 at 05:28 PM

I have some problem, the result is always 0.0 when it is 50, has anyone solved it? thank you


immagine.jpg (426.9 kB)
1.jpg (227.0 kB)
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 Andrea · Jul 16 at 03:17 PM 0
Share

I have the wrong conversation, you can cancel, sorry

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

    4 People are following this question.

    avatar image avatar image avatar image avatar image

    Related Questions

    500 Server Error when making multiple IAP purchases with receipt validation 1 Answer

    TitleId in SendAccountRecoveryEmailAsync (CSharpSDK) 1 Answer

    UE4 continually crashing 1 Answer

    Values "ShowAvatarUrl" missing in the web model "PlayerProfileViewConstraints" 1 Answer

    Possible Issue With PurchaseItem 1 Answer

    • PlayFab

      • Features
      • Games
      • Pricing
      • Blog
    • Engineers

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

      • Forums
      • Videos
      • Contact
      • Service Health
      • Terms of Service
    • Social

      • Facebook
      • Twitter
      • LinkedIn
      • YouTube
    • Privacy & cookies
    • Terms of use
    • Trademarks
    • About Microsoft
    • Jobs
    • Accessibility
    • Diversity & inclusion
    • Security
    • Company news
    • © Microsoft 2019
    • Anonymous
    • Sign in
    • Create
    • Ask a question
    • Post an idea
    • Create an article
    • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Explore
    • Topics
    • Questions
    • Ideas
    • Articles
    • Users
    • Badges