Poll

Did Kalphiter copy me? (poll locked)

Yes
No

Author Topic: Blockland Server Status  (Read 11928 times)

Yeah, you already said so, but how. Is there something I do not know about? So if I am correct, you say this script does not use blockland && "RTB's server browser" !$= "The master server"

You have no idea what you're talking about - and neither does anyone else.

The master server only lists servers that are attempting to be online. I'm really not sure how the master server decides to knock a server off.

But, the client only gets the list, and the client itself pings every server to see if they're really online or not.

Yeah its slightly more complicated than that.

Just ping the server using the ping command. Opening a socket tests for an active TCP service on that port which is useless, as Blockland uses UDP.

There are also some scripts out there for doing this to Tribes/Torque servers, which ought to work with almost no modification.

Yeah I meant, using PHP its more complicated to ping UDP ports than TCP ports.

I've already had it working on the RTB Server Browser but without making it use some sort of ajax it would delay the pageload to the timeout of the pings (assuming some servers were dead) and that much work just isn't worth it for me.
« Last Edit: June 13, 2009, 03:41:42 PM by Ephialtes »

Tom

Just ping the server using the ping command.
Code: [Select]
<?php
$ping_ex 
exec("ping 74.52.20.186:28100"$ping_result$pr);

if (
count($ping_result) > 1){ 
echo 
'ping online - response'
} else { 
echo 
'ping offline - response'
}
?>

Not working D:

There are also some scripts out there for doing this to Tribes/Torque servers, which ought to work with almost no modification.
Did a quick search and didn't find any, but I might have to look a little more.

I have my own script that can do this, Granted it doesn't use pretty images. :(


aweshum. pure awesomeness.

Tom

Duh, the windows ping command won't work on linux.

Duh, the windows ping command won't work on linux.
Win or fail?


Tom

Bump, I need input on how I can make it look nicer.

Make the background trans, and when its offline the middle bar grey, when online a mellow Green.

Other than that I like it. Also, see what it would look like with the Impact font for BL style :P.

I LOVE HIM MORE! (No homo) *shoves everyone out of the way*

Tom

Added  new poll.