Fractal Softworks Forum

Please login or register.

Login with username, password and session length

Author Topic: [0.95a RC9] Auto assign weapon groups crash at 26+ guns  (Read 960 times)

Midnight Kitsune

  • Admiral
  • *****
  • Posts: 2847
  • Your Friendly Forum Friend
    • View Profile
[0.95a RC9] Auto assign weapon groups crash at 26+ guns
« 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]
Logged
Help out MesoTroniK, a modder in need

2021 is 2020 won
2022 is 2020 too

Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 24114
    • View Profile
Re: [0.95a RC9] Auto assign weapon groups crash at 26+ guns
« Reply #1 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.
Logged

Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 24114
    • View Profile
Re: [0.95a RC9] Auto assign weapon groups crash at 26+ guns
« Reply #2 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?
Logged

Midnight Kitsune

  • Admiral
  • *****
  • Posts: 2847
  • Your Friendly Forum Friend
    • View Profile
Re: [0.95a RC9] Auto assign weapon groups crash at 26+ guns
« Reply #3 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.
Logged
Help out MesoTroniK, a modder in need

2021 is 2020 won
2022 is 2020 too

Midnight Kitsune

  • Admiral
  • *****
  • Posts: 2847
  • Your Friendly Forum Friend
    • View Profile
Re: [0.95a RC9] Auto assign weapon groups crash at 26+ guns
« Reply #4 on: March 27, 2021, 05:45:27 PM »

Here is some pics if it helps: https://imgur.com/a/0vx9znC
Logged
Help out MesoTroniK, a modder in need

2021 is 2020 won
2022 is 2020 too

Jet Black

  • Commander
  • ***
  • Posts: 125
    • View Profile
Re: [0.95a RC9] Auto assign weapon groups crash at 26+ guns
« Reply #5 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.
Logged

Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 24114
    • View Profile
Re: [0.95a RC9] Auto assign weapon groups crash at 26+ guns
« Reply #6 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.)
Logged