Crusader Kings III

Crusader Kings III

77 ratings
Generate Missing Parents
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
254.164 KB
16 Jan, 2023 @ 8:09pm
2 May @ 12:53pm
27 Change Notes ( view )

Subscribe to download
Generate Missing Parents

In 1 collection by Lost Nomad
Lost Nomad collection
19 items
Description
Generates missing parents for landed rulers children, including dead children and illegitimate children.

Will try to use an existing spouse or concubine before generating a character.

Can choose to generate missing parents for just AI rulers or include playable characters too.


About
There are over 450 children of rulers in a vanilla game that have no corresponding mother or father. There may be more in extension or TC mod games.

This mod runs independently to the vanilla Generate Families game rule, concerning itself with only existing children that have a missing parent.

Where possible the primary spouse, or secondary spouse(s) and concubine(s), will be used before a parent character is generated. When a parent is generated they will be married to the ruler if possible, or made a concubine of the ruler if possible, otherwise will be a courtier of the ruler where possible, and finally they will be a wandering character located in the ruler's capital if there is no other possibility.

Generated parents will capture all possible children, so a ruler with 10 children will typically end up with just one generated spouse/concubine/courtier/wandering parents.

Illegitimate children will not share a parent with legitimate children, so if a ruler has 3 legitimate children and 2 bastards, then they will have a parent generated for the legitimate children (if necessary) and another parent generated for the illegitimate children.

Legitimized bastards are classed as legitimate children and as such will always have a parent generated for them but will not share a parent with legitimate children, instead they will have a new parent and may share that parent with any illegitimate children, so for RP purposes that ruler favoured one or more of their bastards from that man/woman to legitimize.


HOW TO
There are two rules for this mod that control how the missing parents are generated.

Generate Missing Parents
This rule controls the generation of missing parents with the following settings.
  • Off = Will not generate missing parents
  • AI rulers, legitimate children = Generate missing parent only for AI rulers, but only for their legitimate children
  • AI rulers, all children = Generate missing parent only for AI rulers, for all their children regardless of legitimacy
  • All rulers, legitimate children = Generate missing parent for all rulers, but only for their legitimate children
  • All rulers, all children = Generate missing parent for all rulers, for all their children regardless of legitimacy

Generate Missing Parents (Deceased)
This rule controls whether the mod processes only living children or both living and dead children, with the following settings.
  • Living Only = Only generate missing parents for living children
  • Living and Dead = Generate parents for both living and dead children


Note
If a ruler has more than one wife or concubines then the ruler's children will be assigned to them where possible taking their ages into consideration.

All spouses, concubines and generated parents comply with the proper age span between child and parent to avoid a CTD caused by illegal births.

All generated parents are noble, and will have random traits and education levels. Unfortunately they will not share DNA with the children due to limitations in the game engine.

Be warned that generated courtier/wandering parents may leave the ruler's court/capital, and end up anywhere in any capacity, including married to other rulers as the game progresses.


COMPATIBILITY
This mod does not edit vanilla files, so should be compatible with most other mods, and be fairly future proof so don't panic when the game says it's out of date for future game updates.
  • Ironman = yes
  • Fantasy mods = although the mod will probably run without errors, it is unlikely to reflect any esoteric features of the fantasy mod.


Checkout my other mods
Allied Rapid Reaction Corps

Artifact Curator

Crusaders Adoption Agency

Curia Regis

Designate Heir - freely

Education and Lifestyle Guru

Enhanced Zoom Reboot

Feud

HRE - no thanks

Last Will Succession

More Buildings Reboot

More Traditions v2

No Death Cascade

Purge Contracts and Holy Order Lease

TODO Reminders

Wild Oats
Popular Discussions View All (1)
0
11 Nov, 2023 @ 3:50am
Chinese Localization
To infinity and beyond
69 Comments
Lost Nomad  [author] 16 May @ 5:28am 
@Kidhedera
Make sense :steamthumbsup:
Kidhedera 15 May @ 5:37am 
Oh yeah that makes sense, I can already see the way just generating for *everyone* would lead to massive lag (especially if you have more counties added or something).

I just added a LOT more NPCs and a lo more chances for pregnancy so even more down the road so things are... hectic, and I will need a plague. I don't tend to play long games and I like using this as a population simulator so for me having everyone there is important, but that definitely isn't the way most people want to play the game.

I don't think that changing the main mod would be the vibe, its very excellent for what it does, but I figured if someone else wanted to make similar changes knowing that its very easy to make yours and the other more compatible is very easy might be helpful.
Lost Nomad  [author] 15 May @ 4:36am 
@Kidhedera
There are a lot more children in the game that are missing parents but this mod is only intended to deal with the children of playable rulers.

I didn't want to bloat the game but felt the playable rulers children needed to have parents, hence this mod but it won't suit everyone's purposes. Happy you found a solution for your requirements though.
Kidhedera 15 May @ 3:47am 
I quite like this mod, but was disappointed to see it only generating a fraction of the missing parents I'd expect. (Without the mod I had 700ish with 'live father, unknown mother' and with it I still had 300+).

I ended up downloading 'generate mothers' and adding the trigger to start your mod in its game rule, so basically the game does a pass generating spouses according to your rules (with the personally customised spouse template I replaced yours with) and then fills in the rest with the other mods spouses.

After this fix I had only ~80 NPCs with only one parent, and those were largely courtiers.

Its a cludgy solution, but it works well enough for my purposes :)
FunGaming44 3 May @ 7:24pm 
nevermind got it to work, my old man brain accidently named the file name the default file name.
FunGaming44 3 May @ 4:23pm 
for some reason my code disables the new nomad gui and i have no clue why it makes no sense at all lol
Lost Nomad  [author] 3 May @ 5:29am 
@FunGaming44
Cool, glad it worked :steamthumbsup:
FunGaming44 3 May @ 3:23am 
Just letting you know from the looks of it i got it to work, thanks for the help friend
FunGaming44 3 May @ 2:02am 
@Lost Nomad Going to try that out thanks for the info friend
Lost Nomad  [author] 3 May @ 1:55am 
@FunGaming44
It's not something I would want to maintain.

But you can do that yourself very easily, just duplicate events game_rule.1000 and game_rule.1001

In your 1000 change every_independent_ruler to every_barony which yields a landed_title target so you'll have to use holder then remove the every_vassal_or_below block

In your 1001 remove is_playable_character = yes

Then just add a custom on_game_start_after_lobby to start your 1000 event