r1ch.net forums
* Home Help Search Login Register
r1ch.net  |  r1ch.net stuff  |  R1Q2  |  Topic: Quake II Server Browser (beta 3)
Pages: 1 2 [All]
Print
Author Topic: Quake II Server Browser (beta 3)  (Read 60074 times)
R1CH
Administrator
Member

Posts: 2625



« on: December 13, 2009, 10:01:28 pm »



http://r-1.ch/qsb-beta3.zip
Logged
PogoŽ
Guest
« Reply #1 on: December 14, 2009, 12:39:40 pm »

YAY FLAGS!
The only things i'm missing now is the ability to copy ips with ctrl-c and an option to not shut down the program after connecting to a server. With those 2 things it would be the ultimate server browser imo, no bloat and good overview. A buddy list would also be cool, but it's more of an extra if you ever feel like it Smiley

Thanks alot for this, it really fills the shoes of the all-seeing eye!
Logged
Pogo\\\'
Guest
« Reply #2 on: December 14, 2009, 12:43:20 pm »

Uh i somehow managed to miss that it already has a buddy list =)
Nevermind me, carry on  grin
Logged
wision
Member

Posts: 237



« Reply #3 on: December 14, 2009, 01:58:11 pm »

- show scores of all the players
- F5 / ctrl+r as "update"
« Last Edit: December 14, 2009, 05:12:45 pm by wision » Logged
Gen
Member

Posts: 56



« Reply #4 on: December 14, 2009, 02:29:48 pm »

nice thanks
Logged
R1CH
Administrator
Member

Posts: 2625



« Reply #5 on: December 14, 2009, 06:32:02 pm »

- show scores of all the players
Right click the playerlist?
Logged
Newbie
Guest
« Reply #6 on: December 15, 2009, 03:31:18 am »

Could you add a dday filter?
Logged
Muerte
Guest
« Reply #7 on: December 15, 2009, 05:17:13 am »

unfortunate qsb show WallFly[BZZZ] as servers with players instead empty
bigger font for playerlist?

looks promising
Logged
mhanor
Member

Posts: 120


« Reply #8 on: December 15, 2009, 09:16:25 am »

Right click the playerlist?
it's not an obvious feature... it should display a tip or you could add a check box or a button
« Last Edit: December 15, 2009, 09:19:33 am by mhanor » Logged
SquiSHeR
Guest
« Reply #9 on: February 13, 2010, 04:21:47 am »

Hello R1CH.

Could you please make the source code available so others have the ability to port it to other systems like linux or Mac OS? Or do you have any code examples on how to query Q2 servers and extract game data from their reply?
Logged
QwazyWabbit
Member

Posts: 402


« Reply #10 on: February 13, 2010, 03:50:56 pm »

Servers are pinged and queried via UDP frames containing strings.
A ping frame consist of the word "ping" preceded by the Out-Of-Band flag, the 32-bit hex value of -1 as a string
"FFFFFFFF"

#define OOB_SEQ "\xff\xff\xff\xff" //32 bit integer (-1) as string sequence signifying out of band data

      sendto (socket, OOB_SEQ"ping", 8, 0, (struct sockaddr *)&addr, sizeof(addr));

The server responds with an "ack" frame:

      sendto (listener, OOB_SEQ"ack", 7, 0, (struct sockaddr *)&addr, sizeof(addr));

The time delay between the transmitted ping and the received ack is used to estimate the ping to the server.

The same framing principle applies to getting an out-of-band status frame:

      sendto (socket, OOB_SEQ"status", 10, 0, (struct sockaddr *)&addr, sizeof(addr));

The server responds with a server info frame consisting of the elements:
OOB_SEQ"print\n"
followed by a series of hashes, (paired variable/value strings delimited by backslashes:
\variable1\value1\variable2\value2\variable3\value3 ... etc. finally ending with "\n"
followed by player information strings (if any) consisting of:
score<space>ping<space>"playername" each player info string ends with "\n" (note: quotes are required around the player name)

You can find the creation of the server info frame in R1ch's r1q2 source in the SVC_Status and SV_StatusString functions.
You can get the socket structures and other information you need from r1q2 source also.
« Last Edit: February 13, 2010, 05:05:25 pm by QwazyWabbit » Logged
resor
Guest
« Reply #11 on: March 18, 2010, 12:22:48 pm »


WTF?
Logged
R1CH
Administrator
Member

Posts: 2625



« Reply #12 on: March 18, 2010, 12:31:41 pm »

Install this:
http://www.microsoft.com/downloads/details.aspx?familyid=A5C84275-3B97-4AB7-A40D-3802B2AF5FC2&displaylang=en
Logged
resor
Guest
« Reply #13 on: April 01, 2010, 11:08:33 am »

Thanks. Working Wink
Logged
Nicholas
Guest
« Reply #14 on: May 14, 2010, 12:54:28 pm »

what is the master server  r u gathering servers information?
Logged
R1CH
Administrator
Member

Posts: 2625



« Reply #15 on: May 14, 2010, 02:41:56 pm »

q2servers.com
Logged
puppy
Member

Posts: 11


« Reply #16 on: May 28, 2010, 12:06:52 pm »

it's would be NICE if it can work only from serverlist (txt or cfg file). because not all servers are needed.
Logged
Elysium
Member

Posts: 25



« Reply #17 on: August 10, 2011, 07:43:46 pm »

I've seen some people talk about having the source code to this program but I can't find if R1CH posted it anywhere. Does anyone have it available?
Logged
Pages: 1 2 [All]
Print
r1ch.net  |  r1ch.net stuff  |  R1Q2  |  Topic: Quake II Server Browser (beta 3)
Jump to:  

Powered by SMF 1.1.19 | SMF © 2013, Simple Machines