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); In-development patch notes for Starsector 0.98a (2/8/25)

Author Topic: Increasing the amount of nebula/systems in the Sector  (Read 2185 times)

Codyrex123

  • Ensign
  • *
  • Posts: 27
    • View Profile
Increasing the amount of nebula/systems in the Sector
« on: December 15, 2018, 01:14:53 PM »

So basically, I've increased the size of the sector size to something quite probably foolish. But now I want to add onto that foolishness by increasing the amount of stars and nebulas to explore! So I'd appreciate it if anyone can tell me where I can find what dictates the amount of systems inside the sector.
Logged

Darloth

  • Admiral
  • *****
  • Posts: 650
    • View Profile
Re: Increasing the amount of nebula/systems in the Sector
« Reply #1 on: December 18, 2018, 03:02:44 PM »

Far as I can tell, it'd be com.fs.starfarer.api.impl.campaign.procgen.SectorProcGen.java , which is an API class we have the code for (in starfarer.api.zip)

It has a lot of code that basically slices up the available area into cells and fills those cells with Stuff™.  I imagine, if you tweak some of the numbers in there (count looks like the obvious one to increase) and then work out how to tell the game to use your procgen instead of the default one, that should do what you want.  I know it's possible because other mods do it, but I couldn't actually tell you where straight away.
Logged