PlayerCounter v2.0 RELEASED!!!
UPDATED RS PLAYER COUNTER!!! FULLY FUNCTIONAL AND WORKS 100%!
This script logs the number of total players on runescape.com over a period of time and graphs it realtime! Should there be a winsock error (for example, if port 80 is already in use), the script will simply put -1 as value. This will show up in the graph as a steep drop, so don't be surprised if you see something strange. It happens kinda often when surfing the web.
The script works by collecting the total # of users from the top of the runescape main page.
SCAR Code:
{======================[Description and Release Notes]=========================}
{ }
{ PlayerCounter V [2.0] }
{ }
{=============================[How to use this]================================}
{ }
{ What this script does is, that it connects to the runescape main page, }
{ gathering the entire page's content and then extracting the number of people }
{ playing the game from the top of the page. }
{ }
{ The script then dumps the information into the debug window, afterwards }
{ graphes it to the debug image in realtime. Using this tool, you can analyze }
{ what the statistics for RS are using an inbuilt plotter. }
{ }
{ Setup is simple. Set }
ClientName = 'Mozilla Firefox 1.5';
{ to the name of your client. You should choose something ordinary so RS }
{ doesn't suspect anything. }
{ Set the time interval for collection below in seconds: }
IntervalTime = 120;
{ I reccomend you keep it at over 30 seconds, else jagex might suspect your IP }
{ and do bannage. IP bannage alert! }
{ Set the below to how many times you want samples to be collected: }
SampleSize = 720;
{ Next, set the resolution of the data. I keep it at 1000's, so every pixel on }
{ the graph represents 1000 players, but set it to your liking: }
Resolution = 1000;
{ }
{ Just press the play button and allow the firewall to access the runescape }
{ main page. }
{ }
{ For more help and support go to }
{ [url]http://whitenoise.awardspace.com/index.php?act=scripts&script=rscounter[/url] }
{ }
{=============================[Version History]================================}
{ }
{ 1.5 - Completely rewrote the way I graph stuff. Much more advanced and no }
{ more crashes! Removed file support - the array isn't THAT big. This }
{ major update finally graphes correct and makes the graph do }
{ EVERYTHING correct. No more huge graphs with pixely lines and no }
{ reference! }
{ }
{ 1.6 - Bug fixes, bug fixes and bug fixes... Made it work intervals out in }
{ seconds not minutes. }
{ }
{ 2.0 - Decided to make this a new major version because the plotter in no }
{ way resembles the original except for the general idea. Release! }
{ }
{==============================================================================}
{ }
{ DO NOT DELETE BELOW THIS LINE }
{ (* A }
{ .--. . . }
{ | ) _|_ _|_ }
{ |--: .-. | .--.--. .-. .--.| .-. .--. }
{ | )( )| | | |( ) `--.| (.-' | }
{ '--' `-' `-'' ' `-`-'`-`--'`-'`--'' }
{ script production*) }
{ }
{ ADD LIST OF CONTRIBUTERS/EDITORS/MODIFIERS HERE: }
//Okay, after the above you can start editing again :P
{------------------------------------------------------------------------------}
This new version of the RS player counter has numerous bugfixes. It can now size down intervals to seconds and has a less detectible client name. Here's some of the new things:
- Script now graphes correctly
- The graph now has reference lines so you now know approximately what the data is
- The debug image now remains as small as possible
- You can specify the intervals in seconds
- You can now choose how many samles you want to take!
- No more runtime errors and failsafes
Some bugfixes from version 1.2:
- Script doesn't graph reverse anymore
- Script doesn't make debug window go half accross the screen
- If the script fails to retreive runescape.com, it puts -1 as value
Oh, and you may realize that I disabled the export-to-file feature; this is because it doesn't make sense unless you gather consecutive data. Loading a file and then adding to it, I don't see any good in that (unless you JUST want to analyze it, in which case I'd make a screenshot).
Anyways, hope you like it. And post some reports!!! Here's my first one, I ran 15 second interval on a proxy (don't do this on your home comp - you'll get IP banned) and 500 recordings at 1000 resolution:
http://img184.imageshack.us/img184/9...eniern5.th.jpg
And by the way: The grey lines are 20 pixels appart both horizontally and vertically. This can help you to figure out when the script started and ended!
Don't forget to:
http://img249.imageshack.us/img249/1378/dothisvs3.jpg