Closed NikitaYezhov closed 3 years ago
Hi,
The method works as expected and documented. You need to pass an enum of type FriendFlags
.
[...]
from steamworks import STEAMWORKS
from steamworks.enums import FriendFlags
[...]
friend_count: int = steamworks.Friends.GetFriendCount(FriendFlags.ALL)
[...]
Thanks. Can you tell me one thing? When I run it while on the game server, it showed me 24 players, but its false. Steam servers browser says only about 13 people
The method returns you the amount of Stream friends currently online on Steam. To check player counts you need to use Steams A2S protocol or the Steam Web API.
File "c:\Visual Code\python\Ark-steam\steamworks\interfaces\friends.py", line 23, in GetFriendCount return self.steam.GetFriendCount(flag.value) AttributeError: 'int' object has no attribute 'value'