Digital Paint Discussion Board
Development => General Development => Topic started by: S8NSSON 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:
ÿÿÿÿ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"
-
bah i'm a moron...n/m
-
"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.
-
MsPaint?
-
Post removed
-
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?
-
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.