• 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.

xiaofengtiger

Recruit
49 Badges
May 14, 2024
1
0
  • Stellaris: Ancient Relics
  • Stellaris: Synthetic Dawn
  • Age of Wonders III
  • Age of Wonders: Shadow Magic
  • Age of Wonders
  • Age of Wonders II
  • Crusader Kings II: Jade Dragon
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Stellaris: Distant Stars
  • Stellaris: Megacorp
  • Crusader Kings II: Holy Fury
  • Prison Architect
  • Stellaris - Path to Destruction bundle
  • Age of Wonders: Planetfall
  • Age of Wonders: Planetfall Deluxe edition
  • Age of Wonders: Planetfall Premium edition
  • Age of Wonders: Planetfall Season pass
  • Stellaris: Lithoids
  • Age of Wonders: Planetfall - Revelations
  • Stellaris: Federations
  • Crusader Kings III
  • Crusader Kings III: Royal Edition
  • Stellaris: Necroids
  • Stellaris: Nemesis
  • Cities: Skylines Deluxe Edition
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Warlock 2: The Exiled
  • Warlock 2: Wrath of the Nagas
  • Cities: Skylines
  • Crusader Kings II
  • Crusader Kings II: Way of Life
  • Magicka 2
  • Crusader Kings II: Horse Lords
  • Crusader Kings II: Conclave
  • Stellaris
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Crusader Kings II: Reapers Due
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Crusader Kings II: Monks and Mystics
Hi everyone. I am working on my portraits mod now and I face a problem. In vanilla game play, I saw that different pop stratum uses different portrait, e.g., synth 8, the rulers wear red clothes while specialists wear blue ones. Similarly, I want to assign different portrait for the pops based on the stratum. I checked "portraits.txt" under gfx folder, the thing I can see is each portrait group in vanilla species has a parameter "clothes selector", which is defined in "clothes.txt" under assest_selectors folder.

acbaffa977d9fbf2f808a5454fd52e4d.jpg


Now my situation is, all of my portraits are in different posture, which means it is hard to cut the clothes off the characters and put them on another characters. I saw some codes in "clothes.txt" and try to use them in "protraits.txt" but it doesn't work. Besides, I want to assign a group of portraits to a specific pop stratum instead of one single portrait. How should I do?

I find these codes from "clothes.txt", but not working in "protraits.txt", which causes the image missing in most pop slots (but not all of them are missing, very few of pop slots still can show the images, weird.)
Code:
por1 = {is pop category = ruler}
por2 = {OR = {is pop category = worker is pop category = slave is pop category = simple drone}}