Crusader Kings III

Crusader Kings III

AGOT: Canon Children+
yeru  [developer] 13 Sep, 2023 @ 8:49am
Custom DNA Guide
DEPRECATED

> Guide with images[imgur.com]

1. Locate the Workshop mod directory in your Steam installation directory (\steamapps\workshop\content\1158310\2966438738)

OPTIONAL: To prevent your adjustments from getting lost when the mod updates, you could maintain your own local copy of the mod (this will require some extra steps). Note that you will have to use this local mod in your playset instead (you might have to unsubscribe from the Workshop mod), and your copy of the mod will not get any new updates.

To create a local copy of the mod, copy the mod folder to the local CK3 mods folder in the Paradox directory (\Users\_\Documents\Paradox Interactive\Crusader Kings III\mod). Then create a agotcch.mod file in the Crusader Kings III\mod directory. Copy paste the descriptor.mod file of the mod, rename it to agotcch.mod, edit the file and add the path to your copy of the mod:
path="/Users/_/Documents/Paradox Interfactive/Crusader Kings III/mod/agotcch"


2. Locate the DNA of the character you want to modify from the mod's files. Navigate to the common/dna_data/agotcch_dna.txt file. Look for the DNA variable of the desired character (eg. agotcch_margaery_tyrell_dna).


3. Copy the custom character's DNA to your clipboard in the Ruler Designer.


4. Replace the original DNA value with your custom DNA. Paste the custom DNA from your clipboard in a notepad or somewhere else and extract the value in the genes field. Replace the genes value from the agotcch_dna.txt file with the value from your custom DNA.

NOTE: If you are modifying a character that exists in later bookmarks (e.g. Robb Stark) you will need to modify both the variable referring to the character's historical ID (e.g. Stark_6) and the submod's DNA variable (e.g. agotcch_robb_stark_dna). Not changing the historical ID DNA variable will cause the character to use the old DNA in later bookmarks.


5. If you made any changes to the portrait modifiers (hairstyle or beard) of the character, apply these changes to the portrait modifier files. Refer to the override/portrait_modifier_overrides field of your custom DNA. From the mod's files, navigate to gfx/portraits/portrait_modifiers. There will be a file for beards and hairstyles. Let's assume we only changed the hairstyle, so we need to make changes to the agotcch_hairstyles_scripted_characters.txt file.

If we want to change Margaery's hairstyle, we would need to locate (CTRL+F) the hairstyle that is currently assigned to her. Assuming Margaery originally has the female_hair_fp2_iberian_muslim_02_common hairstyle, we will see that the agotcch_female_hair_fp2_iberian_muslim_02_common modifier has Margaery assigned to it. We want to assign a different hairstyle, so cut Margaery from the hairstyle modifier. Make sure to maintain a copy of the deleted lines so you can copy it to the new hairstyle.

NOTE: If the custom DNA's portrait modifier is present in the portrait modifiers file (e.g. female_hair_western_03), we can simply paste the deleted value in the desired portrait modifier. You can refer to other portrait modifiers such as agotcch_clean_shaven to see what this is supposed to look like.

Let's say the portrait_modifier_overrides field of our custom DNA contains the hairstyle value custom_hair=female_hair_sub_saharan_02. This hairstyle is not present in the portrait modifiers file, so we will need to add it. Make sure that you set the accessory value of the new modifier to the desired hairstyle, and that you set the right template and type (refer to other portrait modifiers). Add the deleted lines that assigned the hairstyle to a specific character back to the newly created portrait modifier.


6. Save all your changed files, start a game and you're ready to go!


TLDR; to insert custom DNA for canon children, replace the mod's DNA with your custom DNA and change the portrait modifiers to assign a different hairstyle/beard.

If you need help with this, please keep the discussion in this thread.
Last edited by yeru; 30 Mar, 2024 @ 7:28pm