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

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
My understanding (from a prior dev comment) is that the ordering (and to a lesser degree, redundancy) of pre-triggers doesn't matter, because the game automatically optimizes that. The order of evaluation is not determined by the order they're written.

I was going from memory when writing my response, so it is very possible that I misremember...
 

theStormWeaver

Lead Dev - Ancient Religions
64 Badges
Jul 28, 2012
2.407
474
www.github.com
  • Battle for Bosporus
  • Stellaris: Synthetic Dawn
  • Europa Universalis IV
  • Crusader Kings II: Reapers Due
  • Rome Gold
  • 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
  • Crusader Kings II: Charlemagne
  • Crusader Kings II
  • Stellaris: Humanoids Species Pack
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Together for Victory
  • Crusader Kings II: Jade Dragon
  • Hearts of Iron IV: Death or Dishonor
  • Surviving Mars
  • Crusader Kings II: Monks and Mystics
  • Crusader Kings III
  • Surviving Mars: Digital Deluxe Edition
  • Cities: Skylines - Parklife
  • Stellaris: Distant Stars
  • Shadowrun Returns
  • Surviving Mars: First Colony Edition
  • Crusader Kings II: Holy Fury
  • Imperator: Rome Sign Up
  • Stellaris: Ancient Relics
  • Imperator: Rome - Magna Graecia
  • Rome: Vae Victis
  • 500k Club
  • Crusader Kings II: Way of Life
  • Pillars of Eternity
  • Stellaris: Leviathans Story Pack
  • Crusader Kings II: Horse Lords
  • Crusader Kings II: Conclave
  • Stellaris
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Stellaris Sign-up
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV: Colonel
  • Stellaris: Digital Anniversary Edition
  • Cities: Skylines
  • Imperator: Rome
  • Surviving Mars: First Colony Edition
  • Stellaris - Path to Destruction bundle
My understanding (from a prior dev comment) is that the ordering (and to a lesser degree, redundancy) of pre-triggers doesn't matter, because the game automatically optimizes that. The order of evaluation is not determined by the order they're written.

This isn't true of pre-triggers, you need to choose an optimal ordering yourself.
 

LordPeter

Marjoram
49 Badges
Mar 5, 2012
2.249
382
  • Cities: Skylines - After Dark
  • Europa Universalis IV: Cossacks
  • Cities: Skylines - Snowfall
  • Europa Universalis IV: Mare Nostrum
  • Crusader Kings II: Monks and Mystics
  • Crusader Kings II: Conclave
  • Stellaris Sign-up
  • Hearts of Iron IV: Cadet
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Rights of Man
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Prison Architect
  • Stellaris - Path to Destruction bundle
  • Cities: Skylines - Mass Transit
  • Europa Universalis IV: Mandate of Heaven
  • Stellaris: Synthetic Dawn
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Stellaris: Distant Stars
  • Stellaris: Megacorp
  • Crusader Kings II: Holy Fury
  • Imperator: Rome
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Way of Life
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: El Dorado
  • 500k Club
  • Europa Universalis IV: Res Publica
  • Europa Universalis IV: Call to arms event
  • 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 IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Art of War
  • Europa Universalis IV
  • Crusader Kings II: Sword of Islam
  • Stellaris
  • Europa Universalis IV: Third Rome
  • Cities: Skylines
  • Crusader Kings II: Jade Dragon
  • Europa Universalis IV: Cradle of Civilization
The event would fire roughly ten years later if you use had_global_flag = { flag = Z days = 3650 }, yes (the event offset would make it miss the mark by a few days). However, keep in mind that if you want to fire the event yet again (e.g, if you don't find enough provinces with the modifier) with a delay you will need to clear and reset the flag, as using set_<scope>_flag when it already is set for the scope does not reset the time the scope has had the flag, meaning the Pope would get the event 20-ish days later as ten years have passed since the flag originally was set.

As for firing a province event from on_actions, you could always fire an event for some character (e.g. the Pope) and then fire an event from that event for a certain province (e.g. capital_scope = { province_event = { id = X days = Y} }, if you don't care about which province) if you aren't already in the province scope in on_actions.
I assume you are using the on_decade_pulse, and that 'is_pope = yes' is a custom scripted_trigger. That means it is still having to check each character to decide who is the pope. Granted, it's only once every 10 years, but there's still a more efficient way.

Use an on_chronicle_start hidden event (only fires for the player anyway, so no need for pope check). That event immediately calls a hidden event on province 1. This is your province modifier checking event. At the end of that event, call a repeat_event of the same event to the same province, delay of 3650 days. This will keep repeating the same check every 10 years exactly, with no pope check and no worries about the target changing.
Ah okay, I see...
While I know now how to code mods so they work, I am still learning how to do it efficiently. I screwed up performance before, so I will listen to your advice and use such a different approach. Kudos for the detailed explanation :)
 

Teutonic King

Vine-Regent of Dorwinion
68 Badges
Dec 8, 2012
928
242
  • Crusader Kings II: Charlemagne
  • Hearts of Iron IV: Colonel
  • Hearts of Iron IV: Cadet
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Stellaris - Path to Destruction bundle
  • Europa Universalis IV: Mandate of Heaven
  • Europa Universalis IV: Mare Nostrum
  • Europa Universalis IV: Third Rome
  • Stellaris: Synthetic Dawn
  • Crusader Kings II: Jade Dragon
  • Europa Universalis IV: Pre-order
  • Rome: Vae Victis
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Rome Gold
  • 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 IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Call to arms event
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Crusader Kings II: Monks and Mystics
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Nemesis
  • Stellaris: Leviathans Story Pack
  • Hearts of Iron IV: Death or Dishonor
  • Europa Universalis IV: Cradle of Civilization
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Humanoids Species Pack
  • Europa Universalis IV: Rights of Man
  • Crusader Kings II: Reapers Due
  • Hearts of Iron IV: Field Marshal
  • Stellaris: Galaxy Edition
  • 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
  • Europa Universalis IV: El Dorado
  • Victoria 2
I have a quick question about flag modding. So I added/changed the .TGA file for the Kingdom of Rum in the flags folder, on both the base game and a mod, however when I went into the game, the kingdom of Rum still had it's basic flag, or the mod's red banner. Any ideas why this happened?
 

Aardvark Bellay

Lord Wuffington of Grumpytown by the barks
21 Badges
Apr 5, 2001
15.443
2.858
  • Divine Wind
  • Stellaris Sign-up
  • Hearts of Iron IV Sign-up
  • Crusader Kings II: Horse Lords
  • Crusader Kings II: Holy Knight (pre-order)
  • 500k Club
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Victoria 2
  • Victoria: Revolutions
  • Heir to the Throne
  • Crusader Kings II
  • Europa Universalis III
  • Deus Vult
  • Crusader Kings II: Sword of Islam
  • 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
  • Crusader Kings II: Charlemagne
I have a quick question about flag modding. So I added/changed the .TGA file for the Kingdom of Rum in the flags folder, on both the base game and a mod, however when I went into the game, the kingdom of Rum still had it's basic flag, or the mod's red banner. Any ideas why this happened?

Pretty sure you have to delete the content of the gfx folder (cache) in Documents, respectively in a potentially existing subfolder of the mod.
 

Teutonic King

Vine-Regent of Dorwinion
68 Badges
Dec 8, 2012
928
242
  • Crusader Kings II: Charlemagne
  • Hearts of Iron IV: Colonel
  • Hearts of Iron IV: Cadet
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Stellaris - Path to Destruction bundle
  • Europa Universalis IV: Mandate of Heaven
  • Europa Universalis IV: Mare Nostrum
  • Europa Universalis IV: Third Rome
  • Stellaris: Synthetic Dawn
  • Crusader Kings II: Jade Dragon
  • Europa Universalis IV: Pre-order
  • Rome: Vae Victis
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Rome Gold
  • 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 IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Call to arms event
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Crusader Kings II: Monks and Mystics
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Nemesis
  • Stellaris: Leviathans Story Pack
  • Hearts of Iron IV: Death or Dishonor
  • Europa Universalis IV: Cradle of Civilization
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Humanoids Species Pack
  • Europa Universalis IV: Rights of Man
  • Crusader Kings II: Reapers Due
  • Hearts of Iron IV: Field Marshal
  • Stellaris: Galaxy Edition
  • 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
  • Europa Universalis IV: El Dorado
  • Victoria 2
Pretty sure you have to delete the content of the gfx folder (cache) in Documents, respectively in a potentially existing subfolder of the mod.
There is no cache folder in Documents, when I search through the computer the only cache folders come up are from other Paradox games.
 

Teutonic King

Vine-Regent of Dorwinion
68 Badges
Dec 8, 2012
928
242
  • Crusader Kings II: Charlemagne
  • Hearts of Iron IV: Colonel
  • Hearts of Iron IV: Cadet
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Stellaris - Path to Destruction bundle
  • Europa Universalis IV: Mandate of Heaven
  • Europa Universalis IV: Mare Nostrum
  • Europa Universalis IV: Third Rome
  • Stellaris: Synthetic Dawn
  • Crusader Kings II: Jade Dragon
  • Europa Universalis IV: Pre-order
  • Rome: Vae Victis
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Rome Gold
  • 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 IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Call to arms event
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Crusader Kings II: Monks and Mystics
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Nemesis
  • Stellaris: Leviathans Story Pack
  • Hearts of Iron IV: Death or Dishonor
  • Europa Universalis IV: Cradle of Civilization
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Humanoids Species Pack
  • Europa Universalis IV: Rights of Man
  • Crusader Kings II: Reapers Due
  • Hearts of Iron IV: Field Marshal
  • Stellaris: Galaxy Edition
  • 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
  • Europa Universalis IV: El Dorado
  • Victoria 2

Aardvark Bellay

Lord Wuffington of Grumpytown by the barks
21 Badges
Apr 5, 2001
15.443
2.858
  • Divine Wind
  • Stellaris Sign-up
  • Hearts of Iron IV Sign-up
  • Crusader Kings II: Horse Lords
  • Crusader Kings II: Holy Knight (pre-order)
  • 500k Club
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Victoria 2
  • Victoria: Revolutions
  • Heir to the Throne
  • Crusader Kings II
  • Europa Universalis III
  • Deus Vult
  • Crusader Kings II: Sword of Islam
  • 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
  • Crusader Kings II: Charlemagne
So I have to delete the whole GFX folder? Wouldn't that break the game?

The content.
It's a cache folder. Files get rebuild after start.
Just in case, i said in Documents (.../Paradox Interactive/Crusader Kings 2), not in the game file folder.
 

Teutonic King

Vine-Regent of Dorwinion
68 Badges
Dec 8, 2012
928
242
  • Crusader Kings II: Charlemagne
  • Hearts of Iron IV: Colonel
  • Hearts of Iron IV: Cadet
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Stellaris - Path to Destruction bundle
  • Europa Universalis IV: Mandate of Heaven
  • Europa Universalis IV: Mare Nostrum
  • Europa Universalis IV: Third Rome
  • Stellaris: Synthetic Dawn
  • Crusader Kings II: Jade Dragon
  • Europa Universalis IV: Pre-order
  • Rome: Vae Victis
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Rome Gold
  • 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 IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Call to arms event
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Crusader Kings II: Monks and Mystics
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Nemesis
  • Stellaris: Leviathans Story Pack
  • Hearts of Iron IV: Death or Dishonor
  • Europa Universalis IV: Cradle of Civilization
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Humanoids Species Pack
  • Europa Universalis IV: Rights of Man
  • Crusader Kings II: Reapers Due
  • Hearts of Iron IV: Field Marshal
  • Stellaris: Galaxy Edition
  • 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
  • Europa Universalis IV: El Dorado
  • Victoria 2
The content.
It's a cache folder. Files get rebuild after start.
Just in case, i said in Documents (.../Paradox Interactive/Crusader Kings 2), not in the game file folder.
Well, I changed it in the base game and it looks right. However the mod that I have active (Patrum Scuta) still looks the same, a bland red banner. I also reloaded the game without Patrum Scuta, and it reloaded the flags, so no worries there.

EDIT:
MMMMMMMM figured out the problem. I was editing Lux Invicta, not Patrum Scuta. DAMN IT ALL! -_-'
 
Last edited:

Silver Wizard

Byzantophile
44 Badges
Jul 14, 2014
722
476
  • Crusader Kings II
  • Semper Fi
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • Cities: Skylines Deluxe Edition
  • Crusader Kings II: Conclave
  • Imperator: Rome
  • Crusader Kings II: Holy Fury
  • Stellaris: Megacorp
  • Europa Universalis IV: El Dorado
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Cossacks
  • Cities: Skylines - Parklife
  • Stellaris
  • Hearts of Iron IV Sign-up
  • Hearts of Iron IV: Cadet
  • Europa Universalis IV: Rights of Man
  • Hearts of Iron IV: Together for Victory
  • Crusader Kings II: Monks and Mystics
  • Crusader Kings II: Jade Dragon
  • Stellaris: Apocalypse
  • Victoria 2
  • Cities: Skylines
  • Europa Universalis IV
  • Victoria: Revolutions
  • Europa Universalis IV: Res Publica
  • Hearts of Iron III Collection
  • 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
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Call to arms event
  • For the Motherland
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III
  • Stellaris - Path to Destruction bundle
The Validator says this "Char IDs 10 digits or longer can cause problems"
What kind of problems, if any, can this cause?
All characters born or otherwise created during gameplay are assigned a 10-digit ID. I assume the game checks if an ID is already in use before assigning it (although I'm not certain). But imagine what happens if you activate a mod halfway in a playthrough?
 
  • 1
Reactions:

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
The Validator says this "Char IDs 10 digits or longer can cause problems"
What kind of problems, if any, can this cause?

It probably is because the largest value for a 32-bit signed integer is 2,147,483,647 and the largest value for a 32-bit unsigned integer is 4,294,967,295, and exceeding this limit would cause the integer to "start over" from -2,147,483,648 (signed) or 0 (unsigned) when moving beyond this valie, which be problematic. In practice, though, if you ned to use ids in the billions you probably will have problems long before you hit the breaking point, provided you started sufficiently far from the dangerous value.
 
  • 1
Reactions:

Andrelvis

The Last Ghibelline
76 Badges
Apr 30, 2006
5.598
9.962
  • 500k Club
  • Majesty 2 Collection
  • March of the Eagles
  • Europa Universalis III Complete
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Rome Gold
  • Semper Fi
  • Sengoku
  • Victoria 2
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • Rome: Vae Victis
  • Europa Universalis III Complete
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Pre-order
  • Rise of Prussia
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Conclave
  • Europa Universalis IV: Mare Nostrum
  • Stellaris
  • Stellaris: Galaxy Edition
  • Crusader Kings III
  • Europa Universalis III Complete
  • 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
  • Darkest Hour
  • Deus Vult
  • Europa Universalis III
  • Hearts of Iron II: Armageddon
  • Divine Wind
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Call to arms event
  • For The Glory
  • For the Motherland
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
I've granted a second family palace to a patrician, and gameplay-wise it seems to work alright. It doesn't get removed, and it can be inherited by the patrician's heir along with the normal family palace.

The name shows as "House [name]", and doesn't seem changeable, at least by normal means. short_name doesn't work, and setting title prefix doesn't either. Changing the cultural name of the family palace works only partially; it displays the new name when hovering the character's portrait, but not when hovering the palace's icon.

Does anyone know if this is fixable?
 

blackninja9939

Experienced Programmer - Crusader Kings 3
Paradox Staff
78 Badges
Aug 28, 2013
2.401
7.847
  • Crusader Kings III
  • Stellaris: Federations
  • Battle for Bosporus
  • Stellaris: Nemesis
  • Hearts of Iron IV: No Step Back
  • Europa Universalis IV
  • Crusader Kings III: Royal Edition
  • Europa Universalis 4: Emperor
  • Stellaris: Necroids
  • Crusader Kings II
  • Crusader Kings II: Holy Fury
  • Imperator: Rome - Magna Graecia
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: The Old Gods
  • Europa Universalis IV: Rights of Man
  • Europa Universalis IV: Cradle of Civilization
  • Stellaris: Synthetic Dawn
  • Surviving Mars
  • BATTLETECH
  • Europa Universalis IV: Mandate of Heaven
  • Crusader Kings II: Monks and Mystics
  • Tyranny: Archon Edition
  • Europa Universalis IV: Rule Britannia
  • Crusader Kings II: Reapers Due
  • Hearts of Iron IV: Colonel
  • Stellaris Sign-up
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Apocalypse
  • Stellaris: Lithoids
  • Stellaris: Distant Stars
  • Europa Universalis IV: Dharma
  • Shadowrun Returns
  • Imperator: Rome Deluxe Edition
  • Prison Architect
  • Imperator: Rome Sign Up
  • Stellaris: Ancient Relics
  • Age of Wonders: Planetfall
  • Crusader Kings II: Conclave
  • Crusader Kings II: The Republic
  • Victoria 2
  • Cities: Skylines
  • Europa Universalis IV: El Dorado
  • Crusader Kings II: Way of Life
  • Stellaris
  • Mount & Blade: Warband
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Sunset Invasion
It probably is because the largest value for a 32-bit signed integer is 2,147,483,647 and the largest value for a 32-bit unsigned integer is 4,294,967,295, and exceeding this limit would cause the integer to "start over" from -2,147,483,648 (signed) or 0 (unsigned) when moving beyond this valie, which be problematic. In practice, though, if you ned to use ids in the billions you probably will have problems long before you hit the breaking point, provided you started sufficiently far from the dangerous value.
Had that in AGOT temporarily in a dev build, all newly generated character ids become negative and break many many many things such as trying to target any character for anything. It is because the game starts generating character ids from the highest one in the history and does not fill in the gaps so it is best practice to make sure you do not leave any gaps with the character ids you use in the history files like we had in AGOT as it causes major problems.
 
  • 2
Reactions:

DorianOtten

Second Lieutenant
84 Badges
Jul 2, 2012
157
13
  • Crusader Kings II
  • Magicka 2
  • Stellaris: Apocalypse
  • Warlock 2: The Exiled
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Sword of the Stars II
  • Knights of Honor
  • Victoria: Revolutions
  • Europa Universalis IV: Res Publica
  • Magicka
  • The Kings Crusade
  • King Arthur II
  • Impire
  • Europa Universalis IV: Call to arms event
  • Europa Universalis IV: Conquest of Paradise
  • 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
  • Europa Universalis III: Chronicles
  • Crusader Kings II: Sunset Invasion
  • A Game of Dwarves
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Wealth of Nations
  • Crusader Kings II: Conclave
  • Stellaris
  • Stellaris - Path to Destruction bundle
  • 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
  • Crusader Kings II: Monks and Mystics
  • Cities: Skylines - Natural Disasters
  • Cities: Skylines - After Dark
  • Crusader Kings III
  • Europa Universalis IV: Common Sense
  • Pillars of Eternity
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: El Dorado
  • 500k Club
  • War of the Roses
  • Warlock: Master of the Arcane
  • Victoria 2
  • Lead and Gold
Hi,

Is there a way to add rank limits to concubines? I would like to make sure that only emperors of appropriate culture/religion can employ them to avoid a population boom

Thanks
DO
 
Last edited:

mikeucc

Private
39 Badges
Apr 22, 2014
10
1
  • Crusader Kings II
  • Stellaris: Apocalypse
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Crusader Kings II: Monks and Mystics
  • Stellaris - Path to Destruction bundle
  • Surviving Mars
  • Stellaris: Synthetic Dawn
  • Crusader Kings II: Jade Dragon
  • Stellaris: Humanoids Species Pack
  • Hearts of Iron IV: Cadet
  • Surviving Mars: Digital Deluxe Edition
  • Stellaris: Distant Stars
  • Surviving Mars: First Colony Edition
  • Stellaris: Megacorp
  • Crusader Kings II: Holy Fury
  • Surviving Mars: First Colony Edition
  • Stellaris: Ancient Relics
  • Stellaris: Lithoids
  • Stellaris: Federations
  • Leviathan: Warships
  • 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 IV
  • Crusader Kings II: Reapers Due
  • Sengoku
  • Cities: Skylines
  • Cities: Skylines Deluxe Edition
  • Crusader Kings II: Way of Life
  • Pillars of Eternity
  • Crusader Kings II: Horse Lords
  • Crusader Kings II: Conclave
  • Stellaris
I almost have my mod loading(I think)

I can get the map to load . But it crashes on character select.
The reason for this, I think is that the county title has not been assigned

However if I go to the history\titles folder and add
1060.1.1={holder=1} to the county file
To assign the county to that character, it crashes on loading flags.

It is kind of odd , as if I assign the dutchy, kingdom and empire titles using the same "1060.1.1={holder=1}" in the appropriate k_ , e_ and d_ title files those are acceptable to the game.


I have a stripped down version of the mod attached(1 county and 1 sea region).

Also should the map filler tool be generating barony files as well? (In my attached files I manually created a barony file just in case the lack was causing the crash)
Or are they only required if you want to add a bit of history flavor.

I am sure I have missed one small thing somewhere, but after hours of crashes and forum trawling and cannot for the life of me work out what is wrong, my brain is fried :(

Any pointers would be appreciated
Thanks in advance
 

Attachments

  • L5R.zip
    1.003,8 KB · Views: 0

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
Hi,

Is there a way to add rank limits to concubines? I would like to make sure that only emperors of appropriate culture/religion can employ them to avoid a population boom

Thanks
DO

You could remove them from the religions that use them and set up a custom government that allows concubines but that only is available for emperors of the cultures that you want to have concubines. Of course, that would in practice make nomad khans unable to have concubines (as well as all Dharmic and pagan kings), and things might get messed up when someone revolts and gets a temporary emperor title (and anyone who loses their emperor title would also lose their concubines but they would still exist in the game). You'd also effectively remove one of the options that pagans have to convert (using a spouse or concubine), though the AI doesn't use that at all and you'd only affect the player's ability to use it.
 

Shock360

Colonel
58 Badges
May 2, 2016
1.141
1.134
  • Crusader Kings II: Charlemagne
  • Victoria 3 Sign Up
  • Tyranny: Archon Edition
  • Magicka 2
  • Cities: Skylines - After Dark
  • Crusader Kings II: Jade Dragon
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Stellaris - Path to Destruction bundle
  • Europa Universalis IV: Res Publica
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Art of War
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: The Republic
  • Crusader Kings II
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings III
  • Steel Division: Normand 44 Sign-up
  • Steel Division: Normand 44 - Second Wave
  • Stellaris: Apocalypse
  • Steel Division: Normandy 44 -  Back to Hell
  • Stellaris: Distant Stars
  • Stellaris: Megacorp
  • Crusader Kings II: Holy Fury
  • Imperator: Rome
  • Prison Architect
  • Stellaris: Ancient Relics
  • Stellaris: Federations
  • Steel Division: Normandy 44
  • Europa Universalis IV
  • Victoria 2
  • Europa Universalis IV: El Dorado
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Crusader Kings II: Conclave
  • Stellaris
  • Hearts of Iron IV: Cadet
  • 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
  • Europa Universalis IV: Cossacks
  • Stellaris: Synthetic Dawn
I'm trying to make a mod that does two things. Add a few government flavors, and make it so that those give you a certain amount of vassals when converting. However the government flavors aren;t working. Anyone know what's wrong with them?

government_flavor = (
name = centralized_state
graphics = GFX_evt_found_hre
priority = 10
trigger = {
government = feudal_government
NOT = {has_law = succ_feudal_elective} AND = {has_law = centralization_2} AND = {religion_group = christian}
}
)

government_flavor = (
name = decentralized_state_1
graphics = GFX_evt_found_hre
priority = 10
trigger = {
government = feudal_government
NOT = {has_law = succ_feudal_elective} AND = {has_law = centralization_1} AND = {religion_group = christian}
}
)

government_flavor = (
name = decentralized_state_0
graphics = GFX_evt_found_hre
priority = 10
trigger = {
government = feudal_government
NOT = {has_law = succ_feudal_elective} AND = {has_law = centralization_0} AND = {religion_group = christian}
}
)