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

H4shX

Second Lieutenant
42 Badges
Aug 12, 2014
107
58
  • Sword of the Stars
  • Stellaris: Synthetic Dawn
  • Stellaris: Galaxy Edition
  • Stellaris
  • Cities: Skylines Deluxe Edition
  • Crusader Kings II
  • Supreme Ruler 2020
  • Europa Universalis IV: Res Publica
  • Europa Universalis IV: Call to arms event
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • 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
  • Stellaris: Nemesis
  • Stellaris: Necroids
  • Stellaris: Federations
  • Stellaris: Lithoids
  • Stellaris: Ancient Relics
  • Stellaris: Megacorp
  • Stellaris: Distant Stars
  • Cities: Skylines - Parklife
  • Stellaris: Apocalypse
  • Stellaris: Humanoids Species Pack
  • Stellaris - Path to Destruction bundle
  • Stellaris: Leviathans Story Pack
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Cities: Skylines - Snowfall
  • Cities: Skylines - After Dark
  • Crusader Kings II: Horse Lords
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: El Dorado
  • Cities: Skylines
Hey guys

I am trying to create this event whereby if the star has a specific flag, and the planet within that specific star is also flagged, then it should create a species (similar to how I already created them as custom species). This is so that they populate or form within my generated Map

(First the logic is thanks to another Modder who created Human Space, as well as to the 2 people that assisted in my other thread )

Code is below:
Code:
event = {
    id = mes.1
    hide_window = yes
    is_triggered_only = yes
  
    immediate = {
        if = {
            limit = { any_system = { has_star_flag = harsa_optioneventspawn } }
            random_planet = {
                limit = { has_planet_flag = flag_planet_kharsan }
                save_event_target_as = batarian_spawn
                create_species = {
                    name = Batarian
                    plural = Batarians
                    species_adjective = Batarian
                    class = "HUMA"
                    portrait = "batarian"
                    homeworld = THIS
                    ftl = warp
                    weapon="tech_mass_drivers_1"
                    traits = {
                        trait = "trait_financiers"
                        trait = "trait_unethical_tactics"
                        trait = "trait_slave_traders"
                        trait = "trait_zealous_defenders"
                        trait = "trait_competitive"
                    }
                }                              
                create_country = {
                    name = "Batarian Hegemony"
                    adjective = Batarian
                    name_list= "batarian"
                    type = default
                    government = planet_states
                    species = last_created
                    ethos = {
                        ethic="ethic_fanatic_xenophobe"
                        ethic="ethic_materialist"    
                    }
                    flag = {
                        icon={
                            category="masseffect"
                            file="2.dds"
                        }
                        background={
                            category="backgrounds"
                            file="00_solid.dds"
                        }
                        colors={
                            "customcolor1755"
                            "customcolor211"
                            "null"
                            "null"
                        }
                    }
                    graphical_culture="arthropoid_01"
                    city_graphical_culture="pirate_01"

                    ruler={
                        gender=male
                        name="Ka'hairal Ib-ba"
                        portrait="batarian_male_leader3"
                        texture=0
                        hair=0
                        clothes=0
                        ruler_title="Supreme Leader"
                        ruler_title_female="Supreme Leader"
                    }                  
                }
              
                random_tile = {
                    limit = {
                        has_blocker = no
                        has_grown_pop = no
                        has_growing_pop = no
                    }
                    create_pop = {
                        species = last_created
                        ethos = owner
                    }
                }
                random_tile = {
                    limit = {
                        has_blocker = no
                        has_grown_pop = no
                        has_growing_pop = no
                    }
                    create_pop = {
                        species = last_created
                        ethos = owner
                    }
                }
                random_tile = {
                    limit = {
                        has_blocker = no
                        has_grown_pop = no
                        has_growing_pop = no
                    }
                    create_pop = {
                        species = event_target:batarian_spawn
                        ethos = owner
                    }
                }
                random_tile = {
                    limit = {
                        has_blocker = no
                        has_grown_pop = no
                        has_growing_pop = no
                    }
                    create_pop = {
                        species = event_target:batarian_spawn
                        ethos = owner
                    }
                }
                random_tile = {
                    limit = {
                        has_blocker = no
                        has_grown_pop = no
                        has_growing_pop = no
                    }
                    create_pop = {
                        species = event_target:batarian_spawn
                        ethos = owner
                    }
                }
                random_tile = {
                    limit = {
                        has_blocker = no
                        has_grown_pop = no
                        has_growing_pop = no
                    }
                    create_pop = {
                        species = event_target:batarian_spawn
                        ethos = owner
                    }
                }
                random_tile = {
                    limit = {
                        has_blocker = no
                        has_grown_pop = no
                        has_growing_pop = no
                    }
                    create_pop = {
                        species = event_target:batarian_spawn
                        ethos = owner
                    }
                }
                set_owner = last_created_country
                create_spaceport = {
                    owner = last_created_country
                    initial_module = "projectile_weapon"
                }
              
                last_created_country = {
                    create_leader = {
                        type = governor
                        name = random
                        species = owner_main_species
                        skill = 201
                    }
                    create_leader = {
                        type = scientist
                        name = random
                        species = owner_main_species
                        skill = 201
                    }
                    create_leader = {
                        type = scientist
                        name = random
                        species = owner_main_species
                        skill = 201
                    }
                    create_leader = {
                        type = scientist
                        name = random
                        species = owner_main_species
                        skill = 201
                    }
                    create_leader = {
                        type = admiral
                        species = owner_main_species
                        name = random
                        skill = 100
                    } 
                    create_fleet = {name = "Salarian Fleet"}
                    last_created_fleet = {
                        set_owner = last_created_country
                        create_ship = {
                            name = "Dagger"
                            design = "Dagger"
                        }
                        create_ship = {
                            name = "Dagger"
                            design = "Dagger"
                        }
                        create_ship = {
                            name = "Dagger"
                            design = "Dagger"
                        }
                        set_location = event_target:batarian_spawn
                        assign_leader = last_created_leader
                    }  
                    create_fleet = {}
                    last_created_fleet = {
                        set_owner = last_created_country
                        create_ship = { name = random design = "Constructor"}
                        set_location = event_target:batarian_spawn
                    }
             
                    create_leader = {
                        type = scientist
                        species = owner_main_species
                        name = random
                        skill = 100
                    }
                    create_fleet = {}
                    last_created_fleet = {
                        set_owner = last_created_country
                        create_ship = { name = random design = "Prototype"}
                        set_location = event_target:batarian_spawn
                        assign_leader = last_created_leader
                    }
               
                    last_created_country = {
                        add_minerals = 300
                        add_energy = 500
                    }
                }
            }
        }
    }
}


Now when I start a new game it does not come up, when I go to the Error Log this is what I find:

[23:36:25][eventmanager.cpp:226]: Corrupt Event Table Entry - namespace in events/mes_game_start.txtline: 1
[23:36:25][eventmanager.cpp:534]: unknown namespace 'mes' defined in event files
[23:36:25][effect.cpp:265]: Error: "Unexpected token: ftl, near line: 21
Unexpected token: weapon, near line: 22
Unexpected token: graphical_culture, near line: 23
Unexpected token: city_graphical_culture, near line: 24
Unexpected token: ruler, near line: 26
" in file: "events/mes_game_start.txt" near line: 43
[23:36:25][persistent.cpp:34]: Error: "Unexpected token: adjective, near line: 46
" in file: "events/mes_game_start.txt" near line: 59
[23:36:25][eventmanager.cpp:183]: an event with id [mes.1] already exists! file: events/mes_game_start.txt line: 3
[23:36:25][eventmanager.cpp:534]: unknown namespace 'mes' defined in event files


1. How Do I set or force the Graphical Culture this I assume includes Ships, the City Culture, FTL Drive, Weapons and the Ruler Title Name? Without the need of touching whatever is on the Government Localisations etc. Is it even possible? If so what would the command be?

2. What is wrong the above code that the event is not even going through :?

Thanks in advance