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: New mission causes this crash on startup  (Read 3885 times)

Doom101

  • Admiral
  • *****
  • Posts: 641
  • Doom will always find you.
    • View Profile
    • Youtube channel
New mission causes this crash on startup
« on: September 09, 2012, 05:40:53 PM »

So howdy.

this is the error log i get when i try to start starfarer,
Spoiler
13053 [Thread-6] INFO  com.fs.profiler.Profiler  - ID     Calls   Duration    Percent
13053 [Thread-6] INFO  com.fs.profiler.Profiler  - --------------------------------
13054 [Thread-6] ERROR com.fs.starfarer.combat.String  - java.lang.RuntimeException: Error compiling [data.missions.am_missiontwo.MissionDefinition]
java.lang.RuntimeException: Error compiling [data.missions.am_missiontwo.MissionDefinition]
   at com.fs.starfarer.loading.scripts.ScriptStore$1.run(Unknown Source)
   at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.ClassNotFoundException: Parsing compilation unit "com.fs.starfarer.loading.oOOO$1@1702c48"
   at org.codehaus.janino.JavaSourceIClassLoader.findIClass(JavaSourceIClassLoader.java:180)
   at org.codehaus.janino.IClassLoader.loadIClass(IClassLoader.java:158)
   at org.codehaus.janino.JavaSourceClassLoader.generateBytecodes(JavaSourceClassLoader.java:199)
   at org.codehaus.janino.JavaSourceClassLoader.findClass(JavaSourceClassLoader.java:164)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
   ... 2 more
Caused by: org.codehaus.commons.compiler.CompileException: File data/missions/am_missiontwo/MissionDefinition.java, Line 32, Column 18: Expression "api.addToFleet(FleetSide.PLAYER, "lasher_Standard", FleetMemberType.SHIP, false)" is not a type
   at org.codehaus.janino.Java$Located.throwCompileException(Java.java:97)
   at org.codehaus.janino.Java$Atom.toTypeOrPE(Java.java:1899)
   at org.codehaus.janino.Parser.parseBlockStatement(Parser.java:1010)
   at org.codehaus.janino.Parser.parseBlockStatements(Parser.java:938)
   at org.codehaus.janino.Parser.parseMethodDeclarationRest(Parser.java:804)
   at org.codehaus.janino.Parser.parseClassBodyDeclaration(Parser.java:442)
   at org.codehaus.janino.Parser.parseClassBody(Parser.java:393)
   at org.codehaus.janino.Parser.parseClassDeclarationRest(Parser.java:372)
   at org.codehaus.janino.Parser.parsePackageMemberTypeDeclaration(Parser.java:251)
   at org.codehaus.janino.Parser.parseCompilationUnit(Parser.java:153)
   at org.codehaus.janino.JavaSourceIClassLoader.findIClass(JavaSourceIClassLoader.java:150)
   ... 7 more

[close]
this only starting happening when i created my new mission despite the fact that i made a mission before that is perfectly playable and set up the second one in the EXACT same way as the one before it.

attached here are the pertinent mission files as well.

[attachment deleted by admin]
« Last Edit: September 09, 2012, 05:43:35 PM by Doom101 »
Logged
When you can't go on, just accept your doom. It comes to all, it is inevitable.

Also I totally had the name BEFORE the cruiser.

FlashFrozen

  • Admiral
  • *****
  • Posts: 988
    • View Profile
Re: New mission causes this crash on startup
« Reply #1 on: September 09, 2012, 05:45:04 PM »

since you said your first mission works, i'm gonna assume straight off it is mission two

"
      api.addToFleet(FleetSide.PLAYER, "hound_Assault", FleetMemberType.SHIP, false);
      api.addToFleet(FleetSide.PLAYER, "lasher_", FleetMemberType.SHIP, false); // you just left out the variant for this so it doesn't work

"

« Last Edit: September 09, 2012, 05:46:41 PM by FlashFrozen »
Logged

Doom101

  • Admiral
  • *****
  • Posts: 641
  • Doom will always find you.
    • View Profile
    • Youtube channel
Re: New mission causes this crash on startup
« Reply #2 on: September 09, 2012, 05:47:01 PM »

since your you said your first mission works, i'm gonna assume straight off it is mission two

"
      api.addToFleet(FleetSide.PLAYER, "hound_Assault", FleetMemberType.SHIP, false);
      api.addToFleet(FleetSide.PLAYER, "lasher_", FleetMemberType.SHIP, false); // you just left out the variant for this so it doesn't work

"



yeah sorry it's mission two, trying this now, i just noticed that myself -.- i'll see if this works.

« Last Edit: September 09, 2012, 05:55:22 PM by Doom101 »
Logged
When you can't go on, just accept your doom. It comes to all, it is inevitable.

Also I totally had the name BEFORE the cruiser.

Doom101

  • Admiral
  • *****
  • Posts: 641
  • Doom will always find you.
    • View Profile
    • Youtube channel
Re: New mission causes this crash on startup
« Reply #3 on: September 09, 2012, 05:55:36 PM »

 still crashing for the exact same reason it says. new log :
Spoiler
11346 [Thread-6] ERROR com.fs.starfarer.combat.String  - java.lang.RuntimeException: Error compiling [data.missions.am_missiontwo.MissionDefinition]
java.lang.RuntimeException: Error compiling [data.missions.am_missiontwo.MissionDefinition]
   at com.fs.starfarer.loading.scripts.ScriptStore$1.run(Unknown Source)
   at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.ClassNotFoundException: Parsing compilation unit "com.fs.starfarer.loading.oOOO$1@1140709"
   at org.codehaus.janino.JavaSourceIClassLoader.findIClass(JavaSourceIClassLoader.java:180)
   at org.codehaus.janino.IClassLoader.loadIClass(IClassLoader.java:158)
   at org.codehaus.janino.JavaSourceClassLoader.generateBytecodes(JavaSourceClassLoader.java:199)
   at org.codehaus.janino.JavaSourceClassLoader.findClass(JavaSourceClassLoader.java:164)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
   ... 2 more
Caused by: org.codehaus.commons.compiler.CompileException: File data/missions/am_missiontwo/MissionDefinition.java, Line 32, Column 18: Expression "api.addToFleet(FleetSide.PLAYER, "lasher_Standard", FleetMemberType.SHIP, false)" is not a type
   at org.codehaus.janino.Java$Located.throwCompileException(Java.java:97)
   at org.codehaus.janino.Java$Atom.toTypeOrPE(Java.java:1899)
   at org.codehaus.janino.Parser.parseBlockStatement(Parser.java:1010)
   at org.codehaus.janino.Parser.parseBlockStatements(Parser.java:938)
   at org.codehaus.janino.Parser.parseMethodDeclarationRest(Parser.java:804)
   at org.codehaus.janino.Parser.parseClassBodyDeclaration(Parser.java:442)
   at org.codehaus.janino.Parser.parseClassBody(Parser.java:393)
   at org.codehaus.janino.Parser.parseClassDeclarationRest(Parser.java:372)
   at org.codehaus.janino.Parser.parsePackageMemberTypeDeclaration(Parser.java:251)
   at org.codehaus.janino.Parser.parseCompilationUnit(Parser.java:153)
   at org.codehaus.janino.JavaSourceIClassLoader.findIClass(JavaSourceIClassLoader.java:150)
   ... 7 more
[close]
Logged
When you can't go on, just accept your doom. It comes to all, it is inevitable.

Also I totally had the name BEFORE the cruiser.

FlashFrozen

  • Admiral
  • *****
  • Posts: 988
    • View Profile
Re: New mission causes this crash on startup
« Reply #4 on: September 09, 2012, 06:14:11 PM »

"      api.addToFleet(FleetSide.PLAYER, "lasher_Standard", FleetMemberType.SHIP, false)   "

your missing a semi colon

      api.addToFleet(FleetSide.PLAYER, "mining_drone_wing", FleetMemberType.FIGHTER_WING, false);
      api.addToFleet(FleetSide.PLAYER, "lasher_Standard", FleetMemberType.SHIP, false)           <---------
      api.addToFleet(FleetSide.PLAYER, "hound_Assault", FleetMemberType.SHIP, false);
Logged

Doom101

  • Admiral
  • *****
  • Posts: 641
  • Doom will always find you.
    • View Profile
    • Youtube channel
Re: New mission causes this crash on startup
« Reply #5 on: September 09, 2012, 07:40:35 PM »

that fixed it, thanks very much.
Logged
When you can't go on, just accept your doom. It comes to all, it is inevitable.

Also I totally had the name BEFORE the cruiser.

Trylobot

  • Global Moderator
  • Admiral
  • *****
  • Posts: 1170
    • View Profile
    • Github profile
Re: New mission causes this crash on startup
« Reply #6 on: September 10, 2012, 10:10:16 AM »

Doom101: You might want to invest 20 or so minutes in properly setting up Eclipse with the Starfarer API jar. It would totally have caught your semicolon mistake. Then you'd waste less time begging for help in threads, and spend more of it actually making your missions.

Logged