Fractal Softworks Forum
Starsector => Mods => Modding => Topic started by: Flacman3000 on April 11, 2021, 03:02:34 AM
-
Hi guys I'm currently having issues making one hull mod that does nothing but give information in the description on the hullmod datasheet. but I get this message instead I'm using the shielded cargo script did I do something wrong?
422646 [Thread-4] ERROR com.fs.starfarer.combat.CombatMain - java.lang.RuntimeException: Error compiling [data.scripts.hullmods.cu_InfaredEngines]
java.lang.RuntimeException: Error compiling [data.scripts.hullmods.cu_InfaredEngines]
at com.fs.starfarer.loading.scripts.ScriptStore$3.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException: data.scripts.hullmods.cu_InfaredEngines
at org.codehaus.janino.JavaSourceClassLoader.findClass(JavaSourceClassLoader.java:179)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 2 more
My script is like this:
package data.hullmods;
import com.fs.starfarer.api.combat.BaseHullMod;
public class cu_InfaredEngines extends BaseHullMod {
// nothing to do, just a marker hullmod
}
-
package data.hullmods;
Shouldn't it be "data.scripts.hullmods"?
Or the other way, whereever you reference it by "data.scripts.hullmods" it should be "data.hullmods"?
-
package data.hullmods;
Shouldn't it be "data.scripts.hullmods"?
Or the other way, whereever you reference it by "data.scripts.hullmods" it should be "data.hullmods"?
I just switched it to this and now i get this error instead.
112034 [Thread-4] ERROR com.fs.starfarer.combat.CombatMain - java.lang.RuntimeException: Error compiling [data.scripts.hullmods.cu_InfaredEngines]
java.lang.RuntimeException: Error compiling [data.scripts.hullmods.cu_InfaredEngines]
at com.fs.starfarer.loading.scripts.ScriptStore$3.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException: data.scripts.hullmods.cu_InfaredEngines
at org.codehaus.janino.JavaSourceClassLoader.findClass(JavaSourceClassLoader.java:179)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 2 more