Join us at the Oolite Anniversary Party -- London, 7th July 2024, 1pm
More details in this thread.

Target Autolock OXP

Discussion and information relevant to creating special missions, new ships, skins etc.

Moderators: winston, another_commander

User avatar
Lone_Wolf
---- E L I T E ----
---- E L I T E ----
Posts: 546
Joined: Wed Aug 08, 2007 10:59 pm
Location: Netherlands

Re: Target Autolock OXP

Post by Lone_Wolf »

While TAP+ is useful, at times it can be so annoying that i remove it (and re-add later).

The main problem i have with it is when i am fighting several ships at once, and the first one that attacks is not the target i want to focus on at that time.
To get the target i want, i often have to use the u-key repeatedly.

Since there are already many oxps that use Shift+n/n , maybe the u-key can be used as a switch to enable/disable TAP+ ?

-----------------------
In a previous post you mentioned it was your intention to make the scanner colors configurable through OxpConfig once this was possible.
I think it is now possible, do you still intend to change this ?
OS : Arch Linux 64-bit - rolling release

OXPs : My user page

Retired, reachable at [email protected]
User avatar
Cody
Sharp Shooter Spam Assassin
Sharp Shooter Spam Assassin
Posts: 16073
Joined: Sat Jul 04, 2009 9:31 pm
Location: The Lizard's Claw
Contact:

Re: Target Autolock OXP

Post by Cody »

Lone_Wolf wrote:
a switch to enable/disable TAP+ ?
This would be very handy.
I would advise stilts for the quagmires, and camels for the snowy hills
And any survivors, their debts I will certainly pay. There's always a way!
User avatar
Thargoid
Thargoid
Thargoid
Posts: 5525
Joined: Thu Jun 12, 2008 6:55 pm

Re: Target Autolock OXP

Post by Thargoid »

El Viejo wrote:
Lone_Wolf wrote:
a switch to enable/disable TAP+ ?
This would be very handy.
Indeed it would, but unfortunately not possible (aside from the n/shift-n as already noted, too overcrowded). Simpler is probably just to leave the lock in place until you get your sights on the target you actually want, and only then press u followed by t or r.

If the player ship already has a target then TAP+ won't do anything.
User avatar
Svengali
Commander
Commander
Posts: 2370
Joined: Sat Oct 20, 2007 2:52 pm

Re: Target Autolock OXP

Post by Svengali »

Lone_Wolf wrote:
In a previous post you mentioned it was your intention to make the scanner colors configurable through OxpConfig once this was possible.
I think it is now possible, do you still intend to change this ?
I think it's not really easy to achieve this with the current version of OXPConfig, specially if you want to do this for more than a few colors. I could add some functionality to OXPConfig to adjust let's say 20 settings for scanner colors which are stored in an array (and maybe additional as mV). OXPs could pick up this array (or the mV) and users can adjust the colors if they want through the GUI in OXPConfig. This way different OXPs could use the same color schemes.
User avatar
Thargoid
Thargoid
Thargoid
Posts: 5525
Joined: Thu Jun 12, 2008 6:55 pm

Re: Target Autolock OXP

Post by Thargoid »

The script is configured so that you only need to change a couple of variables to change the colours (there are two variables, one for each colour). That's as close as I could come to this kind of configurability - as Svengali says doing it in any other more graphical way gets complex.
User avatar
Lone_Wolf
---- E L I T E ----
---- E L I T E ----
Posts: 546
Joined: Wed Aug 08, 2007 10:59 pm
Location: Netherlands

Re: Target Autolock OXP

Post by Lone_Wolf »

Thargoid wrote:
The script is configured so that you only need to change a couple of variables to change the colours (there are two variables, one for each colour). That's as close as I could come to this kind of configurability - as Svengali says doing it in any other more graphical way gets complex.
Check latest OxpConfig version, svengali implemented a mechanism for color choosing.
OS : Arch Linux 64-bit - rolling release

OXPs : My user page

Retired, reachable at [email protected]
User avatar
Svengali
Commander
Commander
Posts: 2370
Joined: Sat Oct 20, 2007 2:52 pm

Re: Target Autolock OXP

Post by Svengali »

Lone_Wolf wrote:
Thargoid wrote:
The script is configured so that you only need to change a couple of variables to change the colours (there are two variables, one for each colour). That's as close as I could come to this kind of configurability - as Svengali says doing it in any other more graphical way gets complex.
Check latest OxpConfig version, svengali implemented a mechanism for color choosing.
Capt. Murphy just reminded me that it's a trunk only version as it uses a HUD to display additional infos (uses equipment_required in legends) on different screens... so v2.0.8 is online too.
User avatar
Thargoid
Thargoid
Thargoid
Posts: 5525
Joined: Thu Jun 12, 2008 6:55 pm

Re: Target Autolock OXP

Post by Thargoid »

Lone_Wolf wrote:
Check latest OxpConfig version, svengali implemented a mechanism for color choosing.
I know. Unfortunately life's busy at the moment, so this will at best be "soon".
User avatar
Digital86
Competent
Competent
Posts: 34
Joined: Thu May 08, 2014 8:47 am

Re: Target Autolock OXP

Post by Digital86 »

I found a bug.
The equipment (Target Autolock Plus 1.12.oxp) is bought infinitely. And though actually it is bought, in the list of purchases it isn't visible.
My version 1.77.1
Well as a whole the device works.
My English is very poor.
User avatar
Thargoid
Thargoid
Thargoid
Posts: 5525
Joined: Thu Jun 12, 2008 6:55 pm

Re: Target Autolock OXP

Post by Thargoid »

It is a software upgrade for the scanner targeting enhancement, so will not show on the equipment list separately (by design). When bought it sets a variable in your save file which should block its repurchase.

When first bought it should set a variable to prevent repurchase. I'll check later if that has somehow broken.

Also can you look in your save game file and search for <key>mission_targetAutolock</key>. If it is there, tell me whether below it the value between the <string></string> tags.
User avatar
Digital86
Competent
Competent
Posts: 34
Joined: Thu May 08, 2014 8:47 am

Re: Target Autolock OXP

Post by Digital86 »

It is Sorry, unclear that it was.
Now everything is bought correctly. Repeated purchases aren't present more.
My English is very poor.
User avatar
Lone_Wolf
---- E L I T E ----
---- E L I T E ----
Posts: 546
Joined: Wed Aug 08, 2007 10:59 pm
Location: Netherlands

Re: Target Autolock OXP

Post by Lone_Wolf »

During playing i noticed that when "Scanner Targeting Enhancement" is damaged, autolock is removed also.

There is no message this happens, you will only notice in your next fight the autolock functionality is no longer present.
When the STE is repaired / re-bought the autolock functionality doesn't come back.

You will need to visit a tech 14+ planet to buy it again.

some ways to deal with this :
A. keep current behaviour, but add a console & log message about the removal.
A1. same as A, but lower tech level (f.e. TL 12 like the STE) for autolock device so it's easier to get it back.
B. make autolock indestructible, but non-functional without STE.

All of those require code changes.
However, Thargoid has indicated he is no longer maintaining his oxps (https://bb.oolite.space/viewtopic.php?f=2&t=16957) , so someone else needs to step up.

I could takeover this oxp (it has never left my oolite installation since i found it), but would like to have opinions of others which path to take before i take over.
OS : Arch Linux 64-bit - rolling release

OXPs : My user page

Retired, reachable at [email protected]
User avatar
Cody
Sharp Shooter Spam Assassin
Sharp Shooter Spam Assassin
Posts: 16073
Joined: Sat Jul 04, 2009 9:31 pm
Location: The Lizard's Claw
Contact:

Re: Target Autolock OXP

Post by Cody »

TAP has been in my AddOns folder for over five years - one of the first OXPs I installed...
Lone_Wolf wrote:
A. keep current behaviour, but add a console & log message about the removal.
... and I'd go with this (if it has to be changed at all, that is).
I would advise stilts for the quagmires, and camels for the snowy hills
And any survivors, their debts I will certainly pay. There's always a way!
User avatar
Fatleaf
Intergalactic Spam Assassin
Intergalactic Spam Assassin
Posts: 1988
Joined: Tue Jun 08, 2010 5:11 am
Location: In analysis mode on Phaelon
Contact:

Re: Target Autolock OXP

Post by Fatleaf »

I would also put a note in the description that warns the player that it can be destroyed so they know what's going on and that it's a feature and not a bug.
Find out about the early influences of Fatleaf here. Also his OXP's!
Holds the Ooniversal record for "Thread Necromancy"
User avatar
Diziet Sma
---- E L I T E ----
---- E L I T E ----
Posts: 6311
Joined: Mon Apr 06, 2009 12:20 pm
Location: Aboard the Pitviper S.E. "Blackwidow"

Re: Target Autolock OXP

Post by Diziet Sma »

I'd vote option B, I think.. I kind of see the TAP as a software upgrade for the STE.
Most games have some sort of paddling-pool-and-water-wings beginning to ease you in: Oolite takes the rather more Darwinian approach of heaving you straight into the ocean, often with a brick or two in your pockets for luck. ~ Disembodied
Post Reply