• We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.

josken1996

Recruit
9 Badges
Apr 3, 2022
4
0
  • Crusader Kings II
  • Crusader Kings II: Sword of Islam
  • Stellaris
  • Hearts of Iron IV: Cadet
  • Surviving Mars
  • Hearts of Iron IV: Death or Dishonor
  • Hearts of Iron IV: Expansion Pass
  • Surviving Mars: Digital Deluxe Edition
  • Crusader Kings III
This is a thread for searching help to achieve the static portraits's clothes changing function,and provide different clothes for different pops just like vanilla game.
I attempt to create an "empty" entity with PdxMeshPortrait, PdxMeshPortraitClothes, and PdxMeshPortraitHair shader,which means that everyone can add static portraits to it as clothes.

Howerver, it is hard for me to finish the job over code in Maya.
Is there anyone could help me to create an "empty" entity, so that everyone could use static portraits with appearence changing like vanilla game?
Many thanks.

ps. I made an example for test below to download.
And the picture shows that I addapt this idea with vanilla human female entity.(Obversly unusable)
The core code is below.

################

portraits = {
turumiku_osaka_female_01 = {
entity = "portrait_human_female_entity" #replace with an "empty" entity.
clothes_selector = "turumiku_osaka_female_01_clothes"
attachment_selector = "turumiku_osaka_female_01_piercing"
greeting_sound = "turumiku_osaka_female_01_greetings"
custom_attachment_label = "PIERCING"
}
}

turumiku_osaka_female_01_clothes = {
default = "gfx/models/portraits/turumiku/osaka_female_01.png"
game_setup = {
default = "gfx/models/portraits/turumiku/osaka_female_01.png"
}
species = {
default = "gfx/models/portraits/turumiku/osaka_female_01.png"
}
pop = {
default = "gfx/models/portraits/turumiku/osaka_female_01_suit.png"
}
leader = {
default = "gfx/models/portraits/turumiku/osaka_female_01_suit.png"
"gfx/models/portraits/turumiku/osaka_female_01_china.png" = { leader_class = scientist }
}
ruler = {
default = "gfx/models/portraits/turumiku/osaka_female_01_suit.png"
"gfx/models/portraits/turumiku/osaka_female_01_china.png" = { owner = { has_generic_government = yes NOT = { has_authority = auth_imperial } } }
}
}
 

Attachments

  • 1705816969859.png
    1705816969859.png
    522,9 KB · Views: 0
  • 1705816998177.png
    1705816998177.png
    531,1 KB · Views: 0
  • Dynamic Animation Portrait(example)s.zip
    512,5 KB · Views: 0