Treslo
09-10-2010, 02:28 PM
So, this will likely underwhelm anyone who is even remotely technical. Others, please continue to read.
In the course of studying PHP, I decided that I would focus all of my study-time on solving game-related challenges that I set out for myself. In that, I decided that I wanted to know how to manipulate the wealth of data available to me for my favorite little waste of time, HoN. Thankfully this allowed me to learn about manipulating XML and move forward pretty quickly on some basic fundamentals.
Recent Stats (v0.9): http://www.inmyth.com/mypuck/hon_recentstats.php
Details and Usage:
At this, quite ugly and un-styled, script simply enter in a range of game ID's on a line-by-line basis and return the form. The form will return to you a list of those game's with associated hyperlink to download the game replay.
Input a user-name of the player for the games indicated, and it will return the character level, kills, and deaths for that game. At the top it will indicate the average kills, deaths, and KDR over the games input. This is useful for trending over more recent games.
Example:
A given user - myself in this case - can navigate to a Heroes of Newerth stats page such as: http://www.heroesofnewerth.com/player_stats.php?aid=2370508
There the user should select all those Game ID's of interest from the "Match History" sidebar. (To get a "clean" list of ID's, drop this copied text into your favorite text editor and do a "wildcard" search such the code snipper below for MS Word wildcard search.
[(]***********[)]
Sample Game ID data:
13193669
13192286
13190774
13189335
13102826
13101450
12993210
12990440
12986278
12984145
12980942
Username: Treslo
With the sample data in place in the appropriate text field on the webpage (input game ID's), simply run the script.
The results returned will be in a serialized list of lowest to highest Game ID's and will return an active hyperlink to download a given game replay.
Some simple error checking does occur; alongside limited user input validation. Certain games, such as those no longer available as viewable replays, will not work. The script will indicate when this is the case.
Future Studying Expansion:
Better input validation.
Other stat output
Styling
Comments/Suggestions/Things to Explore
Got any?
Suggestion to users of the script - you can use this to easily create a list of links to download any number of games. For example, the most viewed games interest you? Download them all from a single page.
In the course of studying PHP, I decided that I would focus all of my study-time on solving game-related challenges that I set out for myself. In that, I decided that I wanted to know how to manipulate the wealth of data available to me for my favorite little waste of time, HoN. Thankfully this allowed me to learn about manipulating XML and move forward pretty quickly on some basic fundamentals.
Recent Stats (v0.9): http://www.inmyth.com/mypuck/hon_recentstats.php
Details and Usage:
At this, quite ugly and un-styled, script simply enter in a range of game ID's on a line-by-line basis and return the form. The form will return to you a list of those game's with associated hyperlink to download the game replay.
Input a user-name of the player for the games indicated, and it will return the character level, kills, and deaths for that game. At the top it will indicate the average kills, deaths, and KDR over the games input. This is useful for trending over more recent games.
Example:
A given user - myself in this case - can navigate to a Heroes of Newerth stats page such as: http://www.heroesofnewerth.com/player_stats.php?aid=2370508
There the user should select all those Game ID's of interest from the "Match History" sidebar. (To get a "clean" list of ID's, drop this copied text into your favorite text editor and do a "wildcard" search such the code snipper below for MS Word wildcard search.
[(]***********[)]
Sample Game ID data:
13193669
13192286
13190774
13189335
13102826
13101450
12993210
12990440
12986278
12984145
12980942
Username: Treslo
With the sample data in place in the appropriate text field on the webpage (input game ID's), simply run the script.
The results returned will be in a serialized list of lowest to highest Game ID's and will return an active hyperlink to download a given game replay.
Some simple error checking does occur; alongside limited user input validation. Certain games, such as those no longer available as viewable replays, will not work. The script will indicate when this is the case.
Future Studying Expansion:
Better input validation.
Other stat output
Styling
Comments/Suggestions/Things to Explore
Got any?
Suggestion to users of the script - you can use this to easily create a list of links to download any number of games. For example, the most viewed games interest you? Download them all from a single page.