Fractal Softworks Forum

Please login or register.

Login with username, password and session length

Author Topic: not sure what's causing mod to crash  (Read 582 times)

Crimson-.-

  • Ensign
  • *
  • Posts: 3
    • View Profile
not sure what's causing mod to crash
« on: March 15, 2023, 10:24:54 PM »

Ahoy, I'm dipping my toes into modding by trying to create a basic custom faction. I'm making the solar system they're supposed to spawn in but it keeps crashing on game startup and I'm not sure why.

This is the error in the starsector log

 ERROR com.fs.starfarer.combat.CombatMain  - java.lang.RuntimeException: Error loading [data.scripts.world.techpiratesGen]
java.lang.RuntimeException: Error loading [data.scripts.world.techpiratesGen]
   at com.fs.starfarer.loading.scripts.ScriptStore$3.run(Unknown Source)
   at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException: 1 error(s) while compiling unit "data/scripts/world/systems/dirvahSystem.java"
   at org.codehaus.janino.JavaSourceClassLoader.generateBytecodes(JavaSourceClassLoader.java:226)
   at org.codehaus.janino.JavaSourceClassLoader.findClass(JavaSourceClassLoader.java:178)
   at java.lang.ClassLoader.loadClass(Unknown Source)
   at java.lang.ClassLoader.loadClass(Unknown Source)
   ... 2 more
Caused by: org.codehaus.commons.compiler.CompileException: 1 error(s) while compiling unit "data/scripts/world/systems/dirvahSystem.java"
   at org.codehaus.janino.UnitCompiler.compileUnit(UnitCompiler.java:326)
   at org.codehaus.janino.JavaSourceClassLoader.generateBytecodes(JavaSourceClassLoader.java:224)
   ... 5 more



I've also attached a copy of the mod if that helps
Logged

Great Wound

  • Captain
  • ****
  • Posts: 279
    • View Profile
Re: not sure what's causing mod to crash
« Reply #1 on: March 16, 2023, 07:40:20 PM »

Found your problem, delete the following line:

Code: data/scripts/world/systems/dirvahSystem.java
import org.lazywizard.lazylib.MathUtils;

Don't serve much of a purpose anyway. Just tends to gum up the works...

Crimson-.-

  • Ensign
  • *
  • Posts: 3
    • View Profile
Re: not sure what's causing mod to crash
« Reply #2 on: March 16, 2023, 11:33:40 PM »

Found your problem, delete the following line:

Code: data/scripts/world/systems/dirvahSystem.java
import org.lazywizard.lazylib.MathUtils;

Don't serve much of a purpose anyway. Just tends to gum up the works...

Yup, that solved it. Thank you for the help :)
Logged