Hi all,
Ive created 2 custom factions for my mod (Terrans & Vulcans). When playing as Terrans I want the Vulcans to spawn near the Terrans.
Ive managed to create a custom Vulcan solar system as per the code below and it shows up in the game. Great. One problem solved. Although using the code below, the planet spawns as continental not arid - which I have no explanation for.
However, my remaining problem is I tried some code (not shown) to get the Vulcan species to spawn in that system which did not work. Can someone help with what code I need to make the Vulcans actually spawn in the Vulcan system near the Terrans please? I presume this may be a flags issue as well?
# Vulcans
vulcan_homeworld = {
name = "40 Eridani"
class = "sc_trinary_1"
usage = custom_empire
flags = { vulcan_homeworld }
max_instances = 1
asteroid_belt = { type = rocky_asteroid_belt radius = 130 }
#Stars
planet = { name = "40 Eridani A" class = pc_k_star orbit_distance = 0 orbit_angle = 1 size = 30 has_ring = no }
planet = { name = "40 Eridani B" class = pc_g_star orbit_distance = 60 orbit_angle = 90 size = 30 has_ring = no }
planet = { name = "40 Eridani C" class = pc_m_star orbit_distance = 20 orbit_angle = 20 size = 10 has_ring = no }
#Planets
planet = {
name = "Vulcan"
class = "pc_arid"
orbit_distance = 30
orbit_angle = -150
size = { min = 22 max = 25 }
starting_planet = yes
has_ring = no
modifiers = none
flags = { planet_vulcan }
init_effect = {
prevent_anomaly = yes
clear_deposits = yes
set_name = "Vulcan"
}
}
I have added the following code to the sol_system initialisers file:
neighbor_system = {
hyperlane_jumps = { min = 2 max = @jumps }
initializer = "vulcan_homeworld"
}
Ive created 2 custom factions for my mod (Terrans & Vulcans). When playing as Terrans I want the Vulcans to spawn near the Terrans.
Ive managed to create a custom Vulcan solar system as per the code below and it shows up in the game. Great. One problem solved. Although using the code below, the planet spawns as continental not arid - which I have no explanation for.
However, my remaining problem is I tried some code (not shown) to get the Vulcan species to spawn in that system which did not work. Can someone help with what code I need to make the Vulcans actually spawn in the Vulcan system near the Terrans please? I presume this may be a flags issue as well?
# Vulcans
vulcan_homeworld = {
name = "40 Eridani"
class = "sc_trinary_1"
usage = custom_empire
flags = { vulcan_homeworld }
max_instances = 1
asteroid_belt = { type = rocky_asteroid_belt radius = 130 }
#Stars
planet = { name = "40 Eridani A" class = pc_k_star orbit_distance = 0 orbit_angle = 1 size = 30 has_ring = no }
planet = { name = "40 Eridani B" class = pc_g_star orbit_distance = 60 orbit_angle = 90 size = 30 has_ring = no }
planet = { name = "40 Eridani C" class = pc_m_star orbit_distance = 20 orbit_angle = 20 size = 10 has_ring = no }
#Planets
planet = {
name = "Vulcan"
class = "pc_arid"
orbit_distance = 30
orbit_angle = -150
size = { min = 22 max = 25 }
starting_planet = yes
has_ring = no
modifiers = none
flags = { planet_vulcan }
init_effect = {
prevent_anomaly = yes
clear_deposits = yes
set_name = "Vulcan"
}
}
I have added the following code to the sol_system initialisers file:
neighbor_system = {
hyperlane_jumps = { min = 2 max = @jumps }
initializer = "vulcan_homeworld"
}