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

dunka2

Colonel
97 Badges
Sep 10, 2007
1.141
1.883
  • Europa Universalis: Rome
  • Hearts of Iron IV Sign-up
  • Victoria: Revolutions
  • Europa Universalis III
  • Cities in Motion 2
  • Surviving Mars
  • Crusader Kings Complete
  • Crusader Kings III
  • Imperator: Rome Deluxe Edition
  • Surviving Mars: First Colony Edition
  • Crusader Kings II
  • Europa Universalis IV
  • Supreme Ruler 2020
  • Victoria 2
  • 500k Club
  • Cities: Skylines
Here's a few little edits to the defines I made to help get more characters marrying and having more children.

Now currently the game won't read a modded defines.lua, so you'll have to replace the original one to see any changes. Once Pdox fixes the issue, I'll make a proper mod on steam.

What I've done here is lowered the required prominence to get married to 10, raised the base number of children per couple from 1 to 2, lowered the maximum age of generated female characters and spouses from 40 to 30, and bumped the fertility minimum and maximum by 1%.

IMPORTANT
The above fixes do seem to help, but you still have to be strategic with your characters as they can only get married between 18-45 and then can not have children after 45. What you need to do is swap out your older characters periodically for their children to make sure they'll get married and have children themselves. If you don't do this, even with the changes I made, you'll find yourself running out of characters soon enough.

Instructions
1) Find the main game directory. To do so, right click on Imperator in your steam library, click 'properties', click 'local files', and then click 'browse local files'.

2) Save a copy of the original defines.lua file which is found in the 'defines' folder which is in the 'common' folder in the main game directory.

3) Take the defines file I'm attaching to this post and put it in the 'defines' folder. When you're asked if you want to overwrite, click 'yes'. Done! Hopefully you'll have more characters longer.

Please let me know how you all get on. It still doesn't work quite as I hoped, but I can only test so many games as these changes are only apparent after 100+ years of play.

Finally I'm more than happy for anyone to use these edits. It's not much after all, so please do feel free.


ALSO
In order to make sure characters marry (because they still don't seem to be all the time for mysterious reasons, I made a mod on steam that allows you to arrange marriages for your family in republics just like in monarchies. Should help a little bit.

Link: https://steamcommunity.com/sharedfiles/filedetails/?id=1727327295
 

Attachments

  • 00_defines.txt
    21 KB · Views: 135
Last edited:
Thanks. I looked at your changes in the code but the problem with only two marriages per family still seems to exist. The problem i have in my current game as ROM is that i have dozens of males (and even females) in their prime with 50+ prominence (some are even at max prominence), but because of this stupid hard cap of only two marriages per family they won't marry.

Have you tried to tinker with the
COURT_SIZE_CHILD_PENALTY_THRESHOLD
or
SUBTRACTION_CHILDREN_COURT_SIZE_PENALTY ?
Do you know what they do?

Edit:
Someone proposed in one of the other threads if the marriage cap is unchangeable, it might be better to have these two couples per family but increase their fertility significantly. Having them breed like rabids might be the better fix for the longtime survival of a family.
 
Last edited:
I just looked back over the file, and I don't see anywhere that puts a hard cap on marriages per family. Am I missing something?

SUBTRACTION_CHILDREN_COURT_PENALTY reduces the absolute number of children a couple can have once the threshold is met. COURT_SIZE_PENALTY_THRESHOLD establishes what that threshold is. In the case of this game, it's 180. So far I haven't seen a single court reach that size as most of the characters die without children.

In other words I don't think it will help with the issue at hand. I did just notice that I can edit the extra children given at each prominence threshold with ADDITIONAL_CHILDREN_FOR_PROMINENCE_THRESHOLD_1, so I might give extremely prominent characters two extra children instead of just the one

I'm starting to also think the mechanism that creates spouses for prominent characters might not be functioning all the time. There are too many instances of characters aged between 18-45 with prominence over 20 who just don't seem to get married. I made a mod on steam that should help get more people married through by allowing you to arrange marriages fro family even in republics. I'm going to put the link up in the first post.
 
When i talking about the marriage cap, i am refering to this forum post of the Imperator Rome director.
Only head of families + 1 more in prime age (20-40) will marry in each family.

If monarchy, you have to manually marry your own family, as testers kind of preferred to have control over it.
He basically says there can be only two married couples per family - at least for republics.


I just looked back over the file, and I don't see anywhere that puts a hard cap on marriages per family. Am I missing something?
Neither do i.
 
Ugh! How very annoying! Explains why people still aren't marrying without my intervention. Really do check out the mod I linked up top as it helps a great deal. I'll try digging around in the files to see if I can locate where this cap is set in stone. Perhaps I can fix it.

At the very least I'm sure an event can be created to force people to marry. Probably tedious though.
 
I’ve made some of my own changes to defines... can you tell me where to edit what so that republics allow me to arrange marriages like in monarchies?
 
If you click through to the steam link, I've actually made a mod that does that if you'd like. It just edits the 'arrange marriage' in the folder 'character interactions'.

I edited the 'potential trigger' section from:

potential_trigger = {
scope:actor = {
OR = {
is_monarchy = yes
is_tribal = yes
}
}
hidden:scope:target = {
is_alive = yes
employer = scope:actor
NOT = { employer = { tag = REB } }
NOT = { employer = { tag = BAR } }
is_adult = yes
OR = {
is_close_relative = scope:actor.current_ruler
is_ruler = yes
}
}
}

to:

potential_trigger = {
scope:actor = {
OR = {
is_monarchy = yes
is_tribal = yes
is_republic = yes
}
}
hidden:scope:target = {
is_alive = yes
employer = scope:actor
NOT = { employer = { tag = REB } }
NOT = { employer = { tag = BAR } }
is_adult = yes
}
}

Quick and easy edit there. Besides the minefield that can be the new scope system, this game is eminently easier to mod than any pdox title to date I think. The main issue I'm finding is that some terms don't seem to exist. Trying to make a divorce interaction that reduces loyalty of all members of the spouses family, but can't for life of me figure out how to do it.
 
MUST I change the Defines in the main game folder, or can the Defines be changed as a mod?
 
That's sad, but Imperator is still new. Thanks, my dude!