You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An error producing issue was observed after creating 3 brand new CS:GO servers. If host_players_show does not equal 2, responses using the following code are returning a BrokenMessageError exception:
# !/usr/bin/python3.4
import time
import valve.source.a2s
address = ('65.103.35.106', 27015)
while(True):
try:
server = valve.source.a2s.ServerQuerier(address)
info = server.info()
players = server.players()
print("{player_count}/{max_players} {server_name}".format(**info))
for player in sorted(players["players"],
key=lambda p: p["score"], reverse=True):
print("{score} {name}".format(**player))
except valve.source.messages.BrokenMessageError as ErrorMsg:
print("!******\* Broken server response ********! " , ErrorMsg)
except valve.source.a2s.NoResponseError:
print("Server request timed out!")
time.sleep(1)
Error string from BrokenMessageException: Invalid value (68) for field 'response_type'
The issue was resolved remotely by setting a host cvar variable on the cs:go server cfg file to allow for "old format" player reporting: host_players_show 2
To duplicate this error set host_players_show 1
Warning:CS:GO Server by default returns only max players and server uptime. You have to change server cvar "host_players_show" in server.cfg to value "2" if you want to revert to old format with players list
The problem here is that the server sends the player response right away without requiring a challenge number. It will be fixed once cdf5bd9 is merged.
An error producing issue was observed after creating 3 brand new CS:GO servers. If host_players_show does not equal 2, responses using the following code are returning a BrokenMessageError exception:
Error string from BrokenMessageException:
Invalid value (68) for field 'response_type'
The issue was resolved remotely by setting a host cvar variable on the cs:go server cfg file to allow for "old format" player reporting:
host_players_show 2
To duplicate this error set
host_players_show 1
Valve reference: https://developer.valvesoftware.com/wiki/Server_queries#A2S_PLAYER
The text was updated successfully, but these errors were encountered: