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)

Pages: 1 ... 13 14 [15]

Author Topic: [0.98a] Ship Mastery System (+Miscellaneous Features) (4/8/25)  (Read 96537 times)

gladius2metal

  • Lieutenant
  • **
  • Posts: 84
    • View Profile
Re: [0.98a] Ship Mastery System (+Miscellaneous Features) (4/8/25)
« Reply #210 on: April 24, 2025, 05:06:40 PM »

Not sure if this is a bug or intended: Salvage Rig, Level 7.
I can choose between "Increase maximum burn level by 1." and "Increase maximum burn level by 1."  ;D ::)
Logged

float

  • Captain
  • ****
  • Posts: 408
    • View Profile
Re: [0.98a] Ship Mastery System (+Miscellaneous Features) (4/8/25)
« Reply #211 on: April 24, 2025, 05:51:26 PM »

Not sure if this is a bug or intended: Salvage Rig, Level 7.
I can choose between "Increase maximum burn level by 1." and "Increase maximum burn level by 1."  ;D ::)
I thought I took care of this a while ago. Personally I haven't seen this issue pop up since, so it'd be rather difficult to diagnose. Looking at the code, and assuming you haven't modified the mastery presets or assignments jsons, I'm not immediately sure how this is possible, as existing mastery effects and sub-effects should be pruned out when generating new ones. But thanks for the report, I'll keep an eye out for this.

Edit: actually, upon closer inspection of the code, there's something like a 1/10000 chance that a duplicate sub-effect gets chosen (it's not entirely pruned, the selection chance just gets set to a really small number), so maybe you just got really unlucky?
« Last Edit: April 24, 2025, 05:53:04 PM by float »
Logged

gladius2metal

  • Lieutenant
  • **
  • Posts: 84
    • View Profile
Re: [0.98a] Ship Mastery System (+Miscellaneous Features) (4/8/25)
« Reply #212 on: April 25, 2025, 03:59:00 AM »

Edit: actually, upon closer inspection of the code, there's something like a 1/10000 chance that a duplicate sub-effect gets chosen (it's not entirely pruned, the selection chance just gets set to a really small number), so maybe you just got really unlucky?

I suspected that RNG Jesus might have blessed me.  ;D

Logged

Tenso

  • Ensign
  • *
  • Posts: 18
    • View Profile
Re: [0.98a] Ship Mastery System (+Miscellaneous Features) (4/8/25)
« Reply #213 on: April 26, 2025, 12:39:54 PM »

Hey starfarers! Can anyone help me please? Looking for a way to modify the "Increase S-mod capacity by 1" option to give two or more max S-mods. Tried looking into config and .csv files but found nothing that could help. Can it be done at all? Has anyone tried and succeeded?
Logged

Rift

  • Captain
  • ****
  • Posts: 270
    • View Profile
Re: [0.98a] Ship Mastery System (+Miscellaneous Features) (4/8/25)
« Reply #214 on: April 26, 2025, 07:46:11 PM »

Encountered rare crash when piloting a nova
Spoiler
2585737 [Thread-2] ERROR com.fs.starfarer.combat.CombatMain  - java.lang.NullPointerException: Cannot read field "x" because "<parameter1>" is null
java.lang.NullPointerException: Cannot read field "x" because "<parameter1>" is null
   at com.fs.starfarer.combat.CombatViewport.isNearViewport(Unknown Source)
   at com.fs.starfarer.combat.entities.Ship.applyDamageInner(Unknown Source)
   at com.fs.starfarer.combat.entities.Ship.applyDamageInner(Unknown Source)
   at com.fs.starfarer.combat.entities.Ship.applyDamage(Unknown Source)
   at com.fs.starfarer.combat.CombatEngine.applyDamage(Unknown Source)
   at shipmastery.mastery.impl.combat.shipsystems.OrionDeviceDamage$OrionDeviceDamageScript.lambda$reportProjectileCreated$0(OrionDeviceDamage.java:104)
   at shipmastery.deferred.CombatDeferredActionPlugin.advance(CombatDeferredActionPlugin.java:33)
   at com.fs.starfarer.title.Object.L$Oo.o00000(Unknown Source)
   at com.fs.starfarer.combat.A.B.super(Unknown Source)
   at com.fs.starfarer.combat.CombatEngine.advanceInner(Unknown Source)
   at com.fs.starfarer.combat.CombatEngine.advance(Unknown Source)
   at com.fs.starfarer.combat.CombatState.traverse(Unknown Source)
   at com.fs.state.AppDriver.begin(Unknown Source)
   at com.fs.starfarer.combat.CombatMain.main(Unknown Source)
   at com.fs.starfarer.StarfarerLauncher.o00000(Unknown Source)
   at com.fs.starfarer.StarfarerLauncher$1.run(Unknown Source)
   at java.base/java.lang.Thread.run(Unknown Source)
[close]
Logged

float

  • Captain
  • ****
  • Posts: 408
    • View Profile
Re: [0.98a] Ship Mastery System (+Miscellaneous Features) (4/8/25)
« Reply #215 on: April 26, 2025, 08:34:56 PM »

Edit: actually, upon closer inspection of the code, there's something like a 1/10000 chance that a duplicate sub-effect gets chosen (it's not entirely pruned, the selection chance just gets set to a really small number), so maybe you just got really unlucky?
I suspected that RNG Jesus might have blessed me.  ;D
Ah, unfortunately, upon *even further* inspection, if every possible stat effect has been selected before, then everything counts as a duplicate, and they all cancel each other out, making duplicates much more likely than I thought. Since civilian ships don't really have much of a selection, I suspect that's what's happening here. Fixed this in dev though, so thanks for the find!

Hey starfarers! Can anyone help me please? Looking for a way to modify the "Increase S-mod capacity by 1" option to give two or more max S-mods. Tried looking into config and .csv files but found nothing that could help. Can it be done at all? Has anyone tried and succeeded?
You are looking for mastery_presets.json in data/shipmastery, under the "DEFAULT" entry. The simplest would just be to repalce "SModCapacity" with "SModCapacity 2" or "SModCapacity 3", etc.

Encountered rare crash when piloting a nova
Spoiler
2585737 [Thread-2] ERROR com.fs.starfarer.combat.CombatMain  - java.lang.NullPointerException: Cannot read field "x" because "<parameter1>" is null
java.lang.NullPointerException: Cannot read field "x" because "<parameter1>" is null
   at com.fs.starfarer.combat.CombatViewport.isNearViewport(Unknown Source)
   at com.fs.starfarer.combat.entities.Ship.applyDamageInner(Unknown Source)
   at com.fs.starfarer.combat.entities.Ship.applyDamageInner(Unknown Source)
   at com.fs.starfarer.combat.entities.Ship.applyDamage(Unknown Source)
   at com.fs.starfarer.combat.CombatEngine.applyDamage(Unknown Source)
   at shipmastery.mastery.impl.combat.shipsystems.OrionDeviceDamage$OrionDeviceDamageScript.lambda$reportProjectileCreated$0(OrionDeviceDamage.java:104)
   at shipmastery.deferred.CombatDeferredActionPlugin.advance(CombatDeferredActionPlugin.java:33)
   at com.fs.starfarer.title.Object.L$Oo.o00000(Unknown Source)
   at com.fs.starfarer.combat.A.B.super(Unknown Source)
   at com.fs.starfarer.combat.CombatEngine.advanceInner(Unknown Source)
   at com.fs.starfarer.combat.CombatEngine.advance(Unknown Source)
   at com.fs.starfarer.combat.CombatState.traverse(Unknown Source)
   at com.fs.state.AppDriver.begin(Unknown Source)
   at com.fs.starfarer.combat.CombatMain.main(Unknown Source)
   at com.fs.starfarer.StarfarerLauncher.o00000(Unknown Source)
   at com.fs.starfarer.StarfarerLauncher$1.run(Unknown Source)
   at java.base/java.lang.Thread.run(Unknown Source)
[close]
Thanks, added a failsafe to dev. On that note, are you sure it was a nova? Nova burst and orion device should have separate (but similar) mastery effects.
Edit: next version won't be save compatible, you might have to disable that mastery on your end if it's continuing to cause issues.
Logged

Rift

  • Captain
  • ****
  • Posts: 270
    • View Profile
Re: [0.98a] Ship Mastery System (+Miscellaneous Features) (4/8/25)
« Reply #216 on: April 26, 2025, 08:47:37 PM »

Ah, I was in a nova but a mercenary fleet in the fight I overlooked brought a retribution.
Logged

Tenso

  • Ensign
  • *
  • Posts: 18
    • View Profile
Re: [0.98a] Ship Mastery System (+Miscellaneous Features) (4/8/25)
« Reply #217 on: April 27, 2025, 01:32:55 AM »

You are looking for mastery_presets.json in data/shipmastery, under the "DEFAULT" entry. The simplest would just be to repalce "SModCapacity" with "SModCapacity 2" or "SModCapacity 3", etc.
Wow! It was really that simple? Thank you! Tried it just now and it worked perfectly :)
Logged
Pages: 1 ... 13 14 [15]