Crusader Kings II

Crusader Kings II

Modify the World
Modify your Crusader Kings II experience by checking out the many mods created and shared by the community, including tweaks to almost any aspect of the game.
Learn More
LagunaFox 17 Aug, 2024 @ 11:00am
Trying To Allow Infinite Duchies
So I'm trying to make it so that I can get rid of vassals having a negative opinion because of holding too many duchies. I already modified the defines.lua file so that the max duchies legally held is 999, however that hasn't changed any of my vassals opinions. Unless changing that doesn't retroactively change their opinions then I feel like I'm definitely missing something.

Never done this kind of thing before, normally I just use other peoples mods but the one mod on the workshop for infinite duchies hasn't been updated in like 5 years and doesn't appear to work anymore. So I am forced to take matters into my own hands. Any and all help would be immensely appreciated.
< >
Showing 1-5 of 5 comments
Varainger 3 17 Aug, 2024 @ 1:20pm 
Originally posted by LagunaFox:
... however that hasn't changed any of my vassals opinions...

Did you let the game run a bit ?
Opinions are stored in the save game and these things don't get checked every day.
Let it run a month or more.
Last edited by Varainger; 17 Aug, 2024 @ 1:22pm
Varainger 3 17 Aug, 2024 @ 1:58pm 
The mod "All the Duchies" seemed to work fine for me.

https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=1133614205&searchtext=all+the+duchies


Tested with english king in 1337 bookmark and already had four or five duchies at start and created then two more.

IF you are using another mod that changes the defines.lua,then that might overwrite that mod and hence not work.
Last edited by Varainger; 18 Aug, 2024 @ 1:37am
LagunaFox 18 Aug, 2024 @ 8:38am 
Originally posted by Varainger:
The mod "All the Duchies" seemed to work fine for me.

https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=1133614205&searchtext=all+the+duchies


Tested with english king in 1337 bookmark and already had four or five duchies at start and created then two more.

IF you are using another mod that changes the defines.lua,then that might overwrite that mod and hence not work.

Well I currently have like 20 something duchies in my game. I am playing with shattered world mod and several other mods but I have no idea if any of them overwrite anything there. I will let it run for a month or so and see if anything changes.
LagunaFox 18 Aug, 2024 @ 8:45am 
Originally posted by LagunaFox:
Originally posted by Varainger:
The mod "All the Duchies" seemed to work fine for me.

https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=1133614205&searchtext=all+the+duchies


Tested with english king in 1337 bookmark and already had four or five duchies at start and created then two more.

IF you are using another mod that changes the defines.lua,then that might overwrite that mod and hence not work.

Well I currently have like 20 something duchies in my game. I am playing with shattered world mod and several other mods but I have no idea if any of them overwrite anything there. I will let it run for a month or so and see if anything changes.

Well I let it run for 3 months and all my vassals still have a -100 opinion of me because of a -110 held too many duchies opinion. So what do I do just go through each of my mods and check their defines.lua to change the duchy limit there as well?
Varainger 3 19 Aug, 2024 @ 1:59am 
Originally posted by LagunaFox:
.... So what do I do just go through each of my mods and check their defines.lua to change the duchy limit there as well?

Nah,the dirtiest,easiest and quickest way to test this is going to Documents/ParadoxInteractive/Ck2/mod
open the
"all the duchies.mod" file
and change
name="All the Duchies"
to
name="AAA_All the Duchies"

The mod name will now appear like that in the launcher and should be at the top of theMod tab. That should give the mod priority.


PS: This little modding change can actualy be done without including a complete defines.lua file. To prevent conflicts as above.

How to :
In mod have
common/defines folder
Have it include a differently named defines.lua file, as for ex. "mydefo.lua"
and inside (+empy line above and below)
NDefines.NDiplomacy.MAX_DUCHIES_LEGALLY_HELD = 20

Don't just copy+paste this into a file. Won't work.
Recommended for modding is Notepad++.
Last edited by Varainger; 19 Aug, 2024 @ 3:06am
< >
Showing 1-5 of 5 comments
Per page: 1530 50