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

gerishnakov

Captain
44 Badges
Feb 14, 2016
312
238
  • Crusader Kings II: Charlemagne
  • Stellaris - Path to Destruction bundle
  • Stellaris
  • Stellaris: Synthetic Dawn
  • Hearts of Iron III
  • Crusader Kings II
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Legacy of Rome
  • Stellaris: Nemesis
  • Stellaris: Apocalypse
  • Cities: Skylines - Parklife
  • Stellaris: Distant Stars
  • Stellaris: Humanoids Species Pack
  • Surviving Mars: First Colony Edition
  • Cities: Skylines Industries
  • Prison Architect
  • Surviving Mars: First Colony Edition
  • Imperator: Rome Sign Up
  • Cities: Skylines - Campus
  • Stellaris: Ancient Relics
  • Stellaris: Lithoids
  • Stellaris: Federations
  • Stellaris: Necroids
  • Stellaris: Leviathans Story Pack
  • Europa Universalis IV
  • Victoria 2
  • Cities: Skylines
  • Crusader Kings II: Way of Life
  • Cities: Skylines - After Dark
  • Cities: Skylines - Snowfall
  • Hearts of Iron IV: Cadet
  • Stellaris: Digital Anniversary Edition
  • Hearts of Iron IV: Expansion Pass
  • Cities: Skylines - Natural Disasters
  • Hearts of Iron IV: Together for Victory
  • Cities: Skylines - Mass Transit
  • Surviving Mars
  • Hearts of Iron IV: Death or Dishonor
  • Cities: Skylines - Green Cities
  • Stellaris: Megacorp
I'd like to increase the chances of all randomly generated planets having planetary modifiers, both negative and positive, to increase game flavour. Can anyone offer guidance on where the values are for this in the game files, if they're available for editing at all?
 
I've now found the 00_planetary_modifiers file, but it's a little confusing. Can someone possibly explain the following part found at the top of the file:

pm_null = {
is_null = yes

spawn_chance = {
value = 275
modifier = {
factor = 6
num_modifiers > 1
}
modifier = {
factor = 3
num_modifiers < 1
}
}
}

That's followed by the chances for each modifier to spawn on each particular planet type, so I'm guessing the first bit above deals with their general likelihood of spawning at all.
 
seems like at planet creation it'll select one of the modifiers randomly weighted based on spawn_chance. The modifiers under spawn chance add or multiply the weighting if their requirements are fulfilled.

So for your purpose you just want to pump the spawn_chance for pm_null down. (since it represents the chance of getting no modifier)


These are assumptions I have not tested yet.
 
seems like at planet creation it'll select one of the modifiers randomly weighted based on spawn_chance. The modifiers under spawn chance add or multiply the weighting if their requirements are fulfilled.

So for your purpose you just want to pump the spawn_chance for pm_null down. (since it represents the chance of getting no modifier)


These are assumptions I have not tested yet.

So in layman's terms, are you saying that I basically just need to increase that 275 to something like 350? Thanks for replying by the way!
 
pm_null is the chance of getting no planet modifier. If you a blanket increase on the chance of getting a planet modifier, decrease it. From a quick look at the file decreasing it to around 100-150 will roughly double the amount of modifiers you see. Decreasing it to 0 will give you a modifier on pretty much every planet and 2 on most of them.

I've tested it now, seems to work like I thought it did. A planet apparently gets two chances to get modifiers because most of my planets have 2 (but none 3) when I set the chance for pm_null to 0. This does have an important repercussion because a lot of modifiers can only appear, or are more likely to appear, as a planet's first modifier, meaning the modifiers that can also appear in slot number 2 are overrepresented, you may want to tweak this with any other changes you make.
 
pm_null is the chance of getting no planet modifier. If you a blanket increase on the chance of getting a planet modifier, decrease it. From a quick look at the file decreasing it to around 100-150 will roughly double the amount of modifiers you see. Decreasing it to 0 will give you a modifier on pretty much every planet and 2 on most of them.

I've tested it now, seems to work like I thought it did. A planet apparently gets two chances to get modifiers because most of my planets have 2 (but none 3) when I set the chance for pm_null to 0. This does have an important repercussion because a lot of modifiers can only appear, or are more likely to appear, as a planet's first modifier, meaning the modifiers that can also appear in slot number 2 are overrepresented, you may want to tweak this with any other changes you make.

Ok that makes sense, thanks again. I think it stands to reason, from what you said, and given the factor modifiers for whether a planet gets one or two modifiers, that a pm_null value of 0 would always give two modifiers to every planet.