question

starkgaminginc avatar image
starkgaminginc asked

Multiple "Player matched with lobby" calls in debugger?

I am getting double "Player matched with lobby" calls and I wanted to know if this could be a bug or if it is something wrong with my code submitting to requests.

I've scavenged my code to look for anywhere that might call this twice and I can't seem to find anything.

Just curious is all!

Matchmaking
capture.png (10.8 KiB)
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

starkgaminginc avatar image
starkgaminginc answered

Just figured it out...

I had "On button pressed" calling the blueprint macro. What through me off here is the fact that PlayerLogin only showed up once on the debugger but "matched with lobby" showed twice. So it appeared as if it was something else, not the button.

The correct event is "On button released".



playfabfixed.png (243.2 KiB)
5 comments
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

starkgaminginc avatar image starkgaminginc commented ·

Strangely making this change has caused Redeemmatchmakerticket to fail? Looking at the logs, the ticket and lobbyid are coming through but are invalid? My server config did not change on these parts.

[2017.06.13-21.36.30:697][368]LogBlueprintUserMessages: [ServerGameMode_C_0] PlayerController_0
[2017.06.13-21.36.30:697][368]LogPlayFab: Request: {
"Ticket": "2563F29E3302C89-0-DE6648143E0E46E2-4908-8D4B2A438C79628-A9061D3BAA7D9A9C.8A049ECC8BC965F0",
"LobbyId": "12111084768357373010"
}
[2017.06.13-21.36.31:391][390]LogPlayFab: Response : {"code":400,"status":"BadRequest","error":"GameNotFound","errorCode":1024,"errorMessage":"Game not found"}
[2017.06.13-21.36.31:391][390]LogBlueprintUserMessages: [ServerGameMode_C_0] 
Has Error?
true
Error Code:
1024
Error Name:
GameNotFound
Error Message:
Game not found
Error Details:
0 Likes 0 ·
Zhi Kang Shao avatar image Zhi Kang Shao starkgaminginc commented ·

Interesting, I reported earlier today that our game server has been getting GameNotFound when calling RedeemMatchmakerTicket and we haven't touched that part of our code either. We may be encountering the same issue.

https://community.playfab.com/questions/11569/redeemmatchmakerticket-returns-gamenotfound-since.html

0 Likes 0 ·
starkgaminginc avatar image starkgaminginc Zhi Kang Shao commented ·

Thanks for letting me know - I was so confused!!

0 Likes 0 ·
Show more comments
brendan avatar image
brendan answered

That actually appears to be two distinct calls to Matchmake - could you try getting a Wireshark or Netmon capture of this and send it to us?

9 comments
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

starkgaminginc avatar image starkgaminginc commented ·

See attached! I use the unreal blueprint matchmake node to send the request.

The netmon catches the login -> matchmake -> connect to server sequence.

havarknetmon.txt

0 Likes 0 ·
havarknetmon.txt (9.8 KiB)
matchmake2.png (60.7 KiB)
brendan avatar image brendan starkgaminginc commented ·

What Title ID is it you're testing, and do you mind if we create a player in it and do some testing directly?

0 Likes 0 ·
starkgaminginc avatar image starkgaminginc brendan commented ·

4908 and no problem! Go right ahead!

0 Likes 0 ·
Show more comments
Show more comments
Zhi Kang Shao avatar image Zhi Kang Shao starkgaminginc commented ·

Hey, I see that the blueprint graph you posted is part of a blueprint macro. Can you post a screenshot of the complete macro and where the macro is used?

Perhaps the way blueprint nodes are executed causes your macro to be called twice, just like "blueprint pure" nodes they are executed every time the value is needed.

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.