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); In-development patch notes for Starsector 0.98a (2/8/25)

Author Topic: NullPointerException: Null when salvaging a planet after a fight  (Read 1289 times)

DiscreetLee

  • Ensign
  • *
  • Posts: 1
    • View Profile

see the attachment for info

it locks me at this page and makes the game unplayable forcing me to close and restart, whenever i try to salvage the same planet it does the same thing

this is my modlist:
Additional Console commands
AddStableLocation
Ashes of the Domain (all 4 modules)
Ashlib
Building menu Overhaul
ClearCommands
Combat Chatter
Console Commands
Diktat Enhancement
Graphics Lib
HMI
HMI Brighton
HTE
Industrial Evolution
Interstellar Imperium
Iron Shell
Junk Yard Dogs
Knights of Ludd
LazyLib
Lost_Sector
Luddic_Enhancement
LunaLib
MagicLib
Nexerelin
PlanetSearch
RAT
RetroLib
ScanThoseGates
SCVE
SpeedUP
Tahlan Shipworks
Terraforming and Station Construction
Tri Tac Expansion
Tri Tac Special Circumstances
VIC
WhichMod
Xhan Empire

Anyone got some ideas how to fix this? Thanks 
Logged

M7mdKady14

  • Ensign
  • *
  • Posts: 3
    • View Profile
Re: NullPointerException: Null when salvaging a planet after a fight
« Reply #1 on: January 27, 2025, 03:50:02 AM »

I have the same issue but here's my modlist:
{"enabledMods": [
  "Cryo_but_better",
  "aotd_qol",
  "aod_vos",
  "aotd_vok",
  "ashlib",
  "bmo",
  "DetailedCombatResults",
  "timid_xiv",
  "lw_lazylib",
  "lunalib",
  "MagicLib",
  "nexerelin",
  "progressiveSMods",
  "second_in_command",
  "Terraforming & Station Construction",
  "shaderLib"
]}
Logged

Pushover

  • Captain
  • ****
  • Posts: 310
    • View Profile
Re: NullPointerException: Null when salvaging a planet after a fight
« Reply #2 on: January 27, 2025, 04:06:17 PM »

Saw some talk that if you are using TriOS, it used the latest github version of MagicLib (1.4.7 rc3) which causes this issue. rc2 supposedly works, or the one on the forum here, 1.4.6.
Logged

fakeuser013

  • Ensign
  • *
  • Posts: 3
    • View Profile
Re: NullPointerException: Null when salvaging a planet after a fight
« Reply #3 on: January 27, 2025, 04:55:52 PM »

Saw some talk that if you are using TriOS, it used the latest github version of MagicLib (1.4.7 rc3) which causes this issue. rc2 supposedly works, or the one on the forum here, 1.4.6.

I have no idea what any of these abreviations means but I'm having the same problem. Should I be using version 1.4.6 of MagicLib?
Logged

Masuri

  • Ensign
  • *
  • Posts: 2
    • View Profile
Re: NullPointerException: Null when salvaging a planet after a fight
« Reply #4 on: January 27, 2025, 08:41:17 PM »

I am getting the same issue with a nullpointerexception everytime I try to salvage a planets precollapse facility.
It appears to be an issue with the Ashes of The Domain mod.
on top of that coincidentally everyone who has this error is using this mod sooooo.

Also TIP: if you have console commands and have this error use command ForceDismissDialog to get out and not lose on progress.

Error that I recorded from the log is:

java.lang.NullPointerException: null
   at java.base/java.util.Objects.requireNonNull(Objects.java:220) ~[?:?]
   at com.fs.starfarer.api.impl.campaign.rulecmd.PreCollapseFacLoot.genLoot(PreCollapseFacLoot.java:116) ~[?:?]
   at com.fs.starfarer.api.impl.campaign.rulecmd.PreCollapseFacLoot.execute(PreCollapseFacLoot.java:77) ~[?:?]
   at com.fs.starfarer.campaign.rules.oOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO.execute(Unknown Source) [port_obf.jar:?]
   at com.fs.starfarer.campaign.rules.Object.runScript(Unknown Source) [port_obf.jar:?]
   at com.fs.starfarer.api.impl.campaign.rulecmd.FireBest.applyRule(FireBest.java:106) [starfarer.api.jar:?]
   at com.fs.starfarer.api.impl.campaign.rulecmd.FireBest.execute(FireBest.java:51) [starfarer.api.jar:?]
   at com.fs.starfarer.api.impl.campaign.rulecmd.FireBest.fire(FireBest.java:57) [starfarer.api.jar:?]
   at com.fs.starfarer.api.impl.campaign.RuleBasedInteractionDialogPluginImpl.fireBes t(RuleBasedInteractionDialogPluginImpl.java:177) [starfarer.api.jar:?]
   at com.fs.starfarer.api.impl.campaign.RuleBasedInteractionDialogPluginImpl.optionS elected(RuleBasedInteractionDialogPluginImpl.java:210) [starfarer.api.jar:?]
   at com.fs.starfarer.ui.newui.o0Oo$1.super(Unknown Source) [port_obf.jar:?]
   at com.fs.starfarer.ui.newui.OoOO.actionPerformed(Unknown Source) [port_obf.jar:?]
   at com.fs.starfarer.ui.o0O0.buttonPressed(Unknown Source) [port_obf.jar:?]
   at com.fs.starfarer.ui.int.Ò00000(Unknown Source) [port_obf.jar:?]
   at com.fs.starfarer.ui.int.processInput(Unknown Source) [port_obf.jar:?]
   at com.fs.starfarer.ui.W.o00000(Unknown Source) [port_obf.jar:?]
   at com.fs.starfarer.BaseGameState.traverse(Unknown Source) [port_obf.jar:?]
   at com.fs.state.AppDriver.begin(Unknown Source) [port.common_obf.jar:?]
   at com.fs.starfarer.combat.CombatMain.main(Unknown Source) [port_obf.jar:?]
   at com.fs.starfarer.StarfarerLauncher.super(Unknown Source) [port_obf.jar:?]
   at com.fs.starfarer.StarfarerLauncher$1.run(Unknown Source) [port_obf.jar:?]
   at java.base/java.lang.Thread.run(Thread.java:1447) [?:?]
Logged

Masuri

  • Ensign
  • *
  • Posts: 2
    • View Profile
Re: NullPointerException: Null when salvaging a planet after a fight
« Reply #5 on: January 27, 2025, 09:05:59 PM »

Guys I fixed it it was magic lib. Downgrade to magiclib v1.4.6
Logged