Repository is archived
No commit activity in last 3 years
No release in over 3 years
Query old GameSpy servers.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.7
~> 10.0

Runtime

 Project Readme

Old GameSpy Query

Query old GameSpy servers, specifically, Command & Conquer: Renegade servers.

Usage

Example of querying every server.

require "old_gamespy_query"
require "pp"

@master_server = OldGameSpyQuery::MasterServer.new

@master_server.list.each do |addr|
  begin
    @data = OldGameSpyQuery::ServerData.new("#{addr}").get_server_data("players")
    pp @data
  rescue Timeout::Error
    # Mask unresponsive servers
  end
end

Note

Querying the master server requires 'gslist' and a modified version of gamespy_query. Also the 'gslist' executable needs to be in the same directory from where your executing your program. See http://aluigi.org/papers.htm#gslist.