1
Mods / Re: [0.95a] prv Starworks v21 (2021-05-08)
« on: June 17, 2021, 07:33:57 PM »
Hello,
I am getting a crash that happens every time a ship of mine hits a certain percentage of flux. I believe that it may be due to a bug with the arcfault ejector hullmod. Here is the script from starsector.log:
377308 [Thread-3] ERROR com.fs.starfarer.combat.CombatMain - java.lang.IllegalArgumentException: n must be positive
java.lang.IllegalArgumentException: n must be positive
at java.util.Random.nextInt(Unknown Source)
at scripts.hullmods.prv_arcfault_ejector.advanceInCombat(prv_arcfault_ejector.java:136)
at com.fs.starfarer.combat.entities.Ship.advance(Unknown Source)
at com.fs.starfarer.combat.CombatEngine.advanceInner(Unknown Source)
at com.fs.starfarer.combat.CombatEngine.advance(Unknown Source)
at com.fs.starfarer.combat.CombatState.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)
Is there a workaround to this bug?
I am getting a crash that happens every time a ship of mine hits a certain percentage of flux. I believe that it may be due to a bug with the arcfault ejector hullmod. Here is the script from starsector.log:
377308 [Thread-3] ERROR com.fs.starfarer.combat.CombatMain - java.lang.IllegalArgumentException: n must be positive
java.lang.IllegalArgumentException: n must be positive
at java.util.Random.nextInt(Unknown Source)
at scripts.hullmods.prv_arcfault_ejector.advanceInCombat(prv_arcfault_ejector.java:136)
at com.fs.starfarer.combat.entities.Ship.advance(Unknown Source)
at com.fs.starfarer.combat.CombatEngine.advanceInner(Unknown Source)
at com.fs.starfarer.combat.CombatEngine.advance(Unknown Source)
at com.fs.starfarer.combat.CombatState.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)
Is there a workaround to this bug?