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

SeamusFD

Corporal
45 Badges
Aug 31, 2015
29
14
  • Stellaris: Distant Stars
  • Stellaris: Leviathans Story Pack
  • Crusader Kings II: Monks and Mystics
  • Stellaris - Path to Destruction bundle
  • Cities: Skylines - Mass Transit
  • Stellaris: Synthetic Dawn
  • Tyranny - Tales from the Tiers
  • Tyranny - Bastards Wound
  • Cities: Skylines - Green Cities
  • Crusader Kings II: Jade Dragon
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Tyranny: Archon Edition
  • Cities: Skylines Industries
  • Stellaris: Megacorp
  • Crusader Kings II: Holy Fury
  • Prison Architect
  • Cities: Skylines - Campus
  • Stellaris: Ancient Relics
  • Stellaris: Federations
  • Crusader Kings III
  • Crusader Kings III: Royal Edition
  • Stellaris: Necroids
  • War of the Roses
  • 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
  • Europa Universalis IV
  • Europa Universalis IV: Conquest of Paradise
  • Crusader Kings II
  • Cities: Skylines
  • Europa Universalis IV: El Dorado
  • Crusader Kings II: Way of Life
  • Pillars of Eternity
  • Crusader Kings II: Horse Lords
  • Cities: Skylines - After Dark
  • Crusader Kings II: Conclave
  • Stellaris
  • Hearts of Iron IV: Cadet
  • Crusader Kings II: Reapers Due
Hey, so from the title above you can probably guess I am not having fun with this. But here is some background.

I am currently making a map overhaul and what-not and I wanted to experiment with custom portraits. So my first stop was this page on the wiki: https://ck2.paradoxwikis.com/Portrait_modding which seemed to be helpful. But with some crashes and problems I then tried to copy the custom portraits from the ck2 warhammer mod to act as a canvas to see what I was getting myself into.

Fast-forward many hours I have redone this process multiple times, pulled and compared the code from mods such as the Elder Kings, Warhammer, and the LOTR mod, which all seem to handle custom portraits in this way.

you have your gfx files, in the subfolder characters. In there you have your files split into (insert_ethnicity_here)_male and (insert_ethnicity_here)_female. It matters that it matches what you have in your interface files. Which are split up like this.

1. You have your sprites definition which should point to the gfx files
2. You then have your intialization (in a way) which calls the sprite you just defined.

These (according to the wiki page) is all that you need to have your custom portrait. So in here lies the problem

It doesn't work...

As of now, no matter what I do, or which mod I pull the files from the portraits for the assigned ethnicity are always invisible. But not only invisible. Whenever I click on a portrait which is invisible, if I am to look at a normal portrait (englishgfx for example) then that as well becomes a non-clickable, non interactable invisible portrait.

I can only assume that there is some other part of the process which I am not understanding. If you need more information feel free to ask.
 
Then you gfx sprite and or the portrait definitions names are wrong somehow. That's all you need to get portraits working.
Strange, well I have checked and doubled checked. I even copied the files and such from the Elder Kings "altmer" ethnicity for testing. And still I have the same problem. So it probably isn't the naming. Though that is the origination of most bugs in ck2 modding I will be honest.