• 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.

Peeking Duck?

Sergeant
22 Badges
Oct 26, 2001
50
1
www.theplague.net
  • Victoria 2: A House Divided
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Expansion Pass
  • Steel Division: Normand 44 - Second Wave
  • Hearts of Iron IV: Death or Dishonor
  • Steel Division: Normandy 44
  • Hearts of Iron IV: Together for Victory
  • Hearts of Iron IV: Cadet
  • Stellaris
  • 500k Club
  • Victoria 2: Heart of Darkness
  • Crusader Kings II
  • Victoria 2
  • Sengoku
  • March of the Eagles
  • Hearts of Iron III
  • Europa Universalis IV
  • Darkest Hour
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: The Republic
  • Crusader Kings II: Legacy of Rome
So, before I begin I should stress that I'm a novice modder...but I still try :)

Right, I want to have three colour flag backgrounds. Apparently (I think), the two colours we pick from currently are assigned to the Red and Green channels of the image. I would like to figure out how to assign a third colour, possibly to the Blue channel.

What am I trying to achieve? I want to have backgrounds of national flags possible, like the French and German flags, etc.

Any help would be very much appreciated.

Peek
 
Ahh thanks for the reply, but unfortunately that's not the issue. While those backgrounds indeed have multi-colour elements to them, you can only control the red and green RGB channels. I'm looking for a means of controlling a third colour. ;)

cheers

It's likely presently impossible, but you might notice that there seems to be a colour 3 slot, which is NULL on all of the empires.
 
It's likely presently impossible, but you might notice that there seems to be a colour 3 slot, which is NULL on all of the empires.

Hi m8, thanks for that. I thought it might be the case but have, as yet, been unable to find the relevant file(s). Please can you direct me to where you found the NULL value?

Also, do you, or anyone, know if there are means of getting an official confirmation from the developers on this? I would like to ask if there are plans to make such functionality available in future.
 
Hi m8, thanks for that. I thought it might be the case but have, as yet, been unable to find the relevant file(s). Please can you direct me to where you found the NULL value?

Also, do you, or anyone, know if there are means of getting an official confirmation from the developers on this? I would like to ask if there are plans to make such functionality available in future.
You can't currently change the third and fourth color channels in-game, but you can do so by modifying either their user_defined_empires.txt or 00_prescripted_countries.txt (depending on whether or not the empire in question is predefined or user created). For example, here is what I did for my American Directorate prescripted empire flag.

Code:
empire_flag = {
        icon= {
            category = "human"
            file = "flag_human_15.dds"
        }
        background= {
            category = "backgrounds"
            file = "america_stripes_horizontal.dds"
        }
        colors={
            "blue"
            "red"
            "white"
            "null"
        }
    }

Which resulted in this:
34hfkt3.png


(keep in mind I had to add a "white" color in order to use it)

Without defining a color, it defaults to a shade of grey.
 
  • 2
Reactions:
You can't currently change the third and fourth color channels in-game, but you can do so by modifying either their user_defined_empires.txt or 00_prescripted_countries.txt (depending on whether or not the empire in question is predefined or user created). For example, here is what I did for my American Directorate prescripted empire flag.

Code:
empire_flag = {
        icon= {
            category = "human"
            file = "flag_human_15.dds"
        }
        background= {
            category = "backgrounds"
            file = "america_stripes_horizontal.dds"
        }
        colors={
            "blue"
            "red"
            "white"
            "null"
        }
    }

Which resulted in this:
34hfkt3.png


(keep in mind I had to add a "white" color in order to use it)

Without defining a color, it defaults to a shade of grey.


Wonderful! That worked. Thanks so much for this, Boristus. However, I should add, for anyone else attempting this feat, you must mask your RGB channels correctly for it to work. Otherwise you'll get colour bleeding in the same fashion as without Boristus' method.

Hopefully the developers will make this easier by opening the code to allow third colour options from the GUI. #freethecolours