Hi everyone !
I'm trying to iniate myself to modding. I know my way around some files using notepad and a csv editor, but now I'm trying something way harder (at least for me) ... to make a new hullmod and to add it to an existing mod (for my personal use and only as a test bed).
I'm trying to copy the effect of the Invictus' Ablative Armor hullmod but with a reduced effect (only -50% to armor damage reduction calculation instead of -90%) and I'd like to add it to a ship.
I found the Ablative Armor hullmod java file in the Starsector core files, copied it, put it into the mod I'm using for testing ("MOD/src/data/hullmods") and renamed it (ex : "TestArmor.java"). Then I changed a single value inside the file to reduce its effectiveness to -50%.
After that, I modified the CSV hullmod file from the mod. I added a new line for the new hullmod, gave it an ID, gave it a quick and dirty description and I entered the script location ("data.hullmods.TestArmor" without the "").
Finally, Imodified the built-in hullmods of the ship from the mod I'm using as a test bed and added the ID of the new hullmod to it.
So far so good (I think ?) but now when I'm launching the game, it crashes saying something about "Class" went wrong and I have no idea what I missed ...