#1 2013-12-08 01:39:44

CossRooper
Player
Reputation: 0
Registered: 2013-02-06
Posts: 10
Windows 7 Chrome 31.0

Querying Gamespy Master Server list?

Does anyone have any info on how to query the gamespy master server list for BF1942 servers via http or something similar?

I'd like to make a python script that uses the raw serverlist data, but several hours of googling have given me nothing of substance that would allow me to get coding.

I figured I'd ask here before I break out Wireshark and try and figure it out myself. I know some of you have a pretty extensive knowledge of 42, given your work on the server and client executables.

Anyways, any help is appreciated! If I make any progress I'll certainly update this thread.

EDIT:

This post (http://sanity-free.com/forum/viewtopic.php?id=80), although referencing 2142, seems to be a goldmine. Apparently Gamespy uses some sort of TCP handshake to get the text list of servers, at least for 2142. Doesn't sound fun! Except there appears to be some sort of gamespy-provided .exe to do it, which I'm looking into now.

EDIT2:

Problem solved! gslist.exe does everything I need. See the author's page for it here.

Last edited by CossRooper (2013-12-08 02:33:46)

Offline

    Positive reputation 0   Negative reputation 0

#2 2013-12-08 12:07:09

Denny
Member
Croatia
Reputation: +54
Registered: 2012-03-10
Posts: 3,199
Unknown Opera 11.10

Re: Querying Gamespy Master Server list?

check out pixel-fighters website, i remember they know how to do some stuff

Offline

    Positive reputation 0   Negative reputation 0

#3 2013-12-08 13:05:36

tuia
BFSoldier
Portugal
Reputation: +1121
Location: Lisbon
Registered: 2012-02-20
Posts: 6,381
Website
Windows XP Firefox 25.0

Re: Querying Gamespy Master Server list?

Yes, gslist is the program you will need. Source code is available and explained.

Offline

    Positive reputation 0   Negative reputation 0

Board footer