Got a reproducable crash when using the merge feature from this mod.
I set 2 plasma cannons in firing group 1 and 2 modded heavy ion blasters (
https://fractalsoftworks.com/forum/index.php?topic=11018.0) in firing group 2 to have the merge property.
I toggle merge on while either fire group is selected.
I switch to the other fire group, if it was 1 I switch to 2 and vice versa.
The game crashes.
Switching to any firing group that isn't a part of the merge set does not cause this issue.
There are some other factors that also seem to prevent it from happening, like being paused, but I'd have to crash and load starsector too many times to find them all.
Log:
Spoiler
3832694 [Thread-9] INFO sound.H - Playing music with id [battle_ambience_01.ogg]
3832812 [Thread-3] ERROR com.fs.starfarer.combat.CombatMain - java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
at java.util.ArrayList.rangeCheck(ArrayList.java:659)
at java.util.ArrayList.get(ArrayList.java:435)
at com.fs.starfarer.combat.systems.oOoO.new(Unknown Source)
at com.fs.starfarer.combat.systems.oOoO.õO0000(Unknown Source)
at com.fs.starfarer.combat.systems.oOoO.select(Unknown Source)
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(Thread.java:750)
Mod list:
Spoiler
{
"enabledMods": [
"$$$_lightshow",
"A_S-F",
"advanced_gunnery_control_dbeaa06e",
"Angry Periphery",
"assortment_of_things",
"automatedcommands",
"BSC",
"chatter",
"cleaner_apogee",
"combatactivators",
"Cryo_but_better",
"DetailedCombatResults",
"Everybody loves KoC",
"fleet_journal",
"fleetsizebydp",
"GrandColonies",
"hostileIntercept",
"IndEvo",
"largerZoomOut",
"lobstercrew",
"lobstermarines",
"lockedAndLoaded",
"lost_sector",
"lunalib",
"lw_autosave",
"lw_console",
"lw_lazylib",
"lw_radar",
"MagicLib",
"nexerelin",
"objects_analysis",
"ORK",
"particleengine",
"planet_search",
"presmattdamon_takenoprisoners",
"pt_qolpack",
"PT_ShipDirectionMarker",
"secretsofthefrontier",
"shaderLib",
"ShipCatalogVariantEditor",
"simpleplayerflags",
"speedUp",
"star_federation",
"stelnet",
"sun_hyperdrive",
"sun_nomadic_survival",
"swp",
"tahlan",
"TAR",
"Terraforming \u0026 Station Construction",
"timid_tmi",
"underworld",
"unthemedweapons",
"US",
"variants_lib",
"WEAPONARCS",
"whichmod",
"whichtmi",
"wisp_NeutrinoDetectorMkII",
"wyv_decolib",
"wyv_mirror"
]
}