Page 1 of 4

ConquerStats - Score charts

PostPosted: Thu Oct 02, 2008 9:49 am
by cspare
ConquerStats - Score charts
Download link: http://userscripts.org/scripts/show/34706

Screenshot 1
Image
Screenshot 2
Image

What it does
Score charts shows a chart with an overview of a player's score over time. The chart is displayed in the player's profile page.

Requirements
You must be running Firefox with Greasemonkey installed.
Full instructions for Firefox and Greasemonkey from scratch: viewtopic.php?t=41487

ToDo list
Items on this list are under development.
  • Versioning and Update alert
  • Improve precision and show precise high- and low scores
  • Fix the position of the last datapoint
  • In case of missing logs, track back from current score in addition to track forward from starting score (1000). Also mark missing data more clearly
  • Add support for the &un= (username) parameter, instead of only &u= (userid)
  • Fix terminator game score-time

Re: ConquerStats - Score charts

PostPosted: Thu Oct 02, 2008 9:52 am
by nagerous
Wow I installed it and I like it... It would be nice if it tells you what your top score is though and also more of a scale. Just an idea for an improvement.

Re: ConquerStats - Score charts

PostPosted: Thu Oct 02, 2008 1:18 pm
by OliverFA
That plugin is really cool. I like it! :-D

A suggestion for an improvement would be to be able to select the dates for a partial chart.

Re: ConquerStats - Score charts

PostPosted: Thu Oct 09, 2008 1:04 pm
by InkL0sed
I'm getting an odd bug:

Click image to enlarge.
image

Re: ConquerStats - Score charts

PostPosted: Thu Oct 09, 2008 2:04 pm
by cspare
InkL0sed wrote:I'm getting an odd bug:

Click image to enlarge.
image

Hmm, this seems to have something to do with the XML datafile conquer club is providing. Yours seems to be empty, I've come across other people with the same problem. I've informed the CC team about the issue here

Re: ConquerStats - Score charts

PostPosted: Fri Oct 10, 2008 9:57 am
by Witt13
It doesn't work for me, says I have an invalid date???

Re: ConquerStats - Score charts

PostPosted: Tue Oct 14, 2008 3:26 am
by InkL0sed
cspare wrote:
InkL0sed wrote:I'm getting an odd bug:

Click image to enlarge.
image

Hmm, this seems to have something to do with the XML datafile conquer club is providing. Yours seems to be empty, I've come across other people with the same problem. I've informed the CC team about the issue here


This has been happening only sometimes, other times it works just fine...

Re: ConquerStats - Score charts

PostPosted: Tue Oct 14, 2008 3:53 pm
by chipv
RECENT SITE CHANGES REQUIRE CHANGES TO MOST SCRIPTS.

Thread is being locked until they're fixed.

Re: ConquerStats - Score charts

PostPosted: Wed Oct 15, 2008 3:29 pm
by chipv
XML has been fixed so the charts should be ok now. Please confirm, cspare.

Re: ConquerStats - Score charts

PostPosted: Thu Oct 16, 2008 4:56 pm
by hecter
My Score chart only goes from October 4th to the 16th :?

Re: ConquerStats - Score charts

PostPosted: Thu Oct 16, 2008 5:00 pm
by chipv
hecter wrote:My Score chart only goes from October 4th to the 16th :?


It should be ok tomorrow.

viewtopic.php?f=59&t=64691&start=15#p1642183

You can only see points for non-archived games at the moment which is why you can only see the above games.

Re: ConquerStats - Score charts

PostPosted: Mon Nov 24, 2008 1:19 pm
by pamoa
Excellent just what I was waiting for =D> =D> =D>
Maybe just a suggestion: as CC did lost some datas during their sever crash, you may try to make a separation before/after.
Before you start counting from the initial 1000 points and go forward until the crash.
And after you start from the actual score and go back to the crash.
So they would be no distortion of score.
I'm not sure it is possible but it would be a great improvement.

Re: ConquerStats - Score charts

PostPosted: Mon Nov 24, 2008 3:00 pm
by yeti_c
pamoa wrote:Excellent just what I was waiting for =D> =D> =D>
Maybe just a suggestion: as CC did lost some datas during their sever crash, you may try to make a separation before/after.
Before you start counting from the initial 1000 points and go forward until the crash.
And after you start from the actual score and go back to the crash.
So they would be no distortion of score.
I'm not sure it is possible but it would be a great improvement.


Sadly - I don't think it's as easy as that... I think there are more than 1 period of log outage... however - I think it's a great idea.

C.

Re: ConquerStats - Score charts

PostPosted: Mon Nov 24, 2008 3:58 pm
by cspare
yeti_c wrote:
pamoa wrote:Excellent just what I was waiting for =D> =D> =D>
Maybe just a suggestion: as CC did lost some datas during their sever crash, you may try to make a separation before/after.
Before you start counting from the initial 1000 points and go forward until the crash.
And after you start from the actual score and go back to the crash.
So they would be no distortion of score.
I'm not sure it is possible but it would be a great improvement.


Sadly - I don't think it's as easy as that... I think there are more than 1 period of log outage... however - I think it's a great idea.

C.

Yea, in fact I already have a version of the script that works this way. I guess it's better to show actual results with missing data than an inaccurate chart. But for some people this really messes up the chart because of _alot_ of missing data. Multiple log outages seem to be a good explanation for that.

@pamoa: For your information, this is your chart with the method you described: click.
In your case you effectively miss your 662th game through your 1357th game. So your log alone effectively misses 7 times the amount of games that I've ever played ^^

Re: ConquerStats - Score charts

PostPosted: Tue Nov 25, 2008 3:47 am
by pamoa
What a huge difference for the first part

actual

Image


should be

Image

In reality your simulations a bit exaggerated as I have only 62 missing logs.
If it's too complicated to code I'll do with this version.
But I'm sure we can find one of those code nerds who can take the challenge :ugeek:

Re: ConquerStats - Score charts

PostPosted: Tue Nov 25, 2008 4:26 am
by cspare
pamoa wrote:In reality your simulations a bit exaggerated as I have only 62 missing logs.
If it's too complicated to code I'll do with this version.
But I'm sure we can find one of those code nerds who can take the challenge :ugeek:

Well, actually it is impossible to code. Even though you may have only lost about 62 log items, it renders about 700 log items useless (for this chart).
For each gamelog the only information stored is the score gained or lost for that specific game, there is no absolute score given of your total score at that time.
The only way to calculate the total score at a given time is to loop through each gamelog and accumulate the gained/lost scores. As soon as you miss data in the sequence you can no longer continue the process as you have no absolute reference anymore. As you suggested you can still trackback from the other absolute reference point available, a player's current score. You can use the same method as before, and so you would have to stop processing as soon as you hit another missing log.
In your case the script processes the first 661 and detects missing data so it has to stop, it then tracks back from your current score to your 1357th game where it detects missing data again. Effectively this results in a chart without any data between the the points.

Re: ConquerStats - Score charts

PostPosted: Tue Nov 25, 2008 4:34 am
by yeti_c
Surely the first part of the graph should be identical?

That's where the data should be 100% accurate - starts at 1000 changes up and down...

Also - the last part of the graph should "Look" identical - although the figured amount will be wrong.

C.

Re: ConquerStats - Score charts

PostPosted: Tue Nov 25, 2008 4:37 am
by pamoa
But is it possible to say that before the date they restarted with their new server you calculate from the initial 1000 and after from the current score. You may have a non continuous chart at that point but it would be more accurate, no ?

Re: ConquerStats - Score charts

PostPosted: Tue Nov 25, 2008 5:43 pm
by OliverFA
Maybe an alternative solution would be to draw the missing part with a different color or with a dotted line. So it would be clear that data in that time period is missing.

Re: ConquerStats - Score charts

PostPosted: Mon Dec 01, 2008 9:43 pm
by LLLUUUKKKEEE
why is my chart not showing my highest score 1919.
does it only load on archived games?

Re: ConquerStats - Score charts

PostPosted: Sun Dec 21, 2008 6:08 am
by White Moose
Nice script, too bad it's not so accurate.

Re: ConquerStats - Score charts

PostPosted: Sun Jan 04, 2009 6:34 pm
by WidowMakers
AWESOME

Here are some suggestions:
    -Be able to filter game types
    -Be able to zoom in
    -Mouse over the line should give game # and date
    -Have grid to better see values


Re: ConquerStats - Score charts

PostPosted: Sun Jan 11, 2009 7:31 pm
by EagleofGreenErth
I'm guessing that mine is off because I got a score reset? :P

Re: ConquerStats - Score charts

PostPosted: Sat Jan 31, 2009 5:20 am
by LLLUUUKKKEEE
White Moose wrote:Nice script, too bad it's not so accurate.


Not accurate at all

Re: ConquerStats - Score charts

PostPosted: Sat Mar 14, 2009 9:01 pm
by TheOtherOne
great scrip, thanks