Fractal Softworks Forum

Starsector => Mods => Topic started by: Carabus on January 06, 2019, 04:58:59 AM

Title: [0.9a] [Utility] Fix Empty Planets - updated
Post by: Carabus on January 06, 2019, 04:58:59 AM
Hello

This is a small utility mod that fixes "empty planets" bug in systems from The Core Worlds.
On first load it finds all empty planets and generates Planetary Conditions for them using exactly the same logic Starsector normally uses for condition generation.
It fixes empty Planetary Conditions (also changing Hazard Rating from default 100%), and makes these planets provide Survey Data normally.

When done it prints a summary on the screen:
(https://i.ibb.co/3mddDT5/Screenshot-2.png)

Made it mostly to fix my current game, but then thought I may as well release it for others to use until official fix is released with Starsector 0.9.1a.

Download here: Fix All Empty Planets v1.0.zip (https://bitbucket.org/Carabus/fixemptyplanets/downloads/Fix%20All%20Empty%20Planets%20v1.0.zip)

(didn't test with colonized empty planets, so use at your own responsibility if you colonized one)


In case anyone needs here is previous version that only fixes not fully-surveyed planets: Fix Empty Planets v1.0.zip (https://bitbucket.org/Carabus/fixemptyplanets/downloads/Fix%20Empty%20Planets%20v1.0.zip)
Title: Re: [0.9a] [Utility] Fix Empty Planets
Post by: pringdew on January 06, 2019, 03:21:42 PM
outstanding...
Title: Re: [0.9a] [Utility] Fix Empty Planets
Post by: Lesolan on January 06, 2019, 10:48:20 PM
Doing god's work, son. Keep it up.
Title: Re: [0.9a] [Utility] Fix Empty Planets
Post by: Null Ganymede on January 07, 2019, 02:34:51 AM
Awesome!

Commenting out
Code
!market.getSurveyLevel().equals(SurveyLevel.FULL) &&
fixes up existing games mid-run. I built a ghetto .jar with the patch, but don't know how to build one properly so won't upload it unless people ask.
Title: Re: [0.9a] [Utility] Fix Empty Planets
Post by: Carabus on January 07, 2019, 05:12:09 AM
If you need a version that works for already surveyed planets I can make one once I get home.
Title: Re: [0.9a] [Utility] Fix Empty Planets
Post by: Carabus on January 07, 2019, 11:10:59 AM
Wow I didn't even realize there is so many empty planets in already inhabited systems, because I never needed to survey these!
Spoiler
(https://i.ibb.co/3mddDT5/Screenshot-2.png)
[close]

Here is updated version that also fixes already surveyed planets:
Fix All Empty Planets v1.0.zip (https://bitbucket.org/Carabus/fixemptyplanets/downloads/Fix%20All%20Empty%20Planets%20v1.0.zip)

(didn't test with colonized empty planets, so use at your own responsibility if you colonized one)

Updated initial post.
Title: Re: [0.9a] [Utility] Fix Empty Planets - updated
Post by: Hussar on January 07, 2019, 10:21:01 PM
Fantastic work, a must-have mod for me from now on!
Title: Re: [0.9a] [Utility] Fix Empty Planets - updated
Post by: Lesolan on January 08, 2019, 08:53:47 AM
He did it, boys! He made the core worlds great again! I'm crying I'm so happy right now!
Title: Re: [0.9a] [Utility] Fix Empty Planets - updated
Post by: Sarissofoi on January 08, 2019, 11:18:21 AM
Awesome
Title: Re: [0.9a] [Utility] Fix Empty Planets - updated
Post by: Serenitis on January 13, 2019, 03:38:37 AM
This is a great improvement. And only mildly disappointing it doesn't generate resources.
Still much better than seeing blank worlds all over the core.

You're doing Ludd's work, my son.
Title: Re: [0.9a] [Utility] Fix Empty Planets - updated
Post by: Carabus on January 13, 2019, 04:20:43 AM
I can say this is a pretty good public reception considering it is my first mod release. :) Thank you all for motivating words!

And only mildly disappointing it doesn't generate resources.

Oh it doesn't?
It definitely does for worlds that are not yet fully-surveyed (those in Penelope's Star, Duzahk and Tia systems).
As I said I didn't properly test for already fully-surveyed worlds, and now when I did I indeed see no resources on them...
Strange because the logic is the same for all worlds.
I guess the problem could be that it generates the resources but does not mark them as revealed? Going to investigate.

Edit: Yes indeed that was the problem. I will release an updated version later today.
Title: Re: [0.9a] [Utility] Fix Empty Planets - updated
Post by: BHunterSEAL on January 18, 2019, 08:30:32 PM
I'm a little confused--I understand this changes Core World uninhabited planet generation parameters to make them more similar to planets generated on the rim, does that mean more resources and survey-able?
Title: Re: [0.9a] [Utility] Fix Empty Planets - updated
Post by: Euphytose on January 19, 2019, 05:07:05 AM
They're supposed to be, but right now there's a bug and all core world unsurveyed planets are at 100% hazard rating with nothing in them.
Title: Re: [0.9a] [Utility] Fix Empty Planets - updated
Post by: Carabus on January 20, 2019, 05:29:24 AM
I'm a little confused--I understand this changes Core World uninhabited planet generation parameters to make them more similar to planets generated on the rim, does that mean more resources and survey-able?

I means any resources and conditions at all, because in current release of Starsector there is a bug that makes Core Worlds uninhabited planets completely empty.
Title: Re: [0.9a] [Utility] Fix Empty Planets - updated
Post by: Avanitia on May 26, 2019, 06:04:07 PM
Shouldn't this mod's download link be removed?
It was depreciatied by 0.9.1 update, which fixed the issue this mod was about - planetary conditions on randomly generated planets in core worlds not being generated properly.
Title: Re: [0.9a] [Utility] Fix Empty Planets
Post by: ASSIMKO on July 21, 2019, 05:00:05 AM
Awesome!

Commenting out
Code
!market.getSurveyLevel().equals(SurveyLevel.FULL) &&
fixes up existing games mid-run. I built a ghetto .jar with the patch, but don't know how to build one properly so won't upload it unless people ask.



What's that?
+