• 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.
Found another way...

Code:
        any_spouse = {
            remove_spouse = ROOT
            add_lover = ROOT
            set_character_flag = ehemaliger_ehepartner
        }
Ah good, I was just about to post a really complicated alternative. But yours is much better ^^

Edit :
Does anyone know why this decision is not being allowed?
Code:
allow = {
is_playable = yes
ai = no
c_desmond = {
OR = {
any_province_holding = {
holding_type = castle
}
capital_holding = {
holding_type = castle
}
}
}
I originally just had 'any_province_holding', and I've confirmed that c_desmond has a Castle, both as a Capical Holding, and as a normal Holding, but in both cases it comes up as unfulfilled in the requirements. I also tried moving it to the Potential Scope (in case for some reason it did not work with allow, but it just did not appear at all.
That's a tricky one, I had a similar problem a while ago.
The problem is that "province" and "county" are NOT identical in the code, even though ingame they more or less are. A county is still a title, so you need to first scope to its location province (literally a "c_desmond = { location = {...} }" scope) if you want to use any province scopes/conditions on it. It's really not intuitive, but that's how it is.
 
I've a custom offmap that I'm making and I want to set-up the person who would be the ruler in it.

Unfortunately, what I've tried so far hasn't worked.

I've created a character, and I've used variations of the following to try and get it to work. Any ideas?

Code:
               new_character = {
                   offmap_mymod = {
                       set_offmap_holder = ROOT
                   }
               }
 
I've a custom offmap that I'm making and I want to set-up the person who would be the ruler in it.

Unfortunately, what I've tried so far hasn't worked.

I've created a character, and I've used variations of the following to try and get it to work. Any ideas?

Code:
               new_character = {
                   offmap_mymod = {
                       set_offmap_holder = ROOT
                   }
               }
I ran into the same trouble with my attempt to get the existing sons of the Chinese Emperor to inherit, all without success. set_offmap_holder just seems to work oddly, for some reason. I hope you have better luck than I did in figuring it out.
 
I've a custom offmap that I'm making and I want to set-up the person who would be the ruler in it.

Unfortunately, what I've tried so far hasn't worked.

I've created a character, and I've used variations of the following to try and get it to work. Any ideas?

Code:
               new_character = {
                   offmap_mymod = {
                       set_offmap_holder = ROOT
                   }
               }
ROOT is the character receiving the event, you want to use PREV to scope to the new_character.
 
That's a tricky one, I had a similar problem a while ago.
The problem is that "province" and "county" are NOT identical in the code, even though ingame they more or less are. A county is still a title, so you need to first scope to its location province (literally a "c_desmond = { location = {...} }" scope) if you want to use any province scopes/conditions on it. It's really not intuitive, but that's how it is.
Awesome, thanks! That worked perfectly.
 
I've tried doing this (except in a mod folder) and it doesn't seem to work; created a new dynasty in common/dynasties, new character in history/characters and finally an edited history/titles file. Started game and was same old character ruling it; actually starting the game caused a crash.

Then I tried copying the entire history/titles folder, except with one edited titles file, and using replace_path... and all provinces have no rulers?

Need help. I don't want to edit base game files if I can help it.
Well, you definitely shouldn't be using replace_path for such minor changes. In fact, you don't even need to edit vanilla files, except the title.

In the documents "mod" folder, you should have a folder named for your mod (I'll use "my_mod"). The folders/files should be like this:
Code:
my_mod
    common
        dynasties
            my_mod_dyns.txt # this file has only your new dynasties.
    history
        characters
            my_mod_chars.txt # this file has only your new characters.
        titles
            <vanilla title>.txt # this files is copied from the game files and edited to put your character in charge of the title at the right date.
In the title file, you just need to copy a date clause, changing the date & holder to the date & character that you need. I don't know if it matters, but keep it sorted properly by date.
 
So I have an odd issue and I'm wondering if anyone else has ever dealt with the same thing. The mod I'm working on has a tendency to just randomly crash a few times during start-up but then load just fine after those few crashes. The log files don't provide much help and I'm at a loss as to what is wrong that'd cause it to crash only sometimes. The crashes tend to happen around 'creating borders' and 'generating trees' though I'm not exactly sure what to look for that'd only cause random crashes.
 
What does your mod do?

I basically just combined aspects of Tianxia (for the extended map) and HIP for my own personal gameplay. In a way I'm wanting to assume the crashing is because of 1 of 2 reasons. I have 2100 provinces so maybe the game just can't handle that many provinces at startup very well (it runs fine in gameplay though) or maybe it has to do with the map resolution (it's 3776x2048) as there is the odd graphical issue at the edge and I was never quite able to figure out what's causing that as the colormaps and other map files look fine.
 
Can anyone explain how I can remove the 30 year hard cooldown on Crusades, especially in the CK2+ mod, if there would be any difference?
I've tried altering the "crusade_timer" to 1 day but to no avail.
The specific problem regardless is that the claim seems to not be available outside of 30 years. You call the crusade, and then the button just disappears until the 30 years has passed.
 
Last edited:
I'm trying to make a trait event-exclusive, meaning I want it to never appear except when specifically gained through an event. I've already tried adding "random = no" and "customizer = no", but the trait keeps cropping up on characters even when all events pertaining to them were removed from the mod/game.

Anyone ever encounter this issue before?
 
Can anyone explain how I can remove the 30 year hard cooldown on Crusades, especially in the CK2+ mod, if there would be any difference?
I've tried altering the "crusade_timer" to 1 day but to no avail.
The specific problem regardless is that the claim seems to not be available outside of 30 years. You call the crusade, and then the button just disappears until the 30 years has passed.
defines.lua has this line:
CRUSADE_CREATION_MONTH_DELAY = 360, -- Months from the end of one Crusade before the AI will call a new one
 
Greetings... again ^^.

How do I scope only to the own court, my prisoners should also be inside the scope, but no vassals or their court and not the court of my liege, even if I am at his court for some activities like burning some heretics etc. The personal at my court that is away because they are prisoners should not be part of the scope.
 
I'm trying to make a trait event-exclusive, meaning I want it to never appear except when specifically gained through an event. I've already tried adding "random = no" and "customizer = no", but the trait keeps cropping up on characters even when all events pertaining to them were removed from the mod/game.

Anyone ever encounter this issue before?
birth = 0 is probably what you're looking for.

From the Wiki :
Given number out of every 10000 characters born will receive this trait, (e.g., 100 = 1%)

whereas 'random' only applies to generated, from what I understand :
With random = no, the trait will not be given to randomly-generated characters (when the game starts or when characters are spawned other than by being born). random = yes is the default. Specific semantics vary with the general trait type.
 
Greetings... again ^^.

How do I scope only to the own court, my prisoners should also be inside the scope, but no vassals or their court and not the court of my liege, even if I am at his court for some activities like burning some heretics etc. The personal at my court that is away because they are prisoners should not be part of the scope.

Code:
any_courtier = { }
Would scope only to the characters court including his/her prisoners. Vassals are only included if he/she is a councillor.

If one of your courtiers gets imprisoned he/she is automatically removed from your court.

Now if you want to scope to a councillor's court and not his leige's you'll have to use something like this:

Code:
any_realm_character ={
      limit = { host = { character = ROOT } }
      #effects here
}
Substitute ROOT with whatever scope you're using in the event.
 
Hey, guys, I'm having a problem with title histories.
So I created a couple of new duchies, but I can't give their provinces to other leaders.
For example, in a county's history file early on I write:
Code:
liege="d_exampleduchy"
But later, I want to give that county away to another leader, so I write
Code:
liege="d_anotherexampleduchy"
When I run the game, in the selection screen everything looks fine, looks like it worked. But when I start the game, the de-jure duchy liege has all of the counties anyway.
What could be the problem?