Get list of all servers of a game

79 views
Skip to first unread message

viki Domotica

unread,
Jul 7, 2016, 2:25:20 PM7/7/16
to Steam Condenser
Hello all,

I was wondering how i could query all the servers of a game using condenser (java).

thx for help

Sebastian Staudt

unread,
Jul 8, 2016, 1:32:33 AM7/8/16
to Steam Condenser
There’s an example of master server usage available here: http://koraktor.de/steam-condenser/usage/

It has to be tweaked a little bit to filter by game. I’d expect you want a Source game, so here’s some code for CS:S:

Random randomizer = new Random();
MasterServer master = new MasterServer(MasterServer.SOURCE_MASTER_SERVER);
Set<InetSocketAddress> servers = master.getServers(MasterServer.REGION_ALL, "\\gamedir\\cstrike");


--
You received this message because you are subscribed to the Google Groups "Steam Condenser" group.
To unsubscribe from this group and stop receiving emails from it, send an email to steam-condens...@googlegroups.com.
To post to this group, send email to steam-c...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/steam-condenser/629d048e-57f2-459f-987a-99f281d97e20%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages