I am trying to edit a hullmod mod I bought but the game keeps crashing. i would ask the creator but he lives in Kyiv... so...
Here is the Mod: https://files.gamebanana.com/bitpit/rofhullmod_378fa.rar its a super cheaty mod that increases damage and rate of fire for all weapons. I want to drop the damage modifier but the game keeps crashing. Can someone tell me how to do that?
Works for me, you might just have edited it wrong (post the modified code and error message if you continue having trouble)
Here's the missile hullmod with halved damage bonus (replace the contents of existing file):
code
[/code][/spoiler]
I am using rons editor. what i want to change is the damage bonus for the all rof hullmod from 1000 to 100. yet every time i do this I get: fatal: Error loading [data.hullmods.allrofhullmod] Cause parsing compilation unit 'data.hullmods. allrofhullmod'
here is the original code
package data.hullmods;
import com.fs.starfarer.api.combat.BaseHullMod;
import com.fs.starfarer.api.combat.MutableShipStatsAPI;
import com.fs.starfarer.api.combat.ShipAPI;
import com.fs.starfarer.api.combat.ShipAPI.HullSize;
import data.scripts.util.MagicIncompatibleHullmods;
public class AllRoFHullmod extends BaseHullMod {
public static final float ROF_BONUS = 10f;
public static final float FLUX_REDUCTION = 500f;
public static final float DAMAGE_BONUS_PERCENT = 1000f;
public static final float AMMO_BONUS_PERCENT = 1000f;
public static final float RANGE_BONUS_PERCENT = 1000f;
public static final float HEALTH_BONUS_PERCENT = 1000f;
public static final float ACCELERATION_BONUS_PERCENT = 1000f;
public static final float SPEED_BONUS_PERCENT = 1000f;
public void applyEffectsBeforeShipCreation(HullSize hullSize
if (stats.getVariant().getHullMods().contains("rof_hullmod_ballistic"))
MagicIncompatibleHullmods.removeHullmodWithWarning(stats.getVariant()
I want to drop the DAMAGE_BONUS_PERCENT = 1000f to 100f but whenever I do the game crashes.