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

Marconius

Emperor
110 Badges
Apr 6, 2007
2.203
7
  • Warlock 2: The Exiled
  • March of the Eagles
  • Europa Universalis III Complete
  • Europa Universalis IV: Res Publica
  • Europa Universalis: Rome
  • Rome Gold
  • Sengoku
  • Sword of the Stars
  • Sword of the Stars II
  • The Showdown Effect
  • Victoria 2
  • Rome: Vae Victis
  • Warlock: Master of the Arcane
  • Magicka
  • War of the Roses
  • 500k Club
  • Cities: Skylines
  • Cities: Skylines Deluxe Edition
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Pre-order
  • Magicka: Wizard Wars Founder Wizard
  • Crusader Kings II: Way of Life
  • Pillars of Eternity
  • Magicka 2
  • Europa Universalis IV: Common Sense
  • Stellaris: Necroids
  • Europa Universalis III
  • Cities in Motion
  • Cities in Motion 2
  • Crusader Kings II
  • 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: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Dungeonland
  • A Game of Dwarves
  • Divine Wind
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Call to arms event
  • Gettysburg
  • Heir to the Throne
  • Europa Universalis III Complete
  • Knights of Pen and Paper +1 Edition
I'm trying to make a mod for portraits and I ran into a bit of an annoyance: it seems you can only have a maximum of 27 frames read in from a .dds file.

Essentially what happens is, I have a very large .dds with 38 frames. As a series of experiments, in the portrait_properties.txt, I set the factor of all clothes (working on clothes atm) to 0, except for a single one (removed all modifiers). Then I changed which one wasn't at 0, basically making all characters wear the same clothes. Up until #26 (counting starts from 0), it worked just fine and dandy, but for any number beyond that, it was as if those entries weren't even there, the numbers "loop back" to the beginning again.

Is there really a hard limit like this or am I missing something? Would be really quite annoying if they put a limit like that in place, especially since it seems pretty pointless.
 

SchwarzKatze

Field Marshal
45 Badges
Nov 8, 2008
5.827
4.439
According to this thread, you also need to edit portraits.gfx to make the game recognize the extra frames
 

Marconius

Emperor
110 Badges
Apr 6, 2007
2.203
7
  • Warlock 2: The Exiled
  • March of the Eagles
  • Europa Universalis III Complete
  • Europa Universalis IV: Res Publica
  • Europa Universalis: Rome
  • Rome Gold
  • Sengoku
  • Sword of the Stars
  • Sword of the Stars II
  • The Showdown Effect
  • Victoria 2
  • Rome: Vae Victis
  • Warlock: Master of the Arcane
  • Magicka
  • War of the Roses
  • 500k Club
  • Cities: Skylines
  • Cities: Skylines Deluxe Edition
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Pre-order
  • Magicka: Wizard Wars Founder Wizard
  • Crusader Kings II: Way of Life
  • Pillars of Eternity
  • Magicka 2
  • Europa Universalis IV: Common Sense
  • Stellaris: Necroids
  • Europa Universalis III
  • Cities in Motion
  • Cities in Motion 2
  • Crusader Kings II
  • 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: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Dungeonland
  • A Game of Dwarves
  • Divine Wind
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Call to arms event
  • Gettysburg
  • Heir to the Throne
  • Europa Universalis III Complete
  • Knights of Pen and Paper +1 Edition
Indeed. I have something like 45 in my character modifier icon strip and intend to keep going. You need to change the number in the correct *.gfx file to let ck2.exe know how many images are in your file.

I did change the numbers in portraits.gfx, of course. I'm not that silly!

Hmmm, further experimentation is required then, it would seem...
 

RedRooster81

Modding Paladin
34 Badges
Feb 16, 2010
5.673
29
  • Crusader Kings II
  • Rome Gold
  • Heir to the Throne
  • Divine Wind
  • Europa Universalis III Complete
  • Deus Vult
  • Cities in Motion
  • Crusader Kings II: Monks and Mystics
  • Europa Universalis IV: Rights of Man
  • Crusader Kings II: Reapers Due
  • Crusader Kings II: Conclave
  • Crusader Kings II: Jade Dragon
  • Europa Universalis IV: Dharma
  • Crusader Kings II: Holy Fury
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Golden Century
  • Mount & Blade: Warband
  • Europa Universalis IV: El Dorado
  • 500k Club
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Europa Universalis IV: Art of War
  • Europa Universalis IV
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: The Republic
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: Charlemagne
I did change the numbers in portraits.gfx, of course. I'm not that silly!

Hmmm, further experimentation is required then, it would seem...

I haven't had much luck with actually modding portraits. I can swap up *.gfx files, but the *.dds files are not liking me, either. Good luck.
 

Marconius

Emperor
110 Badges
Apr 6, 2007
2.203
7
  • Warlock 2: The Exiled
  • March of the Eagles
  • Europa Universalis III Complete
  • Europa Universalis IV: Res Publica
  • Europa Universalis: Rome
  • Rome Gold
  • Sengoku
  • Sword of the Stars
  • Sword of the Stars II
  • The Showdown Effect
  • Victoria 2
  • Rome: Vae Victis
  • Warlock: Master of the Arcane
  • Magicka
  • War of the Roses
  • 500k Club
  • Cities: Skylines
  • Cities: Skylines Deluxe Edition
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Pre-order
  • Magicka: Wizard Wars Founder Wizard
  • Crusader Kings II: Way of Life
  • Pillars of Eternity
  • Magicka 2
  • Europa Universalis IV: Common Sense
  • Stellaris: Necroids
  • Europa Universalis III
  • Cities in Motion
  • Cities in Motion 2
  • Crusader Kings II
  • 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: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Dungeonland
  • A Game of Dwarves
  • Divine Wind
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Call to arms event
  • Gettysburg
  • Heir to the Throne
  • Europa Universalis III Complete
  • Knights of Pen and Paper +1 Edition
Well, I did a very clean experiment to test this and it seems confirmed. Basically what I did was made a .dds file and just flood-filled it with one color, then colored the two ending blocks a different color.

Then in portrait_preferences, I set it so that the last entry had a factor of 100, all the others of 0.

While the thing was 27 blocks long or less, it worked fine, always using the color of the last block (green), never using the color of the first (blue) or the middle (red). But when I added one extra block (and recolored appropriately), suddenly all the portraits were colored blue, meaning they were "wearing" the very first block and the numbers kinda looped around. So there seems to be a hard limit there.

EDIT: I don't suppose anyone knows what that "norefcount" business is?
 
Last edited:

CrackdToothGrin

Mercenary Face Builder
36 Badges
Mar 18, 2007
2.547
690
crackdtoothgrin.designbinder.com
  • Crusader Kings II: Horse Lords
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Victoria: Revolutions
  • Victoria 2
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • 500k Club
  • Crusader Kings II: Way of Life
  • Heir to the Throne
  • Crusader Kings II: Conclave
  • Crusader Kings II: Reapers Due
  • Crusader Kings II: Monks and Mystics
  • Crusader Kings Complete
  • Crusader Kings II: Jade Dragon
  • Crusader Kings II: Holy Fury
  • Crusader Kings III
  • Crusader Kings III: Royal Edition
  • Crusader Kings II: Sunset Invasion
  • Hearts of Iron II: Armageddon
  • Crusader Kings II
  • 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: Sons of Abraham
  • Arsenal of Democracy
  • Crusader Kings II: Sword of Islam
  • Darkest Hour
  • Europa Universalis III
  • Europa Universalis III: Chronicles
  • Europa Universalis III Complete
  • Divine Wind
  • Europa Universalis IV
  • Hearts of Iron III
Well, I did a very clean experiment to test this and it seems confirmed. Basically what I did was made a .dds file and just flood-filled it with one color, then colored the two ending blocks a different color.

Then in portrait_preferences, I set it so that the last entry had a factor of 100, all the others of 0.

While the thing was 27 blocks long or less, it worked fine, always using the color of the last block (green), never using the color of the first (blue) or the middle (red). But when I added one extra block (and recolored appropriately), suddenly all the portraits were colored blue, meaning they were "wearing" the very first block and the numbers kinda looped around. So there seems to be a hard limit there.

EDIT: I don't suppose anyone knows what that "norefcount" business is?

I know that it is capped at 27, even if I changed portraits.gfx, because of restrictions on the number of letters. It doesn't seem to know whether to loop or continue on, because of how it reads the DNA. Every time you add a frame, you change the letter of the first frame in how the game codes the DNA in the save files. I ran into a problem making clothes for Cumans (before I realized you can just create a whole new set for each culture), where the game's looping broke. Could never fix it, either.
 

Marconius

Emperor
110 Badges
Apr 6, 2007
2.203
7
  • Warlock 2: The Exiled
  • March of the Eagles
  • Europa Universalis III Complete
  • Europa Universalis IV: Res Publica
  • Europa Universalis: Rome
  • Rome Gold
  • Sengoku
  • Sword of the Stars
  • Sword of the Stars II
  • The Showdown Effect
  • Victoria 2
  • Rome: Vae Victis
  • Warlock: Master of the Arcane
  • Magicka
  • War of the Roses
  • 500k Club
  • Cities: Skylines
  • Cities: Skylines Deluxe Edition
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Pre-order
  • Magicka: Wizard Wars Founder Wizard
  • Crusader Kings II: Way of Life
  • Pillars of Eternity
  • Magicka 2
  • Europa Universalis IV: Common Sense
  • Stellaris: Necroids
  • Europa Universalis III
  • Cities in Motion
  • Cities in Motion 2
  • Crusader Kings II
  • 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: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Dungeonland
  • A Game of Dwarves
  • Divine Wind
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Call to arms event
  • Gettysburg
  • Heir to the Throne
  • Europa Universalis III Complete
  • Knights of Pen and Paper +1 Edition
I know that it is capped at 27, even if I changed portraits.gfx, because of restrictions on the number of letters. It doesn't seem to know whether to loop or continue on, because of how it reads the DNA. Every time you add a frame, you change the letter of the first frame in how the game codes the DNA in the save files. I ran into a problem making clothes for Cumans (before I realized you can just create a whole new set for each culture), where the game's looping broke. Could never fix it, either.

Ohhh, it's because there's only 27 letters in the English alphabet... right, that makes sense. It's still really poor design, but I guess it at least makes sense.