score charts revisited

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

Moderators: Beta Team, Tech Team, Global Moderators

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: 1606
Joined: Thu May 03, 2007 3:21 am
Location: Zwolle
Medals: 42
Standard Achievement (3) Doubles Achievement (2) Triples Achievement (2) Quadruples Achievement (2) Terminator Achievement (2)
Freestyle Achievement (2) Nuclear Spoils Achievement (1) Fog of War Achievement (2) Speed Achievement (1) Teammate Achievement (2)
Random Map Achievement (1) Cross-Map Achievement (3) Ratings Achievement (2) Tournament Achievement (3) Clan Achievement (3)
General Contribution (11)

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: 4452
Joined: Wed Dec 17, 2008 6:07 pm
Location: Waterloo, Ontario
Medals: 37
Standard Achievement (2) Doubles Achievement (1) Triples Achievement (1) Quadruples Achievement (1) Freestyle Achievement (1)
Fog of War Achievement (1) Teammate Achievement (1) Cross-Map Achievement (1) Ratings Achievement (3) General Achievement (9)
Map Contribution (5) General Contribution (11)

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
Medals: 8
Standard Achievement (1) Doubles Achievement (1) General Contribution (6)

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: 1606
Joined: Thu May 03, 2007 3:21 am
Location: Zwolle
Medals: 42
Standard Achievement (3) Doubles Achievement (2) Triples Achievement (2) Quadruples Achievement (2) Terminator Achievement (2)
Freestyle Achievement (2) Nuclear Spoils Achievement (1) Fog of War Achievement (2) Speed Achievement (1) Teammate Achievement (2)
Random Map Achievement (1) Cross-Map Achievement (3) Ratings Achievement (2) Tournament Achievement (3) Clan Achievement (3)
General Contribution (11)

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: 1606
Joined: Thu May 03, 2007 3:21 am
Location: Zwolle
Medals: 42
Standard Achievement (3) Doubles Achievement (2) Triples Achievement (2) Quadruples Achievement (2) Terminator Achievement (2)
Freestyle Achievement (2) Nuclear Spoils Achievement (1) Fog of War Achievement (2) Speed Achievement (1) Teammate Achievement (2)
Random Map Achievement (1) Cross-Map Achievement (3) Ratings Achievement (2) Tournament Achievement (3) Clan Achievement (3)
General Contribution (11)

Re: score charts revisited

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

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

Thanks for your work.
User avatar
Corporal BGtheBrain
Multi Hunter
Multi Hunter
 
Posts: 2410
Joined: Thu Sep 02, 2010 2:50 pm
Medals: 101
Standard Achievement (2) Doubles Achievement (2) Triples Achievement (2) Quadruples Achievement (3) Terminator Achievement (1)
Assassin Achievement (2) Manual Troops Achievement (2) Freestyle Achievement (2) Nuclear Spoils Achievement (2) Fog of War Achievement (3)
Trench Warfare Achievement (1) Speed Achievement (1) Teammate Achievement (1) Random Map Achievement (2) Cross-Map Achievement (3)
Ratings Achievement (4) Tournament Achievement (7) General Achievement (5) Clan Achievement (47) Tournament Contribution (4)
General Contribution (5)

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: 1606
Joined: Thu May 03, 2007 3:21 am
Location: Zwolle
Medals: 42
Standard Achievement (3) Doubles Achievement (2) Triples Achievement (2) Quadruples Achievement (2) Terminator Achievement (2)
Freestyle Achievement (2) Nuclear Spoils Achievement (1) Fog of War Achievement (2) Speed Achievement (1) Teammate Achievement (2)
Random Map Achievement (1) Cross-Map Achievement (3) Ratings Achievement (2) Tournament Achievement (3) Clan Achievement (3)
General Contribution (11)

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: 7329
Joined: Fri Oct 27, 2006 7:51 am
Location: SirSebstar is BACK. Highscore: Colonel Score: 2919 21/03/2011
Medals: 95
Standard Achievement (4) Doubles Achievement (2) Triples Achievement (2) Quadruples Achievement (2) Terminator Achievement (3)
Assassin Achievement (3) Manual Troops Achievement (3) Freestyle Achievement (1) Nuclear Spoils Achievement (3) Fog of War Achievement (4)
Speed Achievement (3) Teammate Achievement (2) Random Map Achievement (2) Cross-Map Achievement (3) Ratings Achievement (4)
Tournament Achievement (23) General Achievement (6) Clan Achievement (9) Training Achievement (1) Tournament Contribution (4)
General Contribution (11)

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
Captain OwnerOfBillHess
 
Posts: 17
Joined: Sat Jan 08, 2011 6:32 pm
Medals: 30
Standard Achievement (3) Doubles Achievement (1) Terminator Achievement (1) Assassin Achievement (1) Manual Troops Achievement (1)
Freestyle Achievement (1) Nuclear Spoils Achievement (2) Fog of War Achievement (3) Trench Warfare Achievement (2) Speed Achievement (3)
Teammate Achievement (1) Random Map Achievement (2) Cross-Map Achievement (1) Ratings Achievement (4) Tournament Achievement (2)
General Achievement (2)

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
Captain OwnerOfBillHess
 
Posts: 17
Joined: Sat Jan 08, 2011 6:32 pm
Medals: 30
Standard Achievement (3) Doubles Achievement (1) Terminator Achievement (1) Assassin Achievement (1) Manual Troops Achievement (1)
Freestyle Achievement (1) Nuclear Spoils Achievement (2) Fog of War Achievement (3) Trench Warfare Achievement (2) Speed Achievement (3)
Teammate Achievement (1) Random Map Achievement (2) Cross-Map Achievement (1) Ratings Achievement (4) Tournament Achievement (2)
General Achievement (2)

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: 7329
Joined: Fri Oct 27, 2006 7:51 am
Location: SirSebstar is BACK. Highscore: Colonel Score: 2919 21/03/2011
Medals: 95
Standard Achievement (4) Doubles Achievement (2) Triples Achievement (2) Quadruples Achievement (2) Terminator Achievement (3)
Assassin Achievement (3) Manual Troops Achievement (3) Freestyle Achievement (1) Nuclear Spoils Achievement (3) Fog of War Achievement (4)
Speed Achievement (3) Teammate Achievement (2) Random Map Achievement (2) Cross-Map Achievement (3) Ratings Achievement (4)
Tournament Achievement (23) General Achievement (6) Clan Achievement (9) Training Achievement (1) Tournament Contribution (4)
General Contribution (11)

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: 1606
Joined: Thu May 03, 2007 3:21 am
Location: Zwolle
Medals: 42
Standard Achievement (3) Doubles Achievement (2) Triples Achievement (2) Quadruples Achievement (2) Terminator Achievement (2)
Freestyle Achievement (2) Nuclear Spoils Achievement (1) Fog of War Achievement (2) Speed Achievement (1) Teammate Achievement (2)
Random Map Achievement (1) Cross-Map Achievement (3) Ratings Achievement (2) Tournament Achievement (3) Clan Achievement (3)
General Contribution (11)

Re: score charts revisited

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

Many thanks for the update!!!!
User avatar
Colonel casper
 
Posts: 377
Joined: Wed Feb 01, 2006 6:36 pm
Location: Chicago
Medals: 25
Standard Achievement (2) Doubles Achievement (2) Triples Achievement (2) Quadruples Achievement (1) Freestyle Achievement (1)
Fog of War Achievement (2) Trench Warfare Achievement (1) Teammate Achievement (1) Cross-Map Achievement (2) Ratings Achievement (1)
Tournament Achievement (2) Clan Achievement (7) Map Contribution (1)


Return to Tools Development

Who is online

Users browsing this forum: No registered users

cron
Login