Portrait Builder
By Measter

If, when the program is started, it doesn't find the "gamedir", it will ask you for the
location of your Crusader Kings II directory. If you do not provide it, the program will
not work.

To add a custom portrait Set, create a .portset file in the /Sets folder defining the
graphics and colours to use. A .portset file can be opened in any text editor. All the
sets in a setGroup must have the same number of tiles per texture.

If the gameDir tag is set to "true" the program will attempt to load the textures using the
game directory as a base. For example, if your game directory is "C:\Games\Paradox\CKII",
and the texture path is "gfx/characters/western_pagan_female/western_pagan_female_clothes.dds"
then the program will look for the file at
"C:\Games\Paradox\CKII\gfx/characters/western_pagan_female/western_pagan_female_clothes.dds".

If, however the gameDir tag is set to "false", the program will try to load from the program's
own directory. For example, if your program directory is "C:\PortraitBuilder", and the texture
path is "Graphics/western_pagan_female/western_pagan_female_clothes.dds" then the program will.
look for the file at "C:\PortraitBuilder\Graphics/western_pagan_female/western_pagan_female_clothes.dds".

Version 1.0.3
 - Added randomization button.

Version 1.0.2
 - Fixed bug causing the first tile to have the wrong index.

Version 1.0.1
 - Changed the DNA output to match the length of that in the game's character definition.