Home | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 360voice.com
 XML/APIs
 Challenge to Score by Date

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailInsert Image Insert CodeInsert QuoteInsert List Insert Smilie
   
Message:

* HTML is OFF
* Forum Code is ON

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
CMorrigu Posted - Apr 01 2009 : 06:20:31 AM
Hey all,

I got into a challenge with joshnorm to 100k gamerscore by the end of the year, so I waded into the API docs and came up with:

CMorrigu vs Joshnorm
http://cmorrigu.com/challenge.html
to help keep track of how it was going.

I went ahead and made it so that others can use it, too. Some examples:

ChangeAgent vs SquidPunch to 75k
http://cmorrigu.com/challenge.html?t=changeagent&v=squidpunch&g=75000

Illum1na vs TX Eegras to 110k starting 1/1/09 ending 11/30/09
http://cmorrigu.com/challenge.html?t=Illum1na&v=TX%20Eegras&g=100000&s=1/1/2009&e=11/30/2009

Fshguy vs SoupyC to 200k in April
http://cmorrigu.com/challenge.html?t=Fshguy&v=SoupyC&g=200000&s=4/1/2009&e=4/30/2009

I have some ideas for improvement and, of course, image generation. But it's a start.
20   L A T E S T    R E P L I E S    (Newest First)
Painted Dead Posted - Jan 11 2010 : 07:52:51 AM
Nice! I was thinking about something like this but I can only use C++, not xml so I couldn't code a single thing. I like this alot nice work.
Wade Thompson Posted - Jan 03 2010 : 03:50:39 AM
cmorrigu you amaze me everyday man, i just wish i had a mind half as awesome as your!
CMorrigu Posted - Dec 18 2009 : 09:55:40 AM
I've just been working on integrating stats infographics output for another script, so I can see doing something similar for this.
SafePit Posted - May 02 2009 : 7:59:10 PM
Hey, pretty cool concept CMorrigu. It wouldn't be too hard to turn that into one of my dynamic userbars that you could then link to your stats. Would you mind?
CMorrigu Posted - Apr 22 2009 : 07:38:07 AM
Awesome, glad you're enjoying it.

I believe I fixed the challenge page math. It was calcing based on the last score in the table... I did that to give an idea of what was needed from start to finish, with the intent of adding in a display of the current averages. It probably makes more sense to go ahead and show what is needed for the remainder of the challenge, so I changed it to that.

Also, fixed the math cases when close to the end of a challenge. Haven't worked with anything that is already here/passed date-wise yet.

I will probably look into displaying the average(s) to date next.
Fshguy Posted - Apr 21 2009 : 11:38:52 AM
Beautiful... I love it!!! Now I just have to find time to play some easy games and catch Mango...
CMorrigu Posted - Apr 21 2009 : 09:21:20 AM
quote:
Originally posted by Fshguy

Can it can back further in time? it would be cool to see a chart historically. Frostbite has been chasing me and MightyMango chased me for a long time until he just passed me...


quote:
Originally posted by Fshguy

Maybe you could do just a graph over longer periods? Or maybe a difference chart based on score?


How's this?
http://cmorrigu.com/challenge.html?t=Fshguy&v=Frostbite&g=150000&s=1/1/2009&e=4/30/2009&l=20&c=3

and/or

http://cmorrigu.com/challenge.html?t=Fshguy&v=MightyMango&g=150000&s=1/1/2009&e=4/30/2009&l=20&c=3

I put in 2 new parameters:

l= [L]ast X scores
c= [C]hart size


Those seem to work towards what you're looking for. Last x defaults to 10, and chart defaults to 2 with a range of 1, 2, or 3 (S, M, L). I also added the display of Day X of Y, Z days left at the top summary.
CMorrigu Posted - Apr 21 2009 : 08:16:51 AM
I made some code updates and added both the starting and current scores.
CMorrigu Posted - Apr 20 2009 : 09:19:02 AM
quote:
Originally posted by Fshguy

I forget the page that it's on, but if you get somebody's card from xboxlive that's pretty reliable.


Rockin. Got this working, although I had to use Perl Regex to get it done a bit differently. Thanks.

quote:
Originally posted by Steviex2Shoes

So like for us we want to see who can gain 10K first, do you think that's possible?



Possible. I'll see what I can do at some point.

quote:
Originally posted by ChangeAgent

Hey great stuff on this. Thanks for making something! API badge awarded.



Woot, thanks!
ChangeAgent Posted - Apr 18 2009 : 9:38:01 PM
Hey great stuff on this. Thanks for making something! API badge awarded.
Steviex2Shoes Posted - Apr 17 2009 : 09:35:44 AM
So I was just talking to my brother and we both really like this. However our gamerscores are nowhere near each others. I've got 30k and he's got 75k so any challenge to a set score is unattainable for me. So we were thinking do you think there is a way to make it so its not see who can make it to a gamerscore of X amount. But rather see who can get a higher gain of points in a time period. So like for us we want to see who can gain 10K first, do you think that's possible?
Fshguy Posted - Apr 16 2009 : 07:48:36 AM
I forget the page that it's on, but if you get somebody's card from xboxlive that's pretty reliable. I stopped being lazy and pulled up the code below:

Maybe you could do just a graph over longer periods? Or maybe a difference chart based on score?

http://gamercard.xbox.com/fshguy.card

If you're using .net:

Dim matchString As String = "<span class=""XbcFRAR"">\d*</span>"

Dim regX As New System.Text.RegularExpressions.Regex(matchString, RegexOptions.Singleline)

Dim result As String = regX.Match(responseData).Value()

Return result.Replace("<span class=""XbcFRAR"">", "").Replace("</span>", "")

CMorrigu Posted - Apr 15 2009 : 09:50:44 AM
quote:
Originally posted by Fshguy

This is pretty cool...

Can it can back further in time? it would be cool to see a chart historically. Frostbite has been chasing me and MightyMango chased me for a long time until he just passed me...



Thanks all for the positives, everyone. Again, if you want it to show your info, just put your gamertags in the URL instead of the ones in the examples. I'm open to ideas, too.

Actually, let me go ahead and break down the parameters:

t= Your Gamer[T]ag
v= [V ]ersus Gamertag
g= [G]oal gamerscore value
s= [S]tart date
e= [E]nd date


Fshguy - It can, I was trying to keep the impact minimal until I sorted out more details. I do cache the scores, but I only grab/show/chart the past 10 days at the moment. This keep everything readable, as a long challenge would be quite a large page and probably a larger graph.

My next step is to grab the initial (start date) scores and the current ("live") scores. BTW, does anyone have a more reliable API for current stats than the duncanmackenzie one? It seems to be not working quite a lot recently, I understand it's a capacity thing.

I think I would then go ahead and put an archive version to show everything from start date to end date (or present).

And then to figure out how to generate a summary image for sigs.

I've also had a request for Teams, 1 user, and more than 2 users. Not sure if I want to open it that far right now.

No promises as to timeline, these are just my thoughts for now.
ZeroDesolation Posted - Apr 14 2009 : 08:54:19 AM
dude! that's awesome! Do one for me and Wade Thompson to 100k
Fshguy Posted - Apr 14 2009 : 07:59:09 AM
This is pretty cool...

Can it can back further in time? it would be cool to see a chart historically. Frostbite has been chasing me and MightyMango chased me for a long time until he just passed me...

http://cmorrigu.com/challenge.html?t=Fshguy&v=Frostbite&g=150000&s=1/1/2009&e=4/30/2009
MLC2074 Posted - Apr 13 2009 : 8:25:50 PM
Yeah, you should shoot the guys an email if you want the API badge (I'm sure you do ).
Davem3 TF Posted - Apr 13 2009 : 3:40:42 PM
awesome tool dude

sword for you for sure
Davem3 TF Posted - Apr 13 2009 : 3:39:41 PM
dave vs. sting
SITH RICK Posted - Apr 13 2009 : 1:02:23 PM
http://cmorrigu.com/challenge.html?t=SITH%20RICK&v=CMorrigu&g=100000&s=1/1/2009&e=12/31/2009
cool! thanks~! i got it working this will be a great help!
CMorrigu Posted - Apr 13 2009 : 10:56:42 AM
quote:
Originally posted by SITH RICK

VERY COOL! i was looking for something like this as i have a goal to achieve 100,000 by the end of year as well! how do i use this?



Just put your tag in instead of one in the example URLs.

360voice Community © 2006 360voice.com Go To Top Of Page
Snitz Forums 2000