This may be a bug, I wanted to check here first.
Running 2.1.2 170f, all dlc except distant stars.
I'm working on a mod and I'm unable to scope to any mining or research stations. I've tried random_mining_station and every_mining_station at country, system, and planet scopes and it never seems to find anything.
Here's an example. Inside the player's starting system scope, I've tried several variants of this code block:
The log calls are being used to check to see if any mining/research stations are being found. In the output, all of the planet names appear, but the stations never do. Likewise, effects applied to stations inside the code do not execute. The error log doesn't show any errors.
Running 2.1.2 170f, all dlc except distant stars.
I'm working on a mod and I'm unable to scope to any mining or research stations. I've tried random_mining_station and every_mining_station at country, system, and planet scopes and it never seems to find anything.
Here's an example. Inside the player's starting system scope, I've tried several variants of this code block:
Code:
every_system_planet = {
log = "[This.GetName]"
if = {
limit = { has_mining_station = yes }
log = "[This.GetName] has a mining station"
random_mining_station = { dismantle = yes }
}
if = {
limit = { has_research_station = yes }
log = "[This.GetName] has a research station"
random_research_station = { dismantle = yes }
}
random_mining_station = {
log = "[This.GetName] is a mining station"
}
}
The log calls are being used to check to see if any mining/research stations are being found. In the output, all of the planet names appear, but the stations never do. Likewise, effects applied to stations inside the code do not execute. The error log doesn't show any errors.