Confirmed a bug in "draft dodging" crisis

  • 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.
Status
Not open for further replies.

Shen Yuan

Recruit
60 Badges
Mar 12, 2018
8
0
  • Crusader Kings II
  • Stellaris - Path to Destruction bundle
  • Stellaris: Synthetic Dawn
  • Steel Division: Normand 44 - Second Wave
  • Stellaris: Apocalypse
  • Steel Division: Normandy 44
  • Cities: Skylines - Mass Transit
  • BATTLETECH
  • Surviving Mars
  • Hearts of Iron IV: Death or Dishonor
  • Cities: Skylines - Green Cities
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Humanoids Species Pack
  • Hearts of Iron IV: Together for Victory
  • Surviving Mars: Digital Deluxe Edition
  • Steel Division: Normandy 44 -  Back to Hell
  • BATTLETECH - Digital Deluxe Edition
  • Cities: Skylines - Parklife
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Distant Stars
  • Surviving Mars: First Colony Edition
  • Cities: Skylines Industries
  • BATTLETECH: Flashpoint
  • Stellaris: Megacorp
  • Prison Architect
  • Surviving Mars: First Colony Edition
  • Stellaris: Leviathans Story Pack
  • Stellaris: Necroids
  • Empire of Sin - Deluxe Edition
  • Empire of Sin
  • Stellaris: Federations
  • BATTLETECH: Heavy Metal
  • Stellaris: Lithoids
  • Stellaris: Ancient Relics
  • Cities: Skylines - Campus
  • The Showdown Effect
  • Warlock: Master of the Arcane
  • War of the Roses
  • Cities: Skylines
  • Crusader Kings II: Way of Life
  • Cities: Skylines - After Dark
  • Cities: Skylines - Snowfall
  • Stellaris
  • Stellaris: Galaxy Edition
  • Hearts of Iron IV: Cadet
  • Stellaris: Digital Anniversary Edition
  • Cities: Skylines - Natural Disasters
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Galaxy Edition
  • Crusader Kings II: Legacy of Rome
What happened?
If I choose "military crackdown" option, nothing will happened after 15 days. No further decision popup. Leaving player hopelessly seeing that "dodging level" keep raising.

What make this looks more strange is when I hover my mouse on that option, no output is displayed in the hint. Which showed in picture below. The other one(improve living standards) looks fine.
20180312220614_1.jpg


20180312220612_1.jpg


After looking into the source code, I think I found the reason why I encounter this issue, see the code below for the option "miliaty crack down" in "stability_events.txt".

My stablity is just exactly 30%, which is "0.3". This cause the condition didn't fall in any "if" branch(1 of them is "> 0.3", other is "< 0.3"). Which cause my decision just cause no effect.
There should be a "= 0.3" condition branch.
Code:
    option = { #military crackdown level 1
        trigger = {
            NOT = {
                OR = {
                    has_idea = draft_dodging_2
                    has_idea = draft_dodging_3
                }
            }
        }
        ai_chance = {
            base = 50
            modifier = {
                has_stability < 0.4
                factor = 0
            }
            modifier = {
                has_political_power > 100
                factor = 0.5
            }
        }
        name = stability.21.d
        add_political_power = -75
        custom_effect_tooltip = 15_days_tt
        set_country_flag = crisis_solution_in_progress
        if = {
            limit = {
                has_stability > 0.3
            }
            random_list = {
                60 = { country_event = { id = stability.31 days = 15 } } #success
                40 = { country_event = { id = stability.32 days = 15 } } #failure
            }
        }
        if = {
            limit = {
                has_stability < 0.3
            }
            random_list = {
                60 = { country_event = { id = stability.31 days = 15 } } #success
                30 = { country_event = { id = stability.32 days = 15 } } #failure
                5 = { country_event = { id = stability.33 days = 15 } } #civil war
            }
        }
    }
 

FrancescoT

Field Marshal
Moderator
65 Badges
Aug 8, 2009
8.010
842
44
  • Hearts of Iron III
  • Crusader Kings II
  • Semper Fi
  • Europa Universalis: Rome
  • Hearts of Iron IV: Field Marshal
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Heir to the Throne
  • Hearts of Iron III: Their Finest Hour
  • For the Motherland
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Third Rome
  • Divine Wind
  • Europa Universalis III: Chronicles
  • Europa Universalis III
  • Europa Universalis IV: Pre-order
  • Hearts of Iron IV: Death or Dishonor
  • Stellaris: Synthetic Dawn
  • Stellaris: Leviathans Story Pack
  • Surviving Mars
  • BATTLETECH
  • Europa Universalis IV: Mandate of Heaven
  • Stellaris
  • Tyranny - Tales from the Tiers
  • Tyranny - Bastards Wound
  • Europa Universalis IV: Cradle of Civilization
  • Hearts of Iron IV: Expansion Pass
  • PDXCON 2018 "The Baron"
  • Europa Universalis IV: Rule Britannia
  • Europa Universalis IV: Dharma
  • Surviving Mars: First Colony Edition
  • Imperator: Rome Deluxe Edition
  • Imperator: Rome
  • Pillars of Eternity
  • Hearts of Iron IV: No Step Back
  • Surviving Mars: First Colony Edition
  • Europa Universalis IV
  • Hearts of Iron IV: Expansion Pass
  • Rome: Vae Victis
  • Warlock 2: The Exiled
  • 500k Club
  • Europa Universalis IV: El Dorado
  • Tyranny: Gold Edition
  • Europa Universalis IV: Cossacks
  • Europa Universalis IV: Mare Nostrum
  • Stellaris Sign-up
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV: Colonel
  • Europa Universalis IV: Rights of Man
  • Tyranny: Archon Edition
@Shen Yuan please register your game / sync your steam account to access Bug Reports Sub-forum.
 
Status
Not open for further replies.