Fractal Softworks Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

Starsector 0.97a is out! (02/02/24); New blog post: Simulator Enhancements (03/13/24)

Author Topic: CTD while flying around, seems to happen when crossing NPC fleets in space  (Read 599 times)

BarbaScottex

  • Ensign
  • *
  • Posts: 2
    • View Profile

As in title, the game sometimes crashes while I am strolling around in space. It seems to trigger when I cross an NPC fleet, every once in a while. Reloading a game I had incidentally saved right before crashing and seeking the same fleet that caused the previous crash causes the game to promply crash again.

heres the error in the log
Spoiler
1091167 [Thread-3] ERROR com.fs.starfarer.combat.CombatMain  - java.lang.ArrayIndexOutOfBoundsException: -1
java.lang.ArrayIndexOutOfBoundsException: -1
   at java.util.ArrayList.elementData(Unknown Source)
   at java.util.ArrayList.get(Unknown Source)
   at com.fs.starfarer.api.plugins.impl.CoreAutofitPlugin.doFit(CoreAutofitPlugin.java:464)
   at com.fs.starfarer.api.impl.campaign.fleets.DefaultFleetInflater.inflate(DefaultFleetInflater.java:422)
   at com.fs.starfarer.campaign.fleet.CampaignFleet.inflateIfNeeded(Unknown Source)
   at com.fs.starfarer.campaign.ai.TacticalModule.hasEnoughStuffAround(Unknown Source)
   at com.fs.starfarer.campaign.ai.TacticalModule.advance(Unknown Source)
   at com.fs.starfarer.campaign.ai.ModularFleetAI.advance(Unknown Source)
   at com.fs.starfarer.campaign.fleet.CampaignFleet.advance(Unknown Source)
   at com.fs.starfarer.campaign.BaseLocation.advance(Unknown Source)
   at com.fs.starfarer.campaign.Hyperspace.advance(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$1.run(Unknown Source)
   at java.lang.Thread.run(Unknown Source)
1091376 [Thread-9] INFO  sound.oo0O  - Creating streaming player for music with id [campaign_music_part_2_v28.ogg]
1091377 [Thread-9] INFO  sound.OooO  - Playing music with id [campaign_music_part_2_v28.ogg]
[close]

The mods I currently have installed:
Combat Chatter 1.11.2
Console Commands 2021.4.10
DIY Planets 1.0.13
Grand Colonies 1.0.b
High Tech Expansion 1.4.7
Industrial Evolution 2.2.g
LazyLib 2.6
MagicLib 0.34
Nexerelin 0.10.3c
Scy Nation 1.64
Ship/Weapon Pack 1.12.999
Terraforming and Station Contruction 7.1.3 (w/ terraforming disabled)
Underworld 1.6.1
GraphicsLib 1.5.1
« Last Edit: October 07, 2021, 02:57:49 PM by BarbaScottex »
Logged

Timid

  • Admiral
  • *****
  • Posts: 640
  • Personal Text
    • View Profile

Try your best WITHOUT HOVERING OVER THE FLEET (since I feel this causes a CTD too) to find what did the fleet have.

Pause the game, screenshot. Anything to help. I'm trying to investigate this myself and trying to find a common link between this CTD and others that seems to be "hard to reproduce yet easy to reproduce."

beaverslayer

  • Ensign
  • *
  • Posts: 3
    • View Profile

I have also had this happen to me: https://fractalsoftworks.com/forum/index.php?topic=22761.0. I started a new game and the same thing happened again with a new set of mods, except it crashed in-system instead of hyperspace. I tried to get close to the fleet to screenshot, like Techpriest suggested but the crashes are random in terms of proximity (sometimes I can get close enough to see the fleet, sometimes it crashes when I can't see the fleet). The mods that BarbaScottex and I have in common are:

Combat Chatter 1.11.2
Console Commands 2021.4.10
Grand Colonies 1.0.b
Industrial Evolution 2.2.g
LazyLib 2.6
MagicLib 0.34
Nexerelin 0.10.3c
Terraforming and Station Construction 7.1.3 (terraforming not disabled)
Underworld 1.6.1
GraphicsLib 1.5.1
« Last Edit: October 10, 2021, 12:27:40 PM by beaverslayer »
Logged

BarbaScottex

  • Ensign
  • *
  • Posts: 2
    • View Profile

I have managed to save a game right before a crash, and by reloading it seems to happen consistently if I follow the same path. I saved with my fleet right on top of Eochu Bres (in Hybrasil), going toward Culann causes the game to crash. Maybe the game is loading a fleet off-screen or something, I can't really wrap my head around it, but the crash happens every time follow the same path.

If needed I can provide a copy of the save file where the crash occurs (dunno the forum policy on uploading files, so I'll stick to DM only unless told otherwise).

EDIT: This might be a stretch, but the cluprit might be something Persean League-related, as I forgot to add that Culann is now under league control, and it is spawning league fleets.
« Last Edit: October 10, 2021, 12:43:28 PM by BarbaScottex »
Logged

Histidine

  • Admiral
  • *****
  • Posts: 4661
    • View Profile
    • GitHub profile

I made a mod that tries to fix the issue, see if it works for you.

PF and Autofit Fix

(barely tested, not guaranteed to solve the crash or not introduce new ones)
Logged

TiberQ

  • Ensign
  • *
  • Posts: 41
    • View Profile
Re: CTD while flying around, seems to happen when crossing NPC fleets in space
« Reply #5 on: November 15, 2021, 10:37:01 PM »

Does this Mod need any handling? Because i could not make much of the readme that was whit it.
Logged

Histidine

  • Admiral
  • *****
  • Posts: 4661
    • View Profile
    • GitHub profile
Re: CTD while flying around, seems to happen when crossing NPC fleets in space
« Reply #6 on: November 17, 2021, 10:07:01 PM »

There's no readme and no settings involved; it should just work or not (apparently not?)
Logged