Fractal Softworks Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

Starsector 0.97a is out! (02/02/24); New blog post: Simulator Enhancements (03/13/24)

Pages: [1] 2

Author Topic: [0.9a] [Utility] Fix Empty Planets - updated  (Read 47314 times)

Carabus

  • Lieutenant
  • **
  • Posts: 66
    • View Profile
[0.9a] [Utility] Fix Empty Planets - updated
« 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:


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

(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
« Last Edit: January 07, 2019, 11:28:45 AM by Carabus »
Logged

pringdew

  • Ensign
  • *
  • Posts: 14
    • View Profile
Re: [0.9a] [Utility] Fix Empty Planets
« Reply #1 on: January 06, 2019, 03:21:42 PM »

outstanding...
Logged

Lesolan

  • Ensign
  • *
  • Posts: 12
    • View Profile
Re: [0.9a] [Utility] Fix Empty Planets
« Reply #2 on: January 06, 2019, 10:48:20 PM »

Doing god's work, son. Keep it up.
Logged

Null Ganymede

  • Captain
  • ****
  • Posts: 274
    • View Profile
Re: [0.9a] [Utility] Fix Empty Planets
« Reply #3 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.
Logged

Carabus

  • Lieutenant
  • **
  • Posts: 66
    • View Profile
Re: [0.9a] [Utility] Fix Empty Planets
« Reply #4 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.
Logged

Carabus

  • Lieutenant
  • **
  • Posts: 66
    • View Profile
Re: [0.9a] [Utility] Fix Empty Planets
« Reply #5 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
[close]

Here is updated version that also fixes already surveyed planets:
Fix All Empty Planets v1.0.zip

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

Updated initial post.
« Last Edit: January 07, 2019, 11:25:47 AM by Carabus »
Logged

Hussar

  • Captain
  • ****
  • Posts: 265
    • View Profile
Re: [0.9a] [Utility] Fix Empty Planets - updated
« Reply #6 on: January 07, 2019, 10:21:01 PM »

Fantastic work, a must-have mod for me from now on!
Logged

Lesolan

  • Ensign
  • *
  • Posts: 12
    • View Profile
Re: [0.9a] [Utility] Fix Empty Planets - updated
« Reply #7 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!
Logged

Sarissofoi

  • Captain
  • ****
  • Posts: 405
    • View Profile
Re: [0.9a] [Utility] Fix Empty Planets - updated
« Reply #8 on: January 08, 2019, 11:18:21 AM »

Awesome

Serenitis

  • Admiral
  • *****
  • Posts: 1458
    • View Profile
Re: [0.9a] [Utility] Fix Empty Planets - updated
« Reply #9 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.
Logged

Carabus

  • Lieutenant
  • **
  • Posts: 66
    • View Profile
Re: [0.9a] [Utility] Fix Empty Planets - updated
« Reply #10 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.
« Last Edit: January 13, 2019, 05:08:47 AM by Carabus »
Logged

BHunterSEAL

  • Lieutenant
  • **
  • Posts: 73
    • View Profile
Re: [0.9a] [Utility] Fix Empty Planets - updated
« Reply #11 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?
Logged

Euphytose

  • Captain
  • ****
  • Posts: 464
    • View Profile
Re: [0.9a] [Utility] Fix Empty Planets - updated
« Reply #12 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.
Logged

Carabus

  • Lieutenant
  • **
  • Posts: 66
    • View Profile
Re: [0.9a] [Utility] Fix Empty Planets - updated
« Reply #13 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.
Logged

Avanitia

  • Commander
  • ***
  • Posts: 123
  • Local Egg Demon
    • View Profile
Re: [0.9a] [Utility] Fix Empty Planets - updated
« Reply #14 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.
Logged
You haven't played Starsector unless your storage has one thousand Vulcans in it.
Pages: [1] 2