Fractal Softworks Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

Starsector 0.98a is out! (03/27/25)

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - EpicSOB

Pages: [1]
1
Mods / Re: [0.97a] Console Commands v2024.10.04
« on: March 28, 2025, 12:50:40 PM »
can someone explain why this command is not working for planets I didn't place myself. it is from this same thread, the last post on page 55

Code
runcode String _planetId = "Planet_ID";
SectorEntityToken _fleet = Global.getSector().getPlayerFleet();
StarSystemAPI _sys = (StarSystemAPI)_fleet.getContainingLocation();
SectorEntityToken _planet = _sys.getEntityById(_planetId);
float _orbitRadius = com.fs.starfarer.api.util.Misc.getDistance(_fleet.getLocation(), _planet.getLocation());
float _orbitDays = _orbitRadius / (20f + new Random().nextFloat() * 10f);
_sys.addRingBand(_planet,
"misc",
"rings_special0",
512,
1,
Color.RED,
256,
_orbitRadius,
_orbitDays)

it throws this error unless i created the planet. I even tried to copy and paste the id directly from the list command, and it still throws the error.
Code
2121426 [Thread-2] ERROR org.lazywizard.console.Console  - Execution failed:
java.lang.NullPointerException: Cannot invoke "com.fs.starfarer.api.campaign.SectorEntityToken.getLocation()" because "<local3>" is null

2
Mods / Re: [0.97a] Customizable Star Systems (v2.1.3)
« on: March 27, 2025, 11:22:32 PM »
if I were to fine tune my custom system in game via commands, would I be able to extract the modified system and update the file somehow? I'm not good at working with JSON, I can work out small changes but anything big and the file always seems to break (this applies to other games too), so it would be great if this was possible.

3
I think I found an issue with the mod. The Place to copy the Domain ID is missing form the skill screen with this mod.

Vanilla


With Mod

4
Mods / Re: [0.97a] Mayasuran Navy 11.0.0 RC1
« on: June 03, 2024, 11:04:38 AM »
Can this be added mid-save?

Pages: [1]