lloesche / valheim-server-docker

Valheim dedicated gameserver with automatic update, World backup, BepInEx and ValheimPlus mod support
https://hub.docker.com/r/lloesche/valheim-server
Apache License 2.0
1.91k stars 269 forks source link

Status.JSON Reports Incorrect Player Data when Crossplay Enabled #624

Open auntiepickle opened 1 year ago

auntiepickle commented 1 year ago

I am using the STATUS_HTTP_HTDOCS status.json file to report if there are connected users. This always reports a value of 0 when running in crossplay mode.

Maybe I need to configure something or it's an issue on my end but this doesn't seem to report the right information about users when operating in crossplay mode.

lloesche commented 1 year ago

I suspect that since the player number reporting is based on data returned from the Steam API, this function does not work with crossplay enabled, since it is not using the Steam networking library anymore? Just a guess, but seems plausible.

Grantapher commented 2 months ago

-crossplay uses Playfab, and from my brief look it doesn't look like there is a similar way to look up the player count info without auth there.