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

Nanaba

Private
44 Badges
Sep 11, 2018
18
9
  • Stellaris: Megacorp
  • Europa Universalis IV: Mandate of Heaven
  • BATTLETECH
  • Hearts of Iron IV: Death or Dishonor
  • Stellaris: Synthetic Dawn
  • Age of Wonders III
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Stellaris: Distant Stars
  • BATTLETECH: Flashpoint
  • Stellaris - Path to Destruction bundle
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Ancient Relics
  • BATTLETECH: Season pass
  • Stellaris: Lithoids
  • BATTLETECH: Heavy Metal
  • Hearts of Iron IV: La Resistance
  • Stellaris: Federations
  • Battle for Bosporus
  • Stellaris: Necroids
  • Victoria 3 Sign Up
  • Cities: Skylines
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • For the Motherland
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
  • Semper Fi
  • Victoria 2
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • War of the Roses
  • Crusader Kings II
  • Magicka: Wizard Wars Founder Wizard
  • Europa Universalis IV: Common Sense
  • Europa Universalis IV: Cossacks
  • Stellaris
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV: Colonel
  • Europa Universalis IV: Rights of Man
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Hearts of Iron IV: Together for Victory
How does the "color_override" part of a script work. For instance:


icon = {
color_override = no
name = "Crab"
}

This is a division icon with a "color_override" tacked on, does anyone know how it works?
 

Mousetick

Major
93 Badges
Oct 13, 2012
689
1.400
  • Crusader Kings II: Monks and Mystics
  • Age of Wonders II
If you look at the definitions in army_icons.txt alonside the icons in army_icons.dds, you can see that the first 14 icons are the generic vanilla ones, which have a neutral color and have the implied default color_override = yes. These 14 army shields are colored automatically by the game, or the user can select another color in the color picker. The remaining icons are all DLC-locked and have their own colors as stored in the texture file, which the game or the user can't change.

Therefore, color_override = no means that the game renders the icon as is from the texture file, it doesn't paint it with another color.

Since this attribute can only be found in army_icons.txt, we can't determine if it's handled globally by the game in any icon definition, or if it's limited only to handling army shields, army group shields and naval equipment roles. You'll have to experiment by yourself to find that out.
 
  • 3
Reactions: