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
606 stars 146 forks source link

Players name rust #329

Open fusca147 opened 1 year ago

fusca147 commented 1 year ago

When doing a query on the server, the return of the names is different.

npx gamedig --type rust 199.231.233.206:28015 {"name":"[US] Bloo Lagoon 1.5x | Solo/Duo/Trio | 1/19","map":"Custom Map","password":false,"raw":{"protocol":17,"folder":"rust","game":"Rust","appId":252490,"numplayers":21,"numbots":0,"listentype":"d","environment":"w","secure":1,"version":"2367","steamid":"90168594800399370","tags":["mp250","cp21","ptrak","qp0","v2367","weekly","vanilla","NA","h862cd8a5","stok","born1674165546","gmrust","oxide","modded"]},"maxplayers":250,"players":[{"name":"diana","raw":{"score":0,"time":2392.044189453125}},{"name":"brandi","raw":{"score":0,"time":2392.043701171875}},{"name":"todd","raw":{"score":0,"time":2392.04296875}},{"name":"lynwood","raw":{"score":0,"time":2392.042724609375}},{"name":"asuncion","raw":{"score":0,"time":2381.598388671875}},{"name":"kemberly","raw":{"score":0,"time":2356.116455078125}},{"name":"josephina","raw":{"score":0,"time":2355.2763671875}},{"name":"omar","raw":{"score":0,"time":2349.231689453125}},{"name":"chantelle","raw":{"score":0,"time":2288.18798828125}},{"name":"matt","raw":{"score":0,"time":2235.53125}},{"name":"joel","raw":{"score":0,"time":2218.60009765625}},{"name":"toby","raw":{"score":0,"time":2212.050048828125}},{"name":"george","raw":{"score":0,"time":1997.6500244140625}},{"name":"stefany","raw":{"score":0,"time":1986.5325927734375}},{"name":"camille","raw":{"score":0,"time":1981.34228515625}},{"name":"dianna","raw":{"score":0,"time":1779.30908203125}},{"name":"cuc","raw":{"score":0,"time":1754.068115234375}},{"name":"concha","raw":{"score":0,"time":1496.64697265625}},{"name":"melvin","raw":{"score":0,"time":1087.1314697265625}},{"name":"terence","raw":{"score":0,"time":798.7929077148438}},{"name":"ethelyn","raw":{"score":0,"time":595.7825317382812}}],"bots":[],"connect":"199.231.233.206:28015","ping":116}

Rust uses a "Streaming Sniper" system, where player names are changed. There are sites that show the real name like the one in the link. https://www.battlemetrics.com/servers/rust/7972018

how to make the query bring the correct names?

Pho3niX90 commented 1 year ago

you can't. Battlemetrics uses both query and rcon. The ones with the correct names was most probably fetched via RCON.