Page 1 of 1

XBL Stats grabber

Posted: Tue May 01, 2007 9:04 am
by TheTyckoMan
Just an app I was playing around with, much more is planned for it, but for now I'm just releasing it so people can back up their games as they go (you can only grab your last 25 games atm), so that at least some of their games will be saved when the stats are reset.

Thanks to xZulux and xxAntManxx for their help in pointing me in the right direction at times.

To use, just put your gamertag in, then choose whether to grab your last 25 games or just one of your last 25 games, then press fetch. When it gets done (yes I know I need to add a progress bar) go to the directory where you put the program, then open games.xml, it has the stats for the games you choose to grab.

Once again, this is just an alpha and I'm releasing it because of the stats reset that's going to happen, hopefully I'll have more done with it soon....

ps:it creates a bunch of temp files (in the program folder) and I haven't had time to write the functions to delete them after everything has run, sorry about that.

Grabs the stats from pages like
http://www.bungie.net/Stats/PlayerStats ... mode=Halo2
and
http://www.bungie.net/Stats/GameStats.a ... he7yckoMan
(just to pick my main page and a random game)

Enjoy!

Image

Example (just including one player from the game)

Code: Select all

<Game>
    <date value="4/27/2007 6:29:37 PM" />
    <matchtype value="Rumble Pit" />
    <gametype value="Slayer" />
    <map value="Midship" />
    <link value="/Stats/GameStats.aspx?gameid=693814341&mode=Halo2&player=The7yckoMan" />
    <player>
      <assists value="3" />
      <betrayals value="0" />
      <deaths value="6" />
      <firstgametypestat value="9" />
      <grenadekills value="3" />
      <headshots value="11" />
      <kdspread value="19" />
      <kills value="25" />
      <level value="6" />
      <weaponchoice weapon="battle_rifle" source="/images/halo2stats/weapons/battle_rifle.gif" />
      <meleekills value="3" />
      <mostkilled value="The7yckoMan" />
      <mostkilledby value="dan and kman" />
      <otherkills value="0" />
      <place value="1st" />
      <playername value="SnL I rAgE I" />
      <score value="25" />
      <secondgametypestat value="00:00:35" />
      <suicides value="0" />
      <vehiclekills value="0" />
      <weaponkills value="19" />
      <medal amount="5" source="/images/Halo2Stats/Medals/multiple_kill_2.gif" />
      <medal amount="8" source="/images/Halo2Stats/Medals/bash_kill.gif" />
      <medal amount="1" source="/images/Halo2Stats/Medals/stealth_kill.gif" />
      <medal amount="1" source="/images/Halo2Stats/Medals/grenade_stick.gif" />
      <medal amount="3" source="/images/Halo2Stats/Medals/kills_in_a_row_5.gif" />
    </player>
</Game>
Edit 5-4-07:Well it looks like bungie updated their stats page (put the "most killed" names as links) so that's what messed up my reader, it's fixed now.....or should be.....

Edit 5-4-07 supplemental: Added a progress bar, autosave for gamertag and now it deletes the temp files after it's done.

Posted: Tue May 01, 2007 9:20 am
by DarkMetal
Good job, glad you got those errors fixed.

Posted: Tue May 01, 2007 9:51 am
by kibito87
Whoa, I didn't know you were actually going to release it before getting done! Great job so far. I'll use this eventually :P

Posted: Tue May 01, 2007 11:58 am
by daggerx
Sweet
Great work Tycko

Posted: Tue May 01, 2007 12:03 pm
by plushiefire
Looks great tycko..Now olny if Ihad XBL :P

Posted: Tue May 01, 2007 12:08 pm
by -DeToX-
Nice Tycko. Keep it upp.

COOLIOOO

Posted: Tue May 01, 2007 1:15 pm
by dec1234
HEHE! awesome job man, works well and gets you all the information you need! me lickies! :P

Posted: Wed May 02, 2007 7:10 pm
by Dagger13
when ever i type in my xbl name it gets an error and just keeps coming(i mean the msgbox just keeps opening)

Posted: Wed May 02, 2007 9:46 pm
by TheTyckoMan
what's your xbl gt? pm it to me if you don't want it on here.....

Posted: Thu May 03, 2007 12:55 pm
by Dagger13
Dagger12

Posted: Thu May 03, 2007 1:15 pm
by TheTyckoMan
hm...I'm really not sure (the games seem to be set up the same....)...atm...I can check tomorrow, after I watch spider man at 12:01, work 4-8am and have a math test at 11:30.......

Code: Select all

<Game>
    <date value="4/29/2007 5:07:46 PM" />
    <matchtype value="Team Snipers" />
    <gametype value="Team Snipers" />
    <map value="Sanctuary" />
    <link value="/Stats/GameStatsHalo2.aspx?gameid=695478201&player=Dagger12" />
    <player>
      <assists value="1" />
      <betrayals value="0" />
      <deaths value="16" />
      <firstgametypestat value="4" />
      <grenadekills value="2" />
      <headshots value="2" />
      <kdspread value="-1" />
      <kills value="15" />
      <level value="25" />
      <weaponchoice weapon="sniper_rifle" source="/images/halo2stats/weapons/Sniper_Rifle.gif" />
      <meleekills value="1" />
      <mostkilled value="RL UNITED" />
      <mostkilledby value="FadelessShadow" />
      <otherkills value="0" />
      <place value="-" />
      <playername value="Dagger12" />
      <score value="15" />
      <secondgametypestat value="00:00:16" />
      <suicides value="0" />
      <vehiclekills value="0" />
      <weaponkills value="12" />
      <medal amount="2" source="/images/Halo2Stats/medals/multiple_kill_2.gif" />
      <medal amount="1" source="/images/Halo2Stats/medals/multiple_kill_3.gif" />
      <medal amount="12" source="/images/Halo2Stats/medals/sniper_kill.gif" />
      <medal amount="1" source="/images/Halo2Stats/medals/bash_kill.gif" />
    </player>
</Game>
Edit: Sigh.....bungie updated the stats section of their website again....I'll try to fix my program sometime.....