Jump to content

[mod] CBO Unofficial


Recommended Posts

Posted
3 hours ago, csirke128 said:

 

Hi,

 

The way to add things to CK3 is usually to copy something thats already doing that. So to add new blendshapes, and triggers for them, you need to start with an existing one, and check how they are done.

The next thing is to use some search function to find references in other files, I usually use the total commander search in file function to find where things are referenced.

 

So to start out, the body is at:

"CBO Unofficial Base\gfx\models\portraits\female_body\female_body.mesh"

 

This file is referenced in

"CBO Unofficial Base\gfx\models\portraits\female_body\female_body.asset"

 

pdxmesh = {
    name = "female_body_mesh"
    file = "female_body.mesh"

 

In here, you have blendshapes:

 

For example, lets look at hips:

    blend_shape = { id = "female_bs_body_hips_max"                                    type = "blendshapes/female_bs_body_hips_max.mesh" }
    blend_shape = { id = "female_bs_body_hips_min"                                    type = "blendshapes/female_bs_body_hips_min.mesh" }

 

You first connect a mesh file to an identifier, then you need to connect that to an attribute:

    attribute = { name = "bs_body_hips_max"                                            blend_shape = "female_bs_body_hips_max" }
    attribute = { name = "bs_body_hips_min"                                            blend_shape = "female_bs_body_hips_min" }

 

The attributes are the way the blendshapes are controlled, and these attributes are common between objects, so you have the same  bs_body_hips_max in the male body asset file as well, but also the same for clothing, you will see these attributes referenced there.

 

For example:

"CBO Unofficial Mesh\gfx\models\portraits\f_clothes\byzantine\nob_01\f_clothing_secular_byzantine_nob_01.asset"

    attribute = { name = "bs_body_hips_max"                    blend_shape = "female_clothing_secular_byzantine_nobility_01_bs_hips_max" }
    attribute = { name = "bs_body_hips_min"                    blend_shape = "female_clothing_secular_byzantine_nobility_01_bs_hips_min" }

 

The main thing for blendshapes, are that you need to have the same vertex ordering in the file as the main mesh, and you don't need the skeleton, but even if you have the skeleton in the mesh, its not an issue.

 

Then based on the attribute, you can apply the blendshape, 0 value is original mesh, 1 value is the blendshape.

And these are additive, so you can have multiple of them take effect.

 

So to control this blendshape, we need genes:

"CBO Unofficial Base\common\genes\hips gene.txt"

 

    gene_bs_hips = {
        group = body
        hips = {
        index = 0
            male = {
                setting = {
                    attribute = "bs_body_hips_max"
                    curve = {
                        { 0.0   0.0 }
                        { 0.33   0.0 }
                        { 1.0   0.75 }
                    }   
                    age = age_preset_puberty
                }
                setting = {
                    required_tags = "hips_clothed,dressed"
                    attribute = "bs_body_hips_max"
                    curve = {
                        { 0.0   0.0 }
                        { 0.33   0.0 }
                        { 1.0   -0.15 }
                    }   
                    age = age_preset_puberty
                }
                setting = {
                    attribute = "bs_body_hips_min"
                    curve = {
                        { 0.0   0.25 }
                        { 0.33   0.0 }
                        { 1.0   0.0 }
                    }   
                    age = age_preset_puberty
                }
            }
            female = male
            boy = male
            girl = male
        }
    }

 

Here, we have a gene, and the gene can have a value between 0 and 1, and these values are then mapped to attributes with these curves.

 
					curve = {
						{ 0.0   0.0 }
						{ 0.33   0.0 }
						{ 1.0   0.75 }
					} 

 

So what this tells us, is 

at gene value 0, apply the blendshape with value 0

at gene value 0.33, apply the blendshape with value 0

at gene value 1.0, apply the blendshape with value 0.75

 

Inbetween these values, there is a curve fitted, but for simplicity just think of them as linear lines, so at 0.2, it will have a value of 0, but at 0.5, maybe its around 0.2 or smth.

 

So based on the above, you can see that hips_max has no effect between value 0 and 0.33, and hips min has no effect between 0.33 and 1.0

The hips_clothed part is there, so that when a character is wearing clothing, the body is shrunk a bit to prevent clipping.

 

There are 2 types of genes:

morph_genes = {
    gene_bs_hips = {

 

special_genes = {
    morph_genes = {
        gene_bs_pregnant = {

 

Normal morph genes are part of the character DNA, you can add them to the file:

"CBO Unofficial Base\common\ethnicities\00_ethnicities_templates.txt"

 

    ### hips ###
    gene_bs_hips = {
        5 =  { name = hips      range = { 0.00 0.14 } }
        11 = { name = hips      range = { 0.14 0.28 } }
        13 = { name = hips      range = { 0.28 0.42 } }
        11 = { name = hips      range = { 0.42 0.58 } }
        5 = { name = hips      range = { 0.58 0.72 } }
        2 = { name = hips      range = { 0.72 0.86 } }
        1 =  { name = hips      range = { 0.86 1.00 } }
    }

 

So for random new characters, the game will first roll a dice on the number before the first =, i think maybe its 52 sided or smth, then if its less tahn 5, it picks the first category, then it choses a random value between 0 and 0.14

So it just lets you have a bit more varied distribution, here its ment to be more like a bell curve, the extreme values are less likely then the average values.

 

There are characters with predefined DNA, these are stored at files like:

"CBO Unofficial Base\common\dna_data\00_dna.txt"

 

Here, for each character, there is a value set for that gene, I think if you dont set it, it gets a value of 0 or something like that, so I have a script that adds the CBO genes to these files (randomize_dna.py).

 

The other gene type is special genes, these genes cannot be edited in the ruler creator, and they are not part of the character DNA, so the way these are applied is through portrait modifiers.

 

So its not a blendshape, but one example is makeup:

makeup_base_customization = {
    interface_position = 17
    usage = customization
    no_makeup_base = {
        usage = customization
        dna_modifiers = {
            morph = {
                mode = add
                gene = makeup_base
                template = no_makeup_base
                value = 0
            }
        }
    }
    makeup_base_full = {
        usage = customization
        dna_modifiers = {
            morph = {
                mode = add
                gene = makeup_base
                template = makeup_base
                value = 1.0
            }
        }
    }    
    makeup_base_half = {
        usage = customization
        dna_modifiers = {
            morph = {
                mode = add
                gene = makeup_base
                template = makeup_base
                value = 0.5
            }
        }
    }
}

 

This adds a new option in the barbershop, and then you can select between 3 different values, and when selected, it applies the gene with the value there.

 

It gets a bit more complicated with more details, but you will probably just need to mess around with things to understand a bit more how they work, let me know if you need some more info.

 

This is so helpful, thank you so much. I will look into this rn.
Thanks for all the work on the mod as well. :)

Posted
Hello, I've been trying to make the characters bigger in sex events but without success... I've managed to do it in general events, but in sex scenes the characters disappear. Can you help please?
 
 

ck3 2025-04-17 23-22-30.png

ck3 2025-04-17 23-22-48.png

ck3 2025-04-19 20-07-15.png

Posted
On 4/20/2025 at 11:50 PM, drumer said:
Hello, I've been trying to make the characters bigger in sex events but without success... I've managed to do it in general events, but in sex scenes the characters disappear. Can you help please?
 
 

ck3 2025-04-17 23-22-30.png

ck3 2025-04-17 23-22-48.png

ck3 2025-04-19 20-07-15.png

 

Hi, sorry for the delay, wanst near my PC, will try do it soon.

Posted
14 hours ago, saltandsour said:

Hi @csirke128 is there any chance of you adding new animations to this mod? or a new setup on how new animations can be added easily into cbo.

 

Hi, I dont really have the skills to create new animations (not anything good for sure).

My current plans are to import some animations from skyrim, I already tried adding a body mod, and add the skeleton, and load in an animation, but will take some work, like attaching the head correctly, and things like that. So might be a few month until I have something.

Posted
9 hours ago, txt93 said:

can you tell me how many animation there on the mod ? 

 

Hi, there are around 50, but a lot of them look similar with slight variations. (like 10 kinds of doggy, 6-7 kind of missionary, and so on)

Posted
3 hours ago, drborsch89 said:

11.jpg.d5780de4ca12feaf5e34d1d0b3ae5a19.jpg12.jpg.0a57c3b0f1b5531a21c28ef63bde3045.jpghello. characters bodies are deformed with some clothing presets

 

Can you share a load order, and an error.log?

The deformation is expected if the mesh is not found, or the textures are not found, the body is deformed to not clip with the clothing, but looks kinda weird when the clothing is not actually present.

Posted

121.jpg.d4fb1e9bcd0ca4082aa499b885d5d167.jpg

1 hour ago, csirke128 said:

 

Можете ли вы поделиться порядком загрузки и error.log?

Деформация ожидаема, если сетка не найдена или текстуры не найдены; тело деформируется, чтобы не прилегать к одежде, но выглядит немного странно, когда одежды на самом деле нет.

 

error.log

Posted
On 4/20/2025 at 11:50 PM, drumer said:
Hello, I've been trying to make the characters bigger in sex events but without success... I've managed to do it in general events, but in sex scenes the characters disappear. Can you help please?
 
 

ck3 2025-04-17 23-22-30.png

ck3 2025-04-17 23-22-48.png

ck3 2025-04-19 20-07-15.png

 

Hi, In big events for everyone, the options are on the left, maybe you are using a different mod?

Can you share the gui file you are using? (or what mod changes the event window like that)

Posted
2 minutes ago, drborsch89 said:

it didn't help. i started a new game. everything is the same
 

1111.jpg

222.jpg

333.jpg

 

Ah, sorry, sent the wrong link

 

CFP+EPE CBO Patch 1.2.3.7z

 

(the version says 3.1, but thats actually a really outdated one, I reset version numbering to 1.0 at 1.13.x CK3 version)

Posted
2 minutes ago, SofiaPavlovna said:

My breast slider don't work. Any ideas why? I downloaded version from pixeldrain.

 

most likely the new expansion broke the game and needs patching from the mods, I suggest roll back to the last update until everyone has time to update

Posted
26 minutes ago, Jaghave said:

 

most likely the new expansion broke the game and needs patching from the mods, I suggest roll back to the last update until everyone has time to update

Well, I have some tits now, but they not big as in editor.

Posted
15 minutes ago, SofiaPavlovna said:

Well, I have some tits now, but they not big as in editor.

 

breastsize is also determined in part by trait

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
×
×
  • Create New...