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

Stahl-Opa

Marshall & Grossadmiral of Helvetia
72 Badges
Jun 16, 2011
749
169
www.vmods.org
  • Victoria 2: A House Divided
  • Europa Universalis IV: Call to arms event
  • Gettysburg
  • Heir to the Throne
  • King Arthur II
  • Leviathan: Warships
  • Magicka
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Crusader Kings II: Charlemagne
  • Victoria 2: Heart of Darkness
  • Warlock 2: Wrath of the Nagas
  • Pillars of Eternity
  • Europa Universalis IV: Mare Nostrum
  • Stellaris: Galaxy Edition
  • Crusader Kings II: Reapers Due
  • Stellaris: Synthetic Dawn
  • Europa Universalis IV: Conquest of Paradise
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Darkest Hour
  • Europa Universalis III
  • Europa Universalis III: Chronicles
  • Europa Universalis III Complete
  • Divine Wind
  • Europa Universalis IV: Wealth of Nations
  • Crusader Kings II
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Third Rome
  • BATTLETECH
  • Stellaris: Nemesis
  • Age of Wonders III
  • Age of Wonders: Shadow Magic
  • Crusader Kings II: Jade Dragon
  • Stellaris - Path to Destruction bundle
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Europa Universalis IV: Rule Britannia
  • BATTLETECH - Digital Deluxe Edition
  • Stellaris: Distant Stars
  • Stellaris: Megacorp
  • Crusader Kings II: Holy Fury
  • Europa Universalis IV: Golden Century
  • Stellaris: Ancient Relics
  • Stellaris: Lithoids
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:
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
 
Yeah my fault. Had some incompatible mods activated lol :D

But there is another problem. The Policy seems to work fine (also the happiness malus works as intend) but the main effect (own species/xenos should not growth any more) doesn't work.

There is abolutly no effect beside the -5% happiness. Why this doesn't work? I take the "slavery_procreation_not_allowed" policy as basis and if I'm right I use exactly the same commands (just without success). Any ideas?