HoI 4 - "Race For The Bomb" never finishes due to script error [1.11.12] [22d5]

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

Sovetskysoyuz

Username is not an endorsement of Russia/the USSR
107 Badges
Jun 12, 2010
915
460
  • Hearts of Iron IV: No Step Back
  • Hearts of Iron IV: By Blood Alone
  • Victoria 3 Sign Up
  • Stellaris: Nemesis
  • Europa Universalis IV
  • Stellaris: Necroids
  • Europa Universalis 4: Emperor
  • March of the Eagles
  • Europa Universalis IV: Golden Century
  • Battle for Bosporus
  • Crusader Kings III
  • Stellaris: Federations
  • Stellaris: Lithoids
  • Hearts of Iron IV: Expansion Pass
  • Sengoku
  • Cities: Skylines Deluxe Edition
  • Europa Universalis IV: Pre-order
  • Pillars of Eternity
  • Crusader Kings II: Limited Collectors Edition
  • Cities in Motion
  • Stellaris: Galaxy Edition
  • Tyranny: Archon Edition
  • Knights of Honor
  • Cities in Motion 2
  • Europa Universalis III Complete
  • Magicka
  • Crusader Kings II
  • Hearts of Iron III
  • Crusader Kings II: Sunset Invasion
  • Steel Division: Normandy 44 Deluxe Edition
  • Hearts of Iron IV: Field Marshal
  • Imperator: Rome Deluxe Edition
  • Mount & Blade: With Fire and Sword
  • Victoria 2
  • War of the Roses
  • 500k Club
  • Pride of Nations
  • Mount & Blade: Warband
  • Hearts of Iron IV: Colonel
  • Stellaris Sign-up
  • Paradox Order
  • Cities: Skylines
  • Hearts of Iron IV: Expansion Pass
Description of issue
"Race For The Bomb" never finishes due to script error [1.11.12] [22d5]

Game Version
1.11.12

Enabled DLC


Do you have mods enabled?

No

Description
The "Race for the Bomb" event chain is supposed to finish when the first nuclear bomb is dropped. However, the event that resolves the event chain can never fire because the on_action for dropping a nuke sets first_nuke_dropped and then checks to make sure first_nuke_dropped has not been set. The order of these should be switched.

Code:
on_nuke_drop = {

        effect = {
            set_global_flag = first_nuke_dropped
            if = {
                limit = { NOT = { has_global_flag = first_nuke_dropped } }
                country_event = { id = generic.8 }
            }
            if = {
                limit = { has_idea = race_for_the_bomb_outclassed }
                remove_ideas = race_for_the_bomb_outclassed
            }
            #...
            #there is more code past this part but it's not relevant for the bug report
            #...
        }
        random_events = {
            100 = nuke_dropped.0
        }
    }

Steps to Reproduce
Meet the conditions for a "Race for the Bomb", then drop a nuke. All racing countries keep racing forever. Event generic.8 never fires.

Upload Attachment
File(s) attached
 

Attachments

  • ironman japan 2.zip
    3,7 MB · Views: 0
  • 1
Reactions:
Upvote 0