Why does the CoM end up with a random species when I spawn them via solar system initializer?

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

Zifker

Private
58 Badges
Feb 1, 2016
15
0
  • Europa Universalis IV: Art of War
  • Stellaris: Synthetic Dawn
  • Europa Universalis IV: Pre-order
  • Cities: Skylines Deluxe Edition
  • Europa Universalis IV
  • Europa Universalis IV: Call to arms event
  • Europa Universalis IV: Res Publica
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Age of Wonders: Planetfall - Revelations
  • Europa Universalis IV: Cradle of Civilization
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Europa Universalis IV: Rule Britannia
  • Surviving Mars: Digital Deluxe Edition
  • Stellaris: Distant Stars
  • Europa Universalis IV: Dharma
  • Surviving Mars: First Colony Edition
  • Stellaris: Megacorp
  • Europa Universalis IV: Golden Century
  • Hearts of Iron IV: La Resistance
  • Surviving Mars: First Colony Edition
  • Stellaris: Ancient Relics
  • Age of Wonders: Planetfall
  • Age of Wonders: Planetfall Deluxe edition
  • Age of Wonders: Planetfall Premium edition
  • Age of Wonders: Planetfall Season pass
  • Stellaris: Lithoids
  • Stellaris: Galaxy Edition
  • Victoria 2
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • Cities: Skylines
  • Europa Universalis IV: El Dorado
  • Pillars of Eternity
  • Europa Universalis IV: Common Sense
  • Europa Universalis IV: Cossacks
  • Europa Universalis IV: Mare Nostrum
  • Stellaris
  • Hearts of Iron IV: Death or Dishonor
  • Stellaris: Galaxy Edition
  • Hearts of Iron IV: Cadet
  • Europa Universalis IV: Rights of Man
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Hearts of Iron IV: Together for Victory
  • Stellaris - Path to Destruction bundle
  • Europa Universalis IV: Mandate of Heaven
  • Hearts of Iron IV: No Step Back
Rich (BB code):
moon = {
            name = "NAME_Unity"
            class = pc_continental
            orbit_distance = 5
            orbit_angle = 340
            size = 18
            starting_planet = yes
            has_ring = no
            entity = "continental_planet_01_entity"
            deposit_blockers = none
            modifiers = none
            flags = { planet_unity }

            init_effect = {
                prevent_anomaly = yes
                random_country = {
                    limit = { has_country_flag = human_1 }
                    save_event_target_as = une
                    owner_species = {
                        save_event_target_as = human_species
                    }
                }
                create_country = {
                    name = "NAME_Commonwealth_of_Man"
                    adjective = "PRESCRIPTED_adjective_humans2"
                    authority = "auth_dictatorial"
                    civics = {
                        civic = civic_nationalistic_zeal
                        civic = civic_distinguished_admiralty
                    }
                    species = event_target:human_species
                    name_list = "HUMAN2"
                    ship_prefix = "CNS"
                    ethos = {
                        ethic = "ethic_xenophobe"
                        ethic = "ethic_fanatic_militarist"
                    }
                    flag = {
                        icon= {
                            category = "human"
                            file = "flag_human_4.dds"
                        }
                        background= {
                            category = "backgrounds"
                            file = "stripe.dds"
                        }
                        colors={
                            "red"
                            "black"
                            "null"
                            "null"
                        }
                    }
                    type = default
                    origin = "origin_lost_colony"
                    effect = {
                        save_global_event_target_as = npc_CoM
                        set_country_flag = parent_system_spawned
                        add_resource = {
                            minerals = 800
                            energy = 800
                            food = 800
                            alloys = 400
                            consumer_goods = 400
                            influence = 200
                        }
                        if = {
                            limit = {
                                event_target:une = {
                                    has_origin = origin_necrophage
                                }
                            }
                            set_origin = origin_necrophage
                            set_country_flag = necrophage_commonwealth
                        }
                        if = {
                            limit = {
                                event_target:une = {
                                    has_origin = origin_clone_army
                                }
                            }
                            set_origin = origin_clone_army
                        }
                    }
                }
                create_colony = {
                    owner = event_target:npc_CoM
                }
                generate_start_deposits_and_blockers = yes
                clear_blockers = yes
                generate_start_buildings_and_districts = yes
                generate_start_pops = yes
                event_target:npc_CoM = {
                    set_country_flag = human_2
                    set_country_flag = special_intro_for@event_target:une
                    set_graphical_culture = "reptilian_01"
                    set_city_graphical_culture = "reptilian_01"
                    change_species = event_target:human_species
                    create_starting_leaders = yes
                    country_event = { id = game_start.9 }
                    country_event = { id = game_start.33 days = 1 } # needs delay for system ownership to settle
                }
                set_name = "NAME_Unity"
            }
}

So I basically just took the above code straight out of the vanilla files and had the system initializer containing it (une_deneb_system) spawned as a neighbor to my own. It took me a bit to realize that graphical culture could be set, but adding change_species to that same effect block did nothing. I'm really just trying to spawn CoM within a certain number of hyperlane jumps to my UNE, and I'd rather not have to save edit to make them have the same species. Any help would be massively appreciated!