Fractal Softworks Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

Starsector 0.95a is out! (03/26/21); Blog post: A Tale of Two Tech Levels (05/28/21)

Author Topic: Java cast crash on starting combat  (Read 1221 times)

Avan

  • Admiral
  • *****
  • Posts: 1399
  • Pioneer of Starfarer Modding
    • View Profile
    • DevDB forums
Java cast crash on starting combat
« on: August 20, 2012, 01:35:22 PM »

While testing out my mod, I got this error when initiating combat with a pirate fleet; it doesn't seem to be related to the mod (which just adds ships & spawnpoints & stuff, all of which has been successfully tested in combat before, and the crash occurred exactly when starting combat)

Code
1259141 [Thread-6] ERROR com.fs.starfarer.combat.String  - java.lang.ClassCastException: com.fs.starfarer.combat.systems.thissuper cannot be cast to com.fs.starfarer.combat.systems.O0OO
java.lang.ClassCastException: com.fs.starfarer.combat.systems.thissuper cannot be cast to com.fs.starfarer.combat.systems.O0OO
at com.fs.starfarer.combat.ai.system.O0oO.<init>(Unknown Source)
at com.fs.starfarer.loading.specs.OoooOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO.o00000(Unknown Source)
at com.fs.starfarer.combat.ai.BasicShipAI.<init>(Unknown Source)
at com.fs.starfarer.combat.CombatFleetManager.o00000(Unknown Source)
at com.fs.starfarer.combat.CombatFleetManager.o00000(Unknown Source)
at com.fs.starfarer.combat.CombatFleetManager.deploy(Unknown Source)
at com.fs.starfarer.combat.CombatFleetManager.deployAll(Unknown Source)
at com.fs.starfarer.combat.OOoO.öOÓ000(Unknown Source)
at com.fs.oOOO.A.new(Unknown Source)
at com.fs.starfarer.combat.String.o00000(Unknown Source)
at com.fs.starfarer.StarfarerLauncher$2.run(Unknown Source)
at java.lang.Thread.run(Thread.java:619)

Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 18684
    • View Profile
Re: Java cast crash on starting combat
« Reply #1 on: August 20, 2012, 01:45:16 PM »

It's mod-related - one of your ship systems has:

"type":"WEAPON",
"aiType":"EMP",

The only valid aiType for "WEAPON" is "FLARE".
Logged

Avan

  • Admiral
  • *****
  • Posts: 1399
  • Pioneer of Starfarer Modding
    • View Profile
    • DevDB forums
Re: Java cast crash on starting combat
« Reply #2 on: August 20, 2012, 01:55:04 PM »

Ok I see, it never crashed during testing (probably since I was piloting it, now that I think of it), hence why I never caught that. (That system was dummied out anyways because I couldn't get multiple point emission EMP so...)