Right, only had time to get back to starsector and mini modding but I ran into a snag.
So I started as simple as possible, I made a entry in hullmods.csv. I copied everything from the augmented engine entry into a new line, then changed the name, id and the cost. I loaded up star sector with console command mod, loaded in the new 'technology overhaul' hull mod and fitted it on a ship. This works fine as I now had a +2 burn mod that gave me hullpoints to play with (negative cost).
Now I run into a snag, I made a copy of the AugmentedEngines.java and renamed it into AugmentedEngines2.java ( I want to increase the max burn bonus to 4 without effecting the 'vanilla' engine hullmod). I changed the entry in hullmods.csv to point to this new file and I tried loading star sector. It crashed and I got this in the error log.
Spoiler
13128 [Thread-4] ERROR com.fs.starfarer.combat.CombatMain - java.lang.RuntimeException: Error compiling [data.hullmods.AugmentedEngines2]
java.lang.RuntimeException: Error compiling [data.hullmods.AugmentedEngines2]
at com.fs.starfarer.loading.scripts.ScriptStore$3.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException: Parsing compilation unit 'data.hullmods.AugmentedEngines2'
at org.codehaus.janino.JavaSourceIClassLoader.findIClass(JavaSourceIClassLoader.java:172)
at org.codehaus.janino.IClassLoader.loadIClass(IClassLoader.java:254)
at org.codehaus.janino.JavaSourceClassLoader.generateBytecodes(JavaSourceClassLoader.java:214)
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: Compilation unit 'data.hullmods.AugmentedEngines2' does not declare a class with the same name
at org.codehaus.janino.JavaSourceIClassLoader.findIClass(JavaSourceIClassLoader.java:160)
... 7 more
Could anyone tell me where I went wrong? I must have missed a step somewhere for adding a hull mod. Unfortunately the info I got from searching this forum only showed how to edit a pre-existing hullmod and not make a one from scratch. Thanks