Author |
Message |
Smong Server Help Squatter
Joined: 1043048991 Posts: 0x91E Offline
|
Posted: 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). _________________ ss news
zonepinger.png - 3.08 KB
File downloaded or viewed 35 time(s)
|
|
Back to top |
|
|
Maverick
Age:39 Gender: Joined: Feb 26 2005 Posts: 1521 Location: The Netherlands Offline
|
Posted: 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 ? _________________
|
|
Back to top |
|
|
Smong Server Help Squatter
Joined: 1043048991 Posts: 0x91E Offline
|
Posted: 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.
|
|
Back to top |
|
|
CypherJF I gargle nitroglycerin
Gender: Joined: Aug 14 2003 Posts: 2582 Location: USA Offline
|
Posted: 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. _________________ Performance is often the art of cheating carefully. - James Gosling
|
|
Back to top |
|
|
BDwinsAlt Agurus's Posse
Age:33 Gender: Joined: Jun 16 2003 Posts: 1145 Location: Alabama Offline
|
Posted: 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.
|
|
Back to top |
|
|
Maverick
Age:39 Gender: Joined: Feb 26 2005 Posts: 1521 Location: The Netherlands Offline
|
Posted: Thu Jun 21, 2007 3:43 am Post subject: |
|
|
|
|
Yea a zone description would definitely be nice.
|
|
Back to top |
|
|
BDwinsAlt Agurus's Posse
Age:33 Gender: Joined: Jun 16 2003 Posts: 1145 Location: Alabama Offline
|
Posted: 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.
|
|
Back to top |
|
|
Smong Server Help Squatter
Joined: 1043048991 Posts: 0x91E Offline
|
|
Back to top |
|
|
BDwinsAlt Agurus's Posse
Age:33 Gender: Joined: Jun 16 2003 Posts: 1145 Location: Alabama Offline
|
Posted: 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.
This whole time I already had population though.
|
|
Back to top |
|
|
|