Jump to content

[mod] Carnalitas Expandi


Recommended Posts

Posted

Carnalitas Expandi


This mod is designed to be a submod that bridges the functions of Carnalitas, Carnalitas Dei, and Carnalitas Mundi. This is meant to add features that are dependent on two or more of these mods. This mod is intended to add to the baseline of features that all lewd playthroughs and mods can expect to have. This is intended to provide a foundation for other CK3 mods to reduce the redundant coding needed for making mods.

 

Current changes:

  • Edits adultery_events.txt adultery.0001 to not fire if religion has Carn Dei Sacred Prostitution or Carn Dei Tantric Sex
  • Edits adultery_events.txt adultery.0002 to not fire if culture has Carn Mundi No Consequences for Extramarital Sex With Others
  • Edits lover_events.txt lover.0003 to be less likely to occur if culture has Carn Mundi No Consequences for Extramarital Sex With Others
  • Edits lover_events.txt lover.2001 to not fire if culture has Carn Mundi No Consequences for Extramarital Sex With Others
  • Edits lover_events.txt lover.7001 to be easier to trigger, more likely to occur, and more likely to succeed if culture has Carn Mundi No Consequences for Extramarital Sex With Others
  • Edits lover_events.txt lover.7002 to be more likely to occur and more likely to succeed if culture has Carn Mundi No Consequences for Extramarital Sex With Others
  • Edits friendship_events.txt friendship.0003 to be more likely to occur if culture has Carn Mundi No Consequences for Extramarital Sex With Others
  • Edits pilgrimage_events.txt pilgrimage.4002 to be more likely to occur if culture has Carn Mundi No Consequences for Extramarital Sex With Others
  • Edits witch_events.txt witch.3003 orgy participation to be more likely to occur if culture has Carn Mundi No Consequences for Extramarital Sex With Others
  • Edits travel_events_veronica.txt travel_events_veronica.3020 "Smash" option to be more likely to occur and succeed if culture has Carn Mundi No Consequences for Extramarital Sex With Others
  • Edits travel_events_veronica.txt travel_events_veronica.3030 to be more likely to occur if culture has Carn Mundi No Consequences for Extramarital Sex With Others
  • Edits travel_events_james.txt travel_events_james.4001 to be more likely to occur and cause no stress if culture has Carn Mundi No Consequences for Extramarital Sex With Others

 

The edits to the events were inspired by the changes made in Regula Magistri and Regula Magistri 2. Unfortunately, this also means this mod is currently incompatible with Regula Magistri 2, as it will override some of the same files.

 

Future Plans:

Edit more events that need to take into account Carn Dei or Carn Mundi features.

Add the missing waifus and their events from Carn Mundi.

Optimize code to reduce checks/improve compatibility.

 

Requirements:

Requires Carnalitas, Carnalitas Dei, and Carn Mundi to work.

 

Load Order:

Carnalitas

Carnalitas Dei

Carn Mundi

Carn Expandi

 

Compatibility:

Incompatible with mods that change adultery_events.txt, lover_events.txt, friendship_events.txt, pilgrimage_events.txt, witch_events.txt, travel_events_veronica.txt, travel_events_james.txt. 

 

Credits:

Thank you to Cheribobbily, and ban10 for their work that was a basis for this mod. 

 


 

  • 2 months later...
  • 1 month later...
  • 1 month later...
  • 2 months later...
Posted

Hi there,

Thank you very much for your effort in enhancing the immersive experience for players using Carnalitas Dei and Carnalitas Mundi. The attention to detail demonstrated by this mod is truly impressive and inspiring.

I’d like to bring up a few points regarding how the code in the events is implemented, particularly in relation to making events more or less likely to trigger. The following code snippet provides an example:

 

modifier = {
    add = -0.25
    { culture = { has_cultural_parameter = carn_no_consequences_for_extramarital_sex_with_others }}
}

 

In this case, "culture" is the scope, and has_cultural_parameter is the condition within that scope. The problem here is the extra set of curly brackets nested under the modifier block (marked with red).  These are unnecessary and, even worse, they cause the game to become confused when reading the event file. As a result, all events beneath the one containing this code appear to be ignored. When firing any of these events through the console, a "not a valid ID" error is generated.

 

Secondly, in the following code snippet:

 

AND = {
    NOT = { faith = { has_doctrine_parameter = no_unfaithfulness_penalty_active } }
    NOT = { faith = { has_doctrine_parameter = carnd_tenet_sacred_prostitution } }
    NOT = { faith = { has_doctrine_parameter = carnd_tenet_tantric_sex } }
}

 

no_unfaithfulness_penalty_active is a parameter, but carnd_tenet_sacred_prostitution and carnd_tenet_tantric_sex are not parameters—they are doctrines. As such, they should be used with the has_doctrine condition.

 

Thirdly, it seems that the vanilla event files which this mod modifies have been updated. While I can’t pinpoint which update caused this, there are subtle and sometimes significant changes that appear to align these event files with the current state of the game.

 

To address these issues, I took the liberty of making the following changes:

  1. Removed the extra set of curly brackets around the culture scope. Now, all events in all event files of this mod fire properly.
  2. Changed has_doctrine_parameter to has_doctrine for carnd_tenet_sacred_prostitution and carnd_tenet_tantric_sex.
  3. Injected the mod code into the latest version of the vanilla event files.

The updated version of the mod is attached.

Carnalitas Expandi 1.15.zip

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