Fractal Softworks Forum

Please login or register.

Login with username, password and session length

Author Topic: Game crashes on simulation (fighter wing problem)  (Read 851 times)

Zeppelin17

  • Ensign
  • *
  • Posts: 10
    • View Profile
Game crashes on simulation (fighter wing problem)
« on: December 01, 2021, 08:23:32 PM »

Ok, so I made a custom ship and custom fighters. The ship works fine with vanilla fighters, so I figured the problem is with my custom fighters.
Here's the log info:
0733 [Thread-4] ERROR com.fs.starfarer.combat.CombatMain  - java.lang.ArrayIndexOutOfBoundsException: 7
java.lang.ArrayIndexOutOfBoundsException: 7
   at com.fs.starfarer.E.C.B.<init>(Unknown Source)
   at com.fs.starfarer.E.C.int.o00000(Unknown Source)
   at com.fs.starfarer.E.C.int.Ò00000(Unknown Source)
   at com.fs.starfarer.E.C.C.advanceImpl(Unknown Source)
   at com.fs.starfarer.ui.Q.advance(Unknown Source)
   at com.fs.starfarer.ui.oO00.advanceImpl(Unknown Source)
   at com.fs.starfarer.ui.Q.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.super(Unknown Source)
   at com.fs.starfarer.StarfarerLauncher$1.run(Unknown Source)
   at java.lang.Thread.run(Thread.java:745)
80781 [Thread-10] INFO  sound.public  - Creating streaming player for music with id [battle_ambience_01.ogg]
80781 [Thread-10] INFO  sound.H  - Playing music with id [battle_ambience_01.ogg]

I am attaching the mod. The fighter wing is called Wyvern (type "wyvern_standard" as the id on the console)

[attachment deleted by admin]
Logged

Jackundor

  • Commander
  • ***
  • Posts: 242
    • View Profile
Re: Game crashes on simulation (fighter wing problem)
« Reply #1 on: December 01, 2021, 10:26:59 PM »

i can't take a full look at it, but there's 2 things in wing_data.csv that i think could be problematic: Num and Fleet points. Fleet points should be 0 for all fighters (i think), and no vanilla fighter has 7 pieces per wing. Try changing either or both and see if that fixes it.
« Last Edit: December 01, 2021, 10:53:30 PM by Jackundor »
Logged

Jackundor

  • Commander
  • ***
  • Posts: 242
    • View Profile
Re: Game crashes on simulation (fighter wing problem)
« Reply #2 on: December 01, 2021, 10:29:02 PM »

Also, your bounding box has a unreasonably large amount of points. Expecially for a massed automated fighter. And your fighter might be too big overall, compare it to some vanilla fighters,
« Last Edit: December 01, 2021, 10:53:42 PM by Jackundor »
Logged

Zeppelin17

  • Ensign
  • *
  • Posts: 10
    • View Profile
Re: Game crashes on simulation (fighter wing problem)
« Reply #3 on: December 02, 2021, 08:15:06 AM »

by "bounding box" you mean the "tags" column?

I fixed the size thing, and now it crashes whenever the battle starts. Log info:

151724 [Thread-4] ERROR com.fs.starfarer.combat.CombatMain  - java.lang.ArrayIndexOutOfBoundsException: 7
java.lang.ArrayIndexOutOfBoundsException: 7
   at com.fs.starfarer.E.C.B.<init>(Unknown Source)
   at com.fs.starfarer.E.C.int.o00000(Unknown Source)
   at com.fs.starfarer.E.C.int.Ò00000(Unknown Source)
   at com.fs.starfarer.E.C.C.advanceImpl(Unknown Source)
   at com.fs.starfarer.ui.Q.advance(Unknown Source)
   at com.fs.starfarer.ui.oO00.advanceImpl(Unknown Source)
   at com.fs.starfarer.ui.Q.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.super(Unknown Source)
   at com.fs.starfarer.StarfarerLauncher$1.run(Unknown Source)
   at java.lang.Thread.run(Thread.java:745)
Logged

Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 24125
    • View Profile
Re: Game crashes on simulation (fighter wing problem)
« Reply #4 on: December 02, 2021, 08:53:58 AM »

(The game supports a maximum of *six* fighters per wing, in case that's the problem.)
Logged

Yunru

  • Admiral
  • *****
  • Posts: 1560
    • View Profile
Re: Game crashes on simulation (fighter wing problem)
« Reply #5 on: December 02, 2021, 09:53:37 AM »

by "bounding box" you mean the "tags" column?
The bounding box is the area you define where shots can hit a ship. It should be as simple a shape as possible, resting entirely inside the outline of the ship, so that shots impact on  the ship, rather than in front of it.

Zeppelin17

  • Ensign
  • *
  • Posts: 10
    • View Profile
Re: Game crashes on simulation (fighter wing problem)
« Reply #6 on: December 02, 2021, 08:59:45 PM »

Ok, I fixed it. It's working now.

The crash when clicking on the fighter slot was my save game that was corrupted.

I modified the fighter sprite for a simpler smaller one, and also changed some other values on the .csv's. Then yes, the wing size was 7, and I changed to 6 and that probably solved the issue as well.

Thanks for the help!
Logged