koraktor / steam-condenser

A multi-language library for querying the Steam Community, Source, GoldSrc servers and Steam master servers
https://koraktor.de/steam-condenser
Other
356 stars 67 forks source link

CSGO Server sending back RCONGoldSrcResponsePacket #326

Open BrutalCSkakan opened 4 years ago

BrutalCSkakan commented 4 years ago

Hello! When calling getPlayers() we send the regular A2S_PLAYER_Packet, and we expect S2A_PLAYER_Packet back from the server.

But I get RCONGoldSrcResponsePacket back instead. Has something changed that causes this behaviour? Is there anything that I can set up on the server to retrieve the correct payload?

2019-12-07 09:46:51.075 INFO 13692 --- [ scheduling-1] s.servers.sockets.SourceSocket : Received reply of type "RCONGoldSrcResponsePacket" 2019-12-07 09:46:51.112 INFO 13692 --- [ scheduling-1] s.servers.sockets.QuerySocket : Sending data packet of type "A2S_PLAYER_Packet" steamcondenser.exceptions.SteamCondenserException: Response of type class steamcondenser.servers.packets.rcon.RCONGoldSrcResponsePacket cannot be handled by this method. at steamcondenser.servers.GameServer.handleResponseForRequest(GameServer.java:343) at steamcondenser.servers.GameServer.handleResponseForRequest(GameServer.java:288) at steamcondenser.servers.GameServer.updatePlayers(GameServer.java:531) at steamcondenser.servers.GameServer.getPlayers(GameServer.java:207)

koraktor commented 4 years ago

This is probably caused by CS:GO limiting the output by default. See this issue comment on how to enable the old behavior.

BrutalCSkakan commented 4 years ago

That's unfortunately already set to 2..

koraktor commented 4 years ago

I’ll reply in this issue as the other one is already closed.

And what would you suggest when the host_players_show is set to 2, but still get the RCONGoldSrcResponsePacket when sending the A2S_PLAYER_Packet?

To be honest I have no idea. Can you share the server IP so I can test directly?