Author Topic: Default Subsystem Targeting?  (Read 2398 times)

0 Members and 1 Guest are viewing this topic.

Offline oliacym

  • 24
Default Subsystem Targeting?
Okay, once again I turn to superior minds for the answer. Basically I've made a ship, given it engine subsystems, and it works fine in-game. The thing is, it has 3 engine subsystems, and when I go to target its subsystems, the first to be targeted is engine02. Is there any way of controlling which one is targeted first?

On a related note, when I target a capship, it immediately targets a subsystem (a turret). How does this work? If I give my ship a turret, will it automatically target that subsystem if I give it the capship flag?

Thanks guys :)

 

Offline Arpit

  • 27
Re: Default Subsystem Targeting?
Okay, once again I turn to superior minds for the answer. Basically I've made a ship, given it engine subsystems, and it works fine in-game. The thing is, it has 3 engine subsystems, and when I go to target its subsystems, the first to be targeted is engine02. Is there any way of controlling which one is targeted first?

AFAIK it depends on the ordering of subsystems in tables.

For e.g. in Deimos table entry:

Code: [Select]
$Subsystem:                     engine01, 5,0.0
$Engine Wash: Default300
$Subsystem:                     engine02, 5,0.0
$Engine Wash: Default300
$Subsystem:                     engine03, 5,0.0
$Engine Wash: Default300
$Subsystem:                     communications, 5,0.0
$Subsystem:                     sensors, 5,0.0
$Subsystem:                     navigation, 5,0.0
$Subsystem:                     weapons, 5,0.0

engine01 has been specified first, so the subsystem you will target first is Engine01. After that Engine02 and then Engine03.

On a related note, when I target a capship, it immediately targets a subsystem (a turret). How does this work? If I give my ship a turret, will it automatically target that subsystem if I give it the capship flag?

IIRC it also works for ships with "cruiser" flag, though I have seen it work on ships with "transport" flag too.

 

Offline The E

  • He's Ebeneezer Goode
  • 213
  • Nothing personal, just tech support.
    • Steam
    • Twitter
Re: Default Subsystem Targeting?
I think that's general behaviour for all vessels that are neither fighters nor bombers.
If I'm just aching this can't go on
I came from chasing dreams to feel alone
There must be changes, miss to feel strong
I really need lifе to touch me
--Evergrey, Where August Mourns

 

Offline Arpit

  • 27
Re: Default Subsystem Targeting?
I think that's general behaviour for all vessels that are neither fighters nor bombers.

... and sentry guns too.  :nervous:

 

Offline oliacym

  • 24
Re: Default Subsystem Targeting?
Quote
AFAIK it depends on the ordering of subsystems in tables.

Thankyou for the reply! Yeah, I thought that would be the case, unfortunately for some reason doesn't seem to be working. Here's the relevant section of my tbl file:

Code: [Select]
$Flags:                 ( "cruiser" )
$AI Class:              Captain
$Afterburner:           YES
$Countermeasures:       0
$Scan time:             15000
$EngineSnd: 134                   ;; Engine sound of ship
$Closeup_pos:           0.0, 0.0, -300
$Closeup_zoom:          0.5
$Score:     250

$Subsystem: engine01,                 0.1,0.0
$Subsystem: engine02,                 0.1,0.0
$Subsystem: engine03,                 0.1,0.0

#End

Not only is the first subsystem to be targeted engine02, but it starts with no subsystem selected, despite being flagged as a cruiser. Am I missing something basic? Many thanks!

 

Offline Arpit

  • 27
Re: Default Subsystem Targeting?
Quote
AFAIK it depends on the ordering of subsystems in tables.

Thankyou for the reply! Yeah, I thought that would be the case, unfortunately for some reason doesn't seem to be working. Here's the relevant section of my tbl file:

Code: [Select]
$Flags:                 ( "cruiser" )
$AI Class:              Captain
$Afterburner:           YES
$Countermeasures:       0
$Scan time:             15000
$EngineSnd: 134                   ;; Engine sound of ship
$Closeup_pos:           0.0, 0.0, -300
$Closeup_zoom:          0.5
$Score:     250

$Subsystem: engine01,                 0.1,0.0
$Subsystem: engine02,                 0.1,0.0
$Subsystem: engine03,                 0.1,0.0

#End

Not only is the first subsystem to be targeted engine02, but it starts with no subsystem selected, despite being flagged as a cruiser. Am I missing something basic? Many thanks!

That's odd.  :wtf:

Leave your model for the time being and check in FS2, whether its working or not.

For example,

You could use the Aeolus, Fenris or Leviathan,etc. (as they have only "cruiser" flag) to see whether turrets are automatically targeted.

And for the subsystem targeting order you could use the Deimos.

Also with which key are you targeting your cruiser?

 

Offline oliacym

  • 24
Re: Default Subsystem Targeting?
Quote
You could use the Aeolus, Fenris or Leviathan,etc. (as they have only "cruiser" flag) to see whether turrets are automatically targeted.

And for the subsystem targeting order you could use the Deimos.

Also with which key are you targeting your cruiser?

Thanks, I'll give it a go with some of those other ships. I'm just using the 'Y' and 'H' keys, and then 'S' to target subsystems, but I'll try it with the other ones and report back!

 

Offline The E

  • He's Ebeneezer Goode
  • 213
  • Nothing personal, just tech support.
    • Steam
    • Twitter
Re: Default Subsystem Targeting?
I'll look up the real targeting hierarchy later, when I have access to the code again. There are a few paths that this can go through.
If I'm just aching this can't go on
I came from chasing dreams to feel alone
There must be changes, miss to feel strong
I really need lifе to touch me
--Evergrey, Where August Mourns

 

Offline oliacym

  • 24
Re: Default Subsystem Targeting?
Quote
You could use the Aeolus, Fenris or Leviathan,etc. (as they have only "cruiser" flag) to see whether turrets are automatically targeted.

And for the subsystem targeting order you could use the Deimos.

Well it seems to work as expected for those ships - however, mine is still doing the same weird behaviour. It may be something in my POF file, as detail0 has a LOT of sub-objects, maybe that throws it off, I dunno. I'll remake the POF and see if that fixes the issue, then report back. Thanks for all the help guys!

 

Offline Arpit

  • 27
Re: Default Subsystem Targeting?
Quote
You could use the Aeolus, Fenris or Leviathan,etc. (as they have only "cruiser" flag) to see whether turrets are automatically targeted.

And for the subsystem targeting order you could use the Deimos.

Well it seems to work as expected for those ships - however, mine is still doing the same weird behaviour. It may be something in my POF file, as detail0 has a LOT of sub-objects, maybe that throws it off, I dunno. I'll remake the POF and see if that fixes the issue, then report back. Thanks for all the help guys!

Could you share the POF file? A experience modeller will probably fix your problem and tell what the fix was.