Fractal Softworks Forum

Please login or register.

Login with username, password and session length
Advanced search  

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - Protonus

Pages: 1 ... 25 26 [27]
391
Modding / Re: [0.65.a1] Protonian Technologies (V. 0.3)
« on: January 19, 2015, 09:29:05 PM »
What is the balance metric then?

I used Keptin's Balance Suite to make up the prices where ever the ship is made. They are practically expensive, ranging from fractions to 1.38 to 1.44.

392
Modding / Re: [0.65.a1] Protonian Technologies (V. 0.3)
« on: January 19, 2015, 09:16:55 PM »
I guess I should nerf that gun for the next patch.

Metromech cannon is supposed to be an oversized flak cannon. (using missile specs)

Yeah, I see the problem: 20 shots x 2000 damage.

393
Modding / Re: [0.65.a1] Protonian Technologies (V. 0.3)
« on: January 19, 2015, 09:10:46 PM »
Well, supposedly towards the vanilla ships, yes.

394
Modding / Re: [0.65.a1] Protonian Technologies (V. 0.3)
« on: January 19, 2015, 08:26:51 PM »
Reserved... if possible.

395
Modding / [0.65.1a] Protonian Technologies (Closing)
« on: January 19, 2015, 07:57:59 PM »
This mod is now closing.


I'm sorry about the inconvenience.


But due to some particular conundrum, I have to shutdown the page for those apparent reasons. Don't worry though, Protonian Technologies will get back to working order once again.

396
Modding / Re: Parsing Compilation Unit: Hullmod
« on: January 18, 2015, 04:20:33 PM »
I still didn't how the scripting didn't actually work even though it is logically correct.

Do you think it requires some files in order to make the Java script coding to be readable?

397
Modding / Parsing Compilation Unit: Hullmod
« on: January 14, 2015, 06:08:44 AM »
Well, I'm kinda shy asking the forums themselves for information that I need to get stuff done, but I'm starting to get a little bothered with this error I got, despite of having Netbeans to work with the hullmod.

I received after adding the hullmod into my... mod.

This is what I get:
Fatal: Error compiling [data.hullmods.pt_centuriondrive]
Cause: Parsing compilation unit "[email protected]"

I tried using two separate numeral techniques for the Zero Flux attribute but it doesn't to work for some reason.
This is the code I have.
Spoiler
Quote
package data.hullmods;

import java.util.HashMap;
import java.util.Map;

import com.fs.starfarer.api.combat.BaseHullMod;
import com.fs.starfarer.api.combat.MutableShipStatsAPI;
import com.fs.starfarer.api.combat.ShipAPI.HullSize;

public class PT_CenturionDrive extends BaseHullMod {

   public static final float EMP_REDUCTION = 25f;
   public static final float ENGINE_HEALTH_BONUS = 125f;
//   public static final float ZERO_FLUX_SPEED_CAPITAL = 15f;
//   public static final float ZERO_FLUX_SPEED_CRUISER = 20f;
//   public static final float ZERO_FLUX_SPEED_DESTROYER = 25f;
//   public static final float ZERO_FLUX_SPEED_FRIGATE = 35f;
//   public static final float ZERO_FLUX_BONUS_CAPITAL = 0.05f;
//   public static final float ZERO_FLUX_BONUS_CRUISER = 0.1f;
//   public static final float ZERO_FLUX_BONUS_DESTROYER = 0.15f;
//   public static final float ZERO_FLUX_BONUS_FRIGATE = 0.2f;
   public static final float WEAPON_HEALTH_BONUS = 75f;

   private static final Map ZeroFluxBonus = new HashMap();
   static {
      ZeroFluxBonus.put(HullSize.FRIGATE, 0.2f);
      ZeroFluxBonus.put(HullSize.DESTROYER, 0.15f);
      ZeroFluxBonus.put(HullSize.CRUISER, 0.1f);
      ZeroFluxBonus.put(HullSize.CAPITAL_SHIP, 0.05f);
   }
   
   private static final Map ZeroFluxSpeed = new HashMap();
   static {
      ZeroFluxSpeed.put(HullSize.FRIGATE, 35f);
      ZeroFluxSpeed.put(HullSize.DESTROYER, 25f);
      ZeroFluxSpeed.put(HullSize.CRUISER, 20f);
      ZeroFluxSpeed.put(HullSize.CAPITAL_SHIP, 15f);
   }
   
    @Override
    public void applyEffectsBeforeShipCreation(HullSize hullSize, MutableShipStatsAPI stats, String id) {
        
      stats.getZeroFluxMinimumFluxLevel().modifyFlat(id, (Float) ZeroFluxBonus.get(hullSize));
      stats.getZeroFluxSpeedBoost().modifyFlat(id, (Float) ZeroFluxSpeed.get(hullSize));
//      if (hullSize == HullSize.FRIGATE || hullSize == HullSize.FIGHTER) {
//         stats.getZeroFluxMinimumFluxLevel().modifyFlat(id, ZERO_FLUX_BONUS_FRIGATE);
//         stats.getZeroFluxSpeedBoost().modifyFlat(id, ZERO_FLUX_SPEED_FRIGATE);
//      } else if (hullSize == HullSize.DESTROYER) {
//         stats.getZeroFluxMinimumFluxLevel().modifyFlat(id, ZERO_FLUX_BONUS_DESTROYER);
//         stats.getZeroFluxSpeedBoost().modifyFlat(id, ZERO_FLUX_SPEED_DESTROYER);
//      } else if (hullSize == HullSize.CRUISER) {
//         stats.getZeroFluxMinimumFluxLevel().modifyFlat(id, ZERO_FLUX_BONUS_CRUISER);
//         stats.getZeroFluxSpeedBoost().modifyPercent(id, ZERO_FLUX_SPEED_CRUISER);
//      } else if (hullSize == HullSize.CAPITAL_SHIP) {
//         stats.getZeroFluxMinimumFluxLevel().modifyFlat(id, ZERO_FLUX_BONUS_CAPITAL);
//         stats.getZeroFluxSpeedBoost().modifyFlat(id, ZERO_FLUX_SPEED_CAPITAL);
//      }
      stats.getEmpDamageTakenMult().modifyPercent(id, -EMP_REDUCTION);
      stats.getEngineHealthBonus().modifyPercent(id, ENGINE_HEALTH_BONUS);
      stats.getWeaponHealthBonus().modifyPercent(id, WEAPON_HEALTH_BONUS);
    }

    @Override
    public String getDescriptionParam(int index, HullSize hullSize) {
      if (index == 0) return "" + ((Float) ZeroFluxBonus.get(HullSize.FRIGATE)).intValue();
      if (index == 1) return "" + ((Float) ZeroFluxBonus.get(HullSize.DESTROYER)).intValue();
      if (index == 2) return "" + ((Float) ZeroFluxBonus.get(HullSize.CRUISER)).intValue();
      if (index == 3) return "" + ((Float) ZeroFluxBonus.get(HullSize.CAPITAL_SHIP)).intValue();
      
      if (index == 4) return "" + ((Float) ZeroFluxSpeed.get(HullSize.FRIGATE)).intValue();
      if (index == 5) return "" + ((Float) ZeroFluxSpeed.get(HullSize.DESTROYER)).intValue();
      if (index == 6) return "" + ((Float) ZeroFluxSpeed.get(HullSize.CRUISER)).intValue();
      if (index == 7) return "" + ((Float) ZeroFluxSpeed.get(HullSize.CAPITAL_SHIP)).intValue();
      
//      if (index == 0) {
//         return "" + (int) ZERO_FLUX_BONUS_FRIGATE + "/" + (int) ZERO_FLUX_BONUS_DESTROYER + "/" + (int) ZERO_FLUX_BONUS_CRUISER + "/" + (int) ZERO_FLUX_BONUS_CAPITAL;
//      } if (index == 1) {
//         return "" + (int) ZERO_FLUX_SPEED_FRIGATE + "/" + (int) ZERO_FLUX_SPEED_DESTROYER + "/" + (int) ZERO_FLUX_SPEED_CRUISER + "/" + (int) ZERO_FLUX_SPEED_CAPITAL;
      if (index == 8) return "" + (int) EMP_REDUCTION + "%";
      if (index == 9) return "" + (int) ENGINE_HEALTH_BONUS + "%";
      if (index == 10) return "" + (int) WEAPON_HEALTH_BONUS + "%";
      return null;
    }
}
[close]

So, yeah.


Edit: I didn't expect the Emoticon to pop out of the index.

398
I like those ships, maybe a bit too obviously kitbashed on some parts but they are still quite interesting. I'd like to eventually see more of those.

Well yeah, I got some more of it, but I did worked on some modified versions of these.



And this one, with actual paint for the corresponding faction I'm making.
Spoiler


The Argonite.
[close]

I'll be posting the entire set soon, once I have enough time... or maybe when I feel like it.

399
I do, I'm working on how to make the faction and the system itself. But apparently, I don't have the experience to code the things I need to start off my favorite faction.

400
Oh hi, I just came in here to post a ship some ships of mine.



It doesn't look much, but I'm already working other ship designs right now. And yes, I'm new here.

Pages: 1 ... 25 26 [27]