Advanced Sessions Plugin

[QUOTE=PDubulous;671313]
Hi ,

We are building player cards for each player as they join the server. I wont run through all of the particulars, but we are getting the PlayerArray after LogIn and then pulling the UniqueNetIDs from there. It all works, refreshes and everything, except the name always seems to be the player on the local controller 0. The avatar is correct, but the name is wrong. I have nothing bound that I can tell and I just add a player card widget for each player in the array. You can see the player card hook up below. Could this be a bug perhaps?

Edit Whoops thats the indentity interface

Identity interface is local users only. You can get the player name directly from the GetFreindInfo() node and then breaking the FreindInfo structure.

For the record there IS a virtual const char GetFriendPersonaName( CSteamID steamIDFriend ) function in Steam, but the Identity Interface in UE4 calls const char PersonaName = SteamFriendsPtr->GetPersonaName() for both local users and UniqueNetIDs.

I actually assume that is a bug in their implementation…that or Epic REALLY wanted to enforce the Identity interface being local users only.

You should also note btw that RequestSteamFriendInfo is an async request, you are not going to get results back right away. If you want a higher res image you may need to wait for it to be downloaded first.

Edit Forgot to mention, the RequestSteamFriendInfo returns true if the information is fully downloaded, false if it hasn’t finished downloading yet.

1 Like