Fractal Softworks Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

Starsector 0.97a is out! (02/02/24); New blog post: Simulator Enhancements (03/13/24)

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 - Ithoqua

Pages: [1]
1
Mods / Re: [0.8.1a] Shadowyards Reconstruction Authority 0.6.1.2c
« on: September 02, 2017, 03:14:32 PM »
First, let me say I like the style of the ships and the fact that they're shield centric defensively. I've found a couple of things, one was definitely a bug and the other might be an oversight or might be intentional, I'm not sure.

First thing I noticed is that the Skadi is the only military ship variant that has a shield that does NOT have the Harmonic Shield Conduits built in hull mod.

The second thing is a bug in the AI for the RETRO drive. I noticed this in the Clade. If you install shield bypass and let AI pilot it crashes with a pretty obvious error. I fixed the script in my version which I'll share. You were trying to check if the shield was on or off without checking if the ship had a shield in the first place. This is how I fixed it in my copy;

boolean shield_on = false;
if (ship.getShield() != null) shield_on = ship.getShield().isOn();

if (!nearbyThreats.isEmpty() && shield_on && fluxer.getCurrFlux() >= fluxer.getMaxFlux() * 0.8f && incoming >= fluxer.getMaxFlux() * 0.2f || !nearbyThreats.isEmpty() && !shield_on && incoming >= (ship.getHitpoints() * 0.25f ) || ship.getAIFlags().hasFlag(ShipwideAIFlags.AIFlags.RUN_QUICKLY) &&  !AIUtils.getNearbyEnemies(ship, RANGE_TO_CHECK).isEmpty() && clear == true)
{
    shouldUseSystem = true;
}

I'm sure you could solve this issue in other ways. This is just one suggestion.

Pages: [1]