ptp190 Posted October 9, 2020 Posted October 9, 2020 I saw a mod that takes this feature out. What would one have to do maybe add more muscles onto a character specifically a female one? I love the DNA system in the game and how most of the faces are random. It has been helping me draw people and on occasion I save some I think I would like to draw. My goal for modding is to try and add more idle poses. I'm sure there's other artists out there that could use it and could really utilize this game for their art endeavors and learning like I do.
SamIAmHam Posted October 9, 2020 Posted October 9, 2020 It's all controlled via 01_weight.txt in gfx/portraits/portrait_modifiers. This is the actual code. muscularity = { muscular = { ignore_outfit_tags = yes dna_modifiers = { morph = { mode = modify gene = gene_bs_body_shape # template = value = { value = prowess_for_portrait # Value ranges from 0 to 100 so needs to be multiplied multiply = 4 max = 1.0 } } } weight = { base = 100 } } } If you modify the multiply = 4 and the max = 1.0 you'll can decrease or increase the muscle mass completely.
ToastBaron Posted October 9, 2020 Posted October 9, 2020 1 hour ago, SamIAmHam said: It's all controlled via 01_weight.txt in gfx/portraits/portrait_modifiers. This is the actual code. muscularity = { muscular = { ignore_outfit_tags = yes dna_modifiers = { morph = { mode = modify gene = gene_bs_body_shape # template = value = { value = prowess_for_portrait # Value ranges from 0 to 100 so needs to be multiplied multiply = 4 max = 1.0 } } } weight = { base = 100 } } } If you modify the multiply = 4 and the max = 1.0 you'll can decrease or increase the muscle mass completely. This is a global variable though, and tweaking it would make both sexes more or less muscular equally, and much easier than what OP is looking for. To make it gender specific you would need to modify whatever it is that defines the effects the modifier has on the model. My first instinct was to check "\gfx\models\portraits\female_bodyfemale\female_body.asset", which has this line: "blend_shape = { id = "female_bs_body_muscular_1" type = "blendshapes/female_bs_body_muscular_1.mesh" }" I refuse to touch meshes with a 10 foot pole, but my guess is that this mesh is what governs how female bodies morph according to the muscle modifier.
SamIAmHam Posted October 9, 2020 Posted October 9, 2020 18 minutes ago, ToastBaron said: This is a global variable though, and tweaking it would make both sexes more or less muscular equally, and much easier than what OP is looking for. To make it gender specific you would need to modify whatever it is that defines the effects the modifier has on the model. My first instinct was to check "\gfx\models\portraits\female_bodyfemale\female_body.asset", which has this line: "blend_shape = { id = "female_bs_body_muscular_1" type = "blendshapes/female_bs_body_muscular_1.mesh" }" I refuse to touch meshes with a 10 foot pole, but my guess is that this mesh is what governs how female bodies morph according to the muscle modifier. You can alter the code to make it affect females and males differently. There is this in the triggers documentation, "is_female = ". I'd set it up as an "if = { is_female = yes }" the modification he wants with the males using the default under the "else = { }" scope. I'm not the one doing to modding which is why I didn't specify exactly how to do it. I wanted him to experiment with it to learn how to make the game as he wants it.
ptp190 Posted October 9, 2020 Author Posted October 9, 2020 So its a coding thing and not a graphic one? Thats interesting
SamIAmHam Posted October 9, 2020 Posted October 9, 2020 1 hour ago, ptp190 said: So its a coding thing and not a graphic one? Thats interesting Yup it's all coding that adds the morph.
Cheri Song Posted October 10, 2020 Posted October 10, 2020 More specifically, the morph is created as a 3d blendshape in the graphics files, but it's the code that tells the game when to add the blendshape.
SamIAmHam Posted October 10, 2020 Posted October 10, 2020 3 minutes ago, Cheri Song said: More specifically, the morph is created as a 3d blendshape in the graphics files, but it's the code that tells the game when to add the blendshape. The code tells how to apply the morph as well as how strong the morph is.
KingofSkyrim Posted October 12, 2020 Posted October 12, 2020 On 10/9/2020 at 3:26 PM, SamIAmHam said: It's all controlled via 01_weight.txt in gfx/portraits/portrait_modifiers. This is the actual code. muscularity = { muscular = { ignore_outfit_tags = yes dna_modifiers = { morph = { mode = modify gene = gene_bs_body_shape # template = value = { value = prowess_for_portrait # Value ranges from 0 to 100 so needs to be multiplied multiply = 4 max = 1.0 } } } weight = { base = 100 } } } If you modify the multiply = 4 and the max = 1.0 you'll can decrease or increase the muscle mass completely. Is it possible to do this with the pregnant belly morph?
SamIAmHam Posted October 12, 2020 Posted October 12, 2020 31 minutes ago, KingofSkyrim said: Is it possible to do this with the pregnant belly morph? Yup, you can alter the pregnancy morph in the same file. pregnancy = { usage = game pregnant = { ignore_outfit_tags = yes dna_modifiers = { morph = { mode = add gene = gene_bs_pregnant template = pregnant value = { value = 1 if = { # Overweight females should have less visible pregnancy, so we change the 100% pregnant value limit = { current_weight > overweight_threshold } value = current_weight_for_portrait # An absolute and normalized value derived from character body weight multiply = -1.0 add = 1.5 max = 1.0 } multiply = { add = pregnancy_days # Only change every 10 days divide = 10 round = yes multiply = 10 divide = 250 # PREGNANCY_DAYS is 280; we want 1 month at 100% max = 1 } } } } weight = { base = 0 modifier = { add = 100 has_trait = pregnant } } } }
kkbruh Posted February 12, 2024 Posted February 12, 2024 On 10/9/2020 at 9:26 PM, SamIAmHam said: It's all controlled via 01_weight.txt in gfx/portraits/portrait_modifiers. This is the actual code. muscularity = { muscular = { ignore_outfit_tags = yes dna_modifiers = { morph = { mode = modify gene = gene_bs_body_shape # template = value = { value = prowess_for_portrait # Value ranges from 0 to 100 so needs to be multiplied multiply = 4 max = 1.0 } } } weight = { base = 100 } } } If you modify the multiply = 4 and the max = 1.0 you'll can decrease or increase the muscle mass completely. This still possible? I can't seem to find the 01_weight.txt in the GFX folder
SamIAmHam Posted March 2, 2024 Posted March 2, 2024 On 2/12/2024 at 5:12 PM, kkbruh said: This still possible? I can't seem to find the 01_weight.txt in the GFX folder I no longer mod CK3 so I wouldn't know.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now