Skip to content
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

Rework Source server information querying to use A2S instead of RCON #24

Open
sappykun opened this issue Mar 20, 2024 · 1 comment
Open

Comments

@sappykun
Copy link

sappykun commented Mar 20, 2024

I would like to propose that this library start using A2S queries instead of RCON commands to gather its data, or at least provide an option to do so.

I help manage a TF2 server with some other admins. One of them is using this container to gather statistics on how often certain maps are played, etc.

Every 5 seconds or so, the server console gets sent a status command, which dumps a paragraph of information in the server console. Since I use the console quite a bit to recompile and test Sourcemod plugins, this constant spam is incredibly annoying to work with, and I've had to tell the other admin to turn off the exporter.

I am not entirely sure what information this project gathers and displays, but the information you get from an A2S query is mostly the same as the output of status, minus the edict count.

For example, here is an equivalent Python library that allows for A2S queries:
https://github.com/Yepoleb/python-a2s (Demo)

Pros of A2S:

  • Doesn't spam the console with status command output
  • Works on any Source/Goldsrc server, regardless of mod (I believe some other Steam games might support A2S as well, but I can't confirm at this time)
  • Doesn't require authentication on the server's side
  • Doesn't require setting an rcon password

Cons of A2S:

  • Doesn't report the edict count
@galexrt
Copy link
Owner

galexrt commented May 30, 2024

@sappykun Sorry for the late response.

There seems to be this package available for using A2S with Golang https://github.com/rumblefrog/go-a2s

I would have to see when I have time to implement A2S as a secondary "connection type" option. Adding help wanted label if anyone wants to look into this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants