Fractal Softworks Forum

Please login or register.

Login with username, password and session length
Advanced search  


Starsector 0.95.1a is out! (12/10/21); Blog post: The Pilgrim's Path (07/19/22)

Author Topic: [CTD after loading and unpausing] - stats with the same source [battle_mod_flat]  (Read 159 times)


  • Lieutenant
  • **
  • Posts: 61
    • View Profile

Crash happens exactly after unpausing a loaded save file's running game.

"java.lang.RuntimeException: Attempting to modify multiple stats with the same source [battle_mod_flat]
    at com.fs.starfarer.campaign.fleet.MutableFleetStats.getMod(Unknown Source)
    at com.fs.starfarer.campaign.fleet.MutableFleetStats.addTemporaryModFlat(Unknown Source)
    at com.fs.starfarer.campaign.fleet.Battle.applyVisibilityMod(Unknown Source)
    at com.fs.starfarer.campaign.fleet.Battle.advance(Unknown Source)
    at com.fs.starfarer.campaign.BaseLocation.advanceEvenIfPaused(Unknown Source)
    at com.fs.starfarer.campaign.CampaignEngine.advance(Unknown Source)
    at com.fs.starfarer.campaign.CampaignState.advance(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$ Source)
    at Source)"

Modlist (including Scarlet Devils and Space Jihad Modifications, which are my own mods and which I suspect might be the cause):

{"enabledMods": [
  "Mayasuran Navy",
  "Terraforming and Station Construction",

Did some testing. Good news for me personally, is that my mod (hullmods that alter various ship stats etc.) is not the likely cause of this particular crash. Bad news is, I still don't known what the cause is.

Method: Since my game crashed earlier, when I tried to load a save (after I had rebooted the game), I attempted to recreate the bug with a fresh save. To do so, I made a new character, saved, went back to the main menu and loaded the save again. No crash, even after a minute of travelling through space, so completely unlike earlier. Then I did the same with a complete game reboot inbetween. Still, no issue.

It seems the crash is caused by something that happens throughout the game.
« Last Edit: August 07, 2021, 09:05:18 AM by Hiroyan495 »