PDA

View Full Version : Server Query Library in C#


digibob
09-04-2007, 10:33 AM
I finally got around to updating my server query library yesterday. This was initially written for sponge's little server query app.

Currently it supports:

Asynchronous server info queries.
Asynchronous request of the master server list of servers.


Provided is a CLR enabled dll, written in C#, including XML docs for it.

http://www.digibob.co.uk/filez/libServerQuery.rar

Enjoy!

Please report any bugs/feature requests here. My next plan is to include some kind of rcon support, as well as tidying up some of the server fields.

Joe999
09-04-2007, 11:31 AM
awesome, thanks! :)

hannes
09-04-2007, 06:14 PM
very nice thx.

but couldnt you have done this a few days ago? Would have saved me a lot of work

BerenAndLuthien
09-04-2007, 06:31 PM
Awesome. Is there any protocol documentation on this type of thing? I'm interested in writing a Java version so that I can run it on a Linux box.

digibob
09-04-2007, 07:16 PM
very nice thx.

but couldnt you have done this a few days ago? Would have saved me a lot of work

Sorry about that.

Sponge poked me the other day about updating the lib, which I'd originally written a month or so ago, I assume because he'd seen your rcon tool!

sponge
09-04-2007, 07:40 PM
Awesome. Is there any protocol documentation on this type of thing? I'm interested in writing a Java version so that I can run it on a Linux box.

Check the Doom3 protocol. There are more fields used for the server info (time left, round, etc) but sending and parsing it should be roughly the same.

Sorry about that.

Sponge poked me the other day about updating the lib, which I'd originally written a month or so ago, I assume because he'd seen your rcon tool!

Aye, that was what reminded me heh.

If I get some time (unlikely, unfortuantely) I'd like to finish my server browser, which also includes, IMO, the somewhat unique feature of alerting you when servers have more than x amount of people in them.

digibob
09-04-2007, 08:40 PM
And here's a (very) rough little test app, which some people had requested.

http://www.digibob.co.uk/filez/libServerQuerySampleApp.rar

hannes
09-05-2007, 04:44 PM
any chance you give us a short overview where to find what.

I mean the basics can be found easily. You can take the doom3 protocol as a referrence (yes im german and dno how to spell that word correctly).

--
--
infoResponse
--
--
.
.
--
Somewhere around here the server cvars starts with key - value
.
.
.
--
--
--
Player plus its info (what do i get from there? I see name, ping, rate? Is there anything more?)
--
--
Now whats here? the end or still smth to find?

would be nice to get some info about that.

sry for the mess in the post, hope you understand what i was askin :)

digibob
09-12-2007, 10:10 PM
Jared has posted that information here: http://community.enemyterritory.com/forums/showpost.php?p=129140&postcount=50

There's a new version of the dll up, which supports switching between the beta and demo master list, or specifying your own address if you wish.

LaVaGoD
09-14-2007, 01:12 AM
I will have to check this out

Thanks bob

CyboPat
10-06-2007, 09:00 PM
:confused:
Example source:
http://www.cybopat.net/qw/data.jpg

Please somebody explain me 4 bytes of TimeLeft of map (red mark).
.. and is there info about XP points of each player? (Blue mark is nick)
Exactly please - row and byte(s).
Thanx.

digibob
10-10-2007, 12:24 AM
There's a new version up.

I've re-written a lot of stuff to make it neater, so you'll need to hook stuff up to the new classes. Most of the static functions are gone, and replaced with manager classes, so you can have multiple copies around for whatever fiendish purposes you need them for. The only one that still uses a static function is the stats grabber, as it has no internal state.

New:
Native support for the retail master server, which is now defaults to using.
Ability to send rcon requests, and get the response back from the server, asynchronously.
Ability to request the XML stats docs for a player , asynchronously.

Note: I haven't kept the sample app up to date, may fix that up later this week.

taolin
10-12-2007, 03:16 PM
Awesome, thanks Bob. This is exactly what I need for my clan site. The gamer/developer in me is very happy to see that an employee is releasing code/libraries. I hope the trend continues.

Mugzy
10-16-2007, 11:29 PM
Anyone have some sample code they can post?

Mati
10-17-2007, 03:44 AM
I have a crazy request for SD: is there any chance that some future patch could include each player's current team, say, encoded in the isBot field in the client data block?

Why, you ask? I want to create an Elo-like ranking system that would cross-reference server/team data with the individual player stats from the web service, to try and calculate a measure of a player's actual impact on their team's chances of winning.

Or are there already plans for doing something similar for the Xbox Live version, with the TrueSkill ranking?

Marschall
10-17-2007, 06:45 PM
Also if the XP would be showen in the server inforesponse query would be nice^^ ;)

or is there an other posibility to read the xp's??

paddxxxx
11-10-2007, 05:29 AM
can you update it for 1.2?