no TARGET_LOST to stations in 1.76?

For test results, bug reports, announcements of new builds etc.

Moderators: winston, another_commander, Getafix

Post Reply
User avatar
Commander McLane
---- E L I T E ----
---- E L I T E ----
Posts: 9520
Joined: Thu Dec 14, 2006 9:08 am
Location: a Hacker Outpost in a moderately remote area
Contact:

no TARGET_LOST to stations in 1.76?

Post by Commander McLane »

It seems that stations don't get a TARGET_LOST when they're in defense mode and their target is leaving scanner range. Or at any point afterwards. Therefore a OXP station of mine never again leaves its defense mode if the attacker is running away. The shipTargetLost handler also doesn't fire.

The message gets sent and the handler fires if the target cloaks, even if it's already at the other end of the system.

This is different from their defense ships (or other attacking ships), who get a TARGET_LOST immediately if their target leaves their scanner range.

I think this is a bug. Or is there a reasoning behind it? In that case I'd have to work around it by the station's script (start a timer as soon as the target is acquired and check for its distance periodically).
User avatar
Micha
Commodore
Commodore
Posts: 815
Joined: Tue Sep 02, 2008 2:01 pm
Location: London, UK
Contact:

Re: no TARGET_LOST to stations in 1.76?

Post by Micha »

I'd concur that it sounds like it's a bug; although it seems to me that a normal stations' scanner-range should be Aegis range. After all the main station will defend someone if they are attacked within Aegis.
Smaller stations (Rock Hermits etc) should probably only have normal scanner range.
The glass is twice as big as it needs to be.
User avatar
Eric Walch
Slightly Grand Rear Admiral
Slightly Grand Rear Admiral
Posts: 5536
Joined: Sat Jun 16, 2007 3:48 pm
Location: Netherlands

Re: no TARGET_LOST to stations in 1.76?

Post by Eric Walch »

Commander McLane wrote:
It seems that stations don't get a TARGET_LOST when they're in defense mode and their target is leaving scanner range. Or at any point afterwards. Therefore a OXP station of mine never again leaves its defense mode if the attacker is running away. The shipTargetLost handler also doesn't fire.
I think that is correct behaviour for the default stationAI. Stations start in 'performIdle' and within the AI there is no command that changes its behaviour. So, even in high alert status, the behaviour is still 'behaviour_idle' and this behaviour does not track targets, or reacts on losing a target.

You could try to have an custom AI for your station were you change the behaviour from idle with "performHold". That will change behaviour to "behaviour_track_target" and than it will send lost messages on losing target. I have no idea how this behaviour will affect rotating stations but I don't see a reason why it should fail. This behaviour has just more overhead in calculations than the idle behaviour. For carriers its effective to tracking targets.

I think changing the first AI lines of the default station AI to

Code: Select all

	"DEFENSE_MODE" =
	{
		ENTER = (performHold, checkTargetLegalStatus);
Should do the trick. Behaviour will turn to idle after loosing the target. (Untested though)
User avatar
Commander McLane
---- E L I T E ----
---- E L I T E ----
Posts: 9520
Joined: Thu Dec 14, 2006 9:08 am
Location: a Hacker Outpost in a moderately remote area
Contact:

Re: no TARGET_LOST to stations in 1.76?

Post by Commander McLane »

Interesting. I had no idea that this was a byproduct of idling. Thanks for the info!
Eric Walch wrote:
You could try to have an custom AI for your station were you change the behaviour from idle with "performHold". That will change behaviour to "behaviour_track_target" and than it will send lost messages on losing target. I have no idea how this behaviour will affect rotating stations but I don't see a reason why it should fail.
Unfortunately there are unwanted side effects: the station faces me and stops rotating.
User avatar
CommonSenseOTB
---- E L I T E ----
---- E L I T E ----
Posts: 1397
Joined: Wed May 04, 2011 10:42 am
Location: Saskatchewan, Canada

Re: no TARGET_LOST to stations in 1.76?

Post by CommonSenseOTB »

Commander McLane wrote:
Unfortunately there are unwanted side effects: the station faces me and stops rotating.
Got a magnet in your pocket? :lol:

Sorry, just thought that was funny. :)
Take an idea from one person and twist or modify it in a different way as a return suggestion so another person can see a part of it that can apply to the oxp they are working on.


CommonSense 'Outside-the-Box' Design Studios Ltd.
WIKI+OXPs
Post Reply