Fractal Softworks Forum

Please login or register.

Login with username, password and session length

Author Topic: I need help modding Hullmods  (Read 1032 times)

Stelarwand030

  • Lieutenant
  • **
  • Posts: 58
    • View Profile
I need help modding Hullmods
« on: January 22, 2022, 10:19:30 PM »

I am trying to mod the MHM split chambers hullmod and remove the damage reduction but i cannot figure out which part is the damage reduction. Can anyone help with this?

I managed to find the Java file so I got that far.
« Last Edit: January 22, 2022, 11:07:37 PM by Stelarwand030 »
Logged

Stelarwand030

  • Lieutenant
  • **
  • Posts: 58
    • View Profile
Re: I need help modding Hullmods
« Reply #1 on: January 23, 2022, 01:33:50 AM »

okay after 3 hours i managed to get the errors down to (hopefully) one. Now all I need to do is find which .json file has the hullmods list.
« Last Edit: January 23, 2022, 01:44:07 AM by Stelarwand030 »
Logged

Stelarwand030

  • Lieutenant
  • **
  • Posts: 58
    • View Profile
Re: I need help modding Hullmods
« Reply #2 on: January 23, 2022, 02:16:56 AM »

Yeah... I don't know what I am doing and am back to square one. All i want to do is remove the damage reduction from MHM Split chambers. Why does it have to be so hard.
Logged

Ruddygreat

  • Admiral
  • *****
  • Posts: 524
  • Seals :^)
    • View Profile
Re: I need help modding Hullmods
« Reply #3 on: January 23, 2022, 08:32:52 AM »

you'll need to edit the .java file (in /src/data/scripts/hullmods), then either recompile the jar with your edited script or point the hull_mods.csv entry in /data/hullmods to your script

Stelarwand030

  • Lieutenant
  • **
  • Posts: 58
    • View Profile
Re: I need help modding Hullmods
« Reply #4 on: January 23, 2022, 01:54:28 PM »

i got this last night but could not figure it out and i could not fix it. it crashes the game on start up.
I tried to reinstall the game and mod but its still there.

13054 [Thread-3] ERROR com.fs.starfarer.combat.CombatMain  - org.json.JSONException: JSONObject["name"] not found.
org.json.JSONException: JSONObject["name"] not found.
   at org.json.JSONObject.get(JSONObject.java:406)
   at org.json.JSONObject.getString(JSONObject.java:577)
   at com.fs.starfarer.loading.WeaponSpreadsheetLoader.Ò00000(Unknown Source)
   at com.fs.starfarer.loading.SpecStore.public(Unknown Source)
   at com.fs.starfarer.loading.ResourceLoaderState.init(Unknown Source)
   at com.fs.state.AppDriver.begin(Unknown Source)
   at com.fs.starfarer.combat.CombatMain.main(Unknown Source)
   at com.fs.starfarer.StarfarerLauncher.o00000(Unknown Source)
   at com.fs.starfarer.StarfarerLauncher$1.run(Unknown Source)
   at java.lang.Thread.run(Unknown Source)


i went through the mods one by one and found the issue. I tried to change another mod but failed. i reinstalled the mod.
« Last Edit: January 23, 2022, 02:30:12 PM by Stelarwand030 »
Logged

Stelarwand030

  • Lieutenant
  • **
  • Posts: 58
    • View Profile
Re: I need help modding Hullmods
« Reply #5 on: January 23, 2022, 03:51:14 PM »

After another hour of getting nowhere I decided to use another hullmod that increases fire rate and copied it a bunch in the hullmod.csv. Now instead of 1 I have 10.

I might come back to this... maybe.
Logged

Thaago

  • Global Moderator
  • Admiral
  • *****
  • Posts: 7231
  • Harpoon Affectionado
    • View Profile
Re: I need help modding Hullmods
« Reply #6 on: January 23, 2022, 04:03:25 PM »

Have you tried looking at how other mods do hullmods?

You can also check guides here:
https://starsector.fandom.com/wiki/Modding#Hullmods

In general that page has lots of articles.
Logged

Stelarwand030

  • Lieutenant
  • **
  • Posts: 58
    • View Profile
Re: I need help modding Hullmods
« Reply #7 on: January 23, 2022, 06:28:16 PM »

I took a look at other mods and the guides but it was all over my head. I am not the most computer savvy.
Logged