Jump to content

CK2 Modding Quick Question Thread


Recommended Posts

Are there any simple sexual interaction mod like "Get intimate with"?

 

I find most of the lewd mods a bit too much to my liking, "Get intimate with" though still half finished, very was about the right amount for me, but unfortunately the author stopped working on it and nuked their existence on the forum, and I could not for the life of me figure out how to make even just the very basic change to this mod.

 

Thus I would like to ask if there's anything similar that I somehow missed.

Link to comment
  • 2 weeks later...
On 8/26/2022 at 4:42 PM, Canaris said:

I dont want to start new thread. 
Anyone knows which mod is this event from? I cant close it, selecting sell loot just makes it appear again and again. It always fires, i tried earlier saves and it always happens.
Is there some way i can find out where is this from? Or just close the event window just like that?

ck2_1.png

 

 

Use the ~ key and type charinfo then hit enter

 

The next time the event fires hover over the option and it should tell you the event id. Once you have that id(the name may give you context where it might be or it might not) you can search for that ID in your mods event folders

 

Link to comment
8 hours ago, AITH said:

 

 

Use the ~ key and type charinfo then hit enter

 

The next time the event fires hover over the option and it should tell you the event id. Once you have that id(the name may give you context where it might be or it might not) you can search for that ID in your mods event folders

 

Thank you, will try that.

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

Is there any way to code it so a piece of code is only read if ANOTHER mod is installed?

 

I wish to make my mod compatible with DWR, but also work as a standalone without it. Problem is, of course, that the game crashes whenever it reads a code that references DWR, if it isn't installed.

Link to comment
  • 4 months later...

I am trying to add more portrait options for certain races from LF.

 

I managed to add a new female portrait, but I'm facing complications adding more. As well I noticed that the change racial portrait hasn't chosen the new one that did work (It's completely random sur,e but I tried it enough times where it at least should have shown up once.

 

Any idea what I can do to get the results I want if at all? Here is the changes I made.

 

Spoiler

LF Races HH

 

angel_portrait13 = {
    hidden = yes
    random = no
    customizer = no
}
angel_portrait14 = {
    hidden = yes
    random = no
    customizer = no
}
angel_portrait15 = {
    hidden = yes
    random = no
    customizer = no
}
angel_portrait16 = {
    hidden = yes
    random = no
    customizer = no
}
angel_portrait17 = {
    hidden = yes
    random = no
    customizer = no
}
angel_portrait18 = {
    hidden = yes
    random = no
    customizer = no
}
angel_portrait19 = {
    hidden = yes
    random = no
    customizer = no
}
angel_portrait20 = {
    hidden = yes
    random = no
    customizer = no
}
angel_portrait21 = {
    hidden = yes
    random = no
    customizer = no
}
angel_portrait22 = {
    hidden = yes
    random = no
    customizer = no
}
angel_portrait23 = {
    hidden = yes
    random = no
    customizer = no
}
angel_portrait24 = {
    hidden = yes
    random = no
    customizer = no
}
angel_portrait25 = {
    hidden = yes
    random = no
    customizer = no
}
angel_portrait26= {
    hidden = yes
    random = no
    customizer = no
}
angel_portrait1_cheri = {
    hidden = yes
    random = no
    customizer = no
}
angel_portrait2_cheri = {
    hidden = yes
    random = no
    customizer = no
}
angel_portrait3_cheri = {
    hidden = yes
    random = no
    customizer = no
}
angel_portrait4_cheri = {
    hidden = yes
    random = no
    customizer = no
}
angel_portrait5_cheri = {
    hidden = yes
    random = no
    customizer = no
}
angel_portrait6_cheri = {
    hidden = yes
    random = no
    customizer = no
}
angel_portrait7_cheri = {
    hidden = yes
    random = no
    customizer = no
}
angel_portrait8_cheri = {
    hidden = yes
    random = no
    customizer = no
}
angel_portrait9_cheri = {
    hidden = yes
    random = no
    customizer = no
}
angel_portrait10_cheri = {
    hidden = yes
    random = no
    customizer = no
}
angel_portrait11_cheri = {
    hidden = yes
    random = no
    customizer = no
}
angel_portrait12_cheri = {
    hidden = yes
    random = no
    customizer = no
}
angel_portrait25_cheri = {
    hidden = yes
    random = no
    customizer = no
}
angel_portrait26_cheri = {
    hidden = yes
    random = no
    customizer = no
}
angel_portrait27_cheri = {
    hidden = yes
    random = no
    customizer = no
}
angel_portrait28_cheri = {
    hidden = yes
    random = no
    customizer = no
}
angel_portrait29_cheri = {
    hidden = yes
    random = no
    customizer = no
}

 

Portrait traits gfx

 

     spriteType = {
        name = "GFX_trait_angel_portrait1"
        texturefile = "gfx/traits/lf_angel.dds"
        noOfFrames = 1
        norefcount = yes
        effectFile = "gfx/FX/buttonstate.lua"
    }
    spriteType = {
        name = "GFX_trait_angel_portrait2"
        texturefile = "gfx/traits/lf_angel.dds"
        noOfFrames = 1
        norefcount = yes
        effectFile = "gfx/FX/buttonstate.lua"
    }
    spriteType = {
        name = "GFX_trait_angel_portrait3"
        texturefile = "gfx/traits/lf_angel.dds"
        noOfFrames = 1
        norefcount = yes
        effectFile = "gfx/FX/buttonstate.lua"
    }
    spriteType = {
        name = "GFX_trait_angel_portrait4"
        texturefile = "gfx/traits/lf_angel.dds"
        noOfFrames = 1
        norefcount = yes
        effectFile = "gfx/FX/buttonstate.lua"
    }
    spriteType = {
        name = "GFX_trait_angel_portrait5"
        texturefile = "gfx/traits/lf_angel.dds"
        noOfFrames = 1
        norefcount = yes
        effectFile = "gfx/FX/buttonstate.lua"
    }
    spriteType = {
        name = "GFX_trait_angel_portrait6"
        texturefile = "gfx/traits/lf_angel.dds"
        noOfFrames = 1
        norefcount = yes
        effectFile = "gfx/FX/buttonstate.lua"
    }
    spriteType = {
        name = "GFX_trait_angel_portrait7"
        texturefile = "gfx/traits/lf_angel.dds"
        noOfFrames = 1
        norefcount = yes
        effectFile = "gfx/FX/buttonstate.lua"
    }
    spriteType = {
        name = "GFX_trait_angel_portrait8"
        texturefile = "gfx/traits/lf_angel.dds"
        noOfFrames = 1
        norefcount = yes
        effectFile = "gfx/FX/buttonstate.lua"
    }
    spriteType = {
        name = "GFX_trait_angel_portrait9"
        texturefile = "gfx/traits/lf_angel.dds"
        noOfFrames = 1
        norefcount = yes
        effectFile = "gfx/FX/buttonstate.lua"
    }
    spriteType = {
        name = "GFX_trait_angel_portrait10"
        texturefile = "gfx/traits/lf_angel.dds"
        noOfFrames = 1
        norefcount = yes
        effectFile = "gfx/FX/buttonstate.lua"
    }
    spriteType = {
        name = "GFX_trait_angel_portrait11"
        texturefile = "gfx/traits/lf_angel.dds"
        noOfFrames = 1
        norefcount = yes
        effectFile = "gfx/FX/buttonstate.lua"
    }
    spriteType = {
        name = "GFX_trait_angel_portrait12"
        texturefile = "gfx/traits/lf_angel.dds"
        noOfFrames = 1
        norefcount = yes
        effectFile = "gfx/FX/buttonstate.lua"
    }
    spriteType = {
        name = "GFX_trait_angel_portrait13"
        texturefile = "gfx/traits/lf_angel.dds"
        noOfFrames = 1
        norefcount = yes
        effectFile = "gfx/FX/buttonstate.lua"
    }
    spriteType = {
        name = "GFX_trait_angel_portrait14"
        texturefile = "gfx/traits/lf_angel.dds"
        noOfFrames = 1
        norefcount = yes
        effectFile = "gfx/FX/buttonstate.lua"
    }
    spriteType = {
        name = "GFX_trait_angel_portrait15"
        texturefile = "gfx/traits/lf_angel.dds"
        noOfFrames = 1
        norefcount = yes
        effectFile = "gfx/FX/buttonstate.lua"
    }
    spriteType = {
        name = "GFX_trait_angel_portrait16"
        texturefile = "gfx/traits/lf_angel.dds"
        noOfFrames = 1
        norefcount = yes
        effectFile = "gfx/FX/buttonstate.lua"
    }
    spriteType = {
        name = "GFX_trait_angel_portrait17"
        texturefile = "gfx/traits/lf_angel.dds"
        noOfFrames = 1
        norefcount = yes
        effectFile = "gfx/FX/buttonstate.lua"
    }
    spriteType = {
        name = "GFX_trait_angel_portrait18"
        texturefile = "gfx/traits/lf_angel.dds"
        noOfFrames = 1
        norefcount = yes
        effectFile = "gfx/FX/buttonstate.lua"
    }
    spriteType = {
        name = "GFX_trait_angel_portrait19"
        texturefile = "gfx/traits/lf_angel.dds"
        noOfFrames = 1
        norefcount = yes
        effectFile = "gfx/FX/buttonstate.lua"
    }
    spriteType = {
        name = "GFX_trait_angel_portrait20"
        texturefile = "gfx/traits/lf_angel.dds"
        noOfFrames = 1
        norefcount = yes
        effectFile = "gfx/FX/buttonstate.lua"
    }
    spriteType = {
        name = "GFX_trait_angel_portrait21"
        texturefile = "gfx/traits/lf_angel.dds"
        noOfFrames = 1
        norefcount = yes
        effectFile = "gfx/FX/buttonstate.lua"
    }
    spriteType = {
        name = "GFX_trait_angel_portrait22"
        texturefile = "gfx/traits/lf_angel.dds"
        noOfFrames = 1
        norefcount = yes
        effectFile = "gfx/FX/buttonstate.lua"
    }
    spriteType = {
        name = "GFX_trait_angel_portrait23"
        texturefile = "gfx/traits/lf_angel.dds"
        noOfFrames = 1
        norefcount = yes
        effectFile = "gfx/FX/buttonstate.lua"
    }
    spriteType = {
        name = "GFX_trait_angel_portrait24"
        texturefile = "gfx/traits/lf_angel.dds"
        noOfFrames = 1
        norefcount = yes
        effectFile = "gfx/FX/buttonstate.lua"
    }
    spriteType = {
        name = "GFX_trait_angel_portrait25"
        texturefile = "gfx/traits/lf_angel.dds"
        noOfFrames = 1
        norefcount = yes
        effectFile = "gfx/FX/buttonstate.lua"
    }
    spriteType = {
        name = "GFX_trait_angel_portrait26"
        texturefile = "gfx/traits/lf_angel.dds"
        noOfFrames = 1
        norefcount = yes
        effectFile = "gfx/FX/buttonstate.lua"
    }
    spriteType = {
        name = "GFX_trait_demon_portrait1_cheri"
        texturefile = "gfx/traits/lf_demon.tga"
        noOfFrames = 1
        norefcount = yes
        effectFile = "gfx/FX/buttonstate.lua"
    }
    spriteType = {
        name = "GFX_trait_demon_portrait2_cheri"
        texturefile = "gfx/traits/lf_demon.tga"
        noOfFrames = 1
        norefcount = yes
        effectFile = "gfx/FX/buttonstate.lua"
    }
    spriteType = {
        name = "GFX_trait_demon_portrait3_cheri"
        texturefile = "gfx/traits/lf_demon.tga"
        noOfFrames = 1
        norefcount = yes
        effectFile = "gfx/FX/buttonstate.lua"
    }
    spriteType = {
        name = "GFX_trait_demon_portrait4_cheri"
        texturefile = "gfx/traits/lf_demon.tga"
        noOfFrames = 1
        norefcount = yes
        effectFile = "gfx/FX/buttonstate.lua"
    }
    spriteType = {
        name = "GFX_trait_demon_portrait5_cheri"
        texturefile = "gfx/traits/lf_demon.tga"
        noOfFrames = 1
        norefcount = yes
        effectFile = "gfx/FX/buttonstate.lua"
    }
    spriteType = {
        name = "GFX_trait_demon_portrait6_cheri"
        texturefile = "gfx/traits/lf_demon.tga"
        noOfFrames = 1
        norefcount = yes
        effectFile = "gfx/FX/buttonstate.lua"
    }
    spriteType = {
        name = "GFX_trait_demon_portrait7_cheri"
        texturefile = "gfx/traits/lf_demon.tga"
        noOfFrames = 1
        norefcount = yes
        effectFile = "gfx/FX/buttonstate.lua"
    }
    spriteType = {
        name = "GFX_trait_demon_portrait8_cheri"
        texturefile = "gfx/traits/lf_demon.tga"
        noOfFrames = 1
        norefcount = yes
        effectFile = "gfx/FX/buttonstate.lua"
    }
    spriteType = {
        name = "GFX_trait_demon_portrait9_cheri"
        texturefile = "gfx/traits/lf_demon.tga"
        noOfFrames = 1
        norefcount = yes
        effectFile = "gfx/FX/buttonstate.lua"
    }
    spriteType = {
        name = "GFX_trait_demon_portrait10_cheri"
        texturefile = "gfx/traits/lf_demon.tga"
        noOfFrames = 1
        norefcount = yes
        effectFile = "gfx/FX/buttonstate.lua"
    }
    spriteType = {
        name = "GFX_trait_angel_portrait1_cheri"
        texturefile = "gfx/traits/lf_angel.dds"
        noOfFrames = 1
        norefcount = yes
        effectFile = "gfx/FX/buttonstate.lua"
    }
    spriteType = {
        name = "GFX_trait_angel_portrait2_cheri"
        texturefile = "gfx/traits/lf_angel.dds"
        noOfFrames = 1
        norefcount = yes
        effectFile = "gfx/FX/buttonstate.lua"
    }
    spriteType = {
        name = "GFX_trait_angel_portrait3_cheri"
        texturefile = "gfx/traits/lf_angel.dds"
        noOfFrames = 1
        norefcount = yes
        effectFile = "gfx/FX/buttonstate.lua"
    }
    spriteType = {
        name = "GFX_trait_angel_portrait4_cheri"
        texturefile = "gfx/traits/lf_angel.dds"
        noOfFrames = 1
        norefcount = yes
        effectFile = "gfx/FX/buttonstate.lua"
    }
    spriteType = {
        name = "GFX_trait_angel_portrait5_cheri"
        texturefile = "gfx/traits/lf_angel.dds"
        noOfFrames = 1
        norefcount = yes
        effectFile = "gfx/FX/buttonstate.lua"
    }
    spriteType = {
        name = "GFX_trait_angel_portrait6_cheri"
        texturefile = "gfx/traits/lf_angel.dds"
        noOfFrames = 1
        norefcount = yes
        effectFile = "gfx/FX/buttonstate.lua"
    }
    spriteType = {
        name = "GFX_trait_angel_portrait7_cheri"
        texturefile = "gfx/traits/lf_angel.dds"
        noOfFrames = 1
        norefcount = yes
        effectFile = "gfx/FX/buttonstate.lua"
    }
    spriteType = {
        name = "GFX_trait_angel_portrait8_cheri"
        texturefile = "gfx/traits/lf_angel.dds"
        noOfFrames = 1
        norefcount = yes
        effectFile = "gfx/FX/buttonstate.lua"
    }
    spriteType = {
        name = "GFX_trait_angel_portrait9_cheri"
        texturefile = "gfx/traits/lf_angel.dds"
        noOfFrames = 1
        norefcount = yes
        effectFile = "gfx/FX/buttonstate.lua"
    }
    spriteType = {
        name = "GFX_trait_angel_portrait10_cheri"
        texturefile = "gfx/traits/lf_angel.dds"
        noOfFrames = 1
        norefcount = yes
        effectFile = "gfx/FX/buttonstate.lua"
    }
    spriteType = {
        name = "GFX_trait_angel_portrait11_cheri"
        texturefile = "gfx/traits/lf_angel.dds"
        noOfFrames = 1
        norefcount = yes
        effectFile = "gfx/FX/buttonstate.lua"
    }
    spriteType = {
        name = "GFX_trait_angel_portrait12_cheri"
        texturefile = "gfx/traits/lf_angel.dds"
        noOfFrames = 1
        norefcount = yes
        effectFile = "gfx/FX/buttonstate.lua"
    }
        spriteType = {
        name = "GFX_trait_angel_portrait25_cheri"
        texturefile = "gfx/traits/lf_angel.dds"
        noOfFrames = 1
        norefcount = yes
        effectFile = "gfx/FX/buttonstate.lua"
    }
        spriteType = {
        name = "GFX_trait_angel_portrait26_cheri"
        texturefile = "gfx/traits/lf_angel.dds"
        noOfFrames = 1
        norefcount = yes
        effectFile = "gfx/FX/buttonstate.lua"
    }
        spriteType = {
        name = "GFX_trait_angel_portrait27_cheri"
        texturefile = "gfx/traits/lf_angel.dds"
        noOfFrames = 1
        norefcount = yes
        effectFile = "gfx/FX/buttonstate.lua"
    }
            spriteType = {
        name = "GFX_trait_angel_portrait28_cheri"
        texturefile = "gfx/traits/lf_angel.dds"
        noOfFrames = 1
        norefcount = yes
        effectFile = "gfx/FX/buttonstate.lua"
    }
        spriteType = {
        name = "GFX_trait_angel_portrait29_cheri"
        texturefile = "gfx/traits/lf_angel.dds"
        noOfFrames = 1
        norefcount = yes
        effectFile = "gfx/FX/buttonstate.lua"
    }
}

 

Angel portraits gfx


spriteTypes = {

    spriteType = {
        name = "GFX_portrait_angel_cheri"
        texturefile = "gfx/static_portraits/angel_portraits_cheri.dds"
        noOfFrames = 30
        norefcount = yes
        can_be_lowres = yes
    }
    portraitType = {
        name = "PORTRAIT_angel_cheri"
        effectFile = "gfx/FX/portrait.lua"
        weight = {
            additive_modifier = {
                value = 1000000
                portrait_clothing = yes
                OR = {
                    portrait_has_trait = angel_portrait1_cheri
                    portrait_has_trait = angel_portrait2_cheri
                    portrait_has_trait = angel_portrait3_cheri
                    portrait_has_trait = angel_portrait4_cheri
                    portrait_has_trait = angel_portrait5_cheri
                    portrait_has_trait = angel_portrait6_cheri
                    portrait_has_trait = angel_portrait7_cheri
                    portrait_has_trait = angel_portrait8_cheri
                    portrait_has_trait = angel_portrait9_cheri
                    portrait_has_trait = angel_portrait10_cheri
                    portrait_has_trait = angel_portrait11_cheri
                    portrait_has_trait = angel_portrait12_cheri
                    portrait_has_trait = angel_portrait25_cheri
                    portrait_has_trait = angel_portrait26_cheri
                    portrait_has_trait = angel_portrait27_cheri
                    portrait_has_trait = angel_portrait28_cheri
                    portrait_has_trait = angel_portrait29_cheri
                    portrait_has_trait = angel_portrait13
                    portrait_has_trait = angel_portrait14
                    portrait_has_trait = angel_portrait15
                    portrait_has_trait = angel_portrait16
                    portrait_has_trait = angel_portrait17
                    portrait_has_trait = angel_portrait18
                    portrait_has_trait = angel_portrait19
                    portrait_has_trait = angel_portrait20
                    portrait_has_trait = angel_portrait21
                    portrait_has_trait = angel_portrait22
                    portrait_has_trait = angel_portrait23
                    portrait_has_trait = angel_portrait24
                }
             }
        }

        layer = {
            "GFX_empty:c0"
            "GFX_empty:c2"
            "GFX_empty:c3"
            "GFX_empty:c1"
            "GFX_empty:c4"
            "GFX_empty:c6"
            "GFX_empty:c7"
            
            "GFX_empty:p1:h:y"
            "GFX_empty:p6"
            "GFX_portrait_angel_cheri:c5"
            "GFX_lover_overlay:p37"
            "GFX_player_overlay:p11"
        }

        allow_property_values = {
            0 = {
                21 = { always = no }
            }
            1 = {
                0  = { always = yes }
            }
            19 = {
                0  = { always = yes }
            }
            33 = {
                0  = { always = yes }
            }
            34 = {
                0  = { always = yes }
            }
            35 = {
                0  = { always = yes }
            }
            36 = {
                0  = { always = yes }
            }
            6 = {
                0  = { always = yes }
            }
            5 = {
                0 = { always = no }
                1 = { portrait_has_trait = angel_portrait1_cheri }
                2 = { portrait_has_trait = angel_portrait2_cheri }
                3 = { portrait_has_trait = angel_portrait3_cheri }
                4 = { portrait_has_trait = angel_portrait4_cheri }
                5 = { portrait_has_trait = angel_portrait5_cheri }
                6 = { portrait_has_trait = angel_portrait6_cheri }
                7 = { portrait_has_trait = angel_portrait7_cheri }
                8 = { portrait_has_trait = angel_portrait8_cheri }
                9 = { portrait_has_trait = angel_portrait9_cheri }
                10 = { portrait_has_trait = angel_portrait10_cheri }
                11 = { portrait_has_trait = angel_portrait11_cheri }
                12 = { portrait_has_trait = angel_portrait12_cheri }
                13 = { portrait_has_trait = angel_portrait13 }
                14 = { portrait_has_trait = angel_portrait14 }
                15 = { portrait_has_trait = angel_portrait15 }
                16 = { portrait_has_trait = angel_portrait16 }
                17 = { portrait_has_trait = angel_portrait17 }
                18 = { portrait_has_trait = angel_portrait18 }
                19 = { portrait_has_trait = angel_portrait19 }
                20 = { portrait_has_trait = angel_portrait20 }
                21 = { portrait_has_trait = angel_portrait21 }
                22 = { portrait_has_trait = angel_portrait22 }
                23 = { portrait_has_trait = angel_portrait23 }
                24 = { portrait_has_trait = angel_portrait24 }
                25 = { portrait_has_trait = angel_portrait25_cheri }
                26 = { portrait_has_trait = angel_portrait26_cheri }
                27 = { portrait_has_trait = angel_portrait27_cheri }
                28 = { portrait_has_trait = angel_portrait28_cheri }
                29 = { portrait_has_trait = angel_portrait29_cheri }
                
            }
        }
    }
}

 

 

 

Edited by Hunter136
Link to comment
  • 2 months later...
  • 4 months later...
  • 3 months later...
On 12/7/2022 at 12:26 AM, Grundy122 said:

Is there any way to code it so a piece of code is only read if ANOTHER mod is installed?

 

I wish to make my mod compatible with DWR, but also work as a standalone without it. Problem is, of course, that the game crashes whenever it reads a code that references DWR, if it isn't installed.

 

Yes, although there are times it is easier than others. It's been a while since I modded CK2, but I've reinstalled it and my mod with the intention of dusting things off and maybe adding some more events. If you're still looking for how to accomplish this, I'll see if I can shake off enough rust to see how I was handling it in DWR.

Link to comment

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