• 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.
For adding Icons, The wiki says "In religion_icon_strip.dds, expand the canvas of the image to the right by 32 pixels for each new icon" without saying how to actually *do that.

How is it done?
 
For adding Icons, The wiki says "In religion_icon_strip.dds, expand the canvas of the image to the right by 32 pixels for each new icon" without saying how to actually *do that.

How is it done?
dude you need some basic knowledge of Photoshop.

Edit: Attached is an example, if you want to use it you will need to increase "noOfFrames" in "generalstuff.gfx" by 2.
Edit2: attachment re-uploaded. I forget to pack religion_icon_strip_big.dds.
 

Attachments

  • religion_icon_strip.7z
    314 KB · Views: 2
Last edited:
I'm trying to rework trait effects into modifiers to combat tactics, but running into some problems. The first snippet works in-game, but the second does not. What am I doing wrong?
Code:
leader = {
    trait = holy_warrior
    combat = { # Back to flank
        enemy = { # Enemy flank
            leader = { # Enemy commander
                NOT = { # Religions must not match
                    religion = PREVPREVPREV
                }
            }
        }
    }
}

Code:
leader = {
    trait = holy_warrior
    combat = { # Back to flank
        enemy = { # Enemy flank
            leader = { # Enemy commander
                # PREVPREVPREV is own commander
                PREVPREVPREV = {
                    religion_group = muslim
                }
                NOT = { # Religions must not match
                    religion = PREVPREVPREV
                }
            }
        }
    }
}
 
According to some past modding work, there is a limit to how many PREVs you can stack. If you are using them as a target, you can stack up to 4 PREVs, which is why the first snippet works (the PREVs are used as a target for a religion check and you're only stacking 3). If you are using them as a scope, you can stack up to 2 PREVs, which is why the second snippet doesn't work (the PREVs are used to try to scope to the leader and you're stacking 3).

This should work though:
Code:
leader = {
   trait = holy_warrior
   religion_group = muslim
   combat = { # Back to flank
        enemy = { # Enemy flank
            leader = { # Enemy commander
                NOT = { # Religions must not match
                    religion = PREVPREVPREV
                }
            }
        }
    }
}
 
According to some past modding work, there is a limit to how many PREVs you can stack. If you are using them as a target, you can stack up to 4 PREVs, which is why the first snippet works (the PREVs are used as a target for a religion check and you're only stacking 3). If you are using them as a scope, you can stack up to 2 PREVs, which is why the second snippet doesn't work (the PREVs are used to try to scope to the leader and you're stacking 3).

This should work though:
Code:
leader = {
   trait = holy_warrior
   religion_group = muslim
   combat = { # Back to flank
        enemy = { # Enemy flank
            leader = { # Enemy commander
                NOT = { # Religions must not match
                    religion = PREVPREVPREV
                }
            }
        }
    }
}

I was wondering if there was indeed a harsher limit on scoping with PREVs. Unfortunately, I also want to check for other religions, hence the scructure I was using. Seems I'll have to write slightly less efficient/readable code, unfortunately.

Thanks!
 
How do you define a secret religious society for a modded religion so that it doesn't default to the template? Is it the same as every other society? If so, how do i make my religion use it? As of right now, when I make my character who secretly follows my modded religion the template with undefined local. is used. Do I just define these or will *every modded religion that uses the template copy what I've written? That would basically make my mod uncompatible with any other that adds custom religions.
 
How do you add decision icons? The wiki says you have to define a spriteType in interface/ called "GFX_<decision tag>" but that's clearly incorrect, since I did that and it didn't work.
 
How do you define a secret religious society for a modded religion so that it doesn't default to the template? Is it the same as every other society? If so, how do i make my religion use it? As of right now, when I make my character who secretly follows my modded religion the template with undefined local. is used. Do I just define these or will *every modded religion that uses the template copy what I've written? That would basically make my mod uncompatible with any other that adds custom religions.

You can define your own society or template in societies/ and then put either "dynamic_cult_template = <whatever>" in the religion definition to use that template instead of the regular one, or "secret_cult = <whatever>" to use that specific society as your secret society. It shouldn't affect any other religions.
 
How do you add decision icons? The wiki says you have to define a spriteType in interface/ called "GFX_<decision tag>" but that's clearly incorrect, since I did that and it didn't work.
In interface\ , create a <your_mod_decision>.gfx file with
Code:
### decisions ###
  spriteType = {
    name = "GFX_<decision_tag>"
    texturefile = "gfx\\interface\\<decision_icon>.dds"
  }
and put that .dds image under gfx\interface

Wiki is clearly right.
 
In interface\ , create a <your_mod_decision>.gfx file with
Code:
### decisions ###
  spriteType = {
    name = "GFX_<decision_tag>"
    texturefile = "gfx\\interface\\<decision_icon>.dds"
  }
and put that .dds image under gfx\interface

Wiki is clearly right.

Like this? or am i doing something incorrect as well?

(satanism_expanded_decision_icons.txt uploaded as .txt since .gfx wasnt allowed)
 

Attachments

  • satanism_expanded_decisions.txt
    624 bytes · Views: 3
  • satanism_expanded_decision_icons.txt
    192 bytes · Views: 3