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

Grave461

Captain
84 Badges
Nov 7, 2014
421
400
  • Victoria 3 Sign Up
  • Crusader Kings III
  • Stellaris: Nemesis
  • Crusader Kings II
  • Hearts of Iron IV: Colonel
  • Stellaris: Galaxy Edition
  • Europa Universalis IV
  • Imperator: Rome
  • Victoria 2
  • Victoria: Revolutions
  • Tyranny: Gold Edition
  • Cities: Skylines
  • Europa Universalis IV: Res Publica
  • Hearts of Iron IV: La Resistance
  • Europa Universalis IV: Wealth of Nations
  • Stellaris: Megacorp
  • Europa Universalis IV: Conquest of Paradise
  • Crusader Kings II: Sword of Islam
  • Victoria 2: A House Divided
  • Hearts of Iron IV: Together for Victory
  • Stellaris: Digital Anniversary Edition
  • Crusader Kings II: Way of Life
  • Stellaris: Leviathans Story Pack
  • Crusader Kings II: Monks and Mystics
  • Europa Universalis IV: Rights of Man
  • Cities: Skylines - Mass Transit
  • Europa Universalis IV: Mandate of Heaven
  • Victoria 2: Heart of Darkness
  • Hearts of Iron IV: Death or Dishonor
  • Crusader Kings II: Horse Lords
  • Cities: Skylines - Green Cities
  • Europa Universalis IV: Common Sense
  • Hearts of Iron IV: Expansion Pass
  • Crusader Kings II: Jade Dragon
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Europa Universalis IV: Rule Britannia
  • Cities: Skylines - Parklife
  • Stellaris: Distant Stars
  • Europa Universalis IV: Dharma
  • Crusader Kings II: Holy Fury
  • Europa Universalis IV: Golden Century
  • Cities: Skylines - Campus
  • Stellaris: Ancient Relics
  • Stellaris: Lithoids
  • Stellaris: Federations
  • Imperator: Rome - Magna Graecia
  • Battle for Bosporus
  • Europa Universalis 4: Emperor
  • Stellaris: Necroids
I think it would make more sense to assign habital zones (HZ) to specific star classes instead of planet class.

Is there any easy way to mod this? The only way I can think of at the moment is to make separate initializers for each star class, which would be a painstaking process I'd like to avoid if all possible.
 
The value for habitable distance is the same for all star types that planet is valid for (controlled by spawn_odds for said planet type in common\star_classes\00_star_classes.txt), set by default to between 60 and 120. So you could narrow down the range or even split up the planet types more by letting deserts, arid planet spawn closer to the sun and tundras and arctic planets further away from the sun, but that's it. You could not set it so the habitable zone is closer to an m-class red sun than it is to a g-class yellow sun.
 
  • 2
Reactions:
The value for habitable distance is the same for all star types that planet is valid for (controlled by spawn_odds for said planet type in common\star_classes\00_star_classes.txt), set by default to between 60 and 120. So you could narrow down the range or even split up the planet types more by letting deserts, arid planet spawn closer to the sun and tundras and arctic planets further away from the sun, but that's it. You could not set it so the habitable zone is closer to an m-class red sun than it is to a g-class yellow sun.

Unfortunately, that's exactly what I've been doing. In order to simulate varying habitable zones, I expanded the default range to 15-230 (I made solar systems larger in diameter as well). Next, I created separate initializers for each specific Star Class and inserted non_colonizable_planet tags to planets that mathematically fell outside the star's addigned HZ (M-class closest, B-class farthest, etc).

It's an extremely tedious process, which is why I was hoping there was some trick to assigning a HZ value directly to star classes instead.
 
Just a thought, but instead of creating non_colonizable tags, couldn't you just add the planet types you don't want to spawn to common\star_classes\00_star_classes.txt ?

For example if I want to prevent a red dwarf from spawning continental planets, all that's needed is to change the spawn_odds for pc_continental under sc_m to 0.
 
Just a thought, but instead of creating non_colonizable tags, couldn't you just add the planet types you don't want to spawn to common\star_classes\00_star_classes.txt ?

For example if I want to prevent a red dwarf from spawning continental planets, all that's needed is to change the spawn_odds for pc_continental under sc_m to 0.

I could, but then any planet that fell beyond the red dwarf's HZ could potentially become habitable, especially with the huge habitable range I've assigned. The conundrum I'm having isn't whether a particular habitable planet class orbits a particular star, but how far away the orbit is and still somewhat represent a scaled model for that star classes HZ.