Ping Detection

by Ss4toby
No longer wonder if it's your server or the player lagging. Now you know! [More]
To download this demo for your Linux/Mac installation, enter this on your command line:

DreamDownload byond://Ss4toby.PINGDetection##version=3

Emulator users, in the BYOND pager go to File | Open Location and enter this URL:

byond://Ss4toby.PINGDetection##version=3

50 downloads
Version 2
Date added: May 4 2011
Last updated: Mar 8 2016
0 fans
This system utilizes Dream Seeker and it's built in web browser interface to create a ping-pong system which can be viewed by the game.

By the server sending a call to a client javascript, it allows semi-accurate pings based on individual's internet speed.

Version 2: Rewrote Javascript to utilize built in Date() instance, allowing for ping to be returned in milliseconds. Created a list for players so the Average Ping verb will not cycle through all mobs in world. Cleaned up a lot of the script and organized it better. Also made ping calls client side to detect server spikes.