Author Topic: How to get server name?  (Read 2581 times)

S8NSSON

  • Autococker
  • Posts: 709
How to get server name?
« on: December 14, 2005, 11:17:02 AM »
Ok...i have the ip and port and I send a UDP packet with "ÿÿÿÿstatus" and receive the server info just fine. Only the name of the server is not in the returned information.

How to get the name of the server?

Here is what's returned to me for my one server:
Code: [Select]
ÿÿÿÿprint
\mapname\cameltoe\pb\!1!3!4!6\pr\!2!5!7\po\!0\_scores\Blue:5 Red:1 \gamename\Digital Paint Paintball 2 v1.82(134)\gameversion\DPPB2 v1.82(134)\gamedate\Aug 20 2005\maxclients\8\protocol\34\cheats\0\dmflags\16\version\2.00 x86 Aug 19 2005 Win32 RELEASE\hostname\Paintball2 v1.80 build 126\fraglimit\50\timelimit\0\gamedir\pball\game\pball
0 10 "S8N"


S8NSSON

  • Autococker
  • Posts: 709
Re: How to get server name?
« Reply #1 on: December 14, 2005, 11:38:44 AM »
bah i'm a moron...n/m

jitspoe

  • Administrator
  • Autococker
  • Posts: 18802
Re: How to get server name?
« Reply #2 on: December 14, 2005, 02:46:10 PM »
"hostname", but it looks like you've already figured that out. :)

That reminds me... I started on a standalone server browser.  Sorry for the ugly colors -- mspaint sucks, and if I don't convert it to 16 colors first it dithers it to hell.

Eiii

  • Autococker
  • Posts: 4595
Re: How to get server name?
« Reply #3 on: December 14, 2005, 08:32:10 PM »
MsPaint?

IronFist

  • Autococker
  • Posts: 1304
_
« Reply #4 on: December 14, 2005, 09:04:56 PM »
Post removed
« Last Edit: July 25, 2010, 11:00:06 PM by IronFist »

S8NSSON

  • Autococker
  • Posts: 709
Re: How to get server name?
« Reply #5 on: December 16, 2005, 07:34:32 AM »
I was also creating a standalone server browser specifically for DP.
But seeing as though you are doing one also I will leave it to you.

btw, I know what "pb, pp, pr, py, and po" stand for in the returned data, but what do the values associated with them represent exactly? "!0!2!4!6" etc...
Sometimes there's one value, sometimes there more.

OH...forgot...
What's the format of the player specific data at the end?
« Last Edit: December 16, 2005, 08:52:36 AM by S8NSSON »

jitspoe

  • Administrator
  • Autococker
  • Posts: 18802
Re: How to get server name?
« Reply #6 on: December 16, 2005, 12:50:34 PM »
They're indexes into the list of players.  For "!0!2!4!6", it would mean that player 0, 2, 4, and 6 are on that team.  As for the data at the end, it's kills and ping.  Maybe time, too.