• Crusader Kings II Expansion Subscription

    Subscribe to the CK II Expansion and enjoy unlimited access to 13 major expansions and more!


  • Paradox Space Exploration Sale has arrived! Up to 75% off

    How's the space on your hard drive? Paradox wants to challenge your galaxy brain with a great selection of space exploration games - and they're all on sale for some very down-to-earth prices! The sale runs from May 4th until May 10th at 17:00 CEST / 08:00 PDT.


    May 4th - May 10th
  • Crusader Kings III Available Now!

    The realm rejoices as Paradox Interactive announces the launch of Crusader Kings III, the latest entry in the publisher’s grand strategy role-playing game franchise. Advisors may now jockey for positions of influence and adversaries should save their schemes for another day, because on this day Crusader Kings III can be purchased on Steam, the Paradox Store, and other major online retailers.


    Real Strategy Requires Cunning

Silversweeeper

Ichi no Hito
57 Badges
Aug 24, 2012
3.506
2.146
  • Crusader Kings II: Monks and Mystics
  • Pillars of Eternity
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Conclave
  • Stellaris
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Rights of Man
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Europa Universalis IV: Common Sense
  • Stellaris - Path to Destruction bundle
  • Europa Universalis IV: Mandate of Heaven
  • Europa Universalis IV: Cradle of Civilization
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Stellaris: Distant Stars
  • Stellaris: Megacorp
  • Crusader Kings II: Holy Fury
  • Imperator: Rome Deluxe Edition
  • Stellaris: Ancient Relics
  • Imperator: Rome Sign Up
  • Crusader Kings II: Way of Life
  • Magicka: Wizard Wars Founder Wizard
  • Europa Universalis IV: El Dorado
  • 500k Club
  • Europa Universalis IV
  • Europa Universalis III Complete
  • Stellaris: Lithoids
  • Stellaris: Federations
  • Europa Universalis III Complete
  • Stellaris: Necroids
  • 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
  • Europa Universalis III
I gave it the name "I", just the letter I. The sequence of the localization files would be I, II, III, IV, etc.

In that case you most likely will end up with a file that is read prior to the file you are trying to overwrite. Change the name to e.g. "zI" and it probably will work.
 
  • 1
  • 1
Reactions:

Zaltys

Major
73 Badges
Jun 5, 2009
718
157
  • Sword of the Stars II
  • King Arthur II
  • Lead and Gold
  • Magicka
  • Majesty 2
  • Magicka 2
  • Pirates of Black Cove
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Sword of the Stars
  • Knights of Pen and Paper +1 Edition
  • Supreme Ruler 2020
  • Starvoid
  • Teleglitch: Die More Edition
  • Pillars of Eternity
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • Stellaris Sign-up
  • Europa Universalis IV: Pre-order
  • Pride of Nations
  • Crusader Kings II: Sword of Islam
  • 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: Sunset Invasion
  • Europa Universalis III Complete
  • Divine Wind
  • Europa Universalis IV
  • Cities in Motion
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Hearts of Iron III
  • Heir to the Throne
  • Impire
  • Europa Universalis IV: Common Sense
  • Prison Architect
  • Mount & Blade: With Fire and Sword
  • Mount & Blade: Warband
  • Crusader Kings II: Horse Lords
  • Magicka: Wizard Wars Founder Wizard
  • Europa Universalis IV: El Dorado
  • 500k Club
  • Warlock: Master of the Arcane
  • Victoria 2
  • Europa Universalis III Complete
  • Europa Universalis III Complete
There's still no way to mod how the AI characters pick their spouses, is there?
I'm working on a small fairy tales-type of mod, and I'm getting kind of annoyed by how often the AI rulers marry evil witches and such. That's not how such tales usually go.

I don't want to completely block that, it should happen occasionally. But do you happen to have any ideas on how to make them less desirable for marriage? They have pretty good stats overall, which is probably why they get picked so often.
 
Last edited:

Keizer Harm

Swamp German
40 Badges
Jan 28, 2013
2.665
3.553
  • Crusader Kings III: Royal Edition
  • Crusader Kings II: Sunset Invasion
  • Victoria 2
What is the easiest way to increase the vassal limit for one particular country? (either by modding or save-game editing) Could I put it in a modifier to the title, or maybe make a law that no country can institute or repeal but this one has from the start?
 

Thezezeal

Captain
3 Badges
Dec 28, 2014
375
3
  • Crusader Kings II: Horse Lords
  • Crusader Kings II: Monks and Mystics
  • Crusader Kings II: Charlemagne
There's still no way to mod how the AI characters pick their spouses, is there?
I'm working on a small fairy tales-type of mod, and I'm getting kind of annoyed by how often the AI rulers marry evil witches and such. That's not how such tales usually go.

I don't want to completely block that, it should happen occasionally. But do you happen to have any ideas on how to make them less desirable for marriage? They have pretty good stats overall, which is probably why they get picked so often.

Could you maybe give them a hidden Character Modifier producing a negative general opinion?
 

LeSingeAffame

Loyal ally to Durcorach the Black Drake
72 Badges
Sep 16, 2012
3.563
2.019
  • Crusader Kings II
  • Europa Universalis IV
  • Europa Universalis 4: Emperor
  • Crusader Kings III
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: The Republic
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Horse Lords
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: Conclave
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Way of Life
  • Crusader Kings II: Reapers Due
  • Crusader Kings II: Jade Dragon
  • Crusader Kings II: Monks and Mystics
  • Crusader Kings II: Holy Fury
  • Stellaris
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Stellaris: Synthetic Dawn
  • Stellaris: Leviathans Story Pack
  • Stellaris - Path to Destruction bundle
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Distant Stars
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Stellaris: Megacorp
  • Hearts of Iron IV: Expansion Pass
  • Imperator: Rome
  • Imperator: Rome Deluxe Edition
  • Imperator: Rome Sign Up
  • Imperator: Rome - Magna Graecia
Do scripted triggers have any effect on performances ? I'm currently trying to change some triggers in a mod to more compact scripted triggers, in order to see how much it would reduce storage space needed for the mod. But if scripted triggers are known to reduce the game speed, then I won't bother doing it
 

Zaltys

Major
73 Badges
Jun 5, 2009
718
157
  • Sword of the Stars II
  • King Arthur II
  • Lead and Gold
  • Magicka
  • Majesty 2
  • Magicka 2
  • Pirates of Black Cove
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Sword of the Stars
  • Knights of Pen and Paper +1 Edition
  • Supreme Ruler 2020
  • Starvoid
  • Teleglitch: Die More Edition
  • Pillars of Eternity
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • Stellaris Sign-up
  • Europa Universalis IV: Pre-order
  • Pride of Nations
  • Crusader Kings II: Sword of Islam
  • 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: Sunset Invasion
  • Europa Universalis III Complete
  • Divine Wind
  • Europa Universalis IV
  • Cities in Motion
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Hearts of Iron III
  • Heir to the Throne
  • Impire
  • Europa Universalis IV: Common Sense
  • Prison Architect
  • Mount & Blade: With Fire and Sword
  • Mount & Blade: Warband
  • Crusader Kings II: Horse Lords
  • Magicka: Wizard Wars Founder Wizard
  • Europa Universalis IV: El Dorado
  • 500k Club
  • Warlock: Master of the Arcane
  • Victoria 2
  • Europa Universalis III Complete
  • Europa Universalis III Complete
Do scripted triggers have any effect on performances ? I'm currently trying to change some triggers in a mod to more compact scripted triggers, in order to see how much it would reduce storage space needed for the mod. But if scripted triggers are known to reduce the game speed, then I won't bother doing it
I use those extensively, and haven't noticed major slowdowns.
If anything, scripted triggers and effects seem to improve the performance. Especially if it's a trigger that's used multiple times within the same event. Hard to tell for sure, though.
 

LeSingeAffame

Loyal ally to Durcorach the Black Drake
72 Badges
Sep 16, 2012
3.563
2.019
  • Crusader Kings II
  • Europa Universalis IV
  • Europa Universalis 4: Emperor
  • Crusader Kings III
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: The Republic
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Horse Lords
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: Conclave
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Way of Life
  • Crusader Kings II: Reapers Due
  • Crusader Kings II: Jade Dragon
  • Crusader Kings II: Monks and Mystics
  • Crusader Kings II: Holy Fury
  • Stellaris
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Stellaris: Synthetic Dawn
  • Stellaris: Leviathans Story Pack
  • Stellaris - Path to Destruction bundle
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Distant Stars
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Stellaris: Megacorp
  • Hearts of Iron IV: Expansion Pass
  • Imperator: Rome
  • Imperator: Rome Deluxe Edition
  • Imperator: Rome Sign Up
  • Imperator: Rome - Magna Graecia
I use those extensively, and haven't noticed major slowdowns.
If anything, scripted triggers and effects seem to improve the performance. Especially if it's a trigger that's used multiple times within the same event. Hard to tell for sure, though.
Ok thanks !
 

Sniggles

Major
66 Badges
Feb 27, 2012
502
4
  • Crusader Kings II: Charlemagne
  • Rome: Vae Victis
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Sengoku
  • Semper Fi
  • Rome Gold
  • Europa Universalis IV: Res Publica
  • March of the Eagles
  • Magicka
  • Heir to the Throne
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III
  • For the Motherland
  • Europa Universalis IV: Call to arms event
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Art of War
  • 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
  • Europa Universalis III: Chronicles
  • Europa Universalis III Complete
  • Divine Wind
  • Europa Universalis IV: Conquest of Paradise
  • Darkest Hour
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Mandate of Heaven
  • Stellaris - Path to Destruction bundle
  • Stellaris: Leviathans Story Pack
  • Stellaris: Digital Anniversary Edition
  • Europa Universalis IV: Rights of Man
  • Hearts of Iron IV: Cadet
  • Stellaris
  • Europa Universalis IV: Mare Nostrum
  • Europa Universalis IV: Cossacks
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Way of Life
  • Stellaris: Synthetic Dawn
  • Stellaris: Necroids
  • 500k Club
  • War of the Roses
  • Europa Universalis IV
  • Victoria 2
  • Europa Universalis III Complete
I hate to be asking again, but my issue still hasn't been resolved, nor does it seem anyone in the HIP subforum is interested in helping me.

I'm trying to modify the HIP Crusade CB in order to allow any Christian sect which can call a Crusade to be able to target Messalians, and for Messalians to be able to target any Christian sect. The code I'm using was written for me by someone else, and begins at the first "AND" command below (which I've included in both the "can_use" and "is_valid" portions of the CB):

Code:
FROM = {
            OR = {
                NOT = { religion_group = ROOT }
                is_heresy_of = ROOT
                is_parent_religion = ROOT
                AND = {
                    religion = messalian
                    FROM = {
                        OR = {
                            religion = catholic
                            religion = cathar
                            religion = fraticelli
                            religion = waldensian
                            religion = lollard
                            religion = miaphysite
                            religion = monophysite
                            religion = orthodox
                            religion = bogomilist
                            religion = paulician
                            religion = monothelite
                            religion = iconoclast
                            religion = nestorian
                            religion = adoptionist
                            religion = arian
                            religion = maronite
                            religion = apostolic
                            religion = tondrakian
                        }
                    }
                }
                AND = {
                    OR = {
                        religion = catholic
                        religion = cathar
                        religion = fraticelli
                        religion = waldensian
                        religion = lollard
                        religion = miaphysite
                        religion = monophysite
                        religion = orthodox
                        religion = bogomilist
                        religion = paulician
                        religion = monothelite
                        religion = iconoclast
                        religion = nestorian
                        religion = adoptionist
                        religion = arian
                        religion = maronite
                        religion = apostolic
                        religion = tondrakian
                    }   
                    FROM = { religion = messalian }
                }

Unfortunately this does not work in the CB (I've tested by feudalizing the Pope after Crusades have been enabled and attempting to call a Crusade on a Messalian Jerusalem, but the CB was unavailable). I know it's not from a missing/misplaced bracket or any such, as I've used the Validator and there's been no red flags. It's been suggested that the CB is likely not functioning because of some contrary command, and I find this likely, but I'm extremely novice at modding and I certainly can't find anything. As such I've included my CB file and the EMF CB triggers which modify it; hopefully somebody here far more skillful than myself can see something which I don't.

I would be incredibly appreciative of any and all help figuring this out. I really don't want to continue my campaign until I've enabled this.
 

Attachments

  • 00_cb_types.txt
    494,1 KB · Views: 1
  • emf_cb_triggers.txt
    7 KB · Views: 1

Romulien

Lt. General
19 Badges
Jul 2, 2013
1.404
308
  • Crusader Kings II
  • Major Wiki Contributor
I use those extensively, and haven't noticed major slowdowns.
If anything, scripted triggers and effects seem to improve the performance. Especially if it's a trigger that's used multiple times within the same event. Hard to tell for sure, though.

Hmm I think it was said somewhere that scripted triggers/effects were replaced 'in place' during the loading, as if they were not there at all (i.e. it's not an extra function call), but I could be wrong. If someone finds back a source on that ...
Even if it was a function call, the benefit in code readability (less bugs) would outweigh any minor perf degradation :)
 

Romulien

Lt. General
19 Badges
Jul 2, 2013
1.404
308
  • Crusader Kings II
  • Major Wiki Contributor
There's still no way to mod how the AI characters pick their spouses, is there?
I'm working on a small fairy tales-type of mod, and I'm getting kind of annoyed by how often the AI rulers marry evil witches and such. That's not how such tales usually go.

I don't want to completely block that, it should happen occasionally. But do you happen to have any ideas on how to make them less desirable for marriage? They have pretty good stats overall, which is probably why they get picked so often.

Maybe a big negative sex_appeal_opinion trait/character modifier ? I don't know what other purpose it would serve.

I hate to be asking again, but my issue still hasn't been resolved, nor does it seem anyone in the HIP subforum is interested in helping me.

I'm trying to modify the HIP Crusade CB in order to allow any Christian sect which can call a Crusade to be able to target Messalians, and for Messalians to be able to target any Christian sect. The code I'm using was written for me by someone else, and begins at the first "AND" command below (which I've included in both the "can_use" and "is_valid" portions of the CB):

Code:
FROM = {
            OR = {
                NOT = { religion_group = ROOT }
                is_heresy_of = ROOT
                is_parent_religion = ROOT
                AND = {
                    religion = messalian
                    FROM = {
                        OR = {
                            religion = catholic
                            religion = cathar
                            religion = fraticelli
                            religion = waldensian
                            religion = lollard
                            religion = miaphysite
                            religion = monophysite
                            religion = orthodox
                            religion = bogomilist
                            religion = paulician
                            religion = monothelite
                            religion = iconoclast
                            religion = nestorian
                            religion = adoptionist
                            religion = arian
                            religion = maronite
                            religion = apostolic
                            religion = tondrakian
                        }
                    }
                }
                AND = {
                    OR = {
                        religion = catholic
                        religion = cathar
                        religion = fraticelli
                        religion = waldensian
                        religion = lollard
                        religion = miaphysite
                        religion = monophysite
                        religion = orthodox
                        religion = bogomilist
                        religion = paulician
                        religion = monothelite
                        religion = iconoclast
                        religion = nestorian
                        religion = adoptionist
                        religion = arian
                        religion = maronite
                        religion = apostolic
                        religion = tondrakian
                    }  
                    FROM = { religion = messalian }
                }

Unfortunately this does not work in the CB (I've tested by feudalizing the Pope after Crusades have been enabled and attempting to call a Crusade on a Messalian Jerusalem, but the CB was unavailable). I know it's not from a missing/misplaced bracket or any such, as I've used the Validator and there's been no red flags. It's been suggested that the CB is likely not functioning because of some contrary command, and I find this likely, but I'm extremely novice at modding and I certainly can't find anything. As such I've included my CB file and the EMF CB triggers which modify it; hopefully somebody here far more skillful than myself can see something which I don't.

I would be incredibly appreciative of any and all help figuring this out. I really don't want to continue my campaign until I've enabled this.

CB modding is tough, so don't give up !
Something is strange because you are using FROM inside FROM, but no ROOT.
Also can you reduce the religion check to a religion_group check, or is there a reason ?
I didn't check the whole CB, but from your post, the following would be more logical:
Code:
FROM = {
            OR = {
                NOT = { religion_group = ROOT }
                is_heresy_of = ROOT
                is_parent_religion = ROOT
                AND = {
                    ROOT = { religion = messalian }
                    religion_group = christian
                }
                AND = {
                    religion = messalian
                    ROOT = { religion_group = christian }
                }
           }
}
 
  • 1
Reactions:

Sniggles

Major
66 Badges
Feb 27, 2012
502
4
  • Crusader Kings II: Charlemagne
  • Rome: Vae Victis
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Sengoku
  • Semper Fi
  • Rome Gold
  • Europa Universalis IV: Res Publica
  • March of the Eagles
  • Magicka
  • Heir to the Throne
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III
  • For the Motherland
  • Europa Universalis IV: Call to arms event
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Art of War
  • 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
  • Europa Universalis III: Chronicles
  • Europa Universalis III Complete
  • Divine Wind
  • Europa Universalis IV: Conquest of Paradise
  • Darkest Hour
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Mandate of Heaven
  • Stellaris - Path to Destruction bundle
  • Stellaris: Leviathans Story Pack
  • Stellaris: Digital Anniversary Edition
  • Europa Universalis IV: Rights of Man
  • Hearts of Iron IV: Cadet
  • Stellaris
  • Europa Universalis IV: Mare Nostrum
  • Europa Universalis IV: Cossacks
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Way of Life
  • Stellaris: Synthetic Dawn
  • Stellaris: Necroids
  • 500k Club
  • War of the Roses
  • Europa Universalis IV
  • Victoria 2
  • Europa Universalis III Complete
\CB modding is tough, so don't give up !
Something is strange because you are using FROM inside FROM, but no ROOT.
Also can you reduce the religion check to a religion_group check, or is there a reason ?
I didn't check the whole CB, but from your post, the following would be more logical:
Code:
FROM = {
            OR = {
                NOT = { religion_group = ROOT }
                is_heresy_of = ROOT
                is_parent_religion = ROOT
                AND = {
                    ROOT = { religion = messalian }
                    religion_group = christian
                }
                AND = {
                    religion = messalian
                    ROOT = { religion_group = christian }
                }
           }
}
Honestly I don't know at all; as I said, I'm absolutely terrible with modding, and someone else developed that particular code for me. It does seem more logical to use religious grouping, and truth be told I was confused why there wasn't a callback to the ROOT, but I just trusted the other guy knew what he was doing more than I did.

I'll try what you've suggested, see if it works, and report back. Thanks for the help!

EDIT: It worked perfectly! Thanks so much for the help!
 
Last edited:

Carmichael

Captain
66 Badges
Jul 17, 2012
319
122
  • Heir to the Throne
  • Hearts of Iron IV: Field Marshal
  • Crusader Kings II: Jade Dragon
  • Europa Universalis IV: Mare Nostrum
  • Cities: Skylines - Snowfall
  • Crusader Kings II: Monks and Mystics
  • Cities: Skylines - After Dark
  • Stellaris - Path to Destruction bundle
  • Europa Universalis IV: Pre-order
  • Europa Universalis IV: Third Rome
  • Semper Fi
  • Europa Universalis IV: Res Publica
  • Magicka
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III
  • For the Motherland
  • Europa Universalis IV: Wealth of Nations
  • 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: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Europa Universalis III
  • Europa Universalis III: Chronicles
  • Divine Wind
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Call to arms event
  • PDXCON 2017 Gold Ticket holder
  • Europa Universalis IV: Mandate of Heaven
  • Cities: Skylines - Mass Transit
  • Cities: Skylines - Natural Disasters
  • Hearts of Iron IV: Death or Dishonor
  • Europa Universalis IV: Rights of Man
  • Crusader Kings II: Reapers Due
  • Hearts of Iron IV: Colonel
  • Hearts of Iron IV: Cadet
  • Stellaris Sign-up
  • Crusader Kings II: Conclave
  • Hearts of Iron IV: Expansion Pass
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: El Dorado
  • Crusader Kings III
I want to make a mod that modify a vanilla event without changing the whole file structure. From what I understood, creating a file with the vanilla game's name overwrite this file completely while creating another will result in both the vanilla event and the modded one to trigger, even with the same id.

So my question is: is there a way either to prevent a vanilla event from firing or modify it without having to copy the entire vanilla file?
 

Alphathon

Second Lieutenant
62 Badges
May 22, 2013
112
24
  • March of the Eagles
  • Crusader Kings II
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: The Republic
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: Charlemagne
  • Tyranny: Archon Edition
  • Cities: Skylines - Parklife Pre-Order
  • Tyranny: Archon Edition
  • Europa Universalis IV: Rights of Man
  • Crusader Kings II: Reapers Due
  • Hearts of Iron IV: Cadet
  • Stellaris: Galaxy Edition
  • Surviving Mars: Digital Deluxe Edition
  • Crusader Kings II: Conclave
  • Hearts of Iron IV: Death or Dishonor
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Cities: Skylines - Natural Disasters
  • Crusader Kings II: Monks and Mystics
  • Surviving Mars: First Colony Edition
  • Cities: Skylines - Mass Transit
  • Europa Universalis IV: Mandate of Heaven
  • Surviving Mars
  • Surviving Mars: First Colony Edition
  • Crusader Kings II: Horse Lords
  • Cities: Skylines Industries
  • Stellaris: Apocalypse
  • Victoria 2
  • Stellaris: Humanoids Species Pack
  • Cities: Skylines - Green Cities
  • Cities: Skylines
  • Cities: Skylines - Parklife
  • Europa Universalis IV: El Dorado
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Common Sense
  • Europa Universalis IV: Mare Nostrum
  • Europa Universalis IV
  • Europa Universalis IV: Call to arms event
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Res Publica
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Pre-order
  • Cities: Skylines - After Dark
  • Cities: Skylines - Snowfall
I want to make a mod that modify a vanilla event without changing the whole file structure. From what I understood, creating a file with the vanilla game's name overwrite this file completely while creating another will result in both the vanilla event and the modded one to trigger, even with the same id.

So my question is: is there a way either to prevent a vanilla event from firing or modify it without having to copy the entire vanilla file?
None that I'm aware of but then I haven't done much event modding.

May I ask why you don't want to copy the original file. What do you mean by "changing the whole file structure"? If it's just for editability reasons you could always copy the vanilla file and delete the event in question then create a new file with your modified version in it. (I've done something similar in landed_titles, splitting off the holy orders etc into separate files.) If not then I don't know what to suggest.
 
  • 1
Reactions:

Thezezeal

Captain
3 Badges
Dec 28, 2014
375
3
  • Crusader Kings II: Horse Lords
  • Crusader Kings II: Monks and Mystics
  • Crusader Kings II: Charlemagne
None that I'm aware of but then I haven't done much event modding.

May I ask why you don't want to copy the original file. What do you mean by "changing the whole file structure"? If it's just for editability reasons you could always copy the vanilla file and delete the event in question then create a new file with your modified version in it. (I've done something similar in landed_titles, splitting off the holy orders etc into separate files.) If not then I don't know what to suggest.

Wait, you can do that with landed_titles? For some reason I thought it had to all be in one... Well, that's useful to know :D
 

LeSingeAffame

Loyal ally to Durcorach the Black Drake
72 Badges
Sep 16, 2012
3.563
2.019
  • Crusader Kings II
  • Europa Universalis IV
  • Europa Universalis 4: Emperor
  • Crusader Kings III
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: The Republic
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Horse Lords
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: Conclave
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Way of Life
  • Crusader Kings II: Reapers Due
  • Crusader Kings II: Jade Dragon
  • Crusader Kings II: Monks and Mystics
  • Crusader Kings II: Holy Fury
  • Stellaris
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Stellaris: Synthetic Dawn
  • Stellaris: Leviathans Story Pack
  • Stellaris - Path to Destruction bundle
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Distant Stars
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Stellaris: Megacorp
  • Hearts of Iron IV: Expansion Pass
  • Imperator: Rome
  • Imperator: Rome Deluxe Edition
  • Imperator: Rome Sign Up
  • Imperator: Rome - Magna Graecia
Wait, you can do that with landed_titles? For some reason I thought it had to all be in one... Well, that's useful to know :D
If I remember correctly, you can even define the same title in separate files, for example if you want to add a de jure kingdom into an empire
 
  • 1
Reactions:

Thezezeal

Captain
3 Badges
Dec 28, 2014
375
3
  • Crusader Kings II: Horse Lords
  • Crusader Kings II: Monks and Mystics
  • Crusader Kings II: Charlemagne
I have a Pseudo-Settlement (since I assume we cannot manually add new Settlement Types), and would like to tidy it up... So, two main questions, I hope:
can I change a Settlement's icon dynamically, but keeping the Settlement Type intact? Is it possible to 'hide' buildings without editing their Potential or using 'Replaces'? Right now I have all the Tribal Buildings "hidden" via replacing them with my new buildings, but I would like to maybe reduce the overall number of Buildings in my Pseudo-Settlement. Trying multiple 'replaces' never worked.

Thanks for any suggestions :)
 

Carmichael

Captain
66 Badges
Jul 17, 2012
319
122
  • Heir to the Throne
  • Hearts of Iron IV: Field Marshal
  • Crusader Kings II: Jade Dragon
  • Europa Universalis IV: Mare Nostrum
  • Cities: Skylines - Snowfall
  • Crusader Kings II: Monks and Mystics
  • Cities: Skylines - After Dark
  • Stellaris - Path to Destruction bundle
  • Europa Universalis IV: Pre-order
  • Europa Universalis IV: Third Rome
  • Semper Fi
  • Europa Universalis IV: Res Publica
  • Magicka
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III
  • For the Motherland
  • Europa Universalis IV: Wealth of Nations
  • 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: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Europa Universalis III
  • Europa Universalis III: Chronicles
  • Divine Wind
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Call to arms event
  • PDXCON 2017 Gold Ticket holder
  • Europa Universalis IV: Mandate of Heaven
  • Cities: Skylines - Mass Transit
  • Cities: Skylines - Natural Disasters
  • Hearts of Iron IV: Death or Dishonor
  • Europa Universalis IV: Rights of Man
  • Crusader Kings II: Reapers Due
  • Hearts of Iron IV: Colonel
  • Hearts of Iron IV: Cadet
  • Stellaris Sign-up
  • Crusader Kings II: Conclave
  • Hearts of Iron IV: Expansion Pass
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: El Dorado
  • Crusader Kings III
None that I'm aware of but then I haven't done much event modding.

May I ask why you don't want to copy the original file. What do you mean by "changing the whole file structure"? If it's just for editability reasons you could always copy the vanilla file and delete the event in question then create a new file with your modified version in it. (I've done something similar in landed_titles, splitting off the holy orders etc into separate files.) If not then I don't know what to suggest.

What I would like is to make let's say two mods that edit different events from the same file, so it would basically be like that:
Vanilla
Code:
narrative_event = {
     id = 1
     trigger = {
          year = 900
     }
}

narrative_event = {
     id = 2
     trigger = {
          year = 1000
     }
}

Mod 1
Code:
narrative_event = {
     id = 1
     trigger = {
          year = 1100
     }
}

Mod 2
Code:
narrative_event = {
     id = 2
     trigger = {
          year = 1200
     }
}

Mod 1 + 2
Code:
narrative_event = {
     id = 1
     trigger = {
          year = 1100
     }
}

narrative_event = {
     id = 2
     trigger = {
          year = 1200
     }
}

The problem being that if I use your method, wouldn't that create a problem for the second mod? Wouldn't that prevent Mod 1 from working since the modified vanilla file of Mod 2 would overwrite or enter in conflict with Mod 1 modified event id?
 
Last edited:

LeSingeAffame

Loyal ally to Durcorach the Black Drake
72 Badges
Sep 16, 2012
3.563
2.019
  • Crusader Kings II
  • Europa Universalis IV
  • Europa Universalis 4: Emperor
  • Crusader Kings III
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: The Republic
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Horse Lords
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: Conclave
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Way of Life
  • Crusader Kings II: Reapers Due
  • Crusader Kings II: Jade Dragon
  • Crusader Kings II: Monks and Mystics
  • Crusader Kings II: Holy Fury
  • Stellaris
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Stellaris: Synthetic Dawn
  • Stellaris: Leviathans Story Pack
  • Stellaris - Path to Destruction bundle
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Distant Stars
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Stellaris: Megacorp
  • Hearts of Iron IV: Expansion Pass
  • Imperator: Rome
  • Imperator: Rome Deluxe Edition
  • Imperator: Rome Sign Up
  • Imperator: Rome - Magna Graecia
hi,
is it possible to start with all pagan religion already reformed ? if yes, how i can edit/create it ?
You could change the religion of every guy and every province in the history files