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.
Post Reply
sherkaner
Posts: 1595
Joined: Thu May 03, 2007 3:21 am
Gender: Male
Location: Zwolle

score charts revisited

Post by sherkaner »

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
User avatar
ender516
Posts: 4455
Joined: Wed Dec 17, 2008 6:07 pm
Gender: Male
Location: Waterloo, Ontario

Re: score charts revisited

Post by ender516 »

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.
cspare
Posts: 101
Joined: Sun Apr 08, 2007 12:56 pm

Re: score charts revisited

Post by cspare »

Nice! I tried it and it looks really nice. good job:)
sherkaner
Posts: 1595
Joined: Thu May 03, 2007 3:21 am
Gender: Male
Location: Zwolle

Re: score charts revisited

Post by sherkaner »

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 [player]Highlanderattack[/player], 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.
sherkaner
Posts: 1595
Joined: Thu May 03, 2007 3:21 am
Gender: Male
Location: Zwolle

Re: score charts revisited

Post by sherkaner »

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.
BGtheBrain
Posts: 2770
Joined: Thu Sep 02, 2010 2:50 pm

Re: score charts revisited

Post by BGtheBrain »

****
Last edited by BGtheBrain on Tue Sep 13, 2016 3:50 pm, edited 1 time in total.
sherkaner
Posts: 1595
Joined: Thu May 03, 2007 3:21 am
Gender: Male
Location: Zwolle

Re: score charts revisited

Post by sherkaner »

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:

[bigimg]http://img714.imageshack.us/img714/1940/screenshotscorecharts.png[/bigimg]
User avatar
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

Post by SirSebstar »

wow, i can actually see when i tried out need settings like assassin and stuff. sweet
Image
User avatar
OwnerOfBillHess
Posts: 17
Joined: Sat Jan 08, 2011 6:32 pm
Gender: Male

Re: score charts revisited

Post by OwnerOfBillHess »

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

Re: score charts revisited

Post by OwnerOfBillHess »

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
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

Post by SirSebstar »

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
sherkaner
Posts: 1595
Joined: Thu May 03, 2007 3:21 am
Gender: Male
Location: Zwolle

Re: score charts revisited

Post by sherkaner »

Updated the script to v0.4 because someone asked, should work with polymorphic games now.
User avatar
casper
Posts: 416
Joined: Wed Feb 01, 2006 6:36 pm
Location: Chicago
Contact:

Re: score charts revisited

Post by casper »

Many thanks for the update!!!!
User avatar
macken
Posts: 123
Joined: Mon Apr 28, 2008 2:01 am
Gender: Male
Location: Earth's surface

Re: score charts revisited

Post by macken »

Nice, thanks!
Image
Post Reply

Return to “Tools Development”