Democracy still eats a leader on election

Democracy still eats a leader on election

  • Crusader Kings III Available Now!

    The realm rejoices as Paradox Interactive announces the launch of Crusader Kings III, the latest entry in the publisher’s grand strategy role-playing game franchise. Advisors may now jockey for positions of influence and adversaries should save their schemes for another day, because on this day Crusader Kings III can be purchased on Steam, the Paradox Store, and other major online retailers.


    Real Strategy Requires Cunning

Deshiba

Major
21 Badges
Feb 21, 2020
578
705
  • Cities: Skylines - Green Cities
  • Empire of Sin
  • Battle for Bosporus
  • Crusader Kings III
  • Hearts of Iron IV: La Resistance
  • Cities: Skylines - Campus
  • Hearts of Iron IV: Expansion Pass
  • Cities: Skylines Industries
  • Cities: Skylines - Parklife
  • Cities: Skylines - Parklife Pre-Order
  • Hearts of Iron IV: Expansion Pass
  • Cities: Skylines
  • Hearts of Iron IV: Death or Dishonor
  • Surviving Mars
  • Cities: Skylines - Mass Transit
  • Hearts of Iron IV: Together for Victory
  • Cities: Skylines - Natural Disasters
  • Hearts of Iron IV: Cadet
  • Cities: Skylines - Snowfall
  • Cities: Skylines - After Dark
  • Cities: Skylines Deluxe Edition
On the very first election for a ruler where the same ruler doesn't get elected for another term a different leader gets assigned. When this happens the leader gets removed from your pool, but your previous ruler doesn't get returned to the leader pool. This effectively gives democracies an early game penalty of -1 leaders.

Please fix this by making the first ruler an actual leader in the leader pool.
 
  • 17Like
  • 11
Reactions:

SeekingEtermity

Colonel
32 Badges
Dec 14, 2018
1.179
724
  • Pillars of Eternity
  • Stellaris: Lithoids
  • Stellaris: Ancient Relics
  • Stellaris: Megacorp
  • Shadowrun: Hong Kong
  • Stellaris: Distant Stars
  • Stellaris: Apocalypse
  • Stellaris: Humanoids Species Pack
  • Age of Wonders III
  • Surviving Mars
  • Stellaris - Path to Destruction bundle
  • Stellaris: Leviathans Story Pack
  • Stellaris: Digital Anniversary Edition
  • Stellaris
  • Ancient Space
  • Europa Universalis III: Collection
  • Stellaris: Synthetic Dawn
  • Cities in Motion 2
  • Crusader Kings II
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Sons of Abraham
  • Europa Universalis III
  • Divine Wind
  • For the Motherland
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III Collection
  • Heir to the Throne
  • Magicka
  • Majesty 2 Collection
  • Magicka 2
  • Semper Fi
It's been reported literally hundreds of times by now, in top-level posts here or in the Bug Reports sub-forum, and in discussion threads aimed at the devs (mostly dev diaries and feedback threads).

The really stupid thing is that it's quite simple, and obvious enough in cause that I was able to "reverse engineer" it without looking at the game code at all (just at the game files). It's also trivial to fix.

THE CAUSE: The problem is observed when a ruler without a "pre_ruler_class" loses re-election (incidentally, this happens for Oligarchies too). However, the actual bug arguably occurs earlier, at game creation, when the game spawns starting rulers of various empires with no "pre_ruler_class" designation. You can see each ruler, including whether they have a pre_ruler_class, by looking at the decompressed savegame file.

Specifically, that happens when an empire type is able to have multiple leader classes become rulers. There are some empire types where only Governors can be elected, and at least one (Technocracies) where only Scientists can be elected; in those empire types the starting ruler will have a pre_ruler_class set to the correct type. However, there are also many empire types that either have no restriction, or allow some but not all types (anything martial allows both Admirals and Generals, for example). In those empire types, the starting ruler will have no pre_ruler_class, and will thus vanish into the void upon losing re-election.

THE FIX: There are two easy ways to fix this. One of them is to, when creating a ruler from nothing (at game start, or possibly any other time an empire is created), always assign them a pre_ruler_class randomly chosen from among the allowed classes. The other one is, whenever a ruler without pre_ruler_class loses re-election, randomly convert them to an eligible class. The first is the better fix but the second is arguably simpler. One could of course do both, a belt-and-suspenders type approach (ensure that the situation doesn't come up *AND* that you can handle it if it does).

You can manually fix the problem by, before an election occurs, saving the game, unzipping the save, editing the game state to ensure every ruler has a pre_ruler_class, and re-zipping the save with the edited file. The instructions for save-game editing are on the wiki.
 
  • 17
  • 2Like
Reactions:

Lykus Cerebros

Second Lieutenant
54 Badges
Aug 27, 2020
159
262
  • Europa Universalis IV: Cradle of Civilization
  • Hearts of Iron IV: Together for Victory
  • Crusader Kings II: Monks and Mystics
  • Stellaris - Path to Destruction bundle
  • Europa Universalis IV: Mandate of Heaven
  • Europa Universalis IV: Third Rome
  • Surviving Mars
  • Hearts of Iron IV: Death or Dishonor
  • Stellaris: Synthetic Dawn
  • Age of Wonders III
  • Age of Wonders: Shadow Magic
  • Age of Wonders
  • Age of Wonders II
  • Stellaris: Leviathans Story Pack
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Surviving Mars: Digital Deluxe Edition
  • Stellaris: Distant Stars
  • Stellaris: Megacorp
  • Crusader Kings II: Holy Fury
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Ancient Relics
  • Age of Wonders: Planetfall
  • Age of Wonders: Planetfall Deluxe edition
  • Age of Wonders: Planetfall - Revelations
  • Europa Universalis IV: Res Publica
  • Crusader Kings II
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Call to arms event
  • Europa Universalis IV: El Dorado
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Common Sense
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Conclave
  • Europa Universalis IV: Mare Nostrum
  • Stellaris
  • Hearts of Iron IV: Cadet
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Rights of Man
Yeah edited my answer after reading the other one.
Thanks for clearing that up for me. :)
 

Deshiba

Major
21 Badges
Feb 21, 2020
578
705
  • Cities: Skylines - Green Cities
  • Empire of Sin
  • Battle for Bosporus
  • Crusader Kings III
  • Hearts of Iron IV: La Resistance
  • Cities: Skylines - Campus
  • Hearts of Iron IV: Expansion Pass
  • Cities: Skylines Industries
  • Cities: Skylines - Parklife
  • Cities: Skylines - Parklife Pre-Order
  • Hearts of Iron IV: Expansion Pass
  • Cities: Skylines
  • Hearts of Iron IV: Death or Dishonor
  • Surviving Mars
  • Cities: Skylines - Mass Transit
  • Hearts of Iron IV: Together for Victory
  • Cities: Skylines - Natural Disasters
  • Hearts of Iron IV: Cadet
  • Cities: Skylines - Snowfall
  • Cities: Skylines - After Dark
  • Cities: Skylines Deluxe Edition
It's been reported literally hundreds of times by now, in top-level posts here or in the Bug Reports sub-forum, and in discussion threads aimed at the devs (mostly dev diaries and feedback threads).
I know, I've reported it myself before. I was just baffled that we're about 5 patches further from last time I tried democracy and there's still no fix for this.
I'm also venting because I just lost a really good scientist and got nothing in return, but let's not talk about that.
 

Netherim

Second Lieutenant
8 Badges
Dec 29, 2014
134
89
  • Stellaris
  • Stellaris - Path to Destruction bundle
  • Surviving Mars
  • Stellaris: Synthetic Dawn
  • Stellaris: Apocalypse
  • Stellaris: Distant Stars
  • Stellaris: Megacorp
Yeah, my personal "fix" it's to hire and dismiss leaders from the pool until I get a leader with same (or better, to compensate for the loss of a more expert leader) traits and the use the console command to add back the money spent.
 

Mímisbrunnr

First Lieutenant
11 Badges
Mar 1, 2018
299
419
  • Stellaris
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Stellaris - Path to Destruction bundle
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Stellaris: Distant Stars
  • Stellaris: Megacorp
  • Stellaris: Ancient Relics
  • Stellaris: Lithoids
  • Stellaris: Synthetic Dawn
Moreover, many versions ago, probably some years now, it once HAD in fact been fixed.

And then it got broken again.

Hopefully if we keep the thread active someone may take note of it.
 
  • 3
  • 1Like
Reactions:

mial42

Captain
14 Badges
Sep 28, 2020
348
635
  • Crusader Kings II
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: The Republic
  • Crusader Kings II: Horse Lords
  • Stellaris
  • Stellaris: Leviathans Story Pack
  • Stellaris - Path to Destruction bundle
  • Stellaris: Synthetic Dawn
  • Stellaris: Apocalypse
  • Stellaris: Distant Stars
  • Stellaris: Megacorp
  • Stellaris: Ancient Relics
  • Stellaris: Lithoids
One of the many unwritten rules of Stellaris (along with gestalts getting less things, spiritualists being a meme, and hive minds being terrible) is that democracy must always be the worst form of government.
 
  • 3Haha
Reactions:

SeekingEtermity

Colonel
32 Badges
Dec 14, 2018
1.179
724
  • Pillars of Eternity
  • Stellaris: Lithoids
  • Stellaris: Ancient Relics
  • Stellaris: Megacorp
  • Shadowrun: Hong Kong
  • Stellaris: Distant Stars
  • Stellaris: Apocalypse
  • Stellaris: Humanoids Species Pack
  • Age of Wonders III
  • Surviving Mars
  • Stellaris - Path to Destruction bundle
  • Stellaris: Leviathans Story Pack
  • Stellaris: Digital Anniversary Edition
  • Stellaris
  • Ancient Space
  • Europa Universalis III: Collection
  • Stellaris: Synthetic Dawn
  • Cities in Motion 2
  • Crusader Kings II
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Sons of Abraham
  • Europa Universalis III
  • Divine Wind
  • For the Motherland
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III Collection
  • Heir to the Throne
  • Magicka
  • Majesty 2 Collection
  • Magicka 2
  • Semper Fi
One of the many unwritten rules of Stellaris (along with gestalts getting less things, spiritualists being a meme, and hive minds being terrible) is that democracy must always be the worst form of government.
Sure, but this hits Oligarchies (which are considered pretty good) and Megacorps (which don't get any choices of ruler selection type and are a major component of a paid expension) too.

They fixed Duuk's bug, hopefully they can fix one that actually has gameplay impact. Ideally sometime soon...
 

ubuntufreakdragon

First Lieutenant
16 Badges
Apr 9, 2019
256
80
  • Stellaris: Galaxy Edition
  • Stellaris: Synthetic Dawn
  • Cities: Skylines
  • Stellaris
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Stellaris - Path to Destruction bundle
  • Age of Wonders III
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Stellaris: Distant Stars
  • Stellaris: Megacorp
  • Stellaris: Ancient Relics
  • Stellaris: Lithoids
I fixed this long ago for my stelaris installation:
common/on_actions/ufd_on_actions.txt:
Code:
on_game_start_country = {
    events = {
        ufd_bugfix.1 #Fix vanishing rulers
    }
}
events/ufd_bugfix_events.txt:
Code:
namespace = ufd_bugfix

country_event = {
  id = ufd_bugfix.1
  is_triggered_only = yes
  hide_window = yes
 
  trigger = {
    is_country_type = default
    is_regular_empire = yes
  }
 
  immediate = {
    leader = {
      root = {
        random_list = {
          60 = { #Scientist
            clone_leader = {
              target = prev
              class = scientist
              traits = {
                trait = leader_trait_adaptable
              }
            }
            modifier = {
              factor = 0
              root = {
                NOT = {
                  OR = {
                    has_valid_civic = civic_technocracy
                    AND = {
                      is_militarist = no
                      has_authority = auth_democratic
                    }
                  }
                }
              }
            }
          }
          20 = { #Govenor
            clone_leader = {
              target = prev
              class = governor
              traits = {
                trait = leader_trait_adaptable
              }
            }
            modifier = {
              factor = 0
              root = {
                NOT = {
                  OR = {
                    has_authority = auth_corporate
                    AND = {
                      NOT = { has_valid_civic = civic_technocracy }
                      OR = {
                        is_militarist = no
                        has_authority = auth_democratic
                      }
                      NOT = { has_valid_civic = civic_warrior_culture }
                    }
                  }
                }
              }
            }
          }
          20 = { #Admiral
            clone_leader = {
              target = prev
              class = admiral
              traits = {
                trait = leader_trait_adaptable
              }
            }
            modifier = {
              factor = 0
              root = {
                NOT = {
                  AND = {
                    NOT = { has_valid_civic = civic_technocracy }
                    is_pacifist = no
                    NOT = { has_authority = auth_corporate }
                    OR = {
                      has_authority = auth_democratic
                      is_militarist = yes
                    }
                  }
                }
              }
            }
          }
        }
        last_created_leader = {
          remove_trait = leader_trait_adaptable
          switch = {
            trigger = leader_class
            scientist = {
              random_list = {
                2 = {
                  add_trait = leader_trait_adaptable
                }
                2 = {
                  add_trait = leader_trait_resilient
                }
                1 = {
                  add_trait = leader_trait_eager
                }
                3 = {
                  add_trait = leader_trait_meticulous
                }
                5 = {
                  add_trait = leader_trait_spark_of_genius
                }
                2 = {
                  add_trait = leader_trait_carefree
                }
                2 = {
                  add_trait = leader_trait_roamer
                }
                2 = {
                  if = {
                    limit = { root = {has_ancrel = yes } }
                    add_trait = leader_trait_archaeologist_ancrel
                  }
                  else = {
                    add_trait = leader_trait_archaeologist
                  }
                }
                3 = {
                  add_trait = leader_trait_maniacal
                }
                1 = {
                  add_trait = leader_trait_expertise_materials
                }
                1 = {
                  add_trait = leader_trait_expertise_propulsion
                }
                1 = {
                  add_trait = leader_trait_expertise_voidcraft
                }
                1 = {
                  add_trait = leader_trait_expertise_industry
                }
                1 = {
                  add_trait = leader_trait_expertise_field_manipulation
                }
                1 = {
                  add_trait = leader_trait_expertise_particles
                }
                1 = {
                  add_trait = leader_trait_expertise_computing
                }
                1 = {
                  add_trait = leader_trait_expertise_new_worlds
                }
                1 = {
                  add_trait = leader_trait_expertise_statecraft
                }
                1 = {
                  add_trait = leader_trait_expertise_biology
                }
                1 = {
                  add_trait = leader_trait_expertise_military_theory
                }
              }
            }
            governor = {
              random_list = {
                2 = {
                  add_trait = leader_trait_adaptable
                }
                2 = {
                  add_trait = leader_trait_resilient
                }
                1 = {
                  add_trait = leader_trait_eager
                }
                1 = {
                  add_trait = leader_trait_army_veteran
                }
                1 = {
                  add_trait = leader_trait_retired_fleet_officer
                }
                2 = {
                  add_trait = leader_trait_architectural_interest
                }
                2 = {
                  add_trait = leader_trait_intellectual
                }
                1 = {
                  add_trait = leader_trait_righteous
                }
                1 = {
                  add_trait = leader_trait_environmental_engineer
                }
                1 = {
                  add_trait = leader_trait_bureaucrat
                }
                2 = {
                  modifier = {
                    factor = 0
                    root  = { allows_slavery = no }
                  }
                  add_trait = leader_trait_iron_fist
                }
                2 = {
                  modifier = {
                    factor = 0
                    root  = { is_lithoid = yes }
                  }
                  add_trait = leader_trait_agrarian_upbringing
                }
              }
            }
            admiral = {
              random_list = {
                2 = {
                  add_trait = leader_trait_adaptable
                }
                1 = {
                  add_trait = leader_trait_resilient
                }
                1 = {
                  add_trait = leader_trait_eager
                }
                3 = {
                  add_trait = leader_trait_trickster
                }
                1 = {
                  add_trait = leader_trait_fleet_logistician
                }
                3 = {
                  add_trait = leader_trait_engineer
                }
                2 = {
                  add_trait = leader_trait_aggressive
                }
                1 = {
                  add_trait = leader_trait_cautious
                }
                1 = {
                  add_trait = leader_trait_scout
                }
                1 = {
                  add_trait = leader_trait_unyielding
                }
                1 = {
                  add_trait = leader_trait_gale_speed
                }
              }
            }
          }
        }
        assign_leader = last_created_leader
      }
      if = {
        limit = { exists = this }
        kill_leader = { show_notification = no }
      }
    }
  }
}
 
Last edited:
  • 4
Reactions:

Mímisbrunnr

First Lieutenant
11 Badges
Mar 1, 2018
299
419
  • Stellaris
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Stellaris - Path to Destruction bundle
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Stellaris: Distant Stars
  • Stellaris: Megacorp
  • Stellaris: Ancient Relics
  • Stellaris: Lithoids
  • Stellaris: Synthetic Dawn
That sounds helpful.

@grekulf, could you or your team take a look at this? It seems that @ubuntufreakdragon may have worked out a fix to a very long standing bug (see the post immediately above mine), which would thus hopefully be fairly easy to implement. Granted, you and your team know far more about the inner workings of Stellaris than we do, so perhaps there would be a complication that I can't foresee, but otherwise this eliminates the frustrating (from an RP standpoint) of your first leader vanishing entirely if they lose an election [which forces you to hire an extra leader to make up the loss of a leader, hurts narratives by eliminating their chance to make a comeback, and generally encourages save-and-reload behavior to try to keep your first leader from disappearing instantly and forever, long before they would have naturally died).

As I've said before, what's really frustrating about this bug is that you guys had fixed it in ages past, only for it to become broken again, and its never been re-fixed since.
 
  • 5Like
  • 1
Reactions:

Mímisbrunnr

First Lieutenant
11 Badges
Mar 1, 2018
299
419
  • Stellaris
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Stellaris - Path to Destruction bundle
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Stellaris: Distant Stars
  • Stellaris: Megacorp
  • Stellaris: Ancient Relics
  • Stellaris: Lithoids
  • Stellaris: Synthetic Dawn
As I said, they once fixed it an explicitly mentioned it in the patch notes at the time.

Then it got unfixed, somehow, and I can't comment on whether they know about it or not.
 
  • 2Like
  • 1
Reactions:

CrazyJ

Colonel
23 Badges
Nov 26, 2018
985
2.138
  • Stellaris: Galaxy Edition
  • Cities: Skylines Deluxe Edition
  • Age of Wonders: Planetfall
  • Hearts of Iron IV: Cadet
  • Surviving Mars: Digital Deluxe Edition
  • Prison Architect
  • Stellaris: Megacorp
  • Stellaris: Distant Stars
  • Stellaris: Humanoids Species Pack
  • Surviving Mars
  • Stellaris - Path to Destruction bundle
  • Stellaris: Leviathans Story Pack
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Synthetic Dawn
  • Stellaris: Ancient Relics
  • Surviving Mars: First Colony Edition
  • Age of Wonders: Planetfall - Revelations
  • Stellaris: Lithoids
  • Stellaris: Apocalypse
I fixed this long ago for my stelaris installation:
Code:
namespace = ufd_bugfix

country_event = {
  id = ufd_bugfix.1
  is_triggered_only = yes
  hide_window = yes

  trigger = {
    is_country_type = default
    is_regular_empire = yes
  }

  immediate = {
    leader = {
      root = {
        random_list = {
          60 = { #Scientist
            clone_leader = {
              target = prev
              class = scientist
              traits = {
                trait = leader_trait_adaptable
              }
            }
            modifier = {
              factor = 0
              root = {
                NOT = {
                  OR = {
                    has_valid_civic = civic_technocracy
                    AND = {
                      is_militarist = no
                      has_authority = auth_democratic
                    }
                  }
                }
              }
            }
          }
          20 = { #Govenor
            clone_leader = {
              target = prev
              class = governor
              traits = {
                trait = leader_trait_adaptable
              }
            }
            modifier = {
              factor = 0
              root = {
                NOT = {
                  OR = {
                    has_authority = auth_corporate
                    AND = {
                      NOT = { has_valid_civic = civic_technocracy }
                      OR = {
                        is_militarist = no
                        has_authority = auth_democratic
                      }
                      NOT = { has_valid_civic = civic_warrior_culture }
                    }
                  }
                }
              }
            }
          }
          20 = { #Admiral
            clone_leader = {
              target = prev
              class = admiral
              traits = {
                trait = leader_trait_adaptable
              }
            }
            modifier = {
              factor = 0
              root = {
                NOT = {
                  AND = {
                    NOT = { has_valid_civic = civic_technocracy }
                    is_pacifist = no
                    NOT = { has_authority = auth_corporate }
                    OR = {
                      has_authority = auth_democratic
                      is_militarist = yes
                    }
                  }
                }
              }
            }
          }
        }
        last_created_leader = {
          remove_trait = leader_trait_adaptable
          switch = {
            trigger = leader_class
            scientist = {
              random_list = {
                2 = {
                  add_trait = leader_trait_adaptable
                }
                2 = {
                  add_trait = leader_trait_resilient
                }
                1 = {
                  add_trait = leader_trait_eager
                }
                3 = {
                  add_trait = leader_trait_meticulous
                }
                5 = {
                  add_trait = leader_trait_spark_of_genius
                }
                2 = {
                  add_trait = leader_trait_carefree
                }
                2 = {
                  add_trait = leader_trait_roamer
                }
                2 = {
                  if = {
                    limit = { root = {has_ancrel = yes } }
                    add_trait = leader_trait_archaeologist_ancrel
                  }
                  else = {
                    add_trait = leader_trait_archaeologist
                  }
                }
                3 = {
                  add_trait = leader_trait_maniacal
                }
                1 = {
                  add_trait = leader_trait_expertise_materials
                }
                1 = {
                  add_trait = leader_trait_expertise_propulsion
                }
                1 = {
                  add_trait = leader_trait_expertise_voidcraft
                }
                1 = {
                  add_trait = leader_trait_expertise_industry
                }
                1 = {
                  add_trait = leader_trait_expertise_field_manipulation
                }
                1 = {
                  add_trait = leader_trait_expertise_particles
                }
                1 = {
                  add_trait = leader_trait_expertise_computing
                }
                1 = {
                  add_trait = leader_trait_expertise_new_worlds
                }
                1 = {
                  add_trait = leader_trait_expertise_statecraft
                }
                1 = {
                  add_trait = leader_trait_expertise_biology
                }
                1 = {
                  add_trait = leader_trait_expertise_military_theory
                }
              }
            }
            governor = {
              random_list = {
                2 = {
                  add_trait = leader_trait_adaptable
                }
                2 = {
                  add_trait = leader_trait_resilient
                }
                1 = {
                  add_trait = leader_trait_eager
                }
                1 = {
                  add_trait = leader_trait_army_veteran
                }
                1 = {
                  add_trait = leader_trait_retired_fleet_officer
                }
                2 = {
                  add_trait = leader_trait_architectural_interest
                }
                2 = {
                  add_trait = leader_trait_intellectual
                }
                1 = {
                  add_trait = leader_trait_righteous
                }
                1 = {
                  add_trait = leader_trait_environmental_engineer
                }
                1 = {
                  add_trait = leader_trait_bureaucrat
                }
                2 = {
                  modifier = {
                    factor = 0
                    root  = { allows_slavery = no }
                  }
                  add_trait = leader_trait_iron_fist
                }
                2 = {
                  modifier = {
                    factor = 0
                    root  = { is_lithoid = yes }
                  }
                  add_trait = leader_trait_agrarian_upbringing
                }
              }
            }
            admiral = {
              random_list = {
                2 = {
                  add_trait = leader_trait_adaptable
                }
                1 = {
                  add_trait = leader_trait_resilient
                }
                1 = {
                  add_trait = leader_trait_eager
                }
                3 = {
                  add_trait = leader_trait_trickster
                }
                1 = {
                  add_trait = leader_trait_fleet_logistician
                }
                3 = {
                  add_trait = leader_trait_engineer
                }
                2 = {
                  add_trait = leader_trait_aggressive
                }
                1 = {
                  add_trait = leader_trait_cautious
                }
                1 = {
                  add_trait = leader_trait_scout
                }
                1 = {
                  add_trait = leader_trait_unyielding
                }
                1 = {
                  add_trait = leader_trait_gale_speed
                }
              }
            }
          }
        }
        assign_leader = last_created_leader
      }
      if = {
        limit = { exists = this }
        kill_leader = { show_notification = no }
      }
    }
  }
}
any chance you could create a mod that does this? I'm sure I'm not the only one who would appreciate such a fix that wouldn't require me to edit the files, every time I do that i always seem to screw something up. the only exception would be when i killed the nebula code to save my gpu, and i don't think just ripping out a chunk of code counts
 
Last edited:
  • 1
Reactions:

Mímisbrunnr

First Lieutenant
11 Badges
Mar 1, 2018
299
419
  • Stellaris
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Stellaris - Path to Destruction bundle
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Stellaris: Distant Stars
  • Stellaris: Megacorp
  • Stellaris: Ancient Relics
  • Stellaris: Lithoids
  • Stellaris: Synthetic Dawn
Yes, a Steam mod to this effect (at least until PDX can make such a fix official) would be much appreciated.
 

n0cturn4l

Cyborg
46 Badges
Feb 14, 2017
11
21
  • Cities in Motion 2
  • Crusader Kings II
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sword of Islam
  • Stellaris: Leviathans Story Pack
  • Stellaris: Lithoids
  • Hearts of Iron IV: Together for Victory
  • Crusader Kings II: Monks and Mystics
  • Europa Universalis IV: Mandate of Heaven
  • Hearts of Iron IV: Death or Dishonor
  • Stellaris: Synthetic Dawn
  • Age of Wonders III
  • Europa Universalis IV: Cradle of Civilization
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Stellaris: Distant Stars
  • Shadowrun: Hong Kong
  • Stellaris: Megacorp
  • Crusader Kings II: Holy Fury
  • Imperator: Rome
  • Stellaris: Ancient Relics
  • Europa Universalis IV: Rights of Man
  • Europa Universalis IV: El Dorado
  • Crusader Kings II: Way of Life
  • Pillars of Eternity
  • Europa Universalis IV: Common Sense
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Conclave
  • Stellaris
  • Stellaris: Galaxy Edition
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV: Colonel
  • Stellaris: Digital Anniversary Edition
  • Europa Universalis IV: Mare Nostrum
  • Europa Universalis IV: Third Rome
  • Stellaris - Path to Destruction bundle
  • Europa Universalis IV: Rule Britannia
  • Europa Universalis IV: Res Publica
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Art of War
  • Crusader Kings II: Charlemagne
Well, it seems we're getting somewhere
 
  • 3
Reactions:

Deshiba

Major
21 Badges
Feb 21, 2020
578
705
  • Cities: Skylines - Green Cities
  • Empire of Sin
  • Battle for Bosporus
  • Crusader Kings III
  • Hearts of Iron IV: La Resistance
  • Cities: Skylines - Campus
  • Hearts of Iron IV: Expansion Pass
  • Cities: Skylines Industries
  • Cities: Skylines - Parklife
  • Cities: Skylines - Parklife Pre-Order
  • Hearts of Iron IV: Expansion Pass
  • Cities: Skylines
  • Hearts of Iron IV: Death or Dishonor
  • Surviving Mars
  • Cities: Skylines - Mass Transit
  • Hearts of Iron IV: Together for Victory
  • Cities: Skylines - Natural Disasters
  • Hearts of Iron IV: Cadet
  • Cities: Skylines - Snowfall
  • Cities: Skylines - After Dark
  • Cities: Skylines Deluxe Edition
Well, it seems we're getting somewhere
Here's hoping. If it gets rolled into the test branch I'd love to know if it's actually fixed if and when that happens. I can't test because I have Stellaris on GOG :-/
 
  • 2Like
Reactions:

Mímisbrunnr

First Lieutenant
11 Badges
Mar 1, 2018
299
419
  • Stellaris
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Stellaris - Path to Destruction bundle
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Stellaris: Distant Stars
  • Stellaris: Megacorp
  • Stellaris: Ancient Relics
  • Stellaris: Lithoids
  • Stellaris: Synthetic Dawn
Well, it seems we're getting somewhere
That's wonderful. Let's hope they fix it this time. But at least we've finally gotten their attention.

Maybe its just me, but @Alfray Stryke has seemed to be really responsive on our feedback, more so than I remember past QA responses to have been. If they or their bosses at PDX are reading this post, I'd like to extend my thanks to them.
 
  • 4
  • 1Love
Reactions:

ubuntufreakdragon

First Lieutenant
16 Badges
Apr 9, 2019
256
80
  • Stellaris: Galaxy Edition
  • Stellaris: Synthetic Dawn
  • Cities: Skylines
  • Stellaris
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Stellaris - Path to Destruction bundle
  • Age of Wonders III
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Stellaris: Distant Stars
  • Stellaris: Megacorp
  • Stellaris: Ancient Relics
  • Stellaris: Lithoids
There wont be a Steam mod by me as I don't own Stelaris via steam.
Technically this fix just replaces the first ruler at day one by a clone that has the pre_ruler_class property filled.
This however leads to the empiere getting a deelect message, an if the bug wasn't active in first place even a leader died message, (as the fix kills the original if it doesn't go away).
But if anyone wishes to create a steam mod just create an empty mod via the launcher add two txt files for the paths given above, fill the with my code and pack the file.
I hereby grant the permission to upload the resulting mod as long as it stays free and I get my credit.

Btw. I know how to fix many bugs, name me a bug and I will likely name you the fix.
 
Last edited:
  • 2
  • 1Love
Reactions: