Austinb / GameQ

A PHP Gameserver Status Query Library
https://austinb.github.io/GameQ/
GNU Lesser General Public License v3.0
403 stars 137 forks source link

A2S_INFO with Source Protocol #711

Open stefanofabi opened 1 year ago

stefanofabi commented 1 year ago

Inside GameQ/Protocols/Source.php

In the $packets array I find this

self::PACKET_DETAILS => "\xFF\xFF\xFF\xFFTSource Engine Query\x00%s",

Which fails when I try to get information from a CS 1.6 server using ReHLDS + Reunion Dev 0.1.0.137

If I change the value to \xFF\xFF\xFF\xFF\x54Source Engine Query\x00 as set by Valve Server Queries , it works fine.

My solution would be: $packets = [ ... self::PACKET_DETAILS => " \xFF\xFF\xFF\xFF\x54Source Engine Query\x00", ... rest of the code...

Can anyone else verify this information?

ZekyTheWolf commented 1 year ago

Vanilla HLDS, without problem. HLDS + DProto same, no problem.