I had an idea that it could be cool if the clothes of the portraits would be determined by the person's religion instead of the culture he or she has born into. This way if you are playing an andalusian family who converted to christianity hundred of years ago, you would wear the christian garb while retaining your family's facial features and skin tone. I think that this would be more realistic and add variety to the portraits (not that there is not enough of it already). So what I did was, I looked at portrait_properties.txt that is talked about in a dev diary. Next I put all the headgear in the game into a single .dds file and added the new spritefile to portraits.gfx called "GFX_male_headgear5". Then removed the previous headgears (p5) file from all the males of every portrait culture type and replaced with the new centralized one, containing 29 frames. Then I edited portrait_properties.txt so that there were 0-28 possible headgears for everyone with
For all headgear from 0 to 15 which contain the headgears for western culture.
And 16 to 28 for all the headgear for eastern culture.
This worked well for the first 2 of the muslim headgear, as I looked around and saw that kaliphs had their caliph hats, but unfortunately dukes had the second christian king crowns. It worked also for the western culture group people, as I wrote "religion sunni" to the panel wile playing as the kaiser and saw his headgear changed to the kaliph turban.
So what I am asking is that is there a limit to the number of spirtes that are allowed in a spritefile, because none of the hats after the 17th hat appeared on the muslim heads and were instead replaced by christian ones. It seems a bit strange that it ends at 17, but the backgrounds have 21 sprites. Other than that I don't know what went wrong, my additional modifiers sound pretty sound to me, of course no hats should appear on pagan heads, but I was only testing so far. Can anyone give me some advice on this?
modifier = {
factor 0
NOT = { religion_group = christian }
}
factor 0
NOT = { religion_group = christian }
}
modifier = {
factor 0
NOT = { religion_group = muslim }
}
factor 0
NOT = { religion_group = muslim }
}
This worked well for the first 2 of the muslim headgear, as I looked around and saw that kaliphs had their caliph hats, but unfortunately dukes had the second christian king crowns. It worked also for the western culture group people, as I wrote "religion sunni" to the panel wile playing as the kaiser and saw his headgear changed to the kaliph turban.
So what I am asking is that is there a limit to the number of spirtes that are allowed in a spritefile, because none of the hats after the 17th hat appeared on the muslim heads and were instead replaced by christian ones. It seems a bit strange that it ends at 17, but the backgrounds have 21 sprites. Other than that I don't know what went wrong, my additional modifiers sound pretty sound to me, of course no hats should appear on pagan heads, but I was only testing so far. Can anyone give me some advice on this?
Last edited: