Enhance Valve protocol support
When querying the server via valve protocol user names are blank
```python
from valve.source.a2s import ServerQuerier
addr = ("IP.Ad.dr.ess", port)
with ServerQuerier(addr) as server:
players = server.players()
for player in players["players"]:
print(f"Index: '{p['index']}', Name: '{p['name']}', Score: '{p['score']}', Duration: '{p['duration']}'")
```
due to the way it works there's a caveat that you should only count players if they have names from this list. Which due to this bug it would show player count 0.
https://python-valve.readthedocs.io/en/latest/source.html#valve.source.a2s.ServerQuerier.players
Comments: 2
-
19 Feb, '21
SILENTI have noticed the same issue using a php library for querying games. It can be found at https://github.com/Austinb/GameQ This library shows the correct player count as this gets pulled from the query however as stated above the player names are blank
-
24 Feb, '21
NordmannValve officially recommends https://github.com/xPaw/PHP-Source-Query in its wiki.
This is already working but Valheim simply does not implement reporting all details yet.
**Missing:**
List of player(names)
World Name (Map just returns Server name again)
MaxPlayers (wrongly reported as max. 64)
Version (reported as default: 1.0.0.0 while actual version is reported as GameTags)
ModDesc/Bots/Secure
Joining a server via steam://connect Url starts the game but does NOT join the server
(this works already when joining via Server Browser in Steam Client itself)