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