ConquerStats - Score charts

Archival storage to keep things organized and uncluttered. Can't find what you need? Search for old topics here.

Moderator: Tech Team

Forum rules
Please read the Community Guidelines before posting.
cspare
Posts: 101
Joined: Sun Apr 08, 2007 12:56 pm

ConquerStats - Score charts

Post 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
Last edited by cspare on Sun Oct 19, 2008 3:02 pm, edited 4 times in total.
User avatar
nagerous
Posts: 7513
Joined: Sat Feb 03, 2007 7:39 am
Gender: Male

Re: ConquerStats - Score charts

Post 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.
Image
User avatar
OliverFA
Posts: 2295
Joined: Wed Jul 09, 2008 4:30 am
Gender: Male
Location: Somewhere in Spain

Re: ConquerStats - Score charts

Post 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.
User avatar
InkL0sed
Posts: 2370
Joined: Sat Jun 23, 2007 4:06 pm
Gender: Male
Location: underwater
Contact:

Re: ConquerStats - Score charts

Post by InkL0sed »

I'm getting an odd bug:

[bigimg]http://img61.imageshack.us/img61/8057/picture1qa2.png[/bigimg]
cspare
Posts: 101
Joined: Sun Apr 08, 2007 12:56 pm

Re: ConquerStats - Score charts

Post by cspare »

InkL0sed wrote:I'm getting an odd bug:

[bigimg]http://img61.imageshack.us/img61/8057/picture1qa2.png[/bigimg]

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
User avatar
Witt13
Posts: 765
Joined: Sat Sep 20, 2008 4:28 pm
Gender: Male
Location: Iowa

Re: ConquerStats - Score charts

Post by Witt13 »

It doesn't work for me, says I have an invalid date???
User avatar
InkL0sed
Posts: 2370
Joined: Sat Jun 23, 2007 4:06 pm
Gender: Male
Location: underwater
Contact:

Re: ConquerStats - Score charts

Post by InkL0sed »

cspare wrote:
InkL0sed wrote:I'm getting an odd bug:

[bigimg]http://img61.imageshack.us/img61/8057/picture1qa2.png[/bigimg]

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...
User avatar
chipv
Head Tech
Head Tech
Posts: 3059
Joined: Mon Apr 28, 2008 5:30 pm

Re: ConquerStats - Score charts

Post by chipv »

RECENT SITE CHANGES REQUIRE CHANGES TO MOST SCRIPTS.

Thread is being locked until they're fixed.
User avatar
chipv
Head Tech
Head Tech
Posts: 3059
Joined: Mon Apr 28, 2008 5:30 pm

Re: ConquerStats - Score charts

Post by chipv »

XML has been fixed so the charts should be ok now. Please confirm, cspare.
User avatar
hecter
Posts: 14632
Joined: Tue Jan 09, 2007 6:27 pm
Gender: Female
Location: Tying somebody up on the third floor
Contact:

Re: ConquerStats - Score charts

Post by hecter »

My Score chart only goes from October 4th to the 16th :?
In heaven... Everything is fine, in heaven... Everything is fine, in heaven... Everything is fine... You got your things, and I've got mine.
Image
User avatar
chipv
Head Tech
Head Tech
Posts: 3059
Joined: Mon Apr 28, 2008 5:30 pm

Re: ConquerStats - Score charts

Post 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.
User avatar
pamoa
Posts: 1242
Joined: Sat Sep 01, 2007 3:18 am
Gender: Male
Location: Confederatio Helvetica

Re: ConquerStats - Score charts

Post 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.
De gueules à la tour d'argent ouverte, crénelée de trois pièces, sommée d'un donjon ajouré, crénelé de deux pièces
Gules an open tower silver, crenellated three parts, topped by a apertured turret, crenellated two parts
User avatar
yeti_c
Posts: 9624
Joined: Thu Jan 04, 2007 9:02 am
Gender: Male

Re: ConquerStats - Score charts

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

Re: ConquerStats - Score charts

Post 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 ^^
User avatar
pamoa
Posts: 1242
Joined: Sat Sep 01, 2007 3:18 am
Gender: Male
Location: Confederatio Helvetica

Re: ConquerStats - Score charts

Post 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:
De gueules à la tour d'argent ouverte, crénelée de trois pièces, sommée d'un donjon ajouré, crénelé de deux pièces
Gules an open tower silver, crenellated three parts, topped by a apertured turret, crenellated two parts
cspare
Posts: 101
Joined: Sun Apr 08, 2007 12:56 pm

Re: ConquerStats - Score charts

Post 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.
User avatar
yeti_c
Posts: 9624
Joined: Thu Jan 04, 2007 9:02 am
Gender: Male

Re: ConquerStats - Score charts

Post 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.
Image
Highest score : 2297
User avatar
pamoa
Posts: 1242
Joined: Sat Sep 01, 2007 3:18 am
Gender: Male
Location: Confederatio Helvetica

Re: ConquerStats - Score charts

Post 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 ?
De gueules à la tour d'argent ouverte, crénelée de trois pièces, sommée d'un donjon ajouré, crénelé de deux pièces
Gules an open tower silver, crenellated three parts, topped by a apertured turret, crenellated two parts
User avatar
OliverFA
Posts: 2295
Joined: Wed Jul 09, 2008 4:30 am
Gender: Male
Location: Somewhere in Spain

Re: ConquerStats - Score charts

Post 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.
Welcoming the long awaited Trench Warfare Setting (Previously Adjacent Attacks).

My Maps:
Research and Conquer - Civilization meets Conquer Club

Best score: 2,346 - Best position: #618 - Best percentile: 4.87%
User avatar
LLLUUUKKKEEE
Posts: 791
Joined: Wed Dec 27, 2006 12:07 am
Gender: Male
Location: Trying to stay out of Join a Tournament forum

Re: ConquerStats - Score charts

Post by LLLUUUKKKEEE »

why is my chart not showing my highest score 1919.
does it only load on archived games?
It's your turn...................................
User avatar
White Moose
Posts: 2015
Joined: Mon Sep 24, 2007 6:33 am
Location: Sweden

Re: ConquerStats - Score charts

Post by White Moose »

Nice script, too bad it's not so accurate.
Image
Highest Score: 3374
WidowMakers
Posts: 2774
Joined: Mon Nov 20, 2006 9:25 am
Gender: Male
Location: Detroit, MI

Re: ConquerStats - Score charts

Post 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

Image
User avatar
EagleofGreenErth
Posts: 1055
Joined: Tue Nov 27, 2007 7:41 pm
Gender: Male

Re: ConquerStats - Score charts

Post by EagleofGreenErth »

I'm guessing that mine is off because I got a score reset? :P
User avatar
LLLUUUKKKEEE
Posts: 791
Joined: Wed Dec 27, 2006 12:07 am
Gender: Male
Location: Trying to stay out of Join a Tournament forum

Re: ConquerStats - Score charts

Post by LLLUUUKKKEEE »

White Moose wrote:Nice script, too bad it's not so accurate.


Not accurate at all
It's your turn...................................
User avatar
TheOtherOne
Posts: 164
Joined: Mon Aug 18, 2008 8:44 pm
Gender: Male
Location: North Greenville University

Re: ConquerStats - Score charts

Post by TheOtherOne »

great scrip, thanks
Post Reply

Return to “Tool Archives”