Closed svv-name closed 8 years ago
I looked at the raw response from that server and there is an extra packet being returned with the following:
string(9) <FF><FF><FF><FF>An<F1><CB>w
"A" is not a valid response header after the 4 \xff and it is not a valid split packet response. Do you have any kind of custom mods or add-on running causing this? If there are other servers with this same issue please send me the ip:ports so I can investigate. Without more information there isn't much that I can do since that server's response seems to be breaking the A2S spec - https://developer.valvesoftware.com/wiki/Server_queries.
If you have more information please reopen this issue.
Requesting reopen but with bit different reason.
I'm using HLDS with cstrike mod. Server can return A2S_RULES multi-packeted with different header, which is not currently handled.
Example of response:
[first packet]
00000000 fe ff ff ff ae 97 00 00 02 ff ff ff ff 45 6e 00 |.............En.|
00000010 61 6c 6c 6f 77 5f 73 70 65 63 74 61 74 6f 72 73 |allow_spectators|
00000020 00 31 00 61 6d 78 5f 63 6c 69 65 6e 74 5f 6c 61 |.1.amx_client_la|
...
[second packet]
00000000 fe ff ff ff ae 97 00 00 12 30 00 6e 61 64 65 6d |.........0.nadem|
00000010 6f 64 65 73 5f 76 65 72 73 69 6f 6e 00 31 31 2e |odes_version.11.|
00000020 32 00 70 61 75 73 61 62 6c 65 00 30 00 72 65 61 |2.pausable.0.rea|
...
Current code is not handling fe ff ff ff XX XX 00 00 XX
header (or I just not see that part...).
https://developer.valvesoftware.com/wiki/Server_Queries#Response_Format_3
Example of processing such packets with LGSL: https://github.com/tltneon/lgsl/blob/master/lgsl/lgsl_files/lgsl_protocol.php#L1051
As you can see, A2S_RULES is not processed.
Solution (russian): https://github.com/et-nik/gameap/issues/21#issuecomment-538087383
So, provided by @et-nik PR (https://github.com/Austinb/GameQ/pull/358) is better to merge with addition: we need add flag that we use GoldSrc engine's multi-packet processing (without BZip compression) because latest versions of hlds response A2S_INFO with Source format.
Please open a new issue and do not comment on an issue over 3 years old. Also need a server or set of servers to test against to see where the differences lie. Wasnt aware of any updates happening to the old cs1.6 query responses.
Hello No information about servers after query (cs16) For example 95.79.30.19:27053 OR A lot of servers return only map, hostname, but players list is empty Please check it, thanks, nice work)
Gameq3 latest version / php 5.5 (OpenServer)
STEAM: