• We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.

Kossatx

Second Lieutenant
7 Badges
Apr 16, 2009
108
1
  • Arsenal of Democracy
  • Hearts of Iron III
  • Victoria: Revolutions
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • Victoria 2
  • 500k Club
Hi, I'm trying to mod "colorscales" file, but I don't understand how to edit colours. For example, for this pink colour the second row effectively is pink, but not the first and the second. And, what does index mean?


Code:
pink
red    green    blue    index
255    255    255    0
255    235    255    20
240    240    240    40
1    1    1    64
 
Hi, I'm trying to mod "colorscales" file, but I don't understand how to edit colours. For example, for this pink colour the second row effectively is pink, but not the first and the second. And, what does index

Code:
pink
red    green    blue    index
255    255    255    0
255    235    255    20
240    240    240    40
1    1    1    64

Best do a google search for RGB index n read the very informative wiki.
 
I agree. I tried to create pink as a map color (for Romania), which is rgb(255,192,203), but I don't understand why the game uses four rows and columns of values. Couldn't find anything helpful in the modding documentation
 
I agree. I tried to create pink as a map color (for Romania), which is rgb(255,192,203), but I don't understand why the game uses four rows and columns of values. Couldn't find anything helpful in the modding documentation

It might be related to various shaded versions of the same color, i.e. when a province has the cursor on it or has been selected (the "index" column). In my own changes in the colorscales file, I never tampered with the index column nor with the fourth line, and regarding the second and third line, I only used reduced numbers (typically -20 and -40, respectively) from values in the first line. Regarding the latter, I found out that the colours displayed in game never corresponded exactly with the RGB codes I put in the file, so I had to resort to a lot of trial-and-error before getting satisfying results.
 
It might be related to various shaded versions of the same color, i.e. when a province has the cursor on it or has been selected (the "index" column). In my own changes in the colorscales file, I never tampered with the index column nor with the fourth line, and regarding the second and third line, I only used reduced numbers (typically -20 and -40, respectively) from values in the first line. Regarding the latter, I found out that the colours displayed in game never corresponded exactly with the RGB codes I put in the file, so I had to resort to a lot of trial-and-error before getting satisfying results.

Oh thank you. This makes a lot of sense actually. I'm going to experiment with the colors.
 
It might be related to various shaded versions of the same color, i.e. when a province has the cursor on it or has been selected (the "index" column). In my own changes in the colorscales file, I never tampered with the index column nor with the fourth line, and regarding the second and third line, I only used reduced numbers (typically -20 and -40, respectively) from values in the first line. Regarding the latter, I found out that the colours displayed in game never corresponded exactly with the RGB codes I put in the file, so I had to resort to a lot of trial-and-error before getting satisfying results.

You are right, thanks a lot!