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

GodModder

First Lieutenant
39 Badges
May 10, 2021
282
41
  • Shadowrun Returns
  • Stellaris: Leviathans Story Pack
  • Crusader Kings II: Monks and Mystics
  • Stellaris - Path to Destruction bundle
  • Stellaris: Synthetic Dawn
  • Age of Wonders III
  • Crusader Kings II: Jade Dragon
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Stellaris: Distant Stars
  • Stellaris: Digital Anniversary Edition
  • Shadowrun: Hong Kong
  • Stellaris: Megacorp
  • Crusader Kings II: Holy Fury
  • Stellaris: Ancient Relics
  • Stellaris: Lithoids
  • Stellaris: Federations
  • Crusader Kings III
  • Stellaris: Necroids
  • Stellaris: Nemesis
  • Crusader Kings II: Way of Life
  • 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
  • Majesty 2 Collection
  • Crusader Kings II
  • Pillars of Eternity
  • Magicka 2
  • Crusader Kings II: Horse Lords
  • Crusader Kings II: Conclave
  • Stellaris
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Crusader Kings II: Reapers Due
Did you unpause the game? Opinion modifiers aren't removed otherwise instantly, but only after at least one day passes.
Beyond that, marriages may also provide non-aggression pacts by other, most likely hardcoded, means.
You could try adding a new opinion modifiers with disable_non_aggression_pacts = yes.
Can the default "Break Non-Aggression Pact" diplomatic/targeted decision be found in the files somewhere, or is it hard-coded? If it's not hard-coded, looking at how that works would be helpful. I've checked a few of the more likely-sounding files in \decisions\ and not found anything.
 

Whizzer

CKPlus Triumvirate
77 Badges
Jun 17, 2014
1.622
795
  • Semper Fi
  • Hearts of Iron III Collection
  • Heir to the Throne
  • King Arthur II
  • Knights of Pen and Paper +1 Edition
  • Leviathan: Warships
  • The Kings Crusade
  • Magicka
  • Victoria: Revolutions
  • Rome Gold
  • Cities in Motion
  • Sengoku
  • Sword of the Stars
  • Sword of the Stars II
  • Victoria 2
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • Rome: Vae Victis
  • Warlock: Master of the Arcane
  • Europa Universalis IV: Mare Nostrum
  • Hearts of Iron III
  • A Game of Dwarves
  • Cities in Motion 2
  • Crusader Kings II
  • 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: Sword of Islam
  • Dungeonland
  • Crusader Kings II: Sunset Invasion
  • Europa Universalis III
  • Divine Wind
  • Hearts of Iron III: Their Finest Hour
  • For the Motherland
  • Europa Universalis IV: Rights of Man
  • Crusader Kings II: Reapers Due
  • Crusader Kings II: Conclave
  • Crusader Kings II: Monks and Mystics
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Way of Life
  • Magicka: Wizard Wars Founder Wizard
  • Europa Universalis IV: El Dorado
  • Cities: Skylines
  • War of the Roses
  • Crusader Kings III
  • Europa Universalis IV
Can the default "Break Non-Aggression Pact" diplomatic/targeted decision be found in the files somewhere, or is it hard-coded? If it's not hard-coded, looking at how that works would be helpful. I've checked a few of the more likely-sounding files in \decisions\ and not found anything.

See break_non_aggression_pact in rip_various_decisions.txt. You can see it applies a temporary opinion modifier that breaks non-aggression pacts. That means the non-aggression pact is silently restored when that opinion modifier expires.
 

GodModder

First Lieutenant
39 Badges
May 10, 2021
282
41
  • Shadowrun Returns
  • Stellaris: Leviathans Story Pack
  • Crusader Kings II: Monks and Mystics
  • Stellaris - Path to Destruction bundle
  • Stellaris: Synthetic Dawn
  • Age of Wonders III
  • Crusader Kings II: Jade Dragon
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Stellaris: Distant Stars
  • Stellaris: Digital Anniversary Edition
  • Shadowrun: Hong Kong
  • Stellaris: Megacorp
  • Crusader Kings II: Holy Fury
  • Stellaris: Ancient Relics
  • Stellaris: Lithoids
  • Stellaris: Federations
  • Crusader Kings III
  • Stellaris: Necroids
  • Stellaris: Nemesis
  • Crusader Kings II: Way of Life
  • 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
  • Majesty 2 Collection
  • Crusader Kings II
  • Pillars of Eternity
  • Magicka 2
  • Crusader Kings II: Horse Lords
  • Crusader Kings II: Conclave
  • Stellaris
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Crusader Kings II: Reapers Due
See break_non_aggression_pact in rip_various_decisions.txt. You can see it applies a temporary opinion modifier that breaks non-aggression pacts. That means the non-aggression pact is silently restored when that opinion modifier expires.
Aha! Thank you. Yes, that definitely implies that adding a new opinion modifier with the clause to disable pacts will work. (I know I said I was going to get right on that, but then life happened.) I'm surprised that the broken pact would actually restore itself.

Is it possible to put an unlimited duration on opinion modifiers by the way? The wiki only lists days, months, and years. It doesn't mention the possibility of "duration = -1" that you can use for things like character modifiers to make them permanent.

Update - the new opinion modifier with the clause to disable non aggression pacts works.
 
Last edited:

Whizzer

CKPlus Triumvirate
77 Badges
Jun 17, 2014
1.622
795
  • Semper Fi
  • Hearts of Iron III Collection
  • Heir to the Throne
  • King Arthur II
  • Knights of Pen and Paper +1 Edition
  • Leviathan: Warships
  • The Kings Crusade
  • Magicka
  • Victoria: Revolutions
  • Rome Gold
  • Cities in Motion
  • Sengoku
  • Sword of the Stars
  • Sword of the Stars II
  • Victoria 2
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • Rome: Vae Victis
  • Warlock: Master of the Arcane
  • Europa Universalis IV: Mare Nostrum
  • Hearts of Iron III
  • A Game of Dwarves
  • Cities in Motion 2
  • Crusader Kings II
  • 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: Sword of Islam
  • Dungeonland
  • Crusader Kings II: Sunset Invasion
  • Europa Universalis III
  • Divine Wind
  • Hearts of Iron III: Their Finest Hour
  • For the Motherland
  • Europa Universalis IV: Rights of Man
  • Crusader Kings II: Reapers Due
  • Crusader Kings II: Conclave
  • Crusader Kings II: Monks and Mystics
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Way of Life
  • Magicka: Wizard Wars Founder Wizard
  • Europa Universalis IV: El Dorado
  • Cities: Skylines
  • War of the Roses
  • Crusader Kings III
  • Europa Universalis IV
Is it possible to put an unlimited duration on opinion modifiers by the way? The wiki only lists days, months, and years. It doesn't mention the possibility of "duration = -1" that you can use for things like character modifiers to make them permanent.

Not that I know, but you can specify an opinion modifier to last for centuries, probably even millennia.
 

Darth_Mouse69

Corporal
3 Badges
Jun 30, 2021
47
3
  • Crusader Kings II
  • Hearts of Iron IV: Cadet
  • Imperator: Rome
Why is it when I create a character in a mod, he wont appear in the game

212850 = {
name="Bedrich"
dynasty=1000061500
martial=4
diplomacy=6
intrigue=7
stewardship=7
religion = catholic
culture = english
trait="craven"
trait="envious"
trait="flamboyant_schemer"
1066.1.1={
birth="1066.1.1"
}
}


1000061500 = {
name="Yeo"
culture = english

}
 
Last edited:

Silversweeeper

Ichi no Hito
58 Badges
Aug 24, 2012
3.943
2.840
  • Stellaris - Path to Destruction bundle
  • 500k Club
  • Europa Universalis IV: El Dorado
  • Magicka: Wizard Wars Founder Wizard
  • Crusader Kings II: Way of Life
  • Pillars of Eternity
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Conclave
  • Europa Universalis IV: Mandate of Heaven
  • Stellaris
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Crusader Kings II: Monks and Mystics
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Rights of Man
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Stellaris: Distant Stars
  • Stellaris: Nemesis
  • Stellaris: Necroids
  • Stellaris: Federations
  • Stellaris: Lithoids
  • Stellaris: Ancient Relics
  • Imperator: Rome Sign Up
  • Imperator: Rome Deluxe Edition
  • Crusader Kings II: Holy Fury
  • Stellaris: Megacorp
  • Europa Universalis IV
  • Stellaris: Apocalypse
  • Stellaris: Humanoids Species Pack
  • Europa Universalis IV: Cradle of Civilization
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Europa Universalis IV: Mare Nostrum
  • Crusader Kings II: Charlemagne
  • Stellaris Sign-up
  • Europa Universalis IV: Third Rome
  • Europa Universalis IV: Res Publica
  • Crusader Kings II
  • 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
  • Europa Universalis III Complete
  • Magicka
Why is it when I create a character in a mod, he wont appear in the game

1000061500 = {
name="Yeo"
culture = english

}

You're missing a religion and a scripted birth date, at the very least.
 

Darth_Mouse69

Corporal
3 Badges
Jun 30, 2021
47
3
  • Crusader Kings II
  • Hearts of Iron IV: Cadet
  • Imperator: Rome
Why is it when I create a character in a mod, he wont appear in the game

212850 = {
name="Bedrich"
dynasty=1000061500
martial=4
diplomacy=6
intrigue=7
stewardship=7
religion = catholic
culture = english
trait="craven"
trait="envious"
trait="flamboyant_schemer"
1066.1.1={
birth="1066.1.1"
}
}


1000061500 = {
name="Yeo"
culture = english

}
Isnt there the religion and birth date
 

Silversweeeper

Ichi no Hito
58 Badges
Aug 24, 2012
3.943
2.840
  • Stellaris - Path to Destruction bundle
  • 500k Club
  • Europa Universalis IV: El Dorado
  • Magicka: Wizard Wars Founder Wizard
  • Crusader Kings II: Way of Life
  • Pillars of Eternity
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Conclave
  • Europa Universalis IV: Mandate of Heaven
  • Stellaris
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Crusader Kings II: Monks and Mystics
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Rights of Man
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Stellaris: Distant Stars
  • Stellaris: Nemesis
  • Stellaris: Necroids
  • Stellaris: Federations
  • Stellaris: Lithoids
  • Stellaris: Ancient Relics
  • Imperator: Rome Sign Up
  • Imperator: Rome Deluxe Edition
  • Crusader Kings II: Holy Fury
  • Stellaris: Megacorp
  • Europa Universalis IV
  • Stellaris: Apocalypse
  • Stellaris: Humanoids Species Pack
  • Europa Universalis IV: Cradle of Civilization
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Europa Universalis IV: Mare Nostrum
  • Crusader Kings II: Charlemagne
  • Stellaris Sign-up
  • Europa Universalis IV: Third Rome
  • Europa Universalis IV: Res Publica
  • Crusader Kings II
  • 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
  • Europa Universalis III Complete
  • Magicka
Oh, it's a character and a dynasty, not two characters?

- Is the dynasty defined in a file in the correct folder for that, and does it have a unique id?

- Is the id 212850 already used by another character (that's loaded prior to this character; you'd have other issues if they were loaded later...)? Vanilla has characters with higher ids, so it could conceivably be taken if that character hasn't been removed.

- Are you starting when that character should be around (1066.1.1 or later)?

- Are you checking for them widely enough? Unless you've landed them somewhere, they're not necessarily going to be in a specific place if defined without an employer, so e.g. just checking realm characters might not be enough.

- Are you certain you've not messed up anything else? Extra/missing brackets/quotes/equal signs/etc. somewhere earlier in the relevant files can mess things up.
 

Darth_Mouse69

Corporal
3 Badges
Jun 30, 2021
47
3
  • Crusader Kings II
  • Hearts of Iron IV: Cadet
  • Imperator: Rome
Oh, it's a character and a dynasty, not two characters?

- Is the dynasty defined in a file in the correct folder for that, and does it have a unique id?

- Is the id 212850 already used by another character (that's loaded prior to this character; you'd have other issues if they were loaded later...)? Vanilla has characters with higher ids, so it could conceivably be taken if that character hasn't been removed.

- Are you starting when that character should be around (1066.1.1 or later)?

- Are you checking for them widely enough? Unless you've landed them somewhere, they're not necessarily going to be in a specific place if defined without an employer, so e.g. just checking realm characters might not be enough.

- Are you certain you've not messed up anything else? Extra/missing brackets/quotes/equal signs/etc. somewhere earlier in the relevant files can mess things up.
ah there’s only the dynasty and character files, I’ll try adding the employer so they will be present in my court
 

Herakles8910

Private
83 Badges
Jul 29, 2016
11
0
  • Crusader Kings II: Charlemagne
  • Stellaris: Galaxy Edition
  • Europa Universalis IV: Res Publica
  • Majesty 2 Collection
  • Europa Universalis IV: Mare Nostrum
  • Europa Universalis IV: Call to arms event
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Art of War
  • Crusader Kings II
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: The Republic
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Legacy of Rome
  • Hearts of Iron IV: Death or Dishonor
  • Crusader Kings II: Conclave
  • Stellaris
  • Stellaris: Galaxy Edition
  • Europa Universalis IV: Cossacks
  • Stellaris: Galaxy Edition
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV: Colonel
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Rights of Man
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Hearts of Iron IV: Together for Victory
  • Crusader Kings II: Monks and Mystics
  • Europa Universalis IV: Mandate of Heaven
  • Age of Wonders III
  • Victoria 2
  • Europa Universalis IV
  • Stellaris: Humanoids Species Pack
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Distant Stars
  • Europa Universalis IV: Rule Britannia
  • Stellaris: Apocalypse
  • Europa Universalis IV: Cradle of Civilization
  • Hearts of Iron IV: No Step Back
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Golden Century
  • Crusader Kings II: Holy Fury
  • Europa Universalis IV: Dharma
  • Europa Universalis IV: El Dorado
  • Mount & Blade: With Fire and Sword
  • Crusader Kings II: Way of Life
  • Pillars of Eternity
Does anyone happen to know what checks the force_host command exactly bypasses (when compared to move_character)? If I understand correctly, the move_character command performs some checks of its own, of which are mostly sanity checks (such as whether the character to be moved is not a ruler and is alive, and whether the character that the moving character moves to has a court, i.e. is a ruler). But these sanity checks seem mandatory and unbypassable (i.e. dead characters can't move to a new liege and characters can't move to someone who doesn't have a court), are there some other checks that the game performs (that are not as mandatory perhaps) that the bypass function of the force_host command is intended for?
 
Last edited:

kiannameiou

Second Lieutenant
1 Badges
Apr 27, 2021
157
18
  • Crusader Kings II
I want to create a decision to deactivate selected title, and reactivate selected title;

Code:
destroy_deactivate_title = {
        ai = no

        filter = owned

        from_potential = {
            has_character_flag = immortal_check
        }

        potential = {
            tier = EMPEROR
          
        }

        allow = {
            tier = EMPEROR
          
        }

        effect = {
            destroy_landed_title = THIS
            hidden_tooltip = { activate_title = { title = THIS status = no } }
        }
      
        revoke_allowed = {
            always = no
        }

        ai_will_do = {
            factor = 0
        }
    }
  
    activate_title = {
        ai = no

      

        from_potential = {
            has_character_flag = immortal_check
        }

        potential = {
            tier = EMPEROR
          
        }

        allow = {
            tier = EMPEROR
          
        }

        effect = {
          
            hidden_tooltip = { activate_title = { title = THIS status = yes } }
        }
      
        revoke_allowed = {
            always = no
        }

        ai_will_do = {
            factor = 0
        }
    }

There appears to be no condition to check if a title has already been deactivated? Is it possible to have it?
What is the correct code block to transfer all de jure titles of the deactivated title to my primary title?
 
Last edited:

tsf4

General
56 Badges
May 31, 2012
2.322
724
30
  • Crusader Kings II: Charlemagne
  • Europa Universalis IV: Mare Nostrum
  • Victoria 2: A House Divided
  • Sengoku
  • Semper Fi
  • Europa Universalis IV: Res Publica
  • Heir to the Throne
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III
  • For the Motherland
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Art of War
  • Divine Wind
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II
  • 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
  • Europa Universalis III
  • Europa Universalis III: Chronicles
  • Europa Universalis IV: Rights of Man
  • Crusader Kings II: Monks and Mystics
  • Europa Universalis IV: Mandate of Heaven
  • Imperator: Rome
  • Age of Wonders: Planetfall
  • PDXCon 2017 Awards Winner
  • Age of Wonders III
  • Europa Universalis IV: Cradle of Civilization
  • Imperator: Rome Sign Up
  • Europa Universalis IV: Rule Britannia
  • Europa Universalis IV: Dharma
  • Crusader Kings II: Holy Fury
  • Europa Universalis IV: Golden Century
  • Crusader Kings II: Reapers Due
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV Sign-up
  • Stellaris
  • Crusader Kings II: Conclave
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Way of Life
  • Crusader Kings III
  • Europa Universalis IV: El Dorado
  • 500k Club
  • Victoria 2
Is there no way to set all tech points of just my own char to exactly 0?
Tech points are tied to a province. That said, if you wanted to start with your county as 0.0 tech, you could keep the other counties listed along with the other duchies and make a new entry for your county with tech as 0.0, using the regular entry for duchies as a base.
 

kiannameiou

Second Lieutenant
1 Badges
Apr 27, 2021
157
18
  • Crusader Kings II
I mean I was getting overflow tech pts from having a large empire - all of europe and steppe. So i had neg econ tech pt somehow. I tech up the capital of a duchy before granting it. So if there was a way to set back everything in game to 0 to even out it would be nice
 

tsf4

General
56 Badges
May 31, 2012
2.322
724
30
  • Crusader Kings II: Charlemagne
  • Europa Universalis IV: Mare Nostrum
  • Victoria 2: A House Divided
  • Sengoku
  • Semper Fi
  • Europa Universalis IV: Res Publica
  • Heir to the Throne
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III
  • For the Motherland
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Art of War
  • Divine Wind
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II
  • 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
  • Europa Universalis III
  • Europa Universalis III: Chronicles
  • Europa Universalis IV: Rights of Man
  • Crusader Kings II: Monks and Mystics
  • Europa Universalis IV: Mandate of Heaven
  • Imperator: Rome
  • Age of Wonders: Planetfall
  • PDXCon 2017 Awards Winner
  • Age of Wonders III
  • Europa Universalis IV: Cradle of Civilization
  • Imperator: Rome Sign Up
  • Europa Universalis IV: Rule Britannia
  • Europa Universalis IV: Dharma
  • Crusader Kings II: Holy Fury
  • Europa Universalis IV: Golden Century
  • Crusader Kings II: Reapers Due
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV Sign-up
  • Stellaris
  • Crusader Kings II: Conclave
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Way of Life
  • Crusader Kings III
  • Europa Universalis IV: El Dorado
  • 500k Club
  • Victoria 2
Ok. I don't know how to set tech back during game, I admit I have never seen that done in my 5+ years of modding the game.