Welcome, Guest
Python Scripts for ComicRack
  • Page:
  • 1
  • 2

TOPIC: [script request] 10-point rating

[script request] 10-point rating 7 years 2 months ago #9029

  • 600WPMPO
  • 600WPMPO's Avatar
  • Offline
  • Moderator
  • Posts: 3788
  • Thank you received: 557
  • Karma: 232
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.. :unsure:
Now Playing: The ComicRack Manual (Online)

See my new comics & gadgets on: Tumblr!
The administrator has disabled public write access.

Re:[script request] 10-point rating 7 years 2 months ago #9031

  • Stonepaw
  • Stonepaw's Avatar
  • Offline
  • Moderator
  • Posts: 920
  • Thank you received: 267
  • Karma: 173
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?
The administrator has disabled public write access.

Re:[script request] 10-point rating 7 years 2 months ago #9033

  • 600WPMPO
  • 600WPMPO's Avatar
  • Offline
  • Moderator
  • Posts: 3788
  • Thank you received: 557
  • Karma: 232
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.. :blush:
Now Playing: The ComicRack Manual (Online)

See my new comics & gadgets on: Tumblr!
Last Edit: 7 years 2 months ago by 600WPMPO.
The administrator has disabled public write access.

Re:[script request] 10-point rating 7 years 2 months ago #9034

  • Stonepaw
  • Stonepaw's Avatar
  • Offline
  • Moderator
  • Posts: 920
  • Thank you received: 267
  • Karma: 173
600WPMPO wrote:
Stonepaw wrote:
Which field does the rating come from and which field is the destination?
Sorry, I didn't get that.. :blush:
Where do you want the 10-point rating to end up. And do you want the Community Rating or My Rating as the source?
The administrator has disabled public write access.

Re:[script request] 10-point rating 7 years 2 months ago #9036

  • 600WPMPO
  • 600WPMPO's Avatar
  • Offline
  • Moderator
  • Posts: 3788
  • Thank you received: 557
  • Karma: 232
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.. :unsure:
Now Playing: The ComicRack Manual (Online)

See my new comics & gadgets on: Tumblr!
The administrator has disabled public write access.

Re:[script request] 10-point rating 7 years 2 months ago #9037

  • Stonepaw
  • Stonepaw's Avatar
  • Offline
  • Moderator
  • Posts: 920
  • Thank you received: 267
  • Karma: 173
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.
The administrator has disabled public write access.

Re:[script request] 10-point rating 7 years 2 months ago #9038

  • 600WPMPO
  • 600WPMPO's Avatar
  • Offline
  • Moderator
  • Posts: 3788
  • Thank you received: 557
  • Karma: 232
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..
Now Playing: The ComicRack Manual (Online)

See my new comics & gadgets on: Tumblr!
The administrator has disabled public write access.

Re:[script request] 10-point rating 7 years 2 months ago #9042

  • Stonepaw
  • Stonepaw's Avatar
  • Offline
  • Moderator
  • Posts: 920
  • Thank you received: 267
  • Karma: 173
Here you go. Sorry I couldn't do exactly what you wanted :( , but it's better than nothing.

File Attachment:

File Name: Convert_10...crplugin
File Size:2 KB
The administrator has disabled public write access.

Re:[script request] 10-point rating 7 years 2 months ago #9047

  • 600WPMPO
  • 600WPMPO's Avatar
  • Offline
  • Moderator
  • Posts: 3788
  • Thank you received: 557
  • Karma: 232
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 :laugh:

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 ? :unsure:
Now Playing: The ComicRack Manual (Online)

See my new comics & gadgets on: Tumblr!
Last Edit: 7 years 2 months ago by 600WPMPO.
The administrator has disabled public write access.

Re:[script request] 10-point rating 7 years 2 months ago #9050

  • cYo
  • cYo's Avatar
  • Offline
  • Moderator
  • Posts: 3476
  • Thank you received: 675
  • Karma: 181
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: 7 years 2 months ago by cYo.
The administrator has disabled public write access.
  • Page:
  • 1
  • 2
Time to create page: 0.431 seconds

Who's Online

We have 202 guests and 6 members online