Fractal Softworks Forum

Starsector => Bug Reports & Support => Bug Reports & Support (modded) => Topic started by: Midnight Kitsune on March 27, 2021, 04:19:58 PM

Title: [0.95a RC9] Auto assign weapon groups crash at 26+ guns
Post by: Midnight Kitsune on March 27, 2021, 04:19:58 PM
While this WAS on a modded game, I think this would apply to vanilla as well, hence why I am posting here.
Basically if you auto assign weapons when you have more than 25 weapons, the game crashes with this error:
Spoiler
144968 [Thread-3] ERROR com.fs.starfarer.combat.CombatMain  - java.lang.NullPointerException
java.lang.NullPointerException
   at com.fs.starfarer.coreui.refit.wgd2.Object.updateCheckboxes(Unknown Source)
   at com.fs.starfarer.coreui.refit.wgd2.WeaponGroupDialogV2.actionPerformed(Unknown Source)
   at com.fs.starfarer.ui.k.buttonPressed(Unknown Source)
   at com.fs.starfarer.ui.I.Ò00000(Unknown Source)
   at com.fs.starfarer.ui.I.processInput(Unknown Source)
   at com.fs.starfarer.ui.k.processInputImpl(Unknown Source)
   at com.fs.starfarer.ui.Q.processInput(Unknown Source)
   at com.fs.starfarer.ui.v.dispatchEventsToChildren(Unknown Source)
   at com.fs.starfarer.ui.v.processInputImpl(Unknown Source)
   at com.fs.starfarer.ui.Q.processInput(Unknown Source)
   at com.fs.starfarer.String.I.processInputImpl(Unknown Source)
   at com.fs.starfarer.ui.Q.processInput(Unknown Source)
   at com.fs.starfarer.ui.v.dispatchEventsToChildren(Unknown Source)
   at com.fs.starfarer.ui.v.processInputImpl(Unknown Source)
   at com.fs.starfarer.ui.Oo0O.processInputImpl(Unknown Source)
   at com.fs.starfarer.coreui.refit.wgd2.WeaponGroupDialogV2.processInputImpl(Unknown Source)
   at com.fs.starfarer.ui.Q.processInput(Unknown Source)
   at com.fs.starfarer.ui.v.dispatchEventsToChildren(Unknown Source)
   at com.fs.starfarer.ui.v.processInputImpl(Unknown Source)
   at com.fs.starfarer.ui.Oo0O.processInputImpl(Unknown Source)
   at com.fs.starfarer.ui.newui.K.processInputImpl(Unknown Source)
   at com.fs.starfarer.ui.Q.processInput(Unknown Source)
   at com.fs.starfarer.ui.v.dispatchEventsToChildren(Unknown Source)
   at com.fs.starfarer.ui.v.processInputImpl(Unknown Source)
   at com.fs.starfarer.ui.Oo0O.processInputImpl(Unknown Source)
   at com.fs.starfarer.ui.newui.Stringsuper.processInputImpl(Unknown Source)
   at com.fs.starfarer.ui.Q.processInput(Unknown Source)
   at com.fs.starfarer.ui.v.dispatchEventsToChildren(Unknown Source)
   at com.fs.starfarer.ui.v.processInputImpl(Unknown Source)
   at com.fs.starfarer.ui.Q.processInput(Unknown Source)
   at com.fs.starfarer.campaign.CampaignState.processInput(Unknown Source)
   at com.fs.starfarer.BaseGameState.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.lang.Thread.run(Unknown Source)

[close]
Title: Re: [0.95a RC9] Auto assign weapon groups crash at 26+ guns
Post by: Alex on March 27, 2021, 04:26:27 PM
I'll check it out! Moving to modded because I don't *think* vanilla has this issue - not due to a lack of bugs, but due to a lack of guns.
Title: Re: [0.95a RC9] Auto assign weapon groups crash at 26+ guns
Post by: Alex on March 27, 2021, 04:27:24 PM
If you could clarify with some screenshots, though, that'd be helpful. Are we talking 26 different weapons, 26 total weapons, or?
Title: Re: [0.95a RC9] Auto assign weapon groups crash at 26+ guns
Post by: Midnight Kitsune on March 27, 2021, 04:31:05 PM
If you could clarify with some screenshots, though, that'd be helpful. Are we talking 26 different weapons, 26 total weapons, or?
Total. Dupes or mixes of guns is fine as well. You just need 26 or more guns
25 and less, the game is fine. 26+ and the game crashes on hitting the auto assign button.
Title: Re: [0.95a RC9] Auto assign weapon groups crash at 26+ guns
Post by: Midnight Kitsune on March 27, 2021, 05:45:27 PM
Here is some pics if it helps: https://imgur.com/a/0vx9znC
Title: Re: [0.95a RC9] Auto assign weapon groups crash at 26+ guns
Post by: Jet Black on April 12, 2021, 03:15:03 PM
I just had the same problem and posted about it before I found this. 25 weapons was fine. Put another two on and it keeps crashing on auto assign.
Title: Re: [0.95a RC9] Auto assign weapon groups crash at 26+ guns
Post by: Alex on April 12, 2021, 04:22:06 PM
This is fixed for the next build, btw.

(For the time being, if necessary, I *think* you can work around it by scrolling all the way down the weapon list prior to hitting auto-assign.)