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

Seomis

Major
49 Badges
Jun 27, 2016
562
418
  • Crusader Kings II: Charlemagne
  • Stellaris - Path to Destruction bundle
  • Cities: Skylines - After Dark
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Crusader Kings II
  • Victoria: Revolutions
  • 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: Sword of Islam
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: The Republic
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Old Gods
  • Europa Universalis IV: Art of War
  • Crusader Kings II: Legacy of Rome
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Cities: Skylines - Natural Disasters
  • Hearts of Iron IV: Together for Victory
  • Surviving Mars: First Colony Edition
  • Cities: Skylines - Mass Transit
  • Surviving Mars
  • Surviving Mars: Digital Deluxe Edition
  • Shadowrun Returns
  • Shadowrun: Dragonfall
  • Surviving Mars: First Colony Edition
  • Stellaris: Megacorp
  • Prison Architect
  • Europa Universalis IV: Rights of Man
  • Crusader Kings II: Reapers Due
  • Hearts of Iron IV: Colonel
  • Hearts of Iron IV: Cadet
  • Stellaris: Galaxy Edition
  • Cities: Skylines - Snowfall
  • Crusader Kings II: Conclave
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Common Sense
  • Pillars of Eternity
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Pre-order
  • Cities: Skylines
  • Victoria 2
  • Stellaris
  • Age of Wonders III
Is the populating of home planets at the start of a game hard-coded? I see that special empires (fallen, primitive, etc.) have scripts populating their planets, but nothing for the default country type.
 
i suggest you have a look at our mod files. especially the code in prescripted_countries and the stuff in solar_system_initializers could help you a lot.

In the base game, files in solar_system_initializers only populate for fallen empires and primitive civilizations. prescripted_countries does so for no one. I'm looking for where the default population is set for the player's and normal, randomized, AI-controlled empires.
 
I looked. Hard. Couldn't find where the seven starting pops is defined in soft-code.

Try a game-start event that creates a couple of new pops on every colonised planet. AlphaMod has an edict that triggers such an event.

Code:
planet_event = {
   id = relocate_megacitizens.1

   is_triggered_only = yes
   location = ROOT
   hide_window = yes
   
   immediate = {
     planet_event = {
       id = relocate_megacitizens.2
     }
   }
}

planet_event = {
   id = relocate_megacitizens.2
   is_triggered_only = yes
   hide_window = yes

   immediate = {
     create_pop = {
       species = owner_main_species
       ethos = owner
     }
     create_pop = {
       species = owner_main_species
       ethos = owner
     }
   }
}
 
  • 1
Reactions:
Thanks! That's what I'm prepared to do, but I was holding out hope that I wouldn't have to resort to a hacky solution like that. Oh well, certainly not the end of the world!