Conquer Club

score charts revisited

Discuss developing tools and get details on Conquer Club's API.

Moderator: Tech Team

Forum rules
Please read the Community Guidelines before posting.

score charts revisited

Postby sherkaner on Tue Jan 03, 2012 9:53 pm

Hello,

I've just had some fun trying to recreate cspare's ConquerStats - Score charts using Flot for graphing, and it seems to be working. If anyone wants to try it out, please do so and give some feedback here.

Currently it adds a button to the profile page (same position as map rank), and it starts retrieving the data through the API and in the end it creates the graph.
The graph allows zooming, resetting the range required a button. It doesn't take into account score resets or games with missing logs, so it could be off a few point (though it counts back, so the end should normally be ok). As far as I know, it should work for chrome too (but haven't tested that yet).

Install: click the link below
https://github.com/sherkaner/addons-for ... hs.user.js

Image
Colonel sherkaner
 
Posts: 1595
Joined: Thu May 03, 2007 3:21 am
Location: Zwolle

Re: score charts revisited

Postby ender516 on Tue Jan 03, 2012 10:25 pm

I can see the graph, but how do I zoom? Also, is there a way to make the graph fill the width of the profile page? Right now, I get a small rectangle which could be spread to show the details more clearly. All in all, though, a good start.
User avatar
Sergeant 1st Class ender516
 
Posts: 4455
Joined: Wed Dec 17, 2008 6:07 pm
Location: Waterloo, Ontario

Re: score charts revisited

Postby cspare on Wed Jan 04, 2012 3:15 am

Nice! I tried it and it looks really nice. good job:)
Sergeant 1st Class cspare
 
Posts: 101
Joined: Sun Apr 08, 2007 12:56 pm

Re: score charts revisited

Postby sherkaner on Wed Jan 04, 2012 4:12 am

ender516 wrote:I can see the graph, but how do I zoom? Also, is there a way to make the graph fill the width of the profile page? Right now, I get a small rectangle which could be spread to show the details more clearly. All in all, though, a good start.


That's the most interesting thing :D, just click&drag on the map to select the area you want to zoom to. Enlarging it won't be a problem, for now I just chose the settings in flot's examples to be honest (600*300 px).

cspare wrote:Nice! I tried it and it looks really nice. good job:)

Thanks! And I didn't expect you were still watching your thread, but it's good to see you still are.


Btw, I just tried Highlanderattack, but he finished 33246 games atm, which means 167 requests to the API (1 page is 200 games), and that took 1m30s on my computer. So you'll have to be patient.
Colonel sherkaner
 
Posts: 1595
Joined: Thu May 03, 2007 3:21 am
Location: Zwolle

Re: score charts revisited

Postby sherkaner on Wed Jan 04, 2012 5:23 am

Updated it a bit, it now shows a progress text when loading, the graph is larger, and more information is displayed when hovering a point in the graph. I changed the name too, if you're getting 2 buttons, delete the old version.

And I can confirm now that it works in Chrome.
Colonel sherkaner
 
Posts: 1595
Joined: Thu May 03, 2007 3:21 am
Location: Zwolle

Re: score charts revisited

Postby BGtheBrain on Fri Jan 06, 2012 3:02 pm

****
Last edited by BGtheBrain on Tue Sep 13, 2016 3:50 pm, edited 1 time in total.
User avatar
Captain BGtheBrain
 
Posts: 2770
Joined: Thu Sep 02, 2010 2:50 pm

Re: score charts revisited

Postby sherkaner on Fri Jan 06, 2012 4:28 pm

BGtheBrain wrote:Wow. I stumbled into this form and Im glad I did.
This is far superior to the alternative.

Thanks for your work.


No problem, It was enjoyable to make.

Btw, added the possibility to add more players to the graph, see image below for the result:

Click image to enlarge.
image
Colonel sherkaner
 
Posts: 1595
Joined: Thu May 03, 2007 3:21 am
Location: Zwolle

Re: score charts revisited

Postby SirSebstar on Sat Jan 07, 2012 10:37 am

wow, i can actually see when i tried out need settings like assassin and stuff. sweet
Image
User avatar
Major SirSebstar
 
Posts: 6969
Joined: Fri Oct 27, 2006 7:51 am
Location: SirSebstar is BACK. Highscore: Colonel Score: 2919 21/03/2011

Re: score charts revisited

Postby OwnerOfBillHess on Sat Jul 07, 2012 9:19 am

Does this chart work for macs? I saw that the other one only supported windows.
User avatar
Major OwnerOfBillHess
 
Posts: 17
Joined: Sat Jan 08, 2011 6:32 pm

Re: score charts revisited

Postby OwnerOfBillHess on Sat Jul 07, 2012 9:26 am

Nevermind, just downloaded it and it works great. Is there a way to filter it by different game types? Seems like SirSebstar found a way to do that
User avatar
Major OwnerOfBillHess
 
Posts: 17
Joined: Sat Jan 08, 2011 6:32 pm

Re: score charts revisited

Postby SirSebstar on Sun Jul 29, 2012 4:36 am

OwnerOfBillHess wrote:Nevermind, just downloaded it and it works great. Is there a way to filter it by different game types? Seems like SirSebstar found a way to do that

sorry to mislead you.
I know that when i try some new settings, my score usually drops. Hence when my score drops, its usually because i am doing something new. I could see some faily dramatic score drops in that list, and that is mainly because i was teaching myself how to play those unfamiliair settings. When you see me rise again, you can see i picked up the tactics required and after a while i move to the next project.
so i inferred this when looking at the graph
User avatar
Major SirSebstar
 
Posts: 6969
Joined: Fri Oct 27, 2006 7:51 am
Location: SirSebstar is BACK. Highscore: Colonel Score: 2919 21/03/2011

Re: score charts revisited

Postby sherkaner on Sun Jan 19, 2014 6:34 am

Updated the script to v0.4 because someone asked, should work with polymorphic games now.
Colonel sherkaner
 
Posts: 1595
Joined: Thu May 03, 2007 3:21 am
Location: Zwolle

Re: score charts revisited

Postby casper on Sun Jan 19, 2014 3:05 pm

Many thanks for the update!!!!
User avatar
Major casper
 
Posts: 416
Joined: Wed Feb 01, 2006 6:36 pm
Location: Chicago

Re: score charts revisited

Postby macken on Sat Feb 21, 2015 1:18 pm

Nice, thanks!
Image
User avatar
General macken
 
Posts: 123
Joined: Mon Apr 28, 2008 2:01 am
Location: Earth's surface


Return to Tools Development

Who is online

Users browsing this forum: No registered users