Author Topic: Get server info from master?  (Read 1682 times)

How do I get the info of a server from the master server?


Some info:
The fields are tab spaced. So use getfield and stuff.

FIELDS IP PORT PASSWORDED DEDICATED SERVERNAME PLAYERS MAXPLAYERS MAPNAME BRICKCOUNT START
START I believe is if the server was up for less than 10 minutes.

Ok, so I looked at the site you posted. It looks like a huge jumbled mess. Would I use TCPObject? And would I use getWord()? Or getField()

And it looks like START is where the listing begins, and at the very bottom, END is where it ends. (Duh?)

There's an extra 0 after the brick count on a lot of servers.

And you use getfield, as I stated in my second post.

There's an extra 0 after the brick count on a lot of servers.

Thats brick count.

Is there a mod that shows an example of how connecting would work?

AFTER the brick count. Derp.

And likely not.

AFTER the brick count. Derp.

There's nothing after the brick count field:
(Applied regex to view-source:http://master2.blockland.us/index.php to format for BBCode.)

IPPORTPASSWORDEDDEDICATEDSERVERNAMEPLAYERSMAXPLAYERSMAPNAMEBRICKCOUNT
99.135.190.222810001Maxwell's Arctic Challenge 24/7910Arctic Challenge v30
76.182.151.1662810000ethan24's Freebuild & Stuff124The Slopes3
208.66.246.1992800000tommy1238's need help on jaill 1st13Skylands8509
71.12.171.702800000that weird six f's consitration camp build132Slate Cement614
75.37.199.602800000darren16's darren16'free build132Bedroom1159