Jump to content

Recommended Posts

Posted

You could try ...

 

root = { marry = scope:target }

(For example, diplomacy_family.2253 does that this way).

 

Otherwise, check the error log.

Posted

ok i was able to marry regular (male-female) with lover relationships

free_marry.1 = {
	type = character_event
	title = free_marry.1
	desc = free_marry.1.desc
	theme = marriage
	right_portrait = { character = root }
	trigger = {
		any_relation = {
			type = lover
			this = scope:spouse
		}
	}
	immediate = {
		play_music_cue_once = { TRACK = mx_cue_marriage }
		if = {
			limit = {
				NOT = { exists = scope:spouse }
			}
			random_relation = {
				type = lover
				#limit = { is_spouse_of = root }
				save_scope_as = spouse
			}
		}
	}
	option = {
		name = free_marry.1.a
		desc = free_marry.1.a.desc
		root = { marry = scope:spouse }
	}
	option = {
		name = free_marry.1.b
		desc = free_marry.1.b.desc
		root = { marry_matrilineal = scope:spouse }
	}
	option = {
		name = free_marry.1.c
		desc = free_marry.1.c.desc
	}
}

but still cant marry two womans. curses!

[17:35:41][jomini_script_system.cpp:169]: Script system error!
  Error: marry effect [ Mahila Lha Taramo of Yarlung (Historical ID: 247204 - Internal ID 18180 - d_yarlung) is not allowed to marry ]
  Script location: file: events/free_marry_events.txt line: 31
[17:35:55][jomini_script_system.cpp:169]: Script system error!
  Error: marry_matrilineal effect [ Mahila Lha Taramo of Yarlung (Historical ID: 247204 - Internal ID 18180 - d_yarlung) is not allowed to marry ]
  Script location: file: events/free_marry_events.txt line: 36

 

Posted
16 hours ago, dullman said:

So I decided to try ck3 modding and tested few possibilities for genes being bound to sliders (e.g. bust of characters) and it is quite possible although we need bigger sliders (and better models)....

Impressive work. Any chance I could see how you went about coding that? And as a somewhat aside, do you know if it could work for eye color, binding it to a trait, that is? I am exploring the possibility of a mind control mod, and was hoping to include eye changes as part of the effects, if possible.

Posted
1 hour ago, srx47 said:

but still cant marry two womans. curses!

 

Hmm. Just as an experiment, what happens when you do a "gender = male" on one of them first, then "gender = female" once they're married?

 

EDIT: Nevermind, those seem to just check for gender, not set it. There's a "scriptedtests_can_marry_character" defined in ck3.exe though, maybe creating this would help?

Posted

workshop is already out... only a few mods there, nothing spectacular. although the vampire mod could be promising. do u know if it alters the 3d avatars ?  

Posted
1 hour ago, 0wnyx said:

workshop is already out... only a few mods there, nothing spectacular. although the vampire mod could be promising. do u know if it alters the 3d avatars ?  


Not the model but the skintones yes. For example there is a clan where the skin goes completely black as they age.

They seem to have most of the events of the ck2 original mod then some.

 

*edit
They have however made some very dried up looking undead-like faces on some characters.

Posted
12 hours ago, torg16 said:

Wait, so you CAN bind breast size to a trait?

Can you give me the info for that? I need max bust shape 4 dynasty ASAP

 

3 hours ago, MasterQuinn said:

Impressive work. Any chance I could see how you went about coding that? And as a somewhat aside, do you know if it could work for eye color, binding it to a trait, that is? I am exploring the possibility of a mind control mod, and was hoping to include eye changes as part of the effects, if possible.

 

So basically I needed to create a new gen which has constraint on bust size, basically i created few files genes_morph, portraits_modifiers in gfx, trait file and thats all. In vanilla there exists trait which has constraint on mesh, basically all traits with beauty (and ugly) change the skin of character (or I believe it do this but I'm not sure, but basically I made my experiment based on trait group beauty_good (or something like that).

 

And to be truthful I would like to change 3d model to something better but since I have no knowledge of 3d I can only do a simple things like increase constraints on blendshapes so I hope anyone would be willing to provide us with new model in future.

 

ps. It's me or anyone has a problems to trigger event on character creation (since I try to assign breasts traits for every female)

Posted
1 hour ago, dullman said:

 

 

So basically I needed to create a new gen which has constraint on bust size, basically i created few files genes_morph, portraits_modifiers in gfx, trait file and thats all. In vanilla there exists trait which has constraint on mesh, basically all traits with beauty (and ugly) change the skin of character (or I believe it do this but I'm not sure, but basically I made my experiment based on trait group beauty_good (or something like that).

 

And to be truthful I would like to change 3d model to something better but since I have no knowledge of 3d I can only do a simple things like increase constraints on blendshapes so I hope anyone would be willing to provide us with new model in future.

 

ps. It's me or anyone has a problems to trigger event on character creation (since I try to assign breasts traits for every female)

Since it uses blender, im thinking about importing body parts from sims4, would make the job a lot easier.

 

ps: theres a video of some guy who created a custom ruler designer, perhaps you could find your answer there. Just put “ck3 modding “in YouTube.

Posted
1 hour ago, dullman said:

 

 

So basically I needed to create a new gen which has constraint on bust size, basically i created few files genes_morph, portraits_modifiers in gfx, trait file and thats all. In vanilla there exists trait which has constraint on mesh, basically all traits with beauty (and ugly) change the skin of character (or I believe it do this but I'm not sure, but basically I made my experiment based on trait group beauty_good (or something like that).

 

 

Can you copy and paste the syntax you used? I'm having a hard time with it. 

 

I have the custom trait, but I can't get it to apply the gene to the character model

Posted
32 minutes ago, torg16 said:

Can you copy and paste the syntax you used? I'm having a hard time with it. 

 

I have the custom trait, but I can't get it to apply the gene to the character model

first we have an example trait:

# Tiny Tits ( < A ) - Small Tits Faction
ct_tiny_tits = {
	index = 600
	opposites = {
		ct_big_tits_group
		ct_normal_tits_group
		ct_cow_tits_group
	}
	potential = {
		is_female = yes
	}
	
	inherit_chance = 50
	birth = 50
	random_creation = 0
	
	fertility = -0.20
	martial = 1
	same_opinion = @ct_pos_compat_high
	
	attraction_opinion = -10

	group = ct_tiny_tits_group
	level = 1
	
	physical = yes
	good = yes
	
	child_inheritance_sex = female
	genetic_constraint_women = ct_tiny_tits

	desc = {
		first_valid = {
			triggered_desc = {
				trigger = {
					NOT = { exists = this }
				}
				desc = trait_ct_tiny_tits_desc
			}
			desc = trait_ct_tiny_tits_character_desc
		}
	}

	ai_greed = 15
	ai_energy = 15
	ai_boldness = 10

	compatibility = {
		ct_small_tits = @ct_pos_compat_medium
		ct_cow_tits = @ct_neg_compat_high
		ct_gigantic_tits = @ct_neg_compat_high
		ct_enormous_tits = @ct_neg_compat_medium
		ct_huge_tits = @ct_neg_compat_medium
		ct_big_tits = @ct_neg_compat_medium
	}
}

Second we have a gene morph defined (and probably here is a problem since myself i didn't saw that genes should be in morph genes):

morph_genes = {
    ct_bs_bust = {

        index = 104

        bust_tiny_tits = {
            index = 1
            female = { 
                setting = { attribute = "bs_body_breast_size_min" value = { min = 0.7 max = 0.5 } age = age_preset_puberty  } 
                setting = { attribute = "bs_body_breast_size_max" value = { min = -0.7 max = -0.5 }  age = age_preset_puberty } 
            }
            girl = { 
                setting = { attribute = "bs_body_breast_size_min" value = { min = 0.7 max = 0.5 } age = age_preset_puberty  } 
                setting = { attribute = "bs_body_breast_size_max" value = { min = -0.7 max = -0.5 }  age = age_preset_puberty } 
            }
        }
	}
}

Third we use both value and join them together to work 

 

visual_traits_tits = {
	usage = game

    ct_tiny_tits = {
        dna_modifiers = {
            morph = {
			    mode = add
		
				gene = ct_bs_bust
				template = bust_tiny_tits
				value = 1.0
            }
        }

        weight = {
			base = 0
			modifier = {
				add = 100
				has_trait = ct_tiny_tits
			}
        }
    }
}

 

I hope that this would help you.

 

Posted
15 minutes ago, dullman said:

first we have an example trait:


# Tiny Tits ( < A ) - Small Tits Faction
ct_tiny_tits = {
	index = 600
	opposites = {
		ct_big_tits_group
		ct_normal_tits_group
		ct_cow_tits_group
	}
	potential = {
		is_female = yes
	}
	
	inherit_chance = 50
	birth = 50
	random_creation = 0
	
	fertility = -0.20
	martial = 1
	same_opinion = @ct_pos_compat_high
	
	attraction_opinion = -10

	group = ct_tiny_tits_group
	level = 1
	
	physical = yes
	good = yes
	
	child_inheritance_sex = female
	genetic_constraint_women = ct_tiny_tits

	desc = {
		first_valid = {
			triggered_desc = {
				trigger = {
					NOT = { exists = this }
				}
				desc = trait_ct_tiny_tits_desc
			}
			desc = trait_ct_tiny_tits_character_desc
		}
	}

	ai_greed = 15
	ai_energy = 15
	ai_boldness = 10

	compatibility = {
		ct_small_tits = @ct_pos_compat_medium
		ct_cow_tits = @ct_neg_compat_high
		ct_gigantic_tits = @ct_neg_compat_high
		ct_enormous_tits = @ct_neg_compat_medium
		ct_huge_tits = @ct_neg_compat_medium
		ct_big_tits = @ct_neg_compat_medium
	}
}

Second we have a gene morph defined (and probably here is a problem since myself i didn't saw that genes should be in morph genes):


morph_genes = {
    ct_bs_bust = {

        index = 104

        bust_tiny_tits = {
            index = 1
            female = { 
                setting = { attribute = "bs_body_breast_size_min" value = { min = 0.7 max = 0.5 } age = age_preset_puberty  } 
                setting = { attribute = "bs_body_breast_size_max" value = { min = -0.7 max = -0.5 }  age = age_preset_puberty } 
            }
            girl = { 
                setting = { attribute = "bs_body_breast_size_min" value = { min = 0.7 max = 0.5 } age = age_preset_puberty  } 
                setting = { attribute = "bs_body_breast_size_max" value = { min = -0.7 max = -0.5 }  age = age_preset_puberty } 
            }
        }
	}
}

Third we use both value and join them see together to work 

 


visual_traits_tits = {
	usage = game

    ct_tiny_tits = {
        dna_modifiers = {
            morph = {
			    mode = add
		
				gene = ct_bs_bust
				template = bust_tiny_tits
				value = 1.0
            }
        }

        weight = {
			base = 0
			modifier = {
				add = 100
				has_trait = ct_tiny_tits
			}
        }
    }
}

 

I hope that this would help you.

Sorry to be an idiot, but I'm brand new to modding. Where did you define the morph template? In the trait file, or somewhere else?b

Posted

I've never done much with 3D modeling. But modifying the bodies isn't that hard once you understand how the blendshapes work.

sAy6RGR.png

 

The labia is a little exaggerated, but that helps keeping it visible at the angles the game puts the characters at. Doing the guys would be harder, because I think you have to either remake the model, or work with the number of polygons the model already has (not many). I think maybe penises would work better as accessories?

I think I should have a mod to do girls pretty soon though.

Posted
15 hours ago, srx47 said:

but still cant marry two womans. curses!

Yeah looks like it's hard coded still.

 

As for changing gender there is the character creator mod that does change gender. Although it looks like you'd have to delete and rebuild the character from scratch which isn't impossible. Perhaps there is a way to change gender that hasn't been discovered yet.

Posted
7 minutes ago, WaffleIron said:

Looks like that image didn't work (odd that new members can't edit): https://imgur.com/a/uDouv2P

Did you try that model in game?  I'm also new to 3D modeling, and what I've noticed is due to the dynamic body shapes, indentations that I try to make invert outwards sometimes.  I tried editing the female_body and female_body_average meshes, and some body types will end up with a penis looking protrusion.  Have you gotten around that?

Posted
2 minutes ago, kaimiya said:

Is possible set a number of wives on polygamous religion? I remember CK2 you can set a numbers of wives but I can't find on CK3 wiki.

Yes, go to \Steam\SteamApps\common\Crusader Kings III\game\common\religion\doctrines and open the 00_doctrines.txt file and you'll find this:

 

doctrine_polygamy = {
        piety_cost = {
            value = faith_doctrine_cost_mid
            if = {
                limit = { has_doctrine = doctrine_polygamy }
                multiply = faith_unchanged_doctrine_cost_mult
            }
        }
        parameters = {
            number_of_spouses = 4
            spouse_piety_loss = yes
        }
    }

 

Posted
15 minutes ago, thenoirangel said:

Did you try that model in game?  I'm also new to 3D modeling, and what I've noticed is due to the dynamic body shapes, indentations that I try to make invert outwards sometimes.  I tried editing the female_body and female_body_average meshes, and some body types will end up with a penis looking protrusion.  Have you gotten around that?

Yes, it works in all the circumstances I've seen in-game so far. Trying to modify female_body and female_body_average was what I tried first too, but I don't think those files are supposed to be changed unless you are completely redoing the model from scratch. The the method I used was creating a blendshape specifically for the genitals, and setting its default value to 1.0 in female_body.asset.
 

I'm almost done with the mod, you can see for yourself then.

Posted

Just a small FYI: The YAML files Crusader Kings uses for localisation aren't actually proper YAML files, but it doesn't matter and yours don't have to.

 

A bit longer explanation ... I'm sure you wondered what those strange numbers (0 most commonly) meant:
 

 some_test:0 "Kiss the bride"

They're not valid YAML syntax and break validators, including VSCode's one. Turns out ... they are just the remnants of an internal translation tool Paradox is using. To quote Martin Anward

 

So yeah. You can just write that line as ...

 some_test: "Kiss the bride"

It works and you only get to see actual syntax errors in your IDE or validators.

Posted

Ok, trying to change breast size and body types. Good news - you can simply change female_bs_body_breast_size_2_max.mesh to increase maximum of breast size then a char generating. It's all.

Spoiler

You can get something like this ?

tit1.png.9c26c35f7e9088e5961bf549cf4bd6c4.png

Now bad news - first, the models have limited number of the vertexes, and a simple increase in their number broke the characters. So I can't find normal way to create the smooth high-poly models.  Second, it will only work on nude models. For clothes there is file female_bs_body_breast_size_max.mesh, but breasts will be collide with clothes and shown above it. Same with body types, for example female_bs_body_shape_hourglass.mesh, body will be shown above. The reason is in the clothes - it have predicate model and the each clothes have it own breast_size_max.mesh. So, to create females with bigger breast or male/female with different body sizes, it is necessary to modify each clothes separately. Only for women there is more than 40 types of the clothes, so this is very complex task.

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