gamedig / node-gamedig

Query game servers and not only! Node.JS/Deno/Bun or Bash (via the CLI).
https://www.npmjs.com/package/gamedig
MIT License
598 stars 146 forks source link

Add Valve RCON query protocol #46

Open ghost opened 7 years ago

ghost commented 7 years ago

Hello,

Wondering if it's somehow possible to fetch the steam id of the players so you can link to their community profiles and so on?

xCausxn commented 7 years ago

hey @fjeddy I think this can only be done via rcon but I have not checked the protocol in a while

pepzwee commented 7 years ago

The A2S* queries can't do this. Instead, you'd need to use the RCON Protocol and issue the status command.

Source: Stackoverflow

mmorrisontx commented 7 years ago

I'm not a fan of the rcon protocol, since it requires providing your rcon password to simply query the server. I suppose we already do this sort of thing for maniaplanet though, so I'd certainly be open to pull requests.