Hello, is it ok if I ask for help here regarding a crash?
I'm trying to raid a word every ~3 days to get blueprints, and after a few raids, every time I click "show military options", the game crashes.
48561 [Thread-3] ERROR com.fs.starfarer.combat.CombatMain - java.lang.NoSuchMethodError: com.fs.starfarer.api.util.Misc.isInsignificant(Lcom/fs/starfarer/api/campaign/CampaignFleetAPI;)Z
java.lang.NoSuchMethodError: com.fs.starfarer.api.util.Misc.isInsignificant(Lcom/fs/starfarer/api/campaign/CampaignFleetAPI;)Z
at com.fs.starfarer.api.impl.campaign.rulecmd.salvage.Nex_MarketCMD.showDefenses(Nex_MarketCMD.java:365)
at com.fs.starfarer.api.impl.campaign.rulecmd.salvage.MarketCMD.execute(MarketCMD.java:318)
at com.fs.starfarer.api.impl.campaign.rulecmd.salvage.Nex_MarketCMD.execute(Nex_MarketCMD.java:134)
at com.fs.starfarer.campaign.rules.A.execute(Unknown Source)
at com.fs.starfarer.campaign.rules.C.runScript(Unknown Source)
at com.fs.starfarer.api.impl.campaign.rulecmd.FireBest.applyRule(FireBest.java:106)
at com.fs.starfarer.api.impl.campaign.rulecmd.FireBest.execute(FireBest.java:51)
at com.fs.starfarer.api.impl.campaign.rulecmd.FireBest.fire(FireBest.java:57)
at com.fs.starfarer.api.impl.campaign.RuleBasedInteractionDialogPluginImpl.fireBes t(RuleBasedInteractionDialogPluginImpl.java:177)
at com.fs.starfarer.api.impl.campaign.RuleBasedInteractionDialogPluginImpl.optionS elected(RuleBasedInteractionDialogPluginImpl.java:210)
at com.fs.starfarer.ui.newui.V$1.super(Unknown Source)
at com.fs.starfarer.ui.newui.OoOO.actionPerformed(Unknown Source)
at com.fs.starfarer.ui.k.buttonPressed(Unknown Source)
at com.fs.starfarer.ui.oooO.new(Unknown Source)
at com.fs.starfarer.ui.oooO.processInput(Unknown Source)
at com.fs.starfarer.ui.V.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)
I doubt someone can help, but doesn't hurt asking.
Been really enjoying the mod thus far. Thank you for all.
edit: i don't know javascript or anything about modding this game, but i searched the files and as far as i got was line 365 of Next_MarketCMD.java
for (CampaignFleetAPI fleet : b.getNonPlayerSide()) {
if (fleet == responder) continue;
if (!fleet.isStationMode()) {
hasNonStation = true;
hasOtherButInsignificant &= Misc.isInsignificant(fleet);
}
}
Looks like it is iterating on fleets that don't belong to my faction, but I don't know how to follow Misc.isInsignificant(fleet).I don't understand if that's a file or a method... can't make sense of it.
edit2: looks like Misc is actually in core game Fractal Softworks\Starsector\starsector-core\starfarer.api.zip. Indeed "isInsignificant" method does not exist. Well, that's as far as my sherlock holmes goes.
edit3: the lines containing isInsignificant were introduced in commit 84561b5f27c33d193dbd83cb7fb782dd45a715ca in 5/23/2021.
* Fix battle join logic when taking military action against a market
I'm going to try raid without any ships around or something.
edit4: yup, trying to click "military options" in a station/planet with nearby enemy fleet causes crash consistently. No fleet nearby, no crash.