Warning: fread() [function.fread]: Length parameter must be greater than 0. in /home/mwilliams/m-williams.org/h2sa/h2sa.php on line 12
H2SA - Halo 2 Stats Aggregator
H2SA - The Halo 2 Stats Aggregator
*CLICK FOR UPDATES*
Description:
The included scripts will download all of your Halo 2 stats from bungie.net.
It will then evaluate them to provide you with totals for all of your stats.
It will also provide you with the largest number for each stat.
New for version 0.5:
Lots of new stat tracking, and a new layout for the HTML output.
***Rename any existing XML files before running for the first time***
All stats are now archived in an xml document, and you are provided with the option
to automatically delete all downloaded files after archiving.
I would recommend running the script once and not deleting the files and checking out
the results. If they look fine, then I would run it again and let it delete the HTML
files.
Downloads
* Download the Microsoft Windows version here - h2sa-windows-0.5.zip (see updates)
If you need the required programs for the windows version you can follow these links to download them:
Active Perl
Wget (The latest verion fo wget is included in the H2SA package)
* Download the Linux version here - h2sa-linux-0.5.tar (see updates)
Notice
In order to track your stat totals this script must download all stat pages from
the bungie.net web site. The first time you run the script, one file is downloaded
for each page of the games list. Next 3 pages are downloaded for every game that you have played.
So for example: for 8 pages of games (200 games) 608 files are downloaded and will
be roughly 40MB to 45MB in total.
** This can take a long time **
The next time the script is run, only the game lists, and files for new games played are downloaded.
----------------------------------------------------------------------------------
These scripts now output a website that looks liek this:
Output Web Site
Updates:
Version 0.5 Windows and Linux
Lots of big changes again. Most noticeable is a new web layout for the output.
Stats are broken out by ranked and unranked games. Totals, averages and maximums are tracked
for all of the different game types. Lastly, game times are also tracked.
--------------------------------------------------------------
Version 0.4b Windows
I had uploaded an incorrect copy of 0.4a containing a bug which caused all .stats.html files
to be overwritten with the .pvp.html files. Unfortunatley this means that all .stats.html files
will need to be deleted before this newest version is run.
--------------------------------------------------------------
Version 0.4a Windows and Linux
Added support to download the last two frames of stats (general stats and PvP). At this point
nothing is done with these stats, but I wanted to include a download of them ASAP (For Archiving)
as Bungie has started to purge old stats.
--------------------------------------------------------------
Version 0.4 Windows and Linux
Added archiving functionality, to both protect against losing stats to Bungie.net stat purges, as well
as to take up much less space by replacing all of the html files downloaded with a single xml file.
Currently the html files are not deleted to ensure that stats are archived properly. They can be
manually deleted if your stats look correct, and with the next version, will be deleted automatically.
--------------------------------------------------------------
Version 0.3 Windows and Linux
Lots of Usability changes in this update, and a few stats added.
Features added:
- Condensed to one script instead of two (renamed to h2sa.pl)
- Just double click the program to run it in windows (no more dealing with the command prompt)
- No longer displays all of the messy download information
- Displays progress bars for the downloads (one for the lists one for the games
- Outputs stats to a (somewhat) nicer formatted web page in addition to the command prompt
- Stats web page opens automatically when finished (Windows Only)
- The webpage has links to your stats page and links to the games for the max values
New Stats Tracked:
- Kill to Death Ratio
- Averages for all stats tracked
--------------------------------------------------------------
Version 0.2a Windows
Further syntax problems between windows and linux. Problems with spaces in names
I think I hopefully caught everything this time
--------------------------------------------------------------
Version 0.2 Windows and Linux
Added better error checking, and added more understandable error checking.
The Windows version was having some major problems with downloading files beyond the first game.
This was an issue with syntax differences between the linux and windows version of wget. The windows
version should now also be able to download all stat files. This solves the "Illegal division by zero" error.
---------------------------------------------------------------
Version 0.1a Linux
I just found a small bug in the Linux version which caused only the first page of stats to be totaled.
It has been fixed and the new version is linked to on the download page.
The windows version was not affected.
---------------------------------------------------------------
(c) 2004 Matt Williams under the GNU Public License, Version 2.