Jump to content

Prowess = more muscles?


ptp190

Recommended Posts

Posted

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. 

Posted

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.

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

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

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

Posted
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?

Posted
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
			}			
		}
	}
}

 

  • 3 years later...
Posted
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

  • 3 weeks later...
Posted
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.

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