

Texturefile = "gfx\\characters\\western_male\\western_male_base_1.dds" Texturefile = "gfx\\characters\\western_male\\western_male_beard_behind_3.dds" Name = "GFX_western_male_beard_behind_oldage" Texturefile = "gfx\\characters\\western_male\\western_male_beard_behind_2.dds" Name = "GFX_western_male_beard_behind_midage" Texturefile = "gfx\\characters\\western_male\\western_male_beard_behind_1.dds" Texturefile = "gfx\\characters\\western_male\\western_male_hair_behind_3.dds" Name = "GFX_western_male_hair_behind_oldage" Texturefile = "gfx\\characters\\western_male\\western_male_hair_behind_2.dds" Name = "GFX_western_male_hair_behind_midage" Texturefile = "gfx\\characters\\western_male\\western_male_hair_behind_1.dds" Texturefile = "gfx\\characters\\western_male\\western_male_headgear_behind.dds" Name = "GFX_western_male_headgear_behind" Texturefile = "gfx\\characters\\western_male\\western_male_clothes_behind.dds" Texturefile = "gfx\\characters\\shared\\backgrounds.dds" Texturefile = "gfx\\characters\\shared\\scars.dds" Texturefile = "gfx\\characters\\shared\\boils.dds" Texturefile = "gfx\\characters\\shared\\red_dots.dds"


First of all, all files that are to be used are listed and given a code-name, seen here: The listings in portraits.gfx are similar for all categories, but I will use Western European Male as an example. Unless a character has his/her DNA and/or Property sequence specified (as described below), the game will generate the portrait from a set of hard-coded rules as well as rules defined in portrait_properties.txt, using the files apropriate for the characters portrait category. The game then ties each image file to either a DNA slot or a Property slot. Italian Female (as far as I can tell, it's the female counterpart to Southern European Male)Įach category has it's own listing in portraits.gfx that defines what image files the game should use as building blocks, and where those files are located. The categories seem to be hard-coded, you could potentially add a new category in the file, but since the game has no way of knowing what kind of characters fall into that category it would either be ignored or crash the game. Both files can be opened using notepad and are found in the crusader kings ii/interface folder.ĬK2 have portraits divided into 8 different categories (12 if you count children), and each category uses it's own set of building blocks as defined by portraits.gfx. The game generates portraits using three sources hard-coded information that we can't change, and information from the files portraits.gfx and portrait_properties.txt that can be modded. This is the reason all kids look alike in CK2. The only exceptions are portraits of children, which are created using a single file per type of child (western male, western female, muslim male and muslim female). Note that the basic head contains facial features of it's own, but those are overwritten by the layers above it, it is merely there to provide a foundation that includes age apropriate features such as wrinkles. Upon this head the game then add everything else by layering images with built in transparency, this includes unique facial features such as cheeks, hair and a nose, as well as things like clothes and headgear. Then there is a generic head, either young, middle aged or old. First there is a background image suitable for the character and his/her current situation. There is room for error in my findings, but I absolutely think that this is (so far) still the most complete set of instructions and conclusions regarding CK2's use of DNA.Īll portraits, be they male or female, consists of the same basic elements, and all those elements are layered to create the final character portrait.
Character portrait male socialite mod#
Please keep in mind that I am in no way an experienced coder, but using simple logic, a dedicated mod directory for testing and hundreds of restarts can take you a long way. My findings will be presented in the posts below.
Character portrait male socialite how to#
Through many hours of trial and error I've been able to compile a list of stuff that I now KNOW how to use properly, along with a list of stuff that is either still unclear or simply confirmed as not working. I created this guide because although there are several threads on the subject already, they are spread far apart and the information is often presented as guesswork. This thread is meant as a guide for those who want to edit the portraits of characters, custom or vanilla.
