-
-
Notifications
You must be signed in to change notification settings - Fork 138
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GMOD Server Stats unavailable or wrong info. #537
Comments
INFO for possible fix. I have not looked further into this, but from what I could see in a quick network packet snifing, using Wireshark, it looks like your server is returning extra packets, before the default response with the server info. This then come back as an error because GameQ does not see the packet response it was expecting, it tries to processe the response, but it can't parse it. Its possible a mod present on your server, as I tested 2 other servers in the same IP range, presents on gametracker, and they also failed due to the returned extra packets. And 1 from other IP that parsed correctly, because no extra packets. |
Has something changed with split packets maybe for that mod? I will see if I can get an output and do some debugging on the response. |
I queried a couple of servers including 208.103.169.16:27015 which returns correctly. Stepping through the responses there is an issue in the player and rules responses causing the parser to choke and error out. I am not sure but it appears something is manipulating the response coming from the server as it doesn't match the expected format. There are other servers showing the same response. I am not sure the cause at this point. |
This issue maybe related to #534. Please pull down code from v3 and run your code again. Please let me know if it fixes your issues. |
Please open this issue again if you are still having the issue when using the latest v3 build (not release). |
Garry's mod wrong information
|
I was querying this server 208.103.169.33:27017 but it return either offline or the player count is totally wrong. This is intermittent. Usually notice it when over 50 players.
Any idea why? Server is showing fine on steam and gtracker
https://www.gametracker.com/server_info/208.103.169.33:27017/
Getting this error when I enable debug option:
GameQ\Exception\Protocol: Unable to read length=4 from buffer. Bad protocol format or return?
in GameQ/Buffer.php:133 Stack trace: #0
GameQ/Buffer.php(416): GameQ\Buffer->read(4) #1
GameQ/Protocols/Source.php(485): GameQ\Buffer->readInt32Signed() #2 [internal function]: GameQ\Protocols\Source->processPlayers(Object(GameQ\Buffer)) #3
GameQ/Protocols/Source.php(213): call_user_func_array(Array, Array) #4
GameQ/GameQ.php(585): GameQ\Protocols\Source->processResponse() #5
GameQ/GameQ.php(357): GameQ\GameQ->doParseResponse(Object(GameQ\Server)) #6
GameQ\GameQ->process() #7 {main}
Seems processing players is completely failing.
The text was updated successfully, but these errors were encountered: