Fractal Softworks Forum
September 22, 2017, 10:44:10 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: New blog post: Economy & Outposts (9/19/17); Starsector 0.8.1a is out!
 
   Home   Help Search Login Register  
Pages: [1] 2 3 4
  Print  
Author Topic: [0.8.1a] Leading Pip 1.8.1  (Read 33697 times)
Dark.Revenant
Admiral
*****
Posts: 2275



View Profile WWW Email
« on: April 19, 2014, 08:24:12 PM »

(Requires LazyLib 2.2)

We also recommend Version Checker to notify you when an update is ready.


The image kind of speaks for itself, but to clarify, this mod adds a target leading pip in front of whatever ship you have targeted.  If you shoot at that pip, you will generally hit the target.  The algorithm takes into account your position and velocity, your target's position and velocity, your weapon group, the positions of the weapons in the weapon group, and the projectile speed of the weapons in the weapon group.  Sometimes the target will be going too quickly to have any hope of hitting it, in which case the reticle may behave oddly, but this is rare.

Controls, colors, size, and line thickness are customizable.

Change Log
Version 1.8.1 (June 4, 2017):
- Various bugs fixed
- Works in Starsector 0.8.1a

Version 1.8.0 (April 22, 2017):
- Started change tracking
- Various bugs fixed
- Works in Starsector 0.8a
« Last Edit: June 11, 2017, 09:38:05 PM by Dark.Revenant » Logged

Nanao-kun
Admiral
*****
Posts: 784



View Profile Email
« Reply #1 on: April 19, 2014, 08:30:11 PM »

Woah, that's pretty cool.

EDIT: Tried it, works great. Good if you aren't particularly good at leading targets, and you can technically extrapolate particular parts of the ship to hit using it. Is the pip based from the center of the target?
« Last Edit: April 19, 2014, 08:58:16 PM by Nanao-kun » Logged
MesoTroniK
Admiral
*****
Posts: 1095


I am going to destroy your ships


View Profile
« Reply #2 on: April 19, 2014, 09:00:12 PM »

Logged

Nanao-kun
Admiral
*****
Posts: 784



View Profile Email
« Reply #3 on: April 19, 2014, 09:12:13 PM »


Bit hard to deal with those jumpy ships it seems. Tongue
Logged
Dark.Revenant
Admiral
*****
Posts: 2275



View Profile WWW Email
« Reply #4 on: April 19, 2014, 09:25:34 PM »

Slight compatibility bug with Combat Radar.  Update Leading Pip to 1.1 (and grab the next Combat Radar as well) and it will be resolved.
Logged

Debido
Admiral
*****
Posts: 1183



View Profile
« Reply #5 on: April 19, 2014, 10:01:23 PM »

Lazy's Combat Radar and DR's Targeting PIP - for when you need the right information to kill the right ship at the right time.

Loving it.
Logged
Piemanlives
Commander
***
Posts: 132



View Profile Email
« Reply #6 on: April 19, 2014, 10:41:00 PM »

While I personally wouldn't use this, it is however certainly well executed and rather nifty.
Logged

This is called me throwing my missile swarm at you, and by swarm I mean massacre, and by missiles... I actually just mean missiles, there's actually not much to it really.
HELMUT
Admiral
*****
Posts: 1286



View Profile
« Reply #7 on: April 22, 2014, 03:30:25 PM »

Just noticed that it make the game crash when you target an enemy but have no weapons.
Logged

Dark.Revenant
Admiral
*****
Posts: 2275



View Profile WWW Email
« Reply #8 on: April 22, 2014, 07:02:06 PM »

Indeed.  I fixed that in a dev version but didn't get around to uploading it until now because of my shader work.
Logged

Aklyon
Commander
***
Posts: 191



View Profile
« Reply #9 on: April 23, 2014, 05:25:13 AM »

This is pretty nifty.
Logged

Ranakastrasz
Captain
****
Posts: 450


Prince Corwin of Amber


View Profile
« Reply #10 on: April 24, 2014, 12:36:32 PM »

Current version still crashes, and still is labled as 1.0
Logged

I think is easy for Simba and Mufasa sing the Circle of Life when they're on the top of the food chain, I bet the zebras hate that song.

Cigarettes are a lot like hamsters. Perfectly harmless, until you put one in your mouth and light it on fi
Dark.Revenant
Admiral
*****
Posts: 2275



View Profile WWW Email
« Reply #11 on: April 24, 2014, 01:06:38 PM »

If this version doesn't fix it, the crash is completely unfixable by any means whatsoever.
Logged

Ranakastrasz
Captain
****
Posts: 450


Prince Corwin of Amber


View Profile
« Reply #12 on: April 24, 2014, 03:24:24 PM »

Code:
36248 [Thread-5] ERROR com.fs.starfarer.combat.O0OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO  - java.lang.IndexOutOfBoundsException: Index: 2, Size: 2
java.lang.IndexOutOfBoundsException: Index: 2, Size: 2
at java.util.ArrayList.rangeCheck(Unknown Source)
at java.util.ArrayList.get(Unknown Source)
at data.scripts.plugins.TargetingLeadIndicator.advance(TargetingLeadIndicator.java:154)
at com.fs.starfarer.title.ooOO.K$Oo.o00000(Unknown Source)
at com.fs.starfarer.combat.oOOO.new.super(Unknown Source)
at com.fs.starfarer.combat.CombatEngine.advance(Unknown Source)
at com.fs.starfarer.combat.G.??00(Unknown Source)
at com.fs.oOOO.A.?0000(Unknown Source)
at com.fs.starfarer.combat.O0OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO.o00000(Unknown Source)
at com.fs.starfarer.StarfarerLauncher$2.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

Assuming it can't then be fixed, that is kinda disappointing, since it is a really helpful mod. It is mostly usable, so long as you don't ever pilot a capital ship with all weapons set to autofire.

~To cause, I just use a ship, and set my selected weapon group to one past the last weapon group, then target an enemy.

~~Looking at the code, while I cannot be certain, I don't think you have a check for having a group past the last one. However, I am not sufficiently familiar with Starsector's API, so it is indeterminate.
« Last Edit: April 24, 2014, 03:28:47 PM by Ranakastrasz » Logged

I think is easy for Simba and Mufasa sing the Circle of Life when they're on the top of the food chain, I bet the zebras hate that song.

Cigarettes are a lot like hamsters. Perfectly harmless, until you put one in your mouth and light it on fi
Dark.Revenant
Admiral
*****
Posts: 2275



View Profile WWW Email
« Reply #13 on: April 24, 2014, 03:28:31 PM »

You should have mentioned what caused the crash in the first place; I was assuming it was the same cause as before (a ship without weapons).  I'll get it fixed once I get home.

You must understand that this entire mod is a slapjob I did in my spare time to demonstrate the intercept method I implemented for LazyLib.
« Last Edit: April 24, 2014, 03:30:16 PM by Dark.Revenant » Logged

Ranakastrasz
Captain
****
Posts: 450


Prince Corwin of Amber


View Profile
« Reply #14 on: April 24, 2014, 03:29:32 PM »

Yea, that was a mistake on my part. I was not thinking correctly, and misread it as not having a weapon selected.

Sorry about that.
Logged

I think is easy for Simba and Mufasa sing the Circle of Life when they're on the top of the food chain, I bet the zebras hate that song.

Cigarettes are a lot like hamsters. Perfectly harmless, until you put one in your mouth and light it on fi
Pages: [1] 2 3 4
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.20 | SMF © 2006-2011, Simple Machines
Simple Audio Video Embedder
Valid XHTML 1.0! Valid CSS!