Misc User Apps - Zone pinger Smong - Wed Jun 20, 2007 1:09 pm Post subject: Zone pinger
I thought I'd have a shot at implementing the client side of the extended ping protocol. I managed to get it to work with php. Anyway, you can see it at http://toktok.sscentral.com/zonepinger/ and if you click on an asss zone, provided there are people in there you can see which arenas are open.
I might release the source at some point, I'm not entirely happy with the page design yet.
It caches results for a few seconds so shouldn't start DOS'ing stuff. I don't intend to write a full blown zone list downloader in php, but I may make it read from a zone.dat (currently the zones are hardcoded in).
Maverick - Wed Jun 20, 2007 2:00 pm Post subject:
nice! I always had this idea but never got around to start with it.
Is that part of the extended As3 protocol that the arena's and their population is returned on the pong ?
Smong - Wed Jun 20, 2007 4:32 pm Post subject:
Yeah the extended packet allows you to see total players and total playing either for the entire zone or per-arena (I'm showing both).
Any suggestions as to what else can be added to the protocol? I was thinking maybe the zone description and the jackpot.
CypherJF - Wed Jun 20, 2007 5:23 pm Post subject:
I had done something like this on my local PC before for the Omega Fire website, but sscentral host (twsites?) blocked any outgoing tcp/udp packets from PHP.
BDwinsAlt - Wed Jun 20, 2007 5:47 pm Post subject:
Host it on another site and use an iframe.
This looks nice though. Nice work.
Ah I just tested it. Love it. Great work.
Maverick - Thu Jun 21, 2007 3:43 am Post subject:
Yea a zone description would definitely be nice.
BDwinsAlt - Fri Jun 22, 2007 8:18 pm Post subject:
Can you show me a small example of how to get ping times? This looks hawt.
Smong - Sat Jun 23, 2007 11:22 am Post subject:
You can either read the wiki version or ping.txt in asss's doc directory. Both are the same/similar file.
http://wiki.minegoboom.com/index.php/Ping_ProtocolBDwinsAlt - Sat Jun 23, 2007 4:33 pm Post subject:
When I try to do it on my own in php I get back a population instead. I'll look at the docs and wiki closely.
EDIT: LOL I just though about it. Just subtract the time when it was sent from when it was received.