Alright, time for an update: I've done some tweaking, and still haven't been able to fix the problem, and at this point I've got absolutely no clue what could be wrong and am on the brink of just giving up on trying to mod portraits entirely. I've tried everything that comes to mind, even ripping bits of code from the base game to see if I could jury rig something together, but that didn't work and neither did looking at other people's mods for information either. I just can't seem to figure out what it could be.
Here's the entirety of my new portraits file. Every other portrait in the game appears, and there's an empty box where these portraits should go, but they don't appear, and I can't find any information other than the tutorial about how this works, and even the sticked 2D tutorial doesn't work for me - it doesn't even create a box under the portraits section.
And here is my species classes file - this seems to work, since it's what caused the box to appear on the selectables list...
...which makes me believe that the problem is in the portraits file somewhere. Looking at the base game, it mentions stuff like entities, but I can't find any information on what they are, or what they are for, and looking at the Alien Suns mod doesn't help either since they're just defined as being the exact same thing as the texture file, and trying that still doesn't make the images appear in game. I thought it might be my images after that, that the game can't read the file for some reason, but I tried using the test image from the 2D tutorial in the place of my images and it still didn't load, so I'm almost certain its a problem with the coding.
So I completely overhauled the entire portraits group section, and it still didn't work. Then I tried like four different variations of the portraits part at the top of the file and it still didn't work
I'd call it impossible if I didn't know that other people had done it, but the tutorial on the wiki for static images is useless and doesn't have any real, useful information for me to use to try and figure this out.
So...I'm completely stumped, now. Does anyone here have any experience with portrait modding?
Here's the entirety of my new portraits file. Every other portrait in the game appears, and there's an empty box where these portraits should go, but they don't appear, and I can't find any information other than the tutorial about how this works, and even the sticked 2D tutorial doesn't work for me - it doesn't even create a box under the portraits section.
Code:
portraits = {
elf_female = { texturefile = "gfx/portraits/elf_female.dds"}
elf_male = { texturefile = "gfx/portraits/elf_male.dds"}
}
portrait_groups = {
elf = {
default = elf_female
game_setup = { #will run with a limited country scope. species and government is set but the country does not actually exist
add = {
trigger = {
ruler = { gender = male }
}
portraits = {
elf_male
}
}
add = {
trigger = {
ruler = { gender = female }
}
portraits = {
elf_female
}
}
#set = {
# trigger = { ... }
# portraits = { ... }
# #using "set =" instead of "add" will first clear any portraits already added
#}
}
#species scope
species = { #generic portrait for a species
add = {
portraits = {
elf_female
elf_male
}
}
}
#pop scope
pop = { #for a specific pop
add = {
portraits = {
elf_female
elf_male
}
}
}
#leader scope
leader = { #scientists, generals, admirals, governor
add = {
trigger = {
gender = female
}
portraits = {
elf_female
elf_male
}
}
add = {
trigger = {
gender = male
}
portraits = {
elf_female
elf_male
}
}
}
#leader scope
ruler = {
add = {
trigger = {
gender = female
}
portraits = {
elf_female
elf_male
}
}
add = {
trigger = {
gender = male
}
portraits = {
elf_female
elf_male
}
}
}
}
}
Code:
MAM = {
portraits = {
"elf"
}
}
So I completely overhauled the entire portraits group section, and it still didn't work. Then I tried like four different variations of the portraits part at the top of the file and it still didn't work
So...I'm completely stumped, now. Does anyone here have any experience with portrait modding?