CTD with this at the end of starsector.log (I do have a number of faction mods enabled if that is a concern):
java.lang.IllegalArgumentException: bound must be positive
at java.base/java.util.Random.nextInt(Random.java:557) ~[?:?]
at util.Utils.weightedSample(Utils.java:209) ~[?:?]
at controllers.PoliticsController.getPreferredLordTarget(PoliticsController.java:1341) ~[?:?]
at controllers.PoliticsController.createNewProposal(PoliticsController.java:260) ~[?:?]
at controllers.PoliticsController.advance(PoliticsController.java:130) ~[?:?]
at com.fs.starfarer.campaign.CampaignEngine.advance(Unknown Source) ~[port_obf.jar:?]
at com.fs.starfarer.campaign.CampaignState.advance(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:1575) [?:?]
Thanks for the report, this is fixed in the latest release.
Unfortunately while playing the most recent version I got a CTD with the same error in the log:
java.lang.IllegalArgumentException: bound must be positive
at java.base/java.util.Random.nextInt(Random.java:557) ~[?:?]
at util.Utils.weightedSample(Utils.java:209) ~[?:?]
at controllers.PoliticsController.getPreferredLordTarget(PoliticsController.java:1341) ~[?:?]
at controllers.PoliticsController.createNewProposal(PoliticsController.java:260) ~[?:?]
at controllers.PoliticsController.advance(PoliticsController.java:130) ~[?:?]
at com.fs.starfarer.campaign.CampaignEngine.advance(Unknown Source) ~[port_obf.jar:?]
at com.fs.starfarer.campaign.CampaignState.advance(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:1575) [?:?]