1
Modding / Re: [0.97a-RC10] Stargate Ship And Weapon Pack V1.1.1
« on: June 12, 2024, 09:35:36 AM »
I'll be watching with interest.
Starsector 0.97a is out! (02/02/24); New blog post: Planet Search Overhaul (07/13/24)
So this was my first attempt (sbgrMult defaults to 30), but it's not working.I think my approach might be entirely wrong?Code: javaI also tried:CargoAPI result = performRaid(random, (temp.raidMult));
CargoAPI yunru_temp;
if (sbgrMult > 1) {
for (int i = 1; i < sbgrMult; i++) {
yunru_temp = performRaid(random, (temp.raidMult));
result.addAll(yunru_temp);
}
}Code: javaTo no avail.float lootMult = sbgrMult * (1f + leftoverRE / Math.max(RE_PER_MARINE_TOKEN, raidEffectiveness));
"starsector-debug.bat"Reading through the thread, this came out of nowhere. What is?
CargoAPI result = performRaid(random, (temp.raidMult));
CargoAPI yunru_temp;
if (sbgrMult > 1) {
for (int i = 1; i < sbgrMult; i++) {
yunru_temp = performRaid(random, (temp.raidMult));
result.addAll(yunru_temp);
}
}
float lootMult = sbgrMult * (1f + leftoverRE / Math.max(RE_PER_MARINE_TOKEN, raidEffectiveness));
at data.scripts.campaign.submarkets.PSE_SODCampSubmarketPlugin.updateCargoPrePlayerInteraction(PSE_SODCampSubmarketPlugin.java:52)
VRAM-Impact can be high - the mod only loads images in systems you visit, but cannot un-load them, so VRAM use can be up to 250mb depending on your actions.
If you are playing on a system with a weak graphics card (< 2gb VRAM), consider not using this mod.
This is a really really nice mod. I love how unique some of the effects are.Already possible; just check if the mod's active, check if your hullmod is s-modded (or built in with the setting enabled), and code away.
Have you considered adding a framework for mod compatibility, so mod authors could give their hullmods special effects for smods?
public static boolean yBDSMCheck() {
return Global.getSettings().getModManager().isModEnabled("better_deserving_smods");
}
public static boolean yBDSMApplies(ShipAPI ship, String hullmodID) {
if (yBDSMCheck()) {
return (ship.getVariant().getSMods().contains(hullmodID) || (Global.getSettings().getBoolean("BuiltInSMod") && ship.getVariant().getHullSpec().isBuiltInMod(hullmodID)));
}
return false;
}