hi guys,
I made a new policy, "birthcontrol"
It's one of my first try to mod stellaris, but I have some modding exp from CK2 and HoI2.
The new Policy should should prevent the pop growing of a) all xenos, b) of your own species and c) of all species in your empire.
I made the modfiles etc.; checked the .txt more then twice, but anyhow the game has a CTD everytime I try to change the policy. (the new policy is shown correctly on the screen, but CTD if you want to change the preselected)
Maybe one of the more experienced modders can help me out and tell me what I doing wrong.
Here my policy file:
thanks for help me out!
Greez
I made a new policy, "birthcontrol"
It's one of my first try to mod stellaris, but I have some modding exp from CK2 and HoI2.
The new Policy should should prevent the pop growing of a) all xenos, b) of your own species and c) of all species in your empire.
I made the modfiles etc.; checked the .txt more then twice, but anyhow the game has a CTD everytime I try to change the policy. (the new policy is shown correctly on the screen, but CTD if you want to change the preselected)
Maybe one of the more experienced modders can help me out and tell me what I doing wrong.
Here my policy file:
Code:
##########################################################################
# V_mods_birthcontrol
#
# #####
#
# AI:
# Base AI-weight is 100, if unchanged
# AI will grab whatever policy-option has the highest weight
#
# #####
#
##########################################################################
birthcontrol = {
potential = {
}
option = {
name = "birthcontrol_off"
AI_weight = {
base = 100
}
}
option = {
name = "birthcontrol_xenos"
AI_weight = {
base = 0
}
on_enabled = {
hidden_effect = {
every_owned_pop = {
limit = {
NOT = { is_same_species = ROOT }
is_growing = yes
}
kill_pop = yes
}
}
}
pop_happiness = {
base = 0
modifier = {
add = -0.05
}
}
}
option = {
name = "birthcontrol_own"
AI_weight = {
base = 0
}
on_enabled = {
hidden_effect = {
every_owned_pop = {
limit = {
is_same_species = ROOT
is_growing = yes
}
kill_pop = yes
}
}
}
pop_happiness = {
base = 0
modifier = {
add = -0.05
}
}
}
option = {
name = "birthcontrol_all"
AI_weight = {
base = 0
}
on_enabled = {
hidden_effect = {
every_owned_pop = {
limit = {
is_growing = yes
}
kill_pop = yes
}
}
}
pop_happiness = {
base = 0
modifier = {
add = -0.05
}
}
}
}
thanks for help me out!
Greez