Get players names in server using Steamworks Web API?
I am trying to query servers using the Steamworks Web API, and I would like to know if it is possible to get a list of players currently in a server.

It is possible to get this list using the A2S requests using server queries (https://developer.valvesoftware.com/wiki/Server_queries), but I would like to know if Steamworks Web API can also do that.

So far I have managed to get the server name, map, and number of players with https://api.steampowered.com/IGameServersService/GetServerList/v1/ but this does not give the list of players.

Thanks!
< >
Zobrazeno 115 z 21 komentářů
okkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk Thanks Very Much Mr.
VHF FDGDDY SDS
jaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
sheesh
Don't think any Steamworks API will give the names of players connected to a server.

I don't know of any that do, and just the requirements for it to happen seem like they would be too costly for any benefit - either the web api would perform an A2S query on your behalf (which would not be great since they could be abused, and you could just do the A2S query yourself anyway so doesn't make sense to need it) or the server would have to update the web api in the same way as it does for server name, map, and number of players, which would be a ton of extra data needed.

That list of severs also just looks like matchmaking servers and nothing else - what was the purpose / use of the data you want ?
Naposledy upravil [N]ebsun; 10. dub. 2022 v 1.58
Steam query can do that..
Long time ago i did that using rconed library (this one is for java), i managed to get all the information from "status" query and "stats" query on an l4d2 server, any information you could get using server commands (like rcon or using directly into server console).
Including sourcemod plugins, some configs, and such..

http://rconed.sourceforge.net/

You can get some libraries to deal with server communications..

https://developer.valvesoftware.com/wiki/Server_queries#Implementations
also
https://developer.valvesoftware.com/wiki/Source_RCON_Protocol#Source_RCON_Libraries

What game is? CSGO ?

edit: found some pics.. take a look, please ignore tha language.

Server info:
https://imgur.com/7qF0P9f

Players Info:
https://imgur.com/nd4QOfm
(double click on player opens steam profile of that player)

Sourcemod/metamod info
https://imgur.com/a/0ybwIMX
Also, double click on plugin name to show more info about it..
Naposledy upravil Blaquicat; 11. dub. 2022 v 6.52
Either rcon or a2s will work, but not steamworks api
Nebsun původně napsal:
Don't think any Steamworks API will give the names of players connected to a server.

I don't know of any that do, and just the requirements for it to happen seem like they would be too costly for any benefit - either the web api would perform an A2S query on your behalf (which would not be great since they could be abused, and you could just do the A2S query yourself anyway so doesn't make sense to need it) or the server would have to update the web api in the same way as it does for server name, map, and number of players, which would be a ton of extra data needed.

That list of severs also just looks like matchmaking servers and nothing else - what was the purpose / use of the data you want ?


Thank you, the reason is that I noticed that some servers do the Steam API query, but do not perform the A2S query.
Blaquicat původně napsal:
Steam query can do that..
Long time ago i did that using rconed library (this one is for java), i managed to get all the information from "status" query and "stats" query on an l4d2 server, any information you could get using server commands (like rcon or using directly into server console).
Including sourcemod plugins, some configs, and such..

http://rconed.sourceforge.net/

You can get some libraries to deal with server communications..

https://developer.valvesoftware.com/wiki/Server_queries#Implementations
also
https://developer.valvesoftware.com/wiki/Source_RCON_Protocol#Source_RCON_Libraries

What game is? CSGO ?

edit: found some pics.. take a look, please ignore tha language.

Server info:
https://imgur.com/7qF0P9f

Players Info:
https://imgur.com/nd4QOfm
(double click on player opens steam profile of that player)

Sourcemod/metamod info
https://imgur.com/a/0ybwIMX
Also, double click on plugin name to show more info about it..

Thanks! Sadly, I'd need the RCON password to make it work.
RiceCat původně napsal:
Thank you, the reason is that I noticed that some servers do the Steam API query, but do not perform the A2S query.

Do you mean only the playercount or the query as a whole?
Because for the playercount to work the server needs to have a proper setting:
host_players_show needs to be set to 1 or 2. If set to 0 it doesn't show.
kkkkkkkkkkkkkkkkkkkkkk
Sepp původně napsal:
RiceCat původně napsal:
Thank you, the reason is that I noticed that some servers do the Steam API query, but do not perform the A2S query.

Do you mean only the playercount or the query as a whole?
Because for the playercount to work the server needs to have a proper setting:
host_players_show needs to be set to 1 or 2. If set to 0 it doesn't show.


I mean the query as a whole. Thank you, I did not know that servers could have that setting.
thanks jaa ok ok
< >
Zobrazeno 115 z 21 komentářů
Na stránku: 1530 50

Datum zveřejnění: 24. bře. 2022 v 22.22
Počet příspěvků: 21