question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Response 255 for Garry's Mod Servers

See original GitHub issue

Hello, I don’t see a format so here we go:

I get the parse error for Garry’s Mod servers when I call the players() method with the code 255.

I have managed to work around this problem by disabling the check and reading the first uint32, then all the players were retrieved.

Below you can find the hack, I don’t know how to fix this issue permanently.

    #if response_type != A2S_PLAYER_RESPONSE:
    #    raise BrokenMessageError(
    #        "Invalid response type: " + str(response_type))

    reader.read_uint32()

Right at L:48 of players.py

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
Yepolebcommented, May 19, 2020

Thanks for your response, sorry I wasn’t able to help in time 😦. Best of luck to you as well!

0reactions
berkbuzcucommented, May 19, 2020

Sorry for the late response,

Unfortunately I stopped using the API since the need is over but it occured to me today that it might have been related to large servers with unusual player counts, ie nebulous cloud.

Good luck!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Weird servers with 10s of thousands of bots on them
There are these 100 servers full of 255 bots each, what is going on? Are they trying to crash gmod with hundreds of...
Read more >
Garrys mod server rate settings - SRCDS.com Forums
I have been searching evrywhere and can't find a really proven method of setting my servers tick rates. Server OS: Windows XP Pro...
Read more >
Net Library Usage - Garry's Mod Wiki
WriteUInt( age:GetValue(), 8 ) -- The second argument is 8 since the age will never be above 255. Doing this saves bandwidth and...
Read more >
Servers by uptime, page 255
Find Garry's Mod servers by uptime, page 255. ... Server, Players, Status, Map. 6351. (CRO/HRV) Jeate Crew Gaming - Prop Hunt - GMOD...
Read more >
How To Change Garry's Mod Server Map - YouTube
Video Notes:Gmad Extractor: http://www.mediafire.com/file/1q6p19a8u5845d2/GmadExtractor_1_6_12_600.zipQuick tutorial, hope this answers some ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found