• We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.

mial42

Lt. General
21 Badges
Sep 28, 2020
1.441
3.103
  • Stellaris - Path to Destruction bundle
  • Stellaris: Nemesis
  • Stellaris: Necroids
  • Stellaris: Federations
  • Stellaris: Lithoids
  • Stellaris: Ancient Relics
  • Stellaris: Megacorp
  • Stellaris: Distant Stars
  • Stellaris: Apocalypse
  • Stellaris: Humanoids Species Pack
  • Stellaris: Synthetic Dawn
  • Crusader Kings II
  • Stellaris: Leviathans Story Pack
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Stellaris
  • Crusader Kings II: Horse Lords
  • Crusader Kings II: The Republic
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Charlemagne
I'm currently in the process of making a mod that adds several new ethics-themed resolution trees. In them, I've been including blocks like this one, modeled after the breach blocks in Vanilla resolutions:
Code:
    breach = {
        OR = {
            AND = {
                is_machine_empire = no
                has_policy_flag = ai_servitude
            }
            AND = {
                is_machine_empire = no
                has_policy_flag = ai_full_rights
            }
            AND = {
                is_machine_empire = yes
                NOT = { has_valid_civic = civic_machine_servitor }
            }
        }
However, I also notice that in the policies file, there is also a "breach" section that looks like this:
Code:
        in_breach_of = {
            {
                key = resolution_galacticstudies_advanced_xenostudies
            }
        }

My question is, is the block in the policies necessary to make an empire in breach of a resolution correctly in breach, or is the block in the resolution itself all that's needed? I'm asking this because I'd prefer to avoid overwriting vanilla policies unless absolutely necessary to preserve compatibility.
 
Alright, so I've come across a weird scenario in which I have a breach block in both the living standards and the resolution itself, like so:
living_standard_shared_burden = {
token = living_standard_shared_burden
name = living_standard_shared_burden
in_breach_of = {
{
trigger = {
is_gestalt = no
}
key = resolution_natural_hierarchy
}
{
trigger = {
is_gestalt = no
}
key = resolution_superior_deference
}
{
trigger = {
is_gestalt = no
}
key = resolution_a_whiff_of_grapeshot
}
{
trigger = {
is_gestalt = no
}
key = resolution_let_them_eat_cake
}
}
potential = {
exists = from
from = { has_valid_civic = civic_shared_burden }
}

triggered_pop_modifier = {
potential = {
NAND = {
exists = owner
owner = { has_deficit = consumer_goods }
}
}
pop_cat_ruler_happiness = 0.05
pop_cat_specialist_happiness = 0.05
pop_cat_worker_happiness = 0.05
pop_demotion_time_mult = -0.45
}

allow = {
hidden_trigger = { exists = from }
NOR = {
custom_tooltip = {
has_citizenship_type = { country = from type = citizenship_slavery }
text = is_slaves_tooltip
}
custom_tooltip = {
AND = {
OR = {
has_citizenship_type = { country = from type = citizenship_purge_machine }
has_citizenship_type = { country = from type = citizenship_purge }
}
NOT = { has_purge_type = { country = from type = purge_neutering } }
}
text = is_purged_not_neutered
}
}
custom_tooltip = {
fail_text = SPECIES_MUST_NOT_BE_ASSIMILATING
NOT = {
has_citizenship_type = {
type = citizenship_assimilation
country = from
}
}
}
}

ai_will_do = {
factor = 10000
}
}


resolution_a_proper_place = {
icon = "GFX_repeal_blue"

resources = {
category = resolutions
cost = {
influence = @resolution_cost_t2
}
}
target = no
level = 2

modifier = {
resolution_enlightened_despotism = 1
resolution_a_proper_place = 1
}

effect = {
custom_tooltip = resolution_rulesofwar_reverence_for_life_tooltip
hidden_effect = {
set_global_flag = resolution_with_breach_effect_passed
#set_timed_country_flag = { flag = galactic_community_resolution_passed_rulesofwar days = @resolution_flag_timer }

#every_playable_country = {
# limit = {
# is_galactic_community_member = yes
# has_policy_flag = purge_allowed
# }
# country_event = { id = federations.10300 }
#}
}
}

fail_effects = {
hidden_effect = {
#set_timed_country_flag = { flag = galactic_community_resolution_failed_rulesofwar days = @resolution_flag_timer }
}
}

allow = {
is_active_resolution = "resolution_enlightened_despotism"
}

breach = {
OR = {
has_policy_flag = purge_allowed
has_country_flag = resolution_breached_fired_cracker
}
}

ai_weight = {
weight = @resolution_weight_popular

modifier = {
factor = 0
has_valid_civic = civic_shared_burdens
}

modifier = {
factor = 0.25
is_egalitarian = yes
}

modifier = {
factor = 2
is_authoritarian = yes
}

modifier = {
factor = 2
OR = {
has_valid_civic = civic_slaver_guilds
has_valid_civic = civic_indentured_assets
}
}

modifier = {
factor = 0.8
is_gestalt = yes #This resolution does nothing to gestalts
}

modifier = {
factor = 0.75
is_authoritarian = no
}
}
}
...and yet it still isn't working. The resolution will say that you are in breach of Galactic Law if you have the wrong living standards, and the living standards screen will show the "breach" icon next to the outlawed living standards, but sanctions are not actually applied, nor does the empire itself get the "in breach of galactic law" popup.

Does anyone know what I'm missing?
 
Update: I've noticed that vanilla resolutions also don't seem to be triggering "in breach of galactic law" correctly, even without my mod. Has anyone else noticed this?
 
  • 1
Reactions:
omg yes! you're the first source that confirmed it for me!

I even started a vanilla game to test it and it's impossible to be in breach of any law!
 
omg yes! you're the first source that confirmed it for me!

I even started a vanilla game to test it and it's impossible to be in breach of any law!
Can you post your savegame in the bug reports forum? All of my saves with this issue are either legacy from 2.7.2 (rolled over to 2.8; it worked in 2.7.2) or originally modded.
 
  • 1Love
Reactions: