GOAL
To provide a clean, stable, readable base from which other modders can "jump off" to create their own mods more easily and fix any bugs and oversights that Paradox has missed.
Features
- Modding Improvements
This is CleanSlate's original goal. All script has been updated to use newer script features where applicable, and inefficient and/or hard-to-comprehend script has been optimized, and where necessary, documented. Scripted triggers and effects have been properly put to use, and various new scripted triggers have been added, for modders to make use of. See the master changelog, typically included in the download, for more information.
CleanSlate is also a massive community patch, fixing nearly 500 bugs and countless minor issues. For details, see the master changelog, typically included in the download.).
You'll no longer see 'Ruler: Spouse: Opinion of Ruler decreases by 10 for 5 years (Furious)'. Almost (*) all uninformative parts of tooltips have been cut, making it easier to see what happens.
In addition, various requirements to enact laws and take decisions has been made easier to read as well.
The game is now much better informing you about losing traits, when you gain a trait opposite to one your current traits, and should always send a notification if trait changes are a matter of chance, meaning you'll no longer have to check your character page to check if you did indeed get (un)lucky.
* Due to limitations in the game's source code, some tooltips could not be cleaned up entirely.
In addition, various requirements to enact laws and take decisions has been made easier to read as well.
The game is now much better informing you about losing traits, when you gain a trait opposite to one your current traits, and should always send a notification if trait changes are a matter of chance, meaning you'll no longer have to check your character page to check if you did indeed get (un)lucky.
* Due to limitations in the game's source code, some tooltips could not be cleaned up entirely.
We have, of course, not added any new events. What you will finally see, for the first time, are various Paradox-developed events, some of which have been part of the game since its very first release, and others, added by various patches and expansions. Among these are siege events, guardian events and birth events.
While working our way through all of the game's script files, we have smoothed over several inconsistencies. Not all older content properly accounts for various new features added over the years. Consider content that locks out women, without regard for religion features and game rules, or not properly considering various sexual dispositions characters can have towards each other.
Current release
Beta 2.8 - All base game script rewritten, most content reorganized for easier searching.
Future goals
Correct all localization, in all four languages.
Fixing bugs reported on the official forums.
Compatibility
Crusader Kings II version 3.3.4 highly recommended.
May work with versions back to 3.2.x.
Ironman compatible, not achievement compatible.
ui_scale: Include the following line in your scale_ui_xxxx.mod file:
dependencies = { "CleanSlate" }
CleanSlate is not and in most cases cannot be compatible with any mods that have not been built off CleanSlate. That is the downside of thoroughly overhauling the game's script.
We recommend anyone interesting in rebasing mods on CleanSlate to compare current mod files to vanilla files, and bring these changes over to CleanSlate's files. Reading CleanSlate's master changelog for additions and removals is highly recommended.
Authors of large mods are advised to wait until CleanSlate is stable, to avoid endless compatibility patching whenever CleanSlate is updated.
Feedback
CleanSlate is not yet finished. Efforts to squash more bugs is ongoing. New bugs may currently be part of CleanSlate. If you come across any, please report them, so that we can make CleanSlate even better.
Background
As I'm sure everyone in the CK2 Modding Community is aware, the vanilla script for the game is... well... it's a mess. There are myriad bugs, hardly any of the scripting itself is human readable, and the localization is scattered over a dozen or so files with no real organization to it. There have clearly been several batches of cooks on this particular broth. To resolve this, the CK2Plus mod team presents our new standalone community resource: CleanSlate.
To be clear, this mod/resource will (eventually) overwrite every. single. vanilla. file. It already overwrites the vast majority. It will not be compatible with any other mod that modifies vanilla files (unless it's specifically built off of CleanSlate) and vanilla saves are not compatible.
As of right now, the mod is in BETA. Save compatibility between versions is not guaranteed. Until we reach the first full release things are just changing too much between each version to guarantee that.
===Hall of Paradox Scripting Shame===
Location: Unknown (we forgot where we saw this)
Location: Unknown (we forgot where we saw this)
Location: Scripted Triggers
Location: Personality Traits Events
Location: Succession Laws
Location: Unknown (we forgot where we saw this)
Location: CBs
Location: CBs
location: events
location: events
Dishonorable Mention:
Code:
trigger_if = {
limit = { religion = FROM }
religion = FROM
}
Location: Unknown (we forgot where we saw this)
Code:
ai_chance = {
factor = 1
modifier = {
factor = 0
ai = no
}
}
Location: Scripted Triggers
Code:
#Have to be Christian denomination with potential Religious head, and have been singled out for Beatification
modifier = {
factor = 0
NOR = {
NAND = {
event_target:saint_person = {
religion = catholic
}
event_target:saint_person = {
religion = fraticelli
}
event_target:saint_person = {
religion = orthodox
}
event_target:saint_person = {
religion = iconoclast
}
event_target:saint_person = {
religion = nestorian
}
event_target:saint_person = {
religion = misphysite
}
event_target:saint_person = {
religion = monophysite
}
event_target:saint_person = {
religion = paulician
}
event_target:saint_person = {
has_religion_feature = religion_beatification
}
}
NOR = {
event_target:saint_person = {
has_character_flag = beatified
}
event_target_saint_person = {
has_religion_feature = religion_beatification
}
}
}
}
Location: Personality Traits Events
Code:
trigger = {
trait = lustful
personality_traits = 6
}
weight_multiplier = {
days = 1
modifier = {
factor = 2
personality_traits = 6
}
}
Location: Succession Laws
Code:
OR = {
AND = {
tier = baron
is_feudal = yes
}
holder_scope = { is_feudal = yes }
holder_scope = { is_patrician = yes }
}
OR = {
NOT = { tier = baron }
holder_scope = { is_patrician = yes }
}
Location: Unknown (we forgot where we saw this)
Code:
random_list = {
100 = {
character_event = { id = ZE.11050}
}
}
Location: CBs
Code:
OR = {
OR = {
is_female = no
NOR = {
religion_group = muslim
ROOT = { succ_law_title = { has_law = agnatic_succession } }
has_religion_feature = religion_patriarchal
}
}
OR = {
is_female = yes
NOR = {
religion_group = muslim
ROOT = { succ_law_title = { has_law = enatic_succession } }
has_religion_feature = religion_matriarchal
}
}
}
Location: CBs
Code:
ROOT = {
OR = {
NOT = { religion_group = pagan_group }
is_reformed_religion = yes
}
}
OR = {
NOT = { ROOT = { religion_group = pagan_group } }
ROOT = { is_reformed_religion = yes }
}
location: events
Code:
ROOT = {
opinion = {
who = ROOT
value >= -20
}
}
location: events
Code:
OR = {
religion_group = zoroastrian_group
NOR = {
religion = manichean
religion = mazdaki
}
}
Dishonorable Mention:
Code:
2000+ references in 200+ files to "trait = incapable" instead of "is_incapable = yes"
Have you found a bug?
Bugs can be reported on our GitHub page here,
For multiple bugs, please submit reports individually for our ease of tracking. Thank you for your help!
Bugs can be reported on our GitHub page here,
For multiple bugs, please submit reports individually for our ease of tracking. Thank you for your help!
Last edited:
- 18
- 4
- 2