Fractal Softworks Forum

Please login or register.

Login with username, password and session length

Author Topic: Fatal error when i press "Autofit..." button ingame  (Read 704 times)

Artaazar

  • Ensign
  • *
  • Posts: 4
    • View Profile
Fatal error when i press "Autofit..." button ingame
« on: November 19, 2021, 09:20:14 PM »

I created small ship mod for myself (copypasted it from another one)
and i get subj.
here is error from starsector.log:

58365 [Thread-3] ERROR com.fs.starfarer.combat.CombatMain  - java.lang.NullPointerException
java.lang.NullPointerException
   at com.fs.starfarer.coreui.refit.auto.oOOO.sizeChanged(Unknown Source)
   at com.fs.starfarer.ui.L.setSize(Unknown Source)
   at com.fs.starfarer.ui.o00O.setSize(Unknown Source)
   at com.fs.starfarer.coreui.refit.auto.void.int.Object(Unknown Source)
   at com.fs.starfarer.coreui.refit.auto.void.createUI(Unknown Source)
   at com.fs.starfarer.coreui.refit.auto.void.<init>(Unknown Source)
   at com.fs.starfarer.coreui.refit.supersuper.actionPerformed(Unknown Source)
   at com.fs.starfarer.ui.newnew.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.Stringsuper.super(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)

But why?
Logged

IonDragonX

  • Admiral
  • *****
  • Posts: 816
    • View Profile
Re: Fatal error when i press "Autofit..." button ingame
« Reply #1 on: November 20, 2021, 09:28:20 AM »

ship_data.csv make sure there is no tag that says "no_autofit"
'name'.variant file make sure the weapon slots really do match the 'name'.ship file
'name'.variant file/files make sure at least one of them is "goalVariant": true,
'name'.variant files make sure that all weapons do exist in vanilla or your mod
Logged

Artaazar

  • Ensign
  • *
  • Posts: 4
    • View Profile
Re: Fatal error when i press "Autofit..." button ingame
« Reply #2 on: November 21, 2021, 04:07:34 AM »

ship_data.csv make sure there is no tag that says "no_autofit"
ArtTyrant,art_tyrant,Phase Battleship,Art Inc,displacer,30,40000,4400,30000,18000,2200,500,,40,100,80,10,15,3000,PHASE,phasecloak,,,,0.075,0.025,600,900,200,200,8,50,9,570000,8,8,900,0.25,38,10,,"art_inc_bp, merc",0.1,0.6,2,3,9

there is no tag "no_autofit"

'name'.variant file make sure the weapon slots really do match the 'name'.ship file
'name'.variant file/files make sure at least one of them is "goalVariant": true,
'name'.variant files make sure that all weapons do exist in vanilla or your mod
variant was created with [0.95a] STARSECTOR Ship&Weapon Editor (3.0.0-alpha-10 https://fractalsoftworks.com/forum/index.php?topic=11491.0
so, im sure that .variant was created an filled with weapons correctly

both .variant and .ship displayed in ingame COdex without errors




Logged

Artaazar

  • Ensign
  • *
  • Posts: 4
    • View Profile
Re: Fatal error when i press "Autofit..." button ingame
« Reply #3 on: November 21, 2021, 05:55:05 AM »

I found another thing: i got this error only in old savegame, but in new game i can open Autofit window without any errors.
Any way to fix it?
Logged

IonDragonX

  • Admiral
  • *****
  • Posts: 816
    • View Profile
Re: Fatal error when i press "Autofit..." button ingame
« Reply #4 on: November 21, 2021, 10:37:57 AM »

I found another thing: i got this error only in old savegame, but in new game i can open Autofit window without any errors.
Ah. Now the error has a lot of precedent. You can't go modding the game while playing the game. The old save file will only be compatable with the old nods that were loaded when the save was created.
Any way to fix it?
Maybe. Try removing all the changes, even mod updates, to put Starsector just the way it was when that old save was started.
Logged

Artaazar

  • Ensign
  • *
  • Posts: 4
    • View Profile
Re: Fatal error when i press "Autofit..." button ingame
« Reply #5 on: November 22, 2021, 02:16:52 AM »

I found another thing: i got this error only in old savegame, but in new game i can open Autofit window without any errors.
Ah. Now the error has a lot of precedent. You can't go modding the game while playing the game. The old save file will only be compatable with the old nods that were loaded when the save was created.
Any way to fix it?
Maybe. Try removing all the changes, even mod updates, to put Starsector just the way it was when that old save was started.
Thanks a lot!
I'll start a new game :)

So, Topic can be closed/removed.
Thanks again :)
Logged