Crusader Kings III

Crusader Kings III

Harem Doctrines For 1.8.* (Deprecated)
51 Comments
kalanyr  [author] 3 Jan, 2024 @ 5:18am 
@ISRAFIL
It's been superseded by Extended Marriage Doctrines: https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2960455942
ISRAFIL 2 Jan, 2024 @ 11:47pm 
kalanyr this patch needs to be updated
kalanyr  [author] 10 Nov, 2023 @ 6:56pm 
Hmm. I think there's a bug where any reformed / new faith gets automatically given full tolerance no matter the game rule setting which is obviously a problem. Obviously going to have to patch that in any of my religious mods.
kalanyr  [author] 12 May, 2023 @ 12:28am 
This won't be updated for 1.9 as Extended Marriage Doctrines is a more comprehensive version of this and will be updated for 1.9.
kalanyr  [author] 5 Apr, 2023 @ 5:21pm 
Nah, it works like that for the in game Marriage Traditions too (because the intent for them was to reflect Cultures that had different practices to their Faith, so the Culture has to dominate).

The weird bit compared to faiths is the implicit setting that Traditions do if not specified (so you can't use a Tradition to add Concubines to either a Monogamous or Polygamous Faith for example, you can only change them to Concubines or setup a Tradition for each case)
Harridan Sharr 5 Apr, 2023 @ 12:18pm 
@kalanyr I see, maybe something to do with the in-game coding taking priority over the mod coding? Anyways, I'm still loving this mod,
kalanyr  [author] 4 Apr, 2023 @ 5:33am 
@Harridan Sharr
That's not an error, that's how Cultural Traditions to do with marriage were implemented by Paradox, Cultural Marriage Traditions completely override Faith Marriage Doctrines and unlike the Faith Doctrines are unitary (eg a Cultural Tradition that sets Spouses to 2 implicitly sets Concubines to 0 , even if Concubines are not specified* )

*I haven't tested if setting Concubines alone implicitly sets Spouses to 1 but I'd be surprised if it didn't .
Harridan Sharr 4 Apr, 2023 @ 1:24am 
Yeah, so your mod still clashes with Cultural Doctrines. For example, I had the the Harem Tradition which allowed for 4 secondary spouses and 8 concubines(?) and it kinda overwrote the Faith Doctrine for Marriages, Hetarocracy. I had to remove any of the Culture doctrines that had to do with Marriage, specifically having multiple wives or concubines to make this mod work.
kalanyr  [author] 13 Mar, 2023 @ 8:24am 
@战斗妖精山田Yamada
This definitely works. Sound's like you've got a conflict with another mod. Please try this mod alone and verify it doesn't work for you.
战斗妖精山田Yamada 13 Mar, 2023 @ 5:17am 
This doesn't work. You can't add the side room and spouse, and you can't see the UI. Another 255 concubines MOD can add concubines, and you can also see the UI。 https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2318880283
BreakdownBoy 6 Mar, 2023 @ 5:53pm 
I think you might be right.
kalanyr  [author] 6 Mar, 2023 @ 3:14am 
While I'm thinking of it for you have valid potential Concubines ? Only Prisoners and unlanded Courtiers (and unlanded family, doctrine/ circumstances allow) can be made Concubines and of course appropriate gender by Game rule/Doctrine.

It's actually pretty easy to run out of potential candidates early on.
kalanyr  [author] 5 Mar, 2023 @ 7:10pm 
@BreakdownBoy
Will look into it.
BreakdownBoy 5 Mar, 2023 @ 7:02pm 
Hi, I have encountered an inability to add more concubines when I have the Ruler doctrine (like 96 allowed concubines. Only have 7 or 8. No option to add concubines is shown.
kalanyr  [author] 3 Mar, 2023 @ 2:31am 
Unfortunately allowed_more_spouses is defined in code not in script , so there's no truly elegant way of doing this. You'd either have to carefully reverse engineer what allowed_more_spouses checks in code and then override the function with your own or and this is easier and much safer but less compatible

defines a new scripted trigger (following is pseudocode, you'd need to scope things correctly)

allowed_more_spouses2 = {
AND = { allowed_more spouses = yes
is_head_of_faith = yes }

}

And add the localisation for it (you can probably just copy the localisation for allowed_more_spouses)

And then replace every actual call to allowed_more_spouses with allowed_more_spouses_2.
Temnyj_Korol 2 Mar, 2023 @ 11:46pm 
Hi, I'm trying to do some minor modifications to the polygamy doctrines so that only the head of faith (or just the player, if that proves impossible) is allowed multiple spouses, but no syntax I've tried seems to work. Any suggestions? Would greatly appreciate
kalanyr  [author] 23 Feb, 2023 @ 2:48am 
@Awkland
I'll put it on my to do list to look into it, but I wouldn't have super high hopes, it'll depend on how much stuff depends on the marriage doctrine versions that DTR uses and just how dependant it is on it.
Awkland 23 Feb, 2023 @ 2:38am 
can you make a compatch with dynamic trade routes?
Gongall 7 Feb, 2023 @ 1:45pm 
Anyone know how to make this compatible with Elder Kings 2?
kalanyr  [author] 25 Jan, 2023 @ 10:10pm 
@ROFLWaffle: Yeah, it's not super difficult for me to add the top level Concubine/Polygamy/Managed Harem to the Traditions. I'm working on something else right now but I'll add it when I'm done with that.

(The Decisions are actually Debug mode locked and are there for testing the HoF revocation of inappropriate Traditions, they aren't really intended for your use)
SoCalExile 25 Jan, 2023 @ 4:11pm 
Any possibility to get Hetaerocracy culture added to the decision menu?
elijahkennedy1995 19 Jan, 2023 @ 9:27am 
okay, thank you man
kalanyr  [author] 19 Jan, 2023 @ 9:26am 
@elijahkennedy1995
This definitely fixes that. If you're having that issue then you've got a problem with a different mod that's clashing with this.
elijahkennedy1995 19 Jan, 2023 @ 9:01am 
i'm still having trouble with the "faith does not permit polygamy" is there anyway that I can fix this? I tried looking at an older fix, and patching it myself, but was still having issues
Holger 12 Jan, 2023 @ 10:35am 
As I only intend to use the AI fix, these parameters are not needed; otherwise I would replace them by the needed 'has_doctrine' / 'has_cultural_tradion' limits.
kalanyr  [author] 11 Jan, 2023 @ 8:04pm 
... and Cultural Traditions of course.
kalanyr  [author] 11 Jan, 2023 @ 2:14pm 
@Lucky Lenny
That's correct ( other than the stuff that flows from it using the accepts_concubinage trigger which depends ultimately on the added allows_concubinage parameter for the appropriate marriage doctrines)
Holger 11 Jan, 2023 @ 10:59am 
@kalanyr Has been interesting to compare my Concubinage - Culture Fix mod to this one. I would like to incorporate the AI take lover as concubine fix you mentioned in your description. As far as I can see, it's located in ai_make_concubine_interaction or is other relevant code needed?
kalanyr  [author] 3 Dec, 2022 @ 7:17pm 
Yes. No existing religions are altered nor are new ones added so should be work fine with a game in progress.
Crack Jack 3 Dec, 2022 @ 7:03pm 
ya think this will work on a just started game?
kalanyr  [author] 1 Dec, 2022 @ 7:02pm 
Have confitmed those errors appear with an unmodded game, so should be fine.
kalanyr  [author] 1 Dec, 2022 @ 3:26pm 
While these have been updated, I'm getting weird error messages that I noticed afterwards. Then CK3 decided to do bad Checksum thing when I tried to vanilla to compare. Reinstalling everything and then I'll see if I can work out what's going on.
kalanyr  [author] 20 Nov, 2022 @ 4:13pm 
Set you inheritance law to Male Preference / Male Only and women won't be allowed Consorts / Spouses. That's not anything special about this mod, that's just how the base game works.
Tebix 20 Nov, 2022 @ 10:06am 
is there a way to disable secondary spouses for women? If I enable it in the religion women also get secondary spouses
Jazuke Taizago 2 Nov, 2022 @ 1:30pm 
You can somewhat deal with Conflicts using Irony Mod Manager. Unfortunately, it seems they removed the Conflict Solver, cause i can't see it, which helped me greatly finding what lines and scripts and files conflicted with another.

I recommend using it for now and merge shit. Just keep in mind that if some specific mod has certain higher priorities, it will replace Mods you might want, such as this one. So you are aware.
kalanyr  [author] 2 Nov, 2022 @ 1:26pm 
@Pandora's box
Yes, definitely. They will both override the marriage doctrines (which you have to) and event files (which Paradox doesn't allow reliable partial overrides of)
Pandora's box 2 Nov, 2022 @ 10:54am 
does having more than one harem mod conflict things? Well, I got this one first but could only get a managed harem tradition that only lets me have 4 spouses and 12 concubines, and so my main problem is that I cant find anything else in doctrines or traditions that increases that number anywhere. I got another harem mod that increases number of spouses to 256, but no change there in any tradition or anything else as well. Will check again in-case I'm just blind, and bcz Im new to CK3 and traditions or faith doctrines (which is where I'm assuming thats what I have to go through).
Jazuke Taizago 29 Oct, 2022 @ 3:27pm 
Crusader Kings III > Workshop > Kapl0k's Workshop > Dynamic Trade Routes > Discussions

Second page. That's where i mentioned it conflicts with DTR.
kalanyr  [author] 29 Oct, 2022 @ 3:20pm 
@Jazuke
Where did you report this ? I'd like to make myself available for any questions/requests that they might have (I went and had a look on the Steam Workshop page, but there's no report from you in the Mod Conflict discussion there, so I assume it's somewhere else)
Jazuke Taizago 29 Oct, 2022 @ 12:33pm 
I made the Mod Conflict known to the DTR Mod Conflict Discussion. No idea if the Author read it and is aware, cause there was no response regarding it. So all i can do is wait and disable DTR for the time being. I don't even know WHY DTR would affect anything with Religion...it shouldn't modify anything regarding Religion. Weird.
kalanyr  [author] 27 Oct, 2022 @ 11:41pm 
DTR overriding that Concubines Tradition would remove the allows_concubinage parameter from it, which would make it count as monogamy for many of the purposes of this kid.
Lord Rizen 27 Oct, 2022 @ 5:31pm 
It also looks like DTR overwrites the Concubines tradition. Doesn't look like too big of deal though. Looks like the only effect on this mod is that it changes the cost.
Lord Rizen 27 Oct, 2022 @ 5:13pm 
So, it's got to be that both files are overwriting the same bit of code. I just ran this with Sappho's Daughters and it works fine. Sappho's Daughters religion file is also later in the alphabet like DTR's file but it doesn't touch the same coding as your file.
kalanyr  [author] 27 Oct, 2022 @ 5:01pm 
I'll have to have a look at the DTR mod and possibly talk to them to work out an appropriate patch for this. My solution is more comprehensive but also heavier in terms of files touched which means more maintenance and less inherent compatibility.
Lord Rizen 27 Oct, 2022 @ 4:52pm 
I've tried loading this before and after DTR, same issue. Only renaming the file made a difference. I've always understood that the load order was what determined when a file gets loaded as well. My only thought is that the mod order decides which version of a file is loaded last, and that if there are two files that have different names but overwrite the same code then the file name determines what coding is overwritten last. Could be wrong as I'm not a modder myself.
kalanyr  [author] 27 Oct, 2022 @ 4:41pm 
That's a bit weird, the mod order should matter more than the names now. Could you try moving this to after DTR to see if it works, without changing the file name ?

You've definitely identified the issue here though.
Lord Rizen 27 Oct, 2022 @ 4:38pm 
This doesn't work correctly with Dynamic Trade Routes. DTR is overwriting the marriage doctines. DTR's file is called vanilla_doctrine_marriage_type.txt so it loads after your file. I changed the name of your file to zzkhd00_harem_doctrines.txt and doctrines show up correctly in the new faith window. Looking at the DTR file it looks like they added concubines to the polygamy doctrine to get around "your faith does not allow polygamy" errors. Probably has something to do with the forced and secret concubines added by the mod.
Jazuke Taizago 27 Oct, 2022 @ 4:22pm 
It works without any other Mods. I tested right now and one other test after removing a few non-functional Mods, but that didn't work.

So SOMETHING must be causing the issues. Whatever it is, i don't have the energy to stay up late at night right now, so i am hitting bed and dealing with this after i wake up.
Jazuke Taizago 27 Oct, 2022 @ 4:11pm 
I'll try. But i have a lot of Mods active. Like 90 of them, Funnily enough, most of them to my knowledge, works fine, minus two. This one and another i'll just remove now.

I am assuming some kind of Mod specifically that has something to do with the UI and Religion must be affecting it, somehow. Just attempting to use logic.
kalanyr  [author] 27 Oct, 2022 @ 3:56pm 
Could you try it without mods ? If it works, and you can then identify the clashing mods I'll see what I can do.