Closed danut1994gl closed 6 months ago
Hey, CSGO has a note on the readme that reads:
To receive a full player list response from CS:GO servers, the server must have set the cvar: host_players_show 2
Which would solve the players info.
And as it uses the Valve Protocol, it too has a note on the readme that reads:
For many valve games, additional 'rules' may be fetched into the unstable
raw
field by passing the additional option:requestRules: true
. Beware that this may increase query time.
Which would solve the rules info.
requestRules are enablet, but some servers work, some not.
Hey, is this problem still reproducible? Querying the mentioned server returns a normal response.
@danut1994gl Does the server trying to request data enables them? There is a convar to enable rules on query responses.
HOST_RULES_SHOW This command can be used to set whether or not your server rules show when your server is queried.
Set this to 0 to disable rules being shown when the server is queried. Set this to 1 to enable rules being shown when the server is queried.
Closing this as OP didn't responded in a few months now. If something comes up, don't hesitate to reopen!
This can probably be closed, as CSGO servers are no longer active.
There still are CSGO servers around and will be, but this issue probably is related to what @alexevladgabriel mentioned, I've tested the server and it returned a normal response, I've tried to query it again but it seems its gone. OP feel free to reopen if you got extra info or other problems arise!
Hello, for some CS:GO servers i get response like this:
{"334":{"name":"DM #135 — CYBERSHOKE.NET (EASY, ONLY MIRAGE, 128 TICK)","map":"de_mirage","password":false,"raw":{"protocol":17,"folder":"csgo","game":"Counter-Strike: Global Offensive","appId":730,"numplayers":17,"numbots":0,"listentype":"d","environment":"l","secure":1,"version":"1.38.7.9","tags":["\t\t\t\t\t!","128","128tick","aim","cyber","cybershoke","de_mirage","deathmatch","dm","drop","ffa","gloves","knife","msk","pro","ru","skin","training","ws","secure"],"rules":{}},"maxplayers":18,"players":[{"name":"","raw":{}},{"name":"","raw":{}},{"name":"","raw":{}},{"name":"","raw":{}},{"name":"","raw":{}},{"name":"","raw":{}},{"name":"","raw":{}},{"name":"","raw":{}},{"name":"","raw":{}},{"name":"","raw":{}},{"name":"","raw":{}},{"name":"","raw":{}},{"name":"","raw":{}},{"name":"","raw":{}},{"name":"","raw":{}},{"name":"","raw":{}},{"name":"","raw":{}}],"bots":[],"connect":"37.230.162.41:27035","ping":74}}
server is online but no rules or plasyers info