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

ShadowDragon868

Captain
61 Badges
Jun 11, 2012
395
431
  • Crusader Kings II
  • A Game of Dwarves
  • Stellaris: Synthetic Dawn
  • Stellaris: Lithoids
  • Age of Wonders III
  • Steel Division: Normand 44 - Second Wave
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Surviving Mars: Digital Deluxe Edition
  • Steel Division: Normandy 44 -  Back to Hell
  • BATTLETECH - Digital Deluxe Edition
  • BATTLETECH - Beta Backer
  • BATTLETECH - Backer
  • Stellaris: Distant Stars
  • Shadowrun Returns
  • Shadowrun: Dragonfall
  • Shadowrun: Hong Kong
  • Surviving Mars: First Colony Edition
  • BATTLETECH: Flashpoint
  • Stellaris: Megacorp
  • Imperator: Rome
  • Hearts of Iron IV: Expansion Pass
  • Surviving Mars: First Colony Edition
  • Stellaris: Ancient Relics
  • BATTLETECH: Season pass
  • Knights of Pen and Paper 2
  • Battle for Bosporus
  • Stellaris: Federations
  • Hearts of Iron 4: Arms Against Tyranny
  • Stellaris: Nemesis
  • Crusader Kings III
  • Hearts of Iron IV: La Resistance
  • Knights of Pen and Paper +1 Edition
  • Hearts of Iron IV: By Blood Alone
  • 500k Club
  • Magicka: Wizard Wars Founder Wizard
  • Stellaris: Necroids
  • BATTLETECH: Heavy Metal
  • Hearts of Iron IV: Death or Dishonor
  • Stellaris
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Hearts of Iron IV: Cadet
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Hearts of Iron IV: Together for Victory
  • Stellaris - Path to Destruction bundle
  • Steel Division: Normandy 44
  • BATTLETECH
Okay, I'm trying to take a crowbar to deposits.txt.

Specifically, I want to crowbar it so that stars always provide 3-4 energy, and Gas Giants always provide 1-4.

Do I need to like, create new energy deposit listings and give them insaneotron orbital weights and somehow restrict them to only stars and gas giants? Or am I missing something obvious I could do to the file?
 
Do I need to like, create new energy deposit listings and give them insaneotron orbital weights and somehow restrict them to only stars and gas giants?

That's the way to do it AFAIK. You'll want to create some new entries that look something like this:

always_energy_three_energy_deposit = {
resources = { energy = 3 }
station = shipclass_mining_station
orbital_weight = {
weight = 10
}

drop_weight = {
weight = 0
modifier = {
weight = 1000
planet = {
is_planet_class = pc_gas_giant
}
}
modifier = {
weight = 1000
planet = {
OR = {
is_planet_class = pc_a_star
is_planet_class = pc_b_star
is_planet_class = pc_f_star
is_planet_class = pc_g_star
is_planet_class = pc_k_star
is_planet_class = pc_m_star
}
}
}
}
}

And that should do it :)
 
Okay, something's not working.

I added the following to a 00_deposits in a mod; the mod selected just fine. Yes, I checked to make sure the .zip file name was right.

Code:
##################################
######### Stellar Energy #########
##################################
# The idea behind this is that ALL Stars and Gas Giants should be good energy sources.
# Seriously, those things are like, humongous energy sources!

sd_gas_giant_energy_two = {
   resources = { energy = 2 }
   station = shipclass_mining_station
   orbital_weight = {
     weight = 50
   }
   
   drop_weight = {
     weight = 0
     modifier = {
       weight = 1000
       planet = {    is_planet_class = pc_gas_giant   }
     }
   }
}

sd_gas_giant_energy_three = {
   resources = { energy = 3 }
   station = shipclass_mining_station
   orbital_weight = {
     weight = 50
   }
   
   drop_weight = {
     weight = 0
     modifier = {
       weight = 1000
       planet = {    is_planet_class = pc_gas_giant   }
     }
   }
}

sd_gas_giant_energy_four = {
   resources = { energy = 4 }
   station = shipclass_mining_station
   orbital_weight = {
     weight = 50
   }
   
   drop_weight = {
     weight = 0
     modifier = {
       weight = 250
       planet = {
       is_planet_class = pc_gas_giant
       }
     }
   }
}

sd_stellar_energy_three = {
   resources = { energy = 3 }
   station = shipclass_mining_station
   orbital_weight = {
     weight = 50
   }
   
   drop_weight = {
     weight = 0
     modifier = {
       weight = 500
       planet = {
           is_planet_class = pc_a_star
           is_planet_class = pc_b_star
           is_planet_class = pc_f_star
           is_planet_class = pc_g_star
           is_planet_class = pc_k_star
           is_planet_class = pc_m_star
       }
     }
   }
}

sd_stellar_energy_four = {
   resources = { energy = 4 }
   station = shipclass_mining_station
   orbital_weight = {
     weight = 50
   }
   
   drop_weight = {
     weight = 0
     modifier = {
       weight = 2000
       planet = {
           is_planet_class = pc_a_star
           is_planet_class = pc_b_star
           is_planet_class = pc_f_star
           is_planet_class = pc_g_star
           is_planet_class = pc_k_star
           is_planet_class = pc_m_star
       }
     }
   }
}

sd_stellar_energy_five = {
   resources = { energy = 5 }
   station = shipclass_mining_station
   orbital_weight = {
     weight = 50
   }
   
   drop_weight = {
     weight = 0
     modifier = {
       weight = 250
       planet = {
           is_planet_class = pc_a_star
           is_planet_class = pc_b_star
           is_planet_class = pc_f_star
           is_planet_class = pc_g_star
           is_planet_class = pc_k_star
           is_planet_class = pc_m_star
       }
     }
   }
}

sd_stellar_energy_six = {
   resources = { energy = 6 }
   station = shipclass_mining_station
   orbital_weight = {
     weight = 50
   }
   
   drop_weight = {
     weight = 0
     modifier = {
       weight = 125
       planet = {
           is_planet_class = pc_a_star
           is_planet_class = pc_b_star
           is_planet_class = pc_f_star
           is_planet_class = pc_g_star
           is_planet_class = pc_k_star
           is_planet_class = pc_m_star
       }
     }
   }
}

Aaand... None of the first four stars I looked at had energy on them. So something's going weird here. Anyone have any ideas?
 
Try

orbital_weight = {
weight = 100
}

Might be that with weight = 50, 50% of the time it's being spawned on the planet or sun's surface, and gas giants and suns probably just dispose of it.
 
Last edited:
As I understand it, orbital weight is the chance the deposit will be in orbit, rather than on the planet surface. It's nothing to do with weight, which is the overall chance of spawning.

So I still think it's a case that when orbital weight is checked and 'fails', this puts the deposit on the surface. And suns and gas giants have no surface. So it's discarded.

It's also why you use is_orbital_slot = no to replace orbital weight when you absolutely want the deposit to spawn on the surface, if it spawns.
 
Well, this is exceedingly frustrating.


I tried adding the following to my modded 00_deposits.txt file:

Code:
##################################
######### Stellar Energy #########
##################################
# The idea behind this is that ALL Stars and Gas Giants should be good energy sources.
# Seriously, those things are like, humongous energy sources!

sd_gas_giant_energy_two = {
   resources = { energy = 2 }
   station = shipclass_mining_station
   orbital_weight = {
       weight = 0
       modifier = {
         weight = 1000
         planet = {    is_planet_class = pc_gas_giant   }
       }
   }
}

sd_gas_giant_energy_three = {
   resources = { energy = 3 }
   station = shipclass_mining_station
   orbital_weight = {
       weight = 0
       modifier = {
         weight = 500
         planet = {    is_planet_class = pc_gas_giant   }
       }
   }
}

sd_gas_giant_energy_four = {
   resources = { energy = 4 }
   station = shipclass_mining_station
   orbital_weight = {
       weight = 0
       modifier = {
         weight = 250
         planet = {    is_planet_class = pc_gas_giant   }
       }
   }
}

sd_gas_giant_energy_five = {
   resources = { energy = 5 }
   station = shipclass_mining_station
   orbital_weight = {
       weight = 0
       modifier = {
         weight = 125
         planet = {    is_planet_class = pc_gas_giant   }
       }
   }
}

sd_gas_giant_energy_six = {
   resources = { energy = 125 }
   station = shipclass_mining_station
   orbital_weight = {
       weight = 0
       modifier = {
         weight = 75
         planet = {    is_planet_class = pc_gas_giant   }
       }
   }
}

sd_stellar_energy_three = {
   resources = { energy = 3 }
   station = shipclass_mining_station
   orbital_weight = {
       weight = 0
       modifier = {
         weight = 500
         planet = {
           is_planet_class = pc_a_star
           is_planet_class = pc_b_star
           is_planet_class = pc_f_star
           is_planet_class = pc_g_star
           is_planet_class = pc_k_star
           is_planet_class = pc_m_star
         }
       }
   }
}

sd_stellar_energy_four = {
   resources = { energy = 4 }
   station = shipclass_mining_station
   orbital_weight = {
       weight = 0
       modifier = {
         weight = 1000
         planet = {
           is_planet_class = pc_a_star
           is_planet_class = pc_b_star
           is_planet_class = pc_f_star
           is_planet_class = pc_g_star
           is_planet_class = pc_k_star
           is_planet_class = pc_m_star
         }
       }
   }
}

sd_stellar_energy_five = {
   resources = { energy = 5 }
   station = shipclass_mining_station
   orbital_weight = {
       weight = 0
       modifier = {
         weight = 1000
         planet = {
           is_planet_class = pc_a_star
           is_planet_class = pc_b_star
           is_planet_class = pc_f_star
           is_planet_class = pc_g_star
           is_planet_class = pc_k_star
           is_planet_class = pc_m_star
         }
       }
   }
}

sd_stellar_energy_six = {
   resources = { energy = 6 }
   station = shipclass_mining_station
   orbital_weight = {
       weight = 0
       modifier = {
         weight = 500
         planet = {
           is_planet_class = pc_a_star
           is_planet_class = pc_b_star
           is_planet_class = pc_f_star
           is_planet_class = pc_g_star
           is_planet_class = pc_k_star
           is_planet_class = pc_m_star
         }
       }
   }
}

sd_stellar_energy_seven = {
   resources = { energy = 7 }
   station = shipclass_mining_station
   orbital_weight = {
       weight = 0
       modifier = {
         weight = 250
         planet = {
           is_planet_class = pc_a_star
           is_planet_class = pc_b_star
           is_planet_class = pc_f_star
           is_planet_class = pc_g_star
           is_planet_class = pc_k_star
           is_planet_class = pc_m_star
         }
       }
   }
}

sd_stellar_energy_eight = {
   resources = { energy = 8 }
   station = shipclass_mining_station
   orbital_weight = {
       weight = 0
       modifier = {
         weight = 125
         planet = {
           is_planet_class = pc_a_star
           is_planet_class = pc_b_star
           is_planet_class = pc_f_star
           is_planet_class = pc_g_star
           is_planet_class = pc_k_star
           is_planet_class = pc_m_star
         }
       }
   }
}

sd_stellar_energy_nine = {
   resources = { energy = 9 }
   station = shipclass_mining_station
   orbital_weight = {
       weight = 0
       modifier = {
         weight = 75
         planet = {
           is_planet_class = pc_a_star
           is_planet_class = pc_b_star
           is_planet_class = pc_f_star
           is_planet_class = pc_g_star
           is_planet_class = pc_k_star
           is_planet_class = pc_m_star
         }
       }
   }
}

It... Does not work.
 
Wait, this is for setting up the resources you can mine with a mining station, right? I see all this talk about weights and stuff, but can you force a planet/star/asteroid to spawn with a specific deposit in a system initializer?
 
Well, this is exceedingly frustrating.


I tried adding the following to my modded 00_deposits.txt file:

Code:
##################################
######### Stellar Energy #########
##################################
# The idea behind this is that ALL Stars and Gas Giants should be good energy sources.
# Seriously, those things are like, humongous energy sources!

sd_gas_giant_energy_two = {
   resources = { energy = 2 }
   station = shipclass_mining_station
   orbital_weight = {
       weight = 0
       modifier = {
         weight = 1000
         planet = {    is_planet_class = pc_gas_giant   }
       }
   }
}

sd_gas_giant_energy_three = {
   resources = { energy = 3 }
   station = shipclass_mining_station
   orbital_weight = {
       weight = 0
       modifier = {
         weight = 500
         planet = {    is_planet_class = pc_gas_giant   }
       }
   }
}

sd_gas_giant_energy_four = {
   resources = { energy = 4 }
   station = shipclass_mining_station
   orbital_weight = {
       weight = 0
       modifier = {
         weight = 250
         planet = {    is_planet_class = pc_gas_giant   }
       }
   }
}

sd_gas_giant_energy_five = {
   resources = { energy = 5 }
   station = shipclass_mining_station
   orbital_weight = {
       weight = 0
       modifier = {
         weight = 125
         planet = {    is_planet_class = pc_gas_giant   }
       }
   }
}

sd_gas_giant_energy_six = {
   resources = { energy = 125 }
   station = shipclass_mining_station
   orbital_weight = {
       weight = 0
       modifier = {
         weight = 75
         planet = {    is_planet_class = pc_gas_giant   }
       }
   }
}

sd_stellar_energy_three = {
   resources = { energy = 3 }
   station = shipclass_mining_station
   orbital_weight = {
       weight = 0
       modifier = {
         weight = 500
         planet = {
           is_planet_class = pc_a_star
           is_planet_class = pc_b_star
           is_planet_class = pc_f_star
           is_planet_class = pc_g_star
           is_planet_class = pc_k_star
           is_planet_class = pc_m_star
         }
       }
   }
}

sd_stellar_energy_four = {
   resources = { energy = 4 }
   station = shipclass_mining_station
   orbital_weight = {
       weight = 0
       modifier = {
         weight = 1000
         planet = {
           is_planet_class = pc_a_star
           is_planet_class = pc_b_star
           is_planet_class = pc_f_star
           is_planet_class = pc_g_star
           is_planet_class = pc_k_star
           is_planet_class = pc_m_star
         }
       }
   }
}

sd_stellar_energy_five = {
   resources = { energy = 5 }
   station = shipclass_mining_station
   orbital_weight = {
       weight = 0
       modifier = {
         weight = 1000
         planet = {
           is_planet_class = pc_a_star
           is_planet_class = pc_b_star
           is_planet_class = pc_f_star
           is_planet_class = pc_g_star
           is_planet_class = pc_k_star
           is_planet_class = pc_m_star
         }
       }
   }
}

sd_stellar_energy_six = {
   resources = { energy = 6 }
   station = shipclass_mining_station
   orbital_weight = {
       weight = 0
       modifier = {
         weight = 500
         planet = {
           is_planet_class = pc_a_star
           is_planet_class = pc_b_star
           is_planet_class = pc_f_star
           is_planet_class = pc_g_star
           is_planet_class = pc_k_star
           is_planet_class = pc_m_star
         }
       }
   }
}

sd_stellar_energy_seven = {
   resources = { energy = 7 }
   station = shipclass_mining_station
   orbital_weight = {
       weight = 0
       modifier = {
         weight = 250
         planet = {
           is_planet_class = pc_a_star
           is_planet_class = pc_b_star
           is_planet_class = pc_f_star
           is_planet_class = pc_g_star
           is_planet_class = pc_k_star
           is_planet_class = pc_m_star
         }
       }
   }
}

sd_stellar_energy_eight = {
   resources = { energy = 8 }
   station = shipclass_mining_station
   orbital_weight = {
       weight = 0
       modifier = {
         weight = 125
         planet = {
           is_planet_class = pc_a_star
           is_planet_class = pc_b_star
           is_planet_class = pc_f_star
           is_planet_class = pc_g_star
           is_planet_class = pc_k_star
           is_planet_class = pc_m_star
         }
       }
   }
}

sd_stellar_energy_nine = {
   resources = { energy = 9 }
   station = shipclass_mining_station
   orbital_weight = {
       weight = 0
       modifier = {
         weight = 75
         planet = {
           is_planet_class = pc_a_star
           is_planet_class = pc_b_star
           is_planet_class = pc_f_star
           is_planet_class = pc_g_star
           is_planet_class = pc_k_star
           is_planet_class = pc_m_star
         }
       }
   }
}

It... Does not work.

You've got your drop weights tangled up in with your orbital weights.

Have another look at the vanilla deposits. drop weights aren't nested within orbital weights.

Here's an example of one of my deposits:

Code:
d_minerals_in_ice_deposit = {
   resources = {
     sr_ice = 2
     minerals = 1
   }
   station = shipclass_mining_station
   orbital_weight = {
     weight = 25
   }
   drop_weight = {
     weight = 0
     modifier = {
       weight = 5
       planet = {
         OR = {
           is_asteroid = yes
           is_planet_class = pc_frozen
         }
       }
     }
     modifier = {
       weight = 1
       planet = {
         is_planet_class = pc_arctic
       }
     }
   }
}

Now let's assume I want that to actually always be in orbit. All I'd need to do is change orbital_weight's weight to 100. You're probably getting confused that orbital_weight uses weight. It's not the same thing as a drop_weight weight.

Code:
sd_gas_giant_energy_two = {
   resources = { energy = 2 }
   station = shipclass_mining_station
   orbital_weight = {
     weight = 100
   }

   drop_weight = {
     weight = 0
     modifier = {
       weight = 1000
       planet = {
         is_planet_class = pc_gas_giant
       }
     }
   }
}

The above is one of your deposits fixed so it's always in orbit of a pc_gas_giant. However, keep in mind that as I understand it, deposits do 'compete', so a different orbital deposit might 'win' the orbital slot.
 
Last edited:
  • 1
  • 1
Reactions:
Um, dude, no. That's what I tried previously, as shown up above. It did not work.

I wanted to get rid of drop_weight entirely, since that seems to refer only to the planet's surface. I only want these deposits in orbit, and only for gas giants or stars, nothing else.

When I did what you said, it never worked right, because it was trying to drop the deposits to the surface of a gas giant/star, which obviously don't have them.
 
Um, dude, no. That's what I tried previously, as shown up above. It did not work.

I wanted to get rid of drop_weight entirely, since that seems to refer only to the planet's surface. I only want these deposits in orbit, and only for gas giants or stars, nothing else.

When I did what you said, it never worked right, because it was trying to drop the deposits to the surface of a gas giant/star, which obviously don't have them.

drop_weight does not just apply to the surface. It is the overall chance of a deposit spawning. orbit_weight only determines if a deposit is then placed in orbit.

"I wanted to get rid of drop_weight entirely..." You can't.

No my fix is not the same as what you initially tried.

The solution given to you in the second post was

orbital_weight = {
weight = 10
}

I have

orbital_weight = {
weight = 100
}

Hence, 90% of the time the deposit was not spawned in orbit and is therefore discarded.

You've now nested drop_weights with orbit_weights and that won't work.

So, erm, dude, no... I tested my fix. It works. All my mod deposits work. And I'm done.
 
Last edited:
  • 2
Reactions:
Well, here I am, feasting on crow, dude. It does not taste like chicken.

Thanks, dude. You're totally right. The very unintuitive syntax of the deposits files and the fact that "Drop weight" comes before "weight." This sumgun is now working.

Now for the real hard part: slapping together a mod image in paint.net. NASA, ho!
 
  • 2
Reactions:
The very unintuitive syntax of the deposits files and the fact that "Drop weight" comes before "weight."

It threw me initially. It also bothered me that a 'drop' weight followed an 'orbit' weight. Then it clicked that 'drop' was spawn. And that orbital weight was 'in the orbital slot'. PDX could do with formalising their clause orders.
 
  • 1
Reactions:
It threw me initially. It also bothered me that a 'drop' weight followed an 'orbit' weight. Then it clicked that 'drop' was spawn. And that orbital weight was 'in the orbital slot'. PDX could do with formalising their clause orders.
Or at least with clarifying the syntax in comments at the top of the files. Anyway, I've got it working, thanks!
 
  • 1
Reactions: