Jump to content

ModuleManager – ‹module-1› OR ‹module-2›


Teilnehmer

Recommended Posts

I have a .cfg file consisting of two conditions with identical bodies:

@PART[*]:HAS[@MODULE[ModuleCommand]]:Final
{
  . . .
}

@PART[*]:HAS[@MODULE[KerbalSeat]]:Final
{
  . . .
}

Can I combine them into a single condition?

I tried

@PART[*]:HAS[@MODULE[ModuleCommand]|@MODULE[KerbalSeat]]:Final
{
  . . .
}

but this didn’t work.

Edited by Teilnehmer
Link to comment
Share on other sites

@Teilnehmer Certain nodes, "root nodes" which have no parent, do not need a [*] to be used to target them all. ModuleManager even considers this bad syntax for these, and this is known to break mods that target all science experiment definitions (well, this makes perfect sense as those don't contain a Name key).

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...