Menu
- Crusader Kings 2 Cheats Money
- Crusader Kings 2 Change Portrait Cheats
- Crusader Kings 2 Cheats Wiki
- Crusader Kings 2 Cheat Mods
- Crusader Kings 2 Change Character Portrait Cheat
From Crusader Kings II Wiki. DNA is a string of 11 letters inherited from the parents and doesn't change after birth. Entry in /interface/portraits/portrait. Oct 24, 2019.
The character screen
Portraits are built by superposing layers of basic elements: background, generic head, facial elements (cheeks, hair, nose, ..), clothes, headgear, etc.
Each of these basic elements come with multiple variations or frames.
The choice of frame is either based on:
- the character DNA,
- or properties of the character (i.e triggers)
Children are an exception as they are created using a single image, hence children look similar.
- 1Characteristics
- 2Rendering
- 3Clothing override
- 4Custom ethnicities
- 5Static portraits
Characteristics[edit]
There are two kind of characteristics: DNA and properties. Both are strings of letters (and possibly zeros for properties). They can be seen in-game by using console command
charinfo
.DNA[edit]
DNA is a string of 11 letters inherited from the parents and doesn't change after birth.
For historical characters, their DNA string can be set in character history:
Otherwise randomly generated characters will get random DNA strings, which are persisted in the game saves.
Index | Used for |
---|---|
d0 | Neck |
d1 | Chin |
d2 | Mouth |
d3 | Nose |
d4 | Cheeks |
d5 | Unused |
d6 | Eyes |
d7 | Ears |
d8 | Hair Color |
d9 | Eye Color |
d10 | Unused |
So Genghis Khan's
dna = 'bfimkolbecc'
means:- Frame b for the neck (2nd frame in mongol_male_neck_1.dds)
- Frame f for the chin (6th frame in mongol_male_chin_1.dds)
- Frame i for the mouth (9th frame in mongol_male_mouth_1.dds)
- Frame m for the nose (13th frame in mongol_male_nose_1.dds)
- etc..
In case there are less frames than the index of the letter in alphabet, it wraps around. For instance, for chins there are usually 4 frames, so a = 1st frame and e = 1st frame as well. Saints row 3 first person mod.
Properties[edit]
Properties are a string of up to 14 letters (in vanilla). If the string is shorter, zeros will be added at the end.
Only hair (p1) and beards (p4) can be changed in-game via the Customization Pack, the other property values are derived from
portrait_properties.txt
file.- p0: Background
- p1: Hair
- p2: Base Head
- p3: Clothes
- p4: Beard
- p5: Headgear
- p6: Imprisoned
- p7: Scars tier I
- p8: Red Dots
- p9: Boils
- p10: Blinded
- p11: Player
- p12: Mask
- p13: Eyepatch
- p14: Chinese makeup
- p15: Chinese makeup 2
- p16: Chinese empress jewelry
- p17: Immortality
- p18: Special crowns behind
- p19: Special crowns
- p20: Freckles
- p21: Physique
- p22: Pale
- p23: Black eye
- p24: Harelip
- p25: Scars tier II
- p26: Scars tier III
- p27: Blood splatter
- p28: Tattoos
- p29: Warpaint
- p30: Demon Child
- p31: Frankish culture male overlayer
- p32: Frankish culture female overlayer
- p33: Frankish culture female underlayer and hair
It is possible to add new properties with the following:
- Define a sprite in a .gfx file, for instance GFX_custom
- Configure p18 in portrait_properties.txt (the number of properties is determined dynamically from there):
- Add a layer in portraits.gfx:
'GFX_custom:p18'
Rendering[edit]
Based on player's experimentations, here is a description of how the rendering of portraits works in-game. Note that part of the logic has also been re-implemented in Portrait Builder tool, for an out-of-game rendering.
Children[edit]
For child portraits:
- Look directly for a spriteType entry in /interface/portraits/* with name PORTRAIT_<culturegfx>_child_<sex>, where:
- <culturegfx> is the graphical_culture defined for the character culture or culture group
- <sex> is either male or female
Feudal[edit]
The game renders feudal adult portraits as follows:
- Look for a portraitType entry in /interface/portraits/portrait.gfx (or any other portraitType under /interface/*) with name PORTRAIT_<culturegfx>_<sex><_period><age>, where:
- <culturegfx> is the graphical_culture defined for the character culture or culture group (common/cultures/00_cultures.txt)
- <sex> is either male or female
- <age> is an integer: 0 for young (16 <= age < 30), 1 for middle age (30 <= age < 50), 2 for old age (age >= 50)
- <_period> is either _early if year is before 950, _late if year is after 1250, or empty otherwise (note: actual dates are defines EARLY_PORTRAIT_AND_UNIT_BEFORE_YEAR and LATE_PORTRAIT_AND_UNIT_AFTER_YEAR)
- In case no portraitType entry matches, try some defaulting: no date, no age, fallback ethnicities in the graphical_cultures list, ethnicity from parent culture group, or westerngfx in last resort.
- If a portraitType entry matches, apply the layers in order. For each layer defined as GFX_TYPE:[d|p]INDEX:
- Look for GFX_TYPE in spriteTypes (/interface/portraits/portrait_sprites.gfx or any other spriteType under /interface/*) and read the number of frames N.
- Resolve the frame to use:
- If letter is d, look for the letter in character DNA at INDEX position, and convert the letter to a number (modulo N)
- If letter is p, resolve the property for value INDEX, defined in /interface/portrait_properties.txt. The choice is made based on a weighted random, but the first factor that evaluates to >= 100 will be automatically chosen.
- Define a skin tone for the ethnicity in common/graphicalculturetypes/graphicalculturetype.txt, so that it can 'manage' mixed-race children.
Theocracy[edit]
The rendering is the same as feudal characters, except for headgear and clothing layers:
- Look for character religion definition and read the frame index directly there (portrait_properties.txt is not used):
- religious_clothing_head: index of the frame to use for the religious head
- religious_clothing_priest: index of the frame to use for other priests
- Use frame at index inside hardcoded sprites GFX_religious_male_clothes, GFX_religious_male_headgear, etc. instead of the sprites defined in portrait.gfx
Republic[edit]
The rendering is the same as feudal characters, except for headgear and clothing layers.It uses hardcoded sprites GFX_merchant_male_clothes, GFX_merchant_male_headgear, etc. instead of the sprites defined in portrait.gfx
Clothing override[edit]
With patch 2.7 a new mechanism was added to override the clothing layers based on rules.
Crusader Kings 2 Cheats Money
The only examples in vanilla are from
interfaceportraitssociety_clothes.gfx
in dlc070.zipThe general structure is the following:
Notes:
- c0 to c7 are the 'culture indexes' that reference clothing layers (normally driven by properties p3 and p5) to be overridden from the base portraitType:
- c0 = clothes behind
- c1 = headgear behind
- c2 = clothes
- c3 = headgear mid
- c4 = clothes infront
- c5 = headgear
- c6 = headgear behind hairlayer
- c7 = headgear hairlayer
Note: extra culture index cannot be added dynamically by modders.
allow_property_values
block can be used in a similar way to portrait_properties.txt to select the frames for p3 (clothes) and p5 (headgear) in the overridden sprites of thelayer
block.
Portrait scope[edit]
A new scope is used, which is a sort of limited version of a character scope, with conditions prefixed with
portrait_
.![Crusader Kings 2 Change Portrait Cheat Crusader Kings 2 Change Portrait Cheat](https://jianyewiremesh.com/img/ck2-monks-and-mystics-cheats.jpg)
Condition | Type | Used in vanilla | Description | Example |
---|---|---|---|---|
portrait_age | child/oldage | ✓ | Age of character compared to a portrait threshold (child, young, middle or old). As the thresholds are configurable, the numeric values are not directly hardcoded here. | portrait_age > child portrait_age < oldage |
portrait_is_female | bool | ✓ | Whether character is a female | portrait_is_female = yes |
portrait_has_trait | trait | ✓ | Whether character has the trait | portrait_has_trait = vaishnavist_hindu |
portrait_religion | religion | X | [Seen in the .exe - to be tested] | |
portrait_culture | culture | ✓ | Character culture | portrait_culture = greek |
portrait_culture_group | culture_group | ✓ | portrait_culture_group = latin | |
portrait_gfx_culture | ? | X | [Seen in the .exe - to be tested] | |
portrait_government | government | X | Whether character has the specified government. Seems to only work on landed characters. | |
portrait_tier | tier | ✓ | portrait_tier = king | |
portrait_title_tier | ? | X | [Seen in the .exe - to be tested] | |
portrait_society | society | ✓ | portrait_society = monastic_order_benedictine | |
portrait_society_rank | int | ✓ | Character rank if member of a society | portrait_society_rank = 1 |
portrait_clothing | bool | ✓ | Warning: portrait_clothing = no appears to be broken. | portrait_clothing = yes |
portrait_offmap | offmap_power | ✓ | Whether the character rules the given offmap. | portrait_offmap = offmap_china |
portrait_is_patrician | bool | X | Whether the character is in a merchant republic and their employer patrician or has a republic government form. | portrait_is_patrician = yes |
portrait_in_command | bool | X | Whether the character is in command and leading any troops. | portrait_in_command = yes |
Custom ethnicities[edit]
![Change Change](https://i.ytimg.com/vi/bJg_1d5p0_8/hqdefault.jpg)
It is possible to create new ethnicities by creating new assets and/or mixing existing vanilla or DLC assets in portraitTypes layers.
For instance a customgfx ethnicity with norsegfx faces and byzantinegfx clothes.
New assets[edit]
If creating image sprites from scratch, you need to:
- In folder gfx/characters/ create 2 folders (gothic_male & gothic_female) to store the sprites (ex: gothic_male_clothes.dds with 12 frames)
- In folder interface/ create a file portraits_gothic_spritetypes.gfx, with one entry per image sprite:
DLC assets[edit]
Reusing DLC assets is easier than creating new one, but because the DLC assets cannot themselves be bundled into the mod,[2] users who don't own the DLC(s) containing these assets (ex: the Norse Portraits DLC) will see gothicgfx portraits with clothes but no heads.
The reason is that, as soon as some portraitTypes entry for gothicgfx are defined, the game will render them, even if the layers refer to unknown assets and will not show up properlyThe fallback to another ethnicity in graphical_cultures list (or default westerngfx) only happens if no portraitType entry is found at all !
There are some solutions to this problem:
- Bundling the portraitTypes definitions for that ethnicity outside the main mod, in a sub-mod. This way players:
- can activate the sub-mod ONLY if they have the required DLC(s).
- will see the fallback ethnicities if they don't have the required DLC(s)
- Providing fallback portraitTypes for that ethnicities that do not use DLC assets. Players have to download those extra fallback portraitTypes and use the ones for which they don't have the required DLC.
New ethnicity[edit]
To define a new gothicgfx ethnicity, here are the steps:
- In main mod folder common/graphicalculturetypes/ add a new .txt file with the line:
- In main mod common/cultures/00_cultures.txt file, modify or add a new gothic culture with the following lines
Note: if using sub-mods, it is important that the last culturegfx in the list be one of the vanilla base types (occitangfx, muslimgfx, byzantinegfx, westerngfx). In case it is westerngfx, it can be omitted as it is the default, or used as 3 layers of ethnicities. If using fallback portraitTypes, this is not required.
- In sub-mod (or main mod, depending on the solution chosen) folder interface/ add a new file portraits_gothic.gfx, with the following structure (copied from another vanilla portraits.gfx):
- For each portraitType, reference the correct spriteType for each layer (custom, vanilla or DLC spriteType):
Static portraits[edit]
To display static pre-rendered portraits, there are a few techniques:
Misc layer[edit]
Using a miscellaneous layer (for instance blinded_eyes) and add frames for pre-rendered portraits:[3]
- Move the layer to the end of layer list in portraits.gfx
- Increase the number of frames in portrait_sprites.gfx (ex: GFX_character_blinded_eyes)
- Edit sprite (ex: blinded_eyes.dds) to add the extra frame(s)
- Add an entry in portrait_properties.txt for each frame inside the property corresponding to the layer (ex: p10 blinded), with a trigger based on unique trait or character flag:
Occluded flag[edit]
Using occluded = yes in character history; this is used for Muhammad (The Prophet). Big limitation is that everyone with occluded = yes will have same portrait. It uses a single frame texture with hardcoded name Muhammad.tga:
Custom ethnicity[edit]
Using a custom ethnicity, and setting it in character history, or via event using
set_graphical_culture
command.Because the commands requires a culture as argument, a custom culture definition must be added too.Also the ethnicity being randomly inherited from one of the parents at birth, some on_action events may be needed to control things.The steps are:
- Create a custom culture in common/cultures/
- Define a portrait in interface/ for the custom ethnicity, with the fixed frame layer based on p2 property
- Use
set_graphical_culture = special
command andgraphical_culture = specialgfx
condition in events.
External links[edit]
See also[edit]
- Portrait Builder tool
References[edit]
- ↑Forum:779854
- ↑Forum:779854
- ↑Forum:809364
Characters • Dynasties • Provinces • Titles • Bookmarks
Commands • Conditions • Scopes • Modifiers • Events • Decisions
Defines • Game rules • Alternate starts • Religion • Culture • Governments • Traits • Bloodlines • Technology • Laws • Buildings • Casus Belli • Tributaries • Units • Objectives • Disease • Death • Minor titles • Societies • Artifacts • Offmap power • Councillors • Trade routes • Succession • Great works • Nicknames
Map • Graphics • Coats of arms • Portraits • Interface • Minimap • Music • Localisation
Troubleshooting • The Validator • Console commands • Save-game editing • Steam Workshop • EU4 Converter
Retrieved from 'https://ck2.paradoxwikis.com/index.php?title=Portrait_modding&oldid=40988'
A list of some of the most useful commands, including some events, to use if you want an added boost in your AGoT games, or you want to construct the world to your liking before you begin.
Beginning
Welcome to this guide on AGoT Cheats. Below you will find a list of useful commands and events, including how to create bloodlines with traditional claims on duchy, or kingdom level titles and dragon hatching events.Some need-to-know terms in order to understand the guide
# = A Number, eg 6
<Character ID> = Found using the ‘charinfo’ command and hovering over a characters portrait Video001 wireless camera receiver driver for mac.
<Province ID> = Found in the files, for AGOT it’s at /documents/paradoxinteractive/crusaderkingsII/mod/agameofthrones/history/provinces
<Title ID> = Found by using ‘charinfo’ command and hovering of CoA (Coat of Arms, or Heraldry) of a Province. Usually has prefixes;
e_(empire name) for Empire,
k_(kingdom name) for Kingdom
d_(duchy name) for Duchy
b_(barony name) for a Barony (Lordship)
e_(empire name) for Empire,
k_(kingdom name) for Kingdom
d_(duchy name) for Duchy
b_(barony name) for a Barony (Lordship)
<Trait name/ID> = Found using ‘charinfo’ command and hovering over a trait
Any commands you or events you want but are not part of this list, either look up the exact command preceded by ‘ck2 agot’ on a search engine, or DM me and I’ll try to help. 🙂
I hope you find this guide useful,
IB
Vanilla Commands
Vanilla Commandscharinfo = Show detailed Character inf
age <Character ID> (-)(#) = Add or subtract character age.
infamy (-)(#) = Add or subtract players infamy
add_diplomacy <Character ID> (-)(#) = Add or subtract character diplomacy.
add_martial <Character ID> (-)(#) = Add or subtract character martial.
add_intrigue <Character ID> (-)(#) = Add or subtract character intrigue.
add_stewardship <Character ID> (-)(#) = Add or subtract character stewardship.
add_learning <Character ID> (-)(#) = Add or subtract character learning.
add_trait <Trait Name> <Character ID> = Gives character any trait.
remove_trait <Trait Name> <Character ID> = Remove any trait from the character.
cash (-)(#) = Add/subtract player gold, gives 5000 default.
piety (-)(#) = Add/subtract player piety, gives 5000 default.
prestige (-)(#) = Add/subtract player prestige, gives 5000 default.
population (-)(#) = Adds population (Requires Horse Lords DLC)
Manpower (-)(#) = Adds manpower (Requires Horse Lords DLC)
culture <Character ID> <Culture> = Change character culture (for example, “culture italian”).
religion <Character ID> <Religion> = Change character religion (for example, “religion catholic”).
nickname <Nickname> <Character ID> = Change character nickname (nicknames on bottom of page).
add_friend <Character ID> = Befriends the player and specific character (Two character ID’s can be input to befriend two specific characters).
add_lover <Character ID> = the player and specific character become lovers (Two character ID’s can be input to befriend two specific characters).
add_artifact <artifact ID><character ID> = Give artifact to a character
Banish <Character ID> = Banish character.
imprison <Character ID> = Imprison character.
kill <Character ID> = Kill character.
murder <Character ID>(Murderer) <Character ID>(Victim) = Forces attempt at murder, doesn’t promise success.
cuckoo <Character ID>(Mother) <Character ID>(Father) = Impregnates female by male. – hides ‘true father’ and if husband is not father, husband will believe the child is his.
pollinate <Character ID>(Mother) <Character ID>(Father) = Impregnates female by male.
claim <Title ID> <Character ID> = Gives a claim to a character.
Crusader Kings 2 Change Portrait Cheats
give_title <Title ID> <Character ID> = Gives title to character including vassals and everything beneath.
titleowner <Title ID> <Character ID> = Gives title to character
clear = Clears console
charinfo all= Shows debug information about characters including Character ID
hello <Character ID> = Shows character’s page
nextsong = Changes music
observe = Allows you to *observe* the game without playing. Use the play character cheat to get back into gameplay.
play <Character ID> = Makes player change character
allow_laws = Toggle changing laws freely. Only works on crown laws
move (Character ID) = Forces character into your court.
discover_plots = Toggle plot omniscience.
fow = Toggles fog of war.
marry_anyone = Toggle ability to marry anyone.
neg_diplo = Toggles sending of diplomatic proposals that will be refused.
plots_known = Toggle plot visibility
revolt <Province ID> = Causes revolt in province.
help = list of most of the commands. Using ‘help’ followed by a different command, eg ‘help marry_anyone’, will display what the ccommand, in this case marry_anyone, allows you to do. This does NOT work on all commands however.
Vanilla Events
Useful Vanilla events listed below. Dragon events and the such like are not in this section.event 55000 = converts province to your culture. If you character is leader of an army, in any province other than your capital, it will convert that province, otherwise it will only do this to your capital.
event 20000 = converts province to your religion. If you character is leader of an army, in any province other than your capital, it will convert that province, otherwise it will only do this to your capital.
event 64025 = Fall in love with your spouse
event RIP.11705 = Adds an extra building slot to Capital
Dragon Events
Events to do with AGoT dragons.event dragon.1 <Character ID> = find an egg
Crusader Kings 2 Cheats Wiki
event dragon.3 <Character ID> = choice to hatch an egg
event dragon.5 <Character ID> = successfully hatch an egg, works with dragon eggs born from previous dragons you have or your kinsmen may have given you.
event dragon.1099 <character ID (OF THE DRAGON WHO WILL GIVE BIRTH)> = (Do not include the ( ) section of that charcter ID for event dragon 1099. Dragon will produce an egg, which it will then give to its rider, or in the event of it having no rider, will keep itself and eventually hatch itself.
furthermore, dragons that are wounded or maimed have a special trait, different from the one used for human characters. eg wounded is wounded_dragon
Useful AGoT events
This is a short list of useful AGoT Eventsevent unoccupied.4 <province ID> = Colony in that province will increase to Advanced colony, Advanced Colony will go to a normal province.
Crusader Kings 2 Cheat Mods
event traditional_claims.201 = Will form a new bloodline of your current character, with a traditional claim on either the primary duchy level title (if your a duke) or primary kingdom level title (if your a king or emperor). Will not work for lordships/baronies.