Jump to content
Korean Random
Sign in to follow this  
Dakado

Custom wn8 colors

Recommended Posts

Hi,

 

I want to use custom colors for wn8 rating. So I went to colors config and defined my custom colors here:

    // Dynamic color by various statistical parameters.
    "colorRating": {
      "very_bad":     "0xCD3333",
      "bad":          "0xCF7805",
      "avg":          "0xF7D208",
      "normal":       "0xF8F400",
      "good":         "0x60FF00",
      "very_good":    "0x4B772A",
      "great":        "0x108DCC",
      "unique":       "0x84569E",
      "super_unicum": "0x5A2D76"
    },

This works pretty good, cause the colors are changed, but the problem is I tried to define custom ranges for WN8 rating, but that is not working at all, the default wn8 ranges are still in use even though I have done the following:

 

    // Current scales values for ratings are listed on this page: https://modxvm.com/en/ratings/xvm-scale/colors/
    // Custom dynamic colors by ratings.
    // If you want use your own color scales,
    // uncomment this block and replace "rating_name" to one of this values: "eff", "wn8", "wtr", "wgr"
     "wn8": [
      { "value": 0,   "color": ${"def.colorRating.very_bad" } },
      { "value": 599,   "color": ${"def.colorRating.bad"      } },
      { "value": 899,  "color": ${"def.colorRating.avg"      } },
      { "value": 1249,  "color": ${"def.colorRating.good"     } },
      { "value": 1600,  "color": ${"def.colorRating.very_good"} },
      { "value": 1899,  "color": ${"def.colorRating.great"    } },
      { "value": 2350,  "color": ${"def.colorRating.unique"   } },
      { "value": 2899, "color": ${"def.colorRating.super_unicum" } }
     ],

 

 

Can you help me please ? What did I do wrong ? 

Share this post


Link to post

Short link
Share on other sites
2 hours ago, ktulho said:

Vypíšete makro {{c: wn8}} nebo {{c: xwn8}}?

I am using "wn8" as it is said in the comment above the section. Should I write xwn8 in there instead ?

Share this post


Link to post

Short link
Share on other sites
3 hours ago, Dakado said:

I am using "wn8" as it is said in the comment above the section. Should I write xwn8 in there instead ?


Guess you only added new color rating/range inside colors.xc and that's about it?
I don't know are you using default xvm config or someone else's config, but i had almost the same issue a while back.

Took me awhile to figure out why some wn8 ratings still use default coloring for wn8.
Even if you set to wn8 on site (personal cabinet) it will still use default coloring for wn8 for some reason.(and not one from config).

My issue was with {{c:xr}}...replaced it with {{c:wn8}} and problem solved. (mostly inside markers, Panels, battleLoading..etc)

  • just search for {{c:xr}} inside config files that show wrong colors and replace it with {{c:wn8}}
  • or alternatively you can try and add "xwn8" inside colors:xc might work theoretically speaking (personally haven't tried it so idk)


Hope this helps....

Share this post


Link to post

Short link
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...