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

electricbeach

Recruit
Jul 23, 2025
1
1
Description
Psychic Trait being removed from ruler

Game Version
Phoenix 4.0.21 (bb43)

What version do you use?
Steam

What expansions do you have installed?
Plantoids, Humanoids, Synthetic Dawn, Utopia, Leviathans Story Pack, Apocalypse, Megacorp, Distant Stars, Ancient Relics, Lithoids, Federations, Necroids, Nemesis, Aquatics, Overlord, Toxoids, First Contact, Galactic Paragons, Astral Planes, Season 8 Expansion Pass, The Machine Age, Cosmic Storms, Grand Archive

Do you have mods enabled?
No

Please explain your issue is in as much detail as possible.
The Psychic trait is removed from my ruler when I genetically modify the main species after completing the Biomorphosis ascension path. (I am aware that Erudite and Psychic are incompatible; the issue happens even if Erudite isn't a trait that is added.) I got the trait on my ruler from the 1/1301 Caravaneer reliquary. I am using the Under One Rule origin. (I did use console commands to add the orbital speed demon anomaly to an asteroid, but I don't think that would cause this issue.)

Steps to reproduce the issue.
Save scum to get the 1/1301 Psychic trait from the Caravaneer reliquary. Genetically modify the species of the ruler. The Psychic trait is now removed.

Upload Attachment
File(s) attached
 

Attachments

  • 70.sav
    4,8 MB · Views: 0
  • 69.sav
    4,7 MB · Views: 0
  • 20250722212158_1.jpg
    20250722212158_1.jpg
    378,5 KB · Views: 0
  • 20250722212221_1.jpg
    20250722212221_1.jpg
    380,1 KB · Views: 0
  • 1
Reactions:
I'm glad, that I'm not alone, who use this event! I fixed this bug for myself by editing two game file.

In the file "C:\Program Files (x86)\Steam\steamapps\common\Stellaris\events\caravaneer_events.txt" in the section "lootbox_contents_l = {" instead of
Code:
                    lootbox_contents_l = {
                        ruler = {
                            add_trait = {
                                trait = leader_trait_psionic
                            }
                        }
                        tooltip = {
                            ruler = {
                                add_trait = {
                                    trait = leader_trait_psionic
                                }
                            }
                        }
                    }
should be
Code:
                    lootbox_contents_l = {
                        ruler = {
                            add_trait = {
                                trait = leader_trait_psionic
                            }

#♠
                            set_leader_flag = lootbox_psionic
#♠

                        }
                        tooltip = {
                            ruler = {
                                add_trait = {
                                    trait = leader_trait_psionic
                                }
                            }
                        }
                    }
And in the file "C:\Program Files (x86)\Steam\steamapps\common\Stellaris\common\scripted_effects\00_scripted_effects.txt" in the section "update_leader_after_modification = {" instead of "remove_trait = leader_trait_psionic" should be
Code:
        #remove_trait = leader_trait_psionic
        if = {
            limit = {
                NOT = { has_leader_flag = lootbox_psionic }
            }
            remove_trait = leader_trait_psionic
        }

These changes will protect you from this bug in future runs, but in the current one it would be easier to use the console to fix it.
 
Also, if you want to avoid spontaneously changes of your leaders' species, you can edit the file "C:\Program Files (x86)\Steam\steamapps\common\Stellaris\events\utopia_on_action_events.txt" by changing its event "utopia.2508" to my version:
Code:
country_event = {
    id = utopia.2508
    is_triggered_only = yes
    hide_window = yes

    immediate = {
        from = {
            save_event_target_as = new_species
        }
        fromfrom = {
            save_event_target_as = old_species
        }
        prev = {
            save_event_target_as = target_planet
        }

#♠
        from = {
            save_event_target_as = leaders_new_species
        }
        root.capital_scope = {
            ordered_owned_pop_group = {
                limit = {
                    OR = {
                        is_exact_same_species = event_target:new_species
                        is_same_species = event_target:new_species
                    }
                }
                position = 0
                order_by = trigger:pop_group_size
                species = {
                    save_event_target_as = leaders_new_species
                }
            }
        }
        if = {
            limit = {
                owner_main_species = {
                    OR = {
                        is_exact_same_species = event_target:leaders_new_species
                        is_same_species = event_target:leaders_new_species
                    }
                }
            }
            change_dominant_species = { species = event_target:leaders_new_species }
        }
#♠

        every_owned_leader = {

#♠
            if = {
                limit = {
                    OR = {
                        is_exact_same_species = event_target:leaders_new_species
                        is_same_species = event_target:leaders_new_species
                    }
                }
                change_species = event_target:leaders_new_species
            }
#♠

            update_leader_after_modification = yes
        }

#♠
        every_envoy = {
            if = {
                limit = {
                    OR = {
                        is_exact_same_species = event_target:leaders_new_species
                        is_same_species = event_target:leaders_new_species
                    }
                }
                change_species = event_target:leaders_new_species
            }
        }
#♠

        every_pool_leader = {

#♠
            if = {
                limit = {
                    OR = {
                        is_exact_same_species = event_target:leaders_new_species
                        is_same_species = event_target:leaders_new_species
                    }
                }
                change_species = event_target:leaders_new_species
            }
#♠

            update_leader_after_modification = yes
        }

#♠
        update_node_portraits_if_gestalt_effect = yes
#♠

    }
}

With these changes only leaders of the modifying species are affected, and they will always use the subspecies of their current species from the biggest pop group on your capital. No more random!
 
  • 1
Reactions: