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:
Now when I start a new game it does not come up, when I go to the Error Log this is what I find:
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
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