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

Capt Oblivious

Sergeant
57 Badges
Nov 20, 2008
89
12
  • Crusader Kings II
  • Europa Universalis III
  • Europa Universalis IV
  • Age of Wonders III
  • Stellaris
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV: Colonel
  • Crusader Kings II: Reapers Due
  • Tyranny: Archon Edition
  • Tyranny: Archon Edition
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Crusader Kings II: Monks and Mystics
  • Stellaris: Federations
  • Surviving Mars
  • Stellaris: Lithoids
  • Crusader Kings II: Horse Lords
  • Crusader Kings II: Jade Dragon
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Stellaris: Distant Stars
  • Stellaris: Megacorp
  • Crusader Kings II: Holy Fury
  • Imperator: Rome Deluxe Edition
  • Stellaris: Ancient Relics
  • Age of Wonders: Planetfall
  • Age of Wonders: Planetfall Deluxe edition
  • Crusader Kings II: Way of Life
  • Magicka: Wizard Wars Founder Wizard
  • Crusader Kings III
  • Europa Universalis IV: El Dorado
  • 500k Club
  • War of the Roses
  • Warlock: Master of the Arcane
  • Victoria 2
  • Crusader Kings II: Conclave
  • Stellaris: Nemesis
  • Stellaris: Necroids
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sword of Islam
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Leviathan: Warships
  • Europa Universalis IV: Res Publica
  • Sword of the Stars II
Is there any kind of index to CoA patterns and textures? I.e is ther ea graphics file that hte codes relate to?

When I created my own character it looks liek tampering with the dynasties.txt file by adding this sequence after the string allows a new flag:

coat_of_arms = {
template = 0
layer = {
texture = 3
texture_internal = 47
emblem = 0
color = 0
color = 0
color = 0
}
}

thus far I've just been crap shooting it to find a pattern I like, but I don't know if there is maybe a list I can look at or what. Anyone know?
 
Is there any kind of index to CoA patterns and textures? I.e is ther ea graphics file that hte codes relate to?

When I created my own character it looks liek tampering with the dynasties.txt file by adding this sequence after the string allows a new flag:

coat_of_arms = {
template = 0
layer = {
texture = 3
texture_internal = 47
emblem = 0
color = 0
color = 0
color = 0
}
}

thus far I've just been crap shooting it to find a pattern I like, but I don't know if there is maybe a list I can look at or what. Anyone know?

I think they are located in gfx/coats_of_arms where there is a bunch of type .tga files, I'd guess template refers to the patern.tga files, emblem picks a specific image out of emblems.dds and color is the colour of the background pattern. The .tga files can be opened with something like GIMP, as can .dds if you have the right plugin.
 
Is there any kind of index to CoA patterns and textures? I.e is ther ea graphics file that hte codes relate to?

When I created my own character it looks liek tampering with the dynasties.txt file by adding this sequence after the string allows a new flag:

coat_of_arms = {
template = 0
layer = {
texture = 3
texture_internal = 47
emblem = 0
color = 0
color = 0
color = 0
}
}

what do you want to do exactly ? adding a preexisting flag from the dynasty flag DLC or creating one dealing with models and colours used from randomly generated coas ?

-first case, your script should work.
-in the second case you have to change the values.

template = X
is the laying out.
not sure about zero if it refers to the 1st one or none.
= 0/1 coa_plain
= 1/2 coa_party_per_fess
= 2/3 coa_party_per_pale
= 3/4 coa_party_per_cros
= 4/5 coa_party_triangle

texture = X
is the colour-able motif/emblem.
=0 refers to file named pattern.tga
=1 refers to file named pattern2.tga
=2 refers to file named pattern3.tga
=3 refers to the file from the dynasty DLC called dynasty.tga
=4 refers to file named pattern4.tga

texture internal = X
is to select inside the prior file.the number is obtained by counting the emblems in the files -1.
if you have more than one horizontal row. you count from left to right before beginning next line.

emblem = X
non colour-able emblems.
=0 none
=1/25 refers to the files emblem.dds the number is obtained by counting the emblems in the files -1.

color = X
defines the colours for different parts.
=1/14
some patterns are two coloured some are three coloured.
the available colours are set in the file coats_of_arms.txt
 
Last edited:
Yeah I was just trying to tamper with the coat of arms system within the game to develop a CoA similar to my real life family's. The original game had a system where you could simply import a .jpg file and use that, which is a bit easier. Still trying to figure this one out....thanks for the help though, least now I know what changes what.
 
great stuff Arko but I'll add a few notes/corrections

1- Emblems are counted from 1 to 24, no subtraction since 0 means none.
2- Don't ask me why but randomly generated coats in savefiles have "texture internal" and "emblem" switched in position. So if you're editing a save file, consider the order of these 2 inverted.
3- about colors. I'm not totally positive on this but it should be that, considering the RGB colors in the pattern files, red will be the 1st color in order in your coat, green the second and (where present) blue the third.
 
And of course, you can always add another texture file to interface\coat_of_arms.txt after pattern4.tga. Just set it to be 1x1 and make the image whatever square coat of arms you feel like, and set the texture_internal in dynasties.txt to 0.