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

david3k

Second Lieutenant
7 Badges
Nov 11, 2010
150
2
  • Crusader Kings II
  • Deus Vult
  • Europa Universalis IV
  • 500k Club
  • Crusader Kings II: Holy Knight (pre-order)
  • Europa Universalis IV: Pre-order
  • Crusader Kings III
Straight to the question: how do I mod the impact of legalism tech on demesne size?

Code:
	TECH_LEGALISM = {
		1 = {
			modifier = {
				SHORT_REIGN_LENGTH = -1
			}
		}
		2 = {
			modifier = {
				SHORT_REIGN_LENGTH = -2
			}
		}
		3 = {
			modifier = {
				SHORT_REIGN_LENGTH = -3
			}
		}
		4 = {
			modifier = {
				SHORT_REIGN_LENGTH = -4
			}
		}
		5 = {
			modifier = {
				SHORT_REIGN_LENGTH = -5
			}
		}
	}
Above is from technology.txt

Nothing about demesne size.

In defines.lua there also seems no indicator of this.
 

thegerman2008

Captain
105 Badges
May 3, 2008
428
2
  • Stellaris - Path to Destruction bundle
  • March of the Eagles
  • Europa Universalis III Complete
  • Europa Universalis IV: Res Publica
  • Crusader Kings II: Monks and Mystics
  • Rome Gold
  • Semper Fi
  • Victoria 2: A House Divided
  • Cities: Skylines Deluxe Edition
  • Crusader Kings II: Charlemagne
  • Europa Universalis IV: Pre-order
  • Pillars of Eternity
  • Europa Universalis IV: Third Rome
  • Europa Universalis IV: Mare Nostrum
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV: Colonel
  • Crusader Kings II: Sword of Islam
  • 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
  • Europa Universalis III Complete
  • Europa Universalis III
  • Divine Wind
  • Heir to the Throne
  • Hearts of Iron III
  • 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
  • Cities: Skylines - After Dark
  • Stellaris: Galaxy Edition
  • Stellaris
  • Cities: Skylines - Snowfall
  • Crusader Kings II: Conclave
  • Europa Universalis IV: Cossacks
  • 500k Club
  • Crusader Kings II: Horse Lords
  • Supreme Ruler 2020
  • Crusader Kings II: Way of Life
  • Mount & Blade: Warband
  • Victoria 2
  • Hearts of Iron IV: No Step Back
  • Europa Universalis III: Collection
  • Europa Universalis IV: Rights of Man
can I request for this thread to be moved into the mods section? Maybe someone will know how to help me there

if you want to increase Demanse size, go to:

Defines.lua

and then it should be in the first bank of text near the bottom of the 'paragraph'.

Observe:


NDiplomacy = {
PRESTIGE_LOSS_ON_SEND_GIFT_DECLINE = 10,
PIETY_FROM_CHURCH_GIFTS = 3,
BREAK_TRUCE_PRESTIGE_COST = 100,
MONTHS_PER_SUCCESSION_CB = 60, -- Number of months a succession CB lasts
ATTACKING_SOMEONE_CRUSADING_PIETY_COST = 40, -- Piety hit for attacking someone crusading
ATTACKING_SOMEONE_DEFENDING_AGAINST_OTHER_RELIGIOUS_GROUP_PIETY_COST = 100, -- Piety hit for attacking someone who is defending against other religious group
ATTACKER_CALL_DECLINE_COST = 25, -- Prestige cost for refusing to join an offensive war
DEFENDER_CALL_DECLINE_COST = 100, -- Prestige cost for refusing to join a defensive war
CALL_TO_WAR_DELAY = 60, -- Months between attempts to call someone into war
PAPAL_INVEST_PIETY_COST_MULT = 0.5, -- The effect of Papal investiture on the piety cost of the special Papal actions
SHORT_REIGN_YEARS_END = 9,
LONG_REIGN_YEARS_START = 10,
DOW_ON_ALLY_PRESTIGE_COST = 50,
MINIMUM_SEND_GIFT_COST = 20,
SEND_GIFT_INCOME_SCALEFACTOR = 24,
RELEASE_PRISONER_PIETY = 5,
USURP_TITLE_PRESTIGE_MULT = 0.25, -- Multiplier on Creation Prestige
DEMESNE_BASE_MAX_SIZE = 10.0, -- Base Max Demesne Size
DEMESNE_MAX_SIZE_TIER_MULT = 1.0, -- Extra Max Demesne Size from the ruler's rank
DEMESNE_MAX_SIZE_STEWARDSHIP_MULT = 0.25, -- Extra Max Demesne Size from ruler and spouse intrigue

GAVELKIND_MAX_SIZE_BONUS = 0.30, -- Max demesne size bonus from Gavelkind
DIPLO_FRIEND_OPINION_THRESHOLD = 40, -- Characters above this opinion are considered friends
DIPLO_RIVAL_OPINION_THRESHOLD = -40, -- Characters below this opinion are considered rivals
OBJECTIVE_DISCARD_WEIGHT_THRESHOLD = 0.05, -- AI will not pick ambitions or plots below this evaluated weight
CROWN_LAW_REVOLTRISK_INCREMENT = 10, -- Revoltrisk reduction/decrease due to crown laws


The bold underlined section is the part your looking for.
 

david3k

Second Lieutenant
7 Badges
Nov 11, 2010
150
2
  • Crusader Kings II
  • Deus Vult
  • Europa Universalis IV
  • 500k Club
  • Crusader Kings II: Holy Knight (pre-order)
  • Europa Universalis IV: Pre-order
  • Crusader Kings III
I'm actually looking for modifying the Legalism tech so that the +demesne size from it is larger on levels 3, 4 and 5

Those lines from defines.lua only show base size and modifiers from rank and stewardship.
 

Dorevai

Captain Awesome
78 Badges
Apr 16, 2010
1.161
273
  • Stellaris: Galaxy Edition
  • Deus Vult
  • Europa Universalis III
  • Europa Universalis III: Chronicles
  • Europa Universalis III Complete
  • Divine Wind
  • Europa Universalis IV: Rights of Man
  • Cities in Motion
  • Sword of the Stars
  • Heir to the Throne
  • Stellaris: Synthetic Dawn
  • Cities: Skylines - Mass Transit
  • Surviving Mars
  • BATTLETECH - Digital Deluxe Edition
  • Hearts of Iron IV: Together for Victory
  • Cities: Skylines - Natural Disasters
  • Stellaris: Leviathans Story Pack
  • Stellaris: Digital Anniversary Edition
  • Hearts of Iron IV: Cadet
  • Europa Universalis IV: Mandate of Heaven
  • Surviving Mars: Digital Deluxe Edition
  • BATTLETECH
  • Cities: Skylines - Snowfall
  • Hearts of Iron IV: Death or Dishonor
  • Cities: Skylines - Green Cities
  • Europa Universalis IV: Cradle of Civilization
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Europa Universalis IV: Rule Britannia
  • Victoria 2: A House Divided
  • Cities: Skylines Industries
  • Europa Universalis IV
  • Surviving Mars: First Colony Edition
  • Stellaris: Distant Stars
  • Hearts of Iron IV: No Step Back
  • Cities: Skylines - Parklife
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • BATTLETECH: Flashpoint
  • Victoria 2
  • Europa Universalis IV: Dharma
  • Victoria 2: Heart of Darkness
  • Cities: Skylines
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Common Sense
  • Cities: Skylines - After Dark
  • Europa Universalis IV: Cossacks
  • Europa Universalis IV: Mare Nostrum
  • Stellaris
That is odd. I'm not sure. I can't find the "TOO_MANY_HELD_DUCHIES" modifier either (just the localisation). I think it's in the .exe. Perhaps the legalism thing is too.
 

david3k

Second Lieutenant
7 Badges
Nov 11, 2010
150
2
  • Crusader Kings II
  • Deus Vult
  • Europa Universalis IV
  • 500k Club
  • Crusader Kings II: Holy Knight (pre-order)
  • Europa Universalis IV: Pre-order
  • Crusader Kings III
The problem is that it is hard to find a way at all to increase the demesne size, be it by event, triggered or static modifier, without changing the defines.lua.
 

MasterofMagic

CONFEDERATES AND FLAGS FOREVER!!
3 Badges
Nov 30, 2011
1.562
62
  • Crusader Kings II
  • 500k Club
  • Crusader Kings II: Holy Knight (pre-order)
Straight to the question: how do I mod the impact of legalism tech on demesne size?

Code:
	TECH_LEGALISM = {
		1 = {
			modifier = {
				SHORT_REIGN_LENGTH = -1
                                                       DEMESNE_BASE_MAX_SIZE = +1
			}
		}
		2 = {
			modifier = {
				SHORT_REIGN_LENGTH = -2
                                                       DEMESNE_BASE_MAX_SIZE = +2
			}
		}
		3 = {
			modifier = {
				SHORT_REIGN_LENGTH = -3
                                                       DEMESNE_BASE_MAX_SIZE = +3
			}
		}
		4 = {
			modifier = {
				SHORT_REIGN_LENGTH = -4
                                                       DEMESNE_BASE_MAX_SIZE = +4
			}
		}
		5 = {
			modifier = {
				SHORT_REIGN_LENGTH = -5
                                                       DEMESNE_BASE_MAX_SIZE = +5
			}
		}
	}


Just seemed logical using the Defines.lua info.
 

david3k

Second Lieutenant
7 Badges
Nov 11, 2010
150
2
  • Crusader Kings II
  • Deus Vult
  • Europa Universalis IV
  • 500k Club
  • Crusader Kings II: Holy Knight (pre-order)
  • Europa Universalis IV: Pre-order
  • Crusader Kings III
No, it doesn't work as well.

And please don't take this as me being hostile, but this could not have ever worked "in your game" since from my knowledge it is impossible to directly change the values from defines.lua once the game is running, so don't make unsupported claims.

EDIT: Also, it doesn't crash the game.
 

GAGA Extrem

Per Ardua Ad Astra
External QA
121 Badges
Mar 19, 2004
11.469
4.988
  • Semper Fi
  • Heir to the Throne
  • Europa Universalis III Complete
  • King Arthur II
  • Knights of Pen and Paper +1 Edition
  • Leviathan: Warships
  • Magicka
  • Majesty 2
  • Majesty 2 Collection
  • Europa Universalis III Complete
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Rome Gold
  • Hearts of Iron III
  • Ship Simulator Extremes
  • Sword of the Stars II
  • Supreme Ruler 2020
  • Teleglitch: Die More Edition
  • The Showdown Effect
  • Victoria 2
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • Warlock: Master of the Arcane
  • Warlock 2: The Exiled
  • Warlock 2: Wrath of the Nagas
  • Hearts of Iron IV: No Step Back
  • Darkest Hour
  • Arsenal of Democracy
  • Hearts of Iron II: Armageddon
  • Cities in Motion
  • 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
  • A Game of Dwarves
  • Dungeonland
  • East India Company Collection
  • Europa Universalis III
  • Europa Universalis III Complete
  • 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
The additional effects from legalism seem to be hardcoded.

The values from defines are used to multiply the base value, and the end result may NEVER be <1 or the game will crash.
Unfortunately, due to this limitation, reducing the demesne limit is impossible.