Halflife: The 'slist' command does not work correctly

Created on 22 Apr 2019  路  7Comments  路  Source: ValveSoftware/halflife

This command is responsible for finding servers on the local network in console mode. The code sends a broadcast datagram with an _A2S_INFO_ message inside. The problem is that an old request type (infostring string) is sent, which has not been supported by servers for a long time instead of a new one (TSource Engine Query string), so nothing comes from the servers and the search fails.

Most helpful comment

Hi @Splatt581, I added those fields in as requested in beta 'Exe build: 16:32:50 May 22 2019 (8245)'.

All 7 comments

Fixed, in two parts. I added back support to the server and client for processing infostring messages so slist should work again with updated servers in the old way. I also added a new slist_s command that queries servers through Source Engine queries. This will be included in the next beta update.

Perhaps it is better not to reopen old query protocol, but simply to make slist command working with new query format. The old protocol is disabled more than 10 years ago, and now it is not used anywhere. Also, old format is less compact than new format (strings instead of bytes are used). And attackers, in absence of confirmation of requests through request id, can redirect traffic to victim's server through spoofing of sender's address, as described here #2407

Good suggestion, I'll pull the infostring support and just turn slist into a TSource Engine Query command. Initially it looked like there were some fields missing from the new query that were present in infostring that made infostring desirable to re-enable but I should be able to get slist working similarly with the new query type.

Fixed in beta 'Exe build: 11:12:36 May 21 2019 (8244)'.

Now this command works fine. But, in older clients, this command also displayed such fields as server type (listen, dedicated or hltv proxy), server operating system, password availability and VAC. All this information is also transmitted in a new format - https://developer.valvesoftware.com/wiki/Server_queries#Response_Format

slist

Is it possible to add a display of these fields too?

Hi @Splatt581, I added those fields in as requested in beta 'Exe build: 16:32:50 May 22 2019 (8245)'.

Thanks! Everything works great.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

WhiteFang1319 picture WhiteFang1319  路  3Comments

zp picture zp  路  4Comments

BlackShadow picture BlackShadow  路  3Comments

CS-PRO1 picture CS-PRO1  路  3Comments

BlackShadow picture BlackShadow  路  3Comments