Wednesday February 08 , 2012
Text Size
   
Welcome, Guest
Username Password: Remember me

[script request] 10-point rating
(1 viewing) (1) Guest
Python Scripts for ComicRack
  • Page:
  • 1
  • 2

TOPIC: [script request] 10-point rating

[script request] 10-point rating 1 year, 6 months ago #9029

  • 600WPMPO
  • OFFLINE
  • Moderator
  • Posts: 2280
  • Karma: 114
cYo wrote:
Next version will have a revised rating system.

It will be 0-5 in .1 steps.

I'll keep the 5 because otherwise I would break backward compatibility. It will be very simple to create a script to transform current custom 10 point ratings into this range.


It would be very appreciable if a good developer on our team could make a script to convert the newly introduced 5-point ratings (with 0.1 increments) into a 10-point ratings system (e.g. 3.2, 6.7, 9.3)...

Please do consider this request.. I've been looking for this feature for past so many years..

Re:[script request] 10-point rating 1 year, 6 months ago #9031

  • Stonepaw
  • OFFLINE
  • Moderator
  • Posts: 657
  • Karma: 113
I can take you up on this. Just to clarify a few things:

Do you need to convert a 10-point rating to a 5-point or a 5-point to a 10-point?

Which field does the rating come from and which field is the destination?

Re:[script request] 10-point rating 1 year, 6 months ago #9033

  • 600WPMPO
  • OFFLINE
  • Moderator
  • Posts: 2280
  • Karma: 114
Stonepaw wrote:
Do you need to convert a 10-point rating to a 5-point or a 5-point to a 10-point?

5-point to a 10-point

More clarification:
ComicRack 0.9.126 introduces a 5-point ratings having a 0.1 increment (eg. 4.1, 4.2, 4.3.. and so on).I would like to convert this into a ten-point rating having the same 0.1 increment (e.g. 6.1, 6.2, 6.3 and so on)

Stonepaw wrote:
Which field does the rating come from and which field is the destination?

Sorry, I didn't get that..
Last Edit: 1 year, 6 months ago by 600WPMPO.

Re:[script request] 10-point rating 1 year, 6 months ago #9034

  • Stonepaw
  • OFFLINE
  • Moderator
  • Posts: 657
  • Karma: 113
600WPMPO wrote:
Stonepaw wrote:
Which field does the rating come from and which field is the destination?

Sorry, I didn't get that..

Where do you want the 10-point rating to end up. And do you want the Community Rating or My Rating as the source?

Re:[script request] 10-point rating 1 year, 6 months ago #9036

  • 600WPMPO
  • OFFLINE
  • Moderator
  • Posts: 2280
  • Karma: 114
Stonepaw wrote:
600WPMPO wrote:
Stonepaw wrote:
Which field does the rating come from and which field is the destination?

Sorry, I didn't get that..

Where do you want the 10-point rating to end up. And do you want the Community Rating or My Rating as the source?

It appears that I am still not clear..

Earlier (0.9125 and earlier), we rated our comics like 1 star, 2 stars, 3 stars, 4 stars and 5 stars. So, that was a simple 5-point rating.
Currently (0.9.126 and beyond), we can rate our comics from 0.1 to 5.0 (that is a 5-point rating with a 0.1 increment). This applies for both "my ratings" and "community ratings" fields.

Now, what am I asking for ?

I wish to rate my comics (both "my ratings" and "community ratings" fields) from anywhere between 0.1 to 10. (this is a 10-point rating with a 0.1 increment). This means that I would have 10 stars to choose from. I would manually input both the "my ratings" and "community ratings" fields, so there is no source and no destination. Both fields are independent.

Is this even possible ? Is yes, it is a dream come true... If not, read on..

I often quote IGN's 10-point ratings:


So, if showing up 10 stars in ComicRack is not an option, i would like to transform the 10 point rating into the community ratings field. But, if this is what is possible, isn't Astrophizz's "method" simple:
Astrophizz wrote:
Well you just divide by two and then round up or down to the nearest decimal value.


I hope the scenario is clear now.
I am, although, worried that it might not work out as I wished it to be..

Re:[script request] 10-point rating 1 year, 6 months ago #9037

  • Stonepaw
  • OFFLINE
  • Moderator
  • Posts: 657
  • Karma: 113
600WPMPO wrote:
I wish to rate my comics (both "my ratings" and "community ratings" fields) from anywhere between 0.1 to 10. (this is a 10-point rating with a 0.1 increment). This means that I would have 10 stars to choose from. I would manually input both the "my ratings" and "community ratings" fields, so there is no source and no destination. Both fields are independent.

Is this even possible ?

Ah now I understand. Sadly as far as I know it is not possible to modify how the stars work with a script. Sorry

So, if showing up 10 stars in ComicRack is not an option, i would like to transform the 10 point rating into the community ratings field. But, if this is what is possible, isn't Astrophizz's "method" simple:
Astrophizz wrote:
Well you just divide by two and then round up or down to the nearest decimal value.

Yes this would be the simplest way to do that. I can write a script to do this pretty easily I think.

Re:[script request] 10-point rating 1 year, 6 months ago #9038

  • 600WPMPO
  • OFFLINE
  • Moderator
  • Posts: 2280
  • Karma: 114
Stonepaw wrote:
600WPMPO wrote:
So, if showing up 10 stars in ComicRack is not an option, i would like to transform the 10 point rating into the community ratings field. But, if this is what is possible, isn't Astrophizz's "method" simple:
Astrophizz wrote:
Well you just divide by two and then round up or down to the nearest decimal value.

Yes this would be the simplest way to do that. I can write a script to do this pretty easily I think.

Ok.. even such a script will be helpful in the long run..

please do post the script..

Re:[script request] 10-point rating 1 year, 6 months ago #9042

  • Stonepaw
  • OFFLINE
  • Moderator
  • Posts: 657
  • Karma: 113
Here you go. Sorry I couldn't do exactly what you wanted , but it's better than nothing.

File Attachment:

File Name: Convert_10_Point_Rating.crplugin
File Size: 2094

Re:[script request] 10-point rating 1 year, 6 months ago #9047

  • 600WPMPO
  • OFFLINE
  • Moderator
  • Posts: 2280
  • Karma: 114
Stonepaw wrote:
Here you go. Sorry I couldn't do exactly what you wanted , but it's better than nothing.

It is actually good Stoney !!

+1 karma to you for saving me the trouble of dividing every 10-point rating by 2 and then inputting it in the ratings field

Since you make it seen so easy, I was wondering if it would be possible(via a script) to manually enter ratings (the usual 5-point ratings, not the ones you just solved)using the keyboard, instead of clicking & dragging the stars ?

i.e. entering 3.5 via the keyboard and getting 3and a half stars filled ?
Last Edit: 1 year, 6 months ago by 600WPMPO.

Re:[script request] 10-point rating 1 year, 6 months ago #9050

  • cYo
  • OFFLINE
  • Moderator
  • Posts: 2116
  • Karma: 109
Like I said earlier, I had to keep the rating system in the 5 star range to keep the backward compatibility with old ratings (in the db and in embedded infos).
Last Edit: 1 year, 6 months ago by cYo.
  • Page:
  • 1
  • 2
Time to create page: 0.98 seconds

Who's Online

We have 128 guests and 3 members online
  • Rincewind
  • Hexaphim
  • Shinrai

PIM

You are not logged in.