Jump to content

[mod] dYounger Marriages


Recommended Posts

dYounger Marriages

View File

A reupload and continuation of AnyThoughts' younger marriages. Note that at the time of the upload, the original still works.

The Lance Update changes how traits are indexed. If you're using 1.9+ CK3, you need an updated version like this. If you're playing on a version from Fate of Iberia onwards, you should use this mod; if you're playing on an older version and you encounter any issues, try using the original.ORIGINAL-OUTDATED YoungerMarriages.rar

 

Changes:

1.9

  • Fix education traits not appearing in Lance Update CK3 (by removing index number in the traits)
  • Readds cultural opinion bonus/penalties to traits that had been being overwritten by YM
  • Readds language learning scheme bonuses to childhood traits that had been being overwritten by YM

1.8.2

  • Republican Education traits from Fate of Iberia have reduced age requirements as per other education traits
  • Changed female portrait rules so female characters use adult portraits at 14 instead of 15

 

Previous YM information:

Spoiler

Younger Marriages for CK3


YOUNGER MARRIAGES FOR CK3 VERSION 1.5.*

This mod makes it so that adulthood is moved from the base game 16 years of age to 14 years of age.

This is very loosely based upon an essay in medieval history from the University of Exeter which places adulthood at the age of puberty during these times, which was considered to be 12 for females and 14 for males. However, older ages from 15 to 20 were more common.

One benefit is you are able to get your children out of your court sooner

The mod also changes when personality traits are given and keeps the skill increase rate the same despite the 2 year shorter education period. However, due to the complexity of the Education system in game, I have yet to dig into changing the age when the Education reward is given, so that will still occur at age 16.

Be sure to let me know if you find any bugs.

**** Change Log ****

 


Version 1.2.5

Updated for version 1.5

 

Version 1.2:
Filled in the missing portions of the mod so that now the Education trait reward will fire at age 14, and the childhood personality traits should also be removed.

Version 1.1:
Fixed an issue where adults at the start of the game who were 14 & 15 would never receive an education trait. They will not get a trait assigned like before, however children who are under 14 and are being educated, will still have to wait until 16 to receive their education trait.

Version 1.0
Where it all began... Changed adulthood from default 16 to 14, which allows you to marry your kids off sooner, not just betrothe them.


 


 

Link to comment
  • 2 weeks later...
  • 3 weeks later...

Alright, simpler than I expected. Hardest part was getting the launcher to work again lel.

They're now indexing traits with a manual list rather than a number in the trait, which seems like a horrible idea and like it'll break some ridiculous number of playsets, but we don't add any traits and just edit existing ones so it doesn't impact us at all. Index numbers removed, PDX does the indexing for us because we're vanilla traits.

I also noticed that this didn't have some of the cultural opinion modifiers that were baked into education traits (e.g. vassals of certain cultures disliking low-education leaders) in an update after the original YM came out. I've fixed that as well.

On 4/23/2023 at 6:11 AM, tabla said:

child personality is missing "learn_language_scheme_power_mult", just so you know

I don't know why but I wasn't able to understand what you meant by this at the time. It's been added.

There weren't any new traits using minimum_age or maximum_age in my version of 00_traits, and education traits are more or less the same (except that index numbers had gone from not-being-used to being unable-to-be-used) so nothing that got added to base 1.9 needs to be changed, it seems.

 

Tell me if there's any issues with the DLC.

 

Link to comment

So far everything works me. Unusual, as I always had the same problem @Andarus described. I noticed that you changed EDUCATION_FOCUS_PROGRESS_YEAR to 1.25 from 1, which in theory should result in the same number.

Vanilla: 10 years (from 6 to 16) * 1 = 10

Your mod: 8 years (from 6 to 14) * 1.25 = 10

But somehow I noticed a lot more 1 star outcomes. I upped it to 1.35 for myself. I'm not sure if this is an actual issue or a perceived one.

Otherwise, everything seems to work completely fine! Thank you.

Link to comment

That was AnyThoughts' work. I can't tell if it does anything: maybe it interacts with something hardcoded, maybe it interacts with something from an older version, but I can't find any reference to EDUCATION_FOCUS_PROGRESS_YEAR outside of the defines (or even just EDUCATION_FOCUS_PROGRESS) grepping the CK3 textfiles.

1 hour ago, yoyoman69 said:

But somehow I noticed a lot more 1 star outcomes. I upped it to 1.35 for myself. I'm not sure if this is an actual issue or a perceived one.

Are you getting any success setting it to 1.35?

I more or less feel the same way but I've played with this mod so much that I've just been thinking that that's how CK3 is. That said, having looked at it now, my understanding is that every year you get points towards education progress that's calculated on coming of age. Maybe EDUCATION_FOCUS_PROGRESS_YEAR = 1.25 used to address this but I can't see that it does anymore; it's all in events and scripted_triggers and on_actions that I've looked through. As it stands the earlier coming of age looks like it's giving characters linearly less points, so they get worse educations.

 

I'm adding two calls to the yearly education points on_action to the 14th birthday trigger. Testing with ~30 calls seemed to produce a generation of >60% 4star educations, so two extra calls just before coming of age should make up the difference and be equal to vanilla - assuming that EDUCATION_FOCUS_PROGRESS_YEAR does do nothing, as I suspect. I'm not getting some unrealistic distribution (something like all 1s or all 4s) with only two calls, so it should be fine.

Link to comment
50 minutes ago, cumdollie said:

That was AnyThoughts' work. I can't tell if it does anything: maybe it interacts with something hardcoded, maybe it interacts with something from an older version, but I can't find any reference to EDUCATION_FOCUS_PROGRESS_YEAR outside of the defines (or even just EDUCATION_FOCUS_PROGRESS) grepping the CK3 textfiles.

Are you getting any success setting it to 1.35?

I more or less feel the same way but I've played with this mod so much that I've just been thinking that that's how CK3 is. That said, having looked at it now, my understanding is that every year you get points towards education progress that's calculated on coming of age. Maybe EDUCATION_FOCUS_PROGRESS_YEAR = 1.25 used to address this but I can't see that it does anymore; it's all in events and scripted_triggers and on_actions that I've looked through. As it stands the earlier coming of age looks like it's giving characters linearly less points, so they get worse educations.

 

I'm adding two calls to the yearly education points on_action to the 14th birthday trigger. Testing with ~30 calls seemed to produce a generation of >60% 4star educations, so two extra calls just before coming of age should make up the difference and be equal to vanilla - assuming that EDUCATION_FOCUS_PROGRESS_YEAR does do nothing, as I suspect. I'm not getting some unrealistic distribution (something like all 1s or all 4s) with only two calls, so it should be fine.

Is this implemented here?

Link to comment
1 hour ago, someguy666 said:

Is this implemented here?

That's the 1.9 B

The opening post of the topic doesn't update to reflect changes in the details on the file page straight away. Just go to view file and grab the new version.

Link to comment
23 hours ago, cumdollie said:

That was AnyThoughts' work. I can't tell if it does anything: maybe it interacts with something hardcoded, maybe it interacts with something from an older version, but I can't find any reference to EDUCATION_FOCUS_PROGRESS_YEAR outside of the defines (or even just EDUCATION_FOCUS_PROGRESS) grepping the CK3 textfiles.

Are you getting any success setting it to 1.35?

I more or less feel the same way but I've played with this mod so much that I've just been thinking that that's how CK3 is. That said, having looked at it now, my understanding is that every year you get points towards education progress that's calculated on coming of age. Maybe EDUCATION_FOCUS_PROGRESS_YEAR = 1.25 used to address this but I can't see that it does anymore; it's all in events and scripted_triggers and on_actions that I've looked through. As it stands the earlier coming of age looks like it's giving characters linearly less points, so they get worse educations.

 

I'm adding two calls to the yearly education points on_action to the 14th birthday trigger. Testing with ~30 calls seemed to produce a generation of >60% 4star educations, so two extra calls just before coming of age should make up the difference and be equal to vanilla - assuming that EDUCATION_FOCUS_PROGRESS_YEAR does do nothing, as I suspect. I'm not getting some unrealistic distribution (something like all 1s or all 4s) with only two calls, so it should be fine.

 

Yep, I did play around and it indeed doesn't seem to change anything, but the change is really small. I suppose I could try with some unreasonable number like 10, but I don't have the time atm. One strange thing -- I didn't seem to get the important_actions notice for available marriage/turning betrothal into marriage at 14. Not sure if this is on my end or what.

 

P.S. You should add the stuff from Tours and Tournaments to the 14th birthday too.
 

Spoiler


on_14th_birthday = {
	trigger = { age = 14 }
	on_actions = {	
		childhood_education
		childhood_education
	}
	events = {
		childhood_education.9103 #To make sure that every child gets a education
		child_personality.4011 #To make sure everyone gets a sexuality
		childhood.0900#victim transforms into opinion modifier on adulthood
		childhood.0910#bully transforms into opinion modifier on adulthood
		childhood.0998#crush transforms into opinion modifier on adulthood
		coming_of_age.0001#Learning
		coming_of_age.0002#Stewardship
		coming_of_age.0003#Martial
		coming_of_age.0004#Intrigue
		coming_of_age.0005#Diplomacy
		delay = { days = 2 }
		childhood_education.0005 #To remove education focus
		childhood_education.0006 #To remove stray guardians
		childhood_education.0007 #To remove childhood traits and make sure any education trait is applied
		coming_of_age.2000 #Sage Accolade
		coming_of_age.2001 #Sage Accolade high bonus
		coming_of_age.3000 #House Knight Accolade
	}
	effect = {
		if = {
			limit = {
				is_ai = yes
				# Shouldn't matter _but_, just in case, we double-check that you're actually in a suitable diarchy.
				has_diarchy_active_parameter = diarchy_type_is_entrenched_regency
			}
			trigger_event = {
				id = diarchy.0111
				months = { 6 24 }
			}
		}
	}
}

 

Edited by yoyoman69
Link to comment
  • 1 month later...
  • 2 weeks later...
  • 3 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more information, see our Privacy Policy & Terms of Use