steam groups through ue4 or steam api ?

Hey Everyone,

I’m trying to add steam to my game.

I managed to have the UE4’s online tools working: overlay is ok, i can use some online interfaces allright: getting my steam id and some info about me and my friends, create a session, invite a friend in it, things like that.

But i noticed some UE4 online interfaces are simply not developped for steam.

It doesn’t seem possible to get your avatar for example.

It also seems that the group interface doesn’t exists. This is from OnlineSubsystemSteam.cpp:


IOnlineGroupsPtr FOnlineSubsystemSteam::GetGroupsInterface() const
{
	return nullptr;
}

Pretty much says it all :slight_smile:

(oh by the way, i asked a question on the answerhub about when i can hope to get a complete set of steam interfaces, but it has quickly drown in the silent ocean of dead questions, so after a week or two, here i am^^)

So i got myself into the steam api itself.

Managed to retrieve my avatar using GetSmallFriendAvatar() and the likes. Yay.

Once you get the trick, it didn’t seem too complicated, so i went after the groups.

Retrieving my groups was done using the iterator functions as they call them:


SteamFriends()->GetClanCount();
SteamFriends()->GetClanByIndex(i);

Using the second one in a loop given by the first one retrieves all my groups.

So far so good.

Now i’d like to use the same logic to retrieve all my friends in one of the groups i have retrieved, and here’s the problem:


SteamFriends()->GetFriendCountFromSource(MyGroupId)

always returns 0, it sees no friend in my group no matter what.

I am sure that MyGroupId is the correct CSteamId of my group as i can retrieve and display the group’s name and uint64 id correctly from it with GetClanName() and ConvertToUint64().

I created this test group, put my two friended accounts in it, i own it, i tried various options on it (make it public, give permissions to everyone, etc.), still GetFriendCountFromSource(MyGroupId) can’t seem to see anyone in the group.

I tried all i could with the accounts (being online, connected, granting permissions…), nothing.

The steam dev forum seems inaccessible, so here i am trying my luck on good old UE4 forum, hoping some good soul knows its way around those steam groups in c++, or even better, access group from UE4 Online steam group interface if i am mistaken about its absence.

I have been spending the last two weeks on this, anyone who can help, big thanks in advance :slight_smile:

As always, since i posted here, i’ll also post the solution as soon as i figure it out.

Thanks !

Cedric