211
Mods / Re: [0.95a] Beyond The Sector - Endless Randomized Systems
« on: January 23, 2023, 02:38:15 PM »
Just wrote this for someone in the unnoficial discord & they pointed out that it'd be helpful for this thread -
here's a console command that'll remove any BTS-added systems & hopefully save you from the slipstream crash, though you'll have to keep the mod enabled.
here's a console command that'll remove any BTS-added systems & hopefully save you from the slipstream crash, though you'll have to keep the mod enabled.
Code
runcode
import com.fs.starfarer.api.Global;
import com.fs.starfarer.api.campaign.StarSystemAPI;
boolean removedAnything = false;
for (StarSystemAPI system : Global.getSector().getStarSystems()) {
if (system.getLocation().getX() == Float.MAX_VALUE) {
Global.getSector().removeStarSystem(system);
removedAnything = true;
}
}
Console.showMessage(removedAnything);