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: Planet Search Overhaul (07/13/24)

Author Topic: Modding custom starting scenarios  (Read 3616 times)

Rave94

  • Ensign
  • *
  • Posts: 1
    • View Profile
Modding custom starting scenarios
« on: October 04, 2019, 10:33:51 PM »

Hey Guys,
i recently started playing Starsector and have now moved on to getting some nice Mods for it. One thing that has been bothering me are the limited starting scenarios. Just now i found a good one for me with the Spacer scenario, where you start off with a weaponless kite and have to find your way up the ladder. Unfortunately, this start comes with a loan shark like debt, which also scales with your characters level. I think its lvl*1000 credits. Sadly, if you are lvl 10 and your fleet gets blown up by bad luck, and you just invested your last credit for that nice new ship thats now blown to smithereenes, youll get to the fortunate point where your loan shark like debt collector wants 10k credits from you while you are running around in a weaponless kite, unable to muster such sums(never forget the scaling^^). Effectively this renders you unable to do anything but watch your debt grow, the effect growing more severe with every lvl you gained beforehand.
So long story short, im looking for a way to remove that debt from the starting scenario, but i cant find the file where this is handled. Could anyone here give me a hint in the right direction?
Logged

ThunderElemental

  • Ensign
  • *
  • Posts: 3
    • View Profile
Re: Modding custom starting scenarios
« Reply #1 on: October 07, 2019, 02:03:44 AM »

It's handled in the java file NGCAddStandardStartingScript.class, which is in com.fs.starfarer.api.impl.campaign.rulecmd (this is in the starfarer.src.zip found in the starsector-core folder). You'll need to compile a new java file with the line

Code
if (spacer) {
    new SpacerObligation();
}
removed. Best to create a mini-mod for that I think.

Another option would be editing the rules.csv, look for $ngcSpacerSelected = true. Note that setting that to false affects other things too besides the debt.
Logged