Jump to content

Need help with Module Manager cfg


Recommended Posts

I have this module and I would like it to be added to all parts with the "vesselType = Probe" line but only if ProbeLowPower mod is installed.

MODULE
	{
		name = ProbeLowPower
		lowPowerRatio = 0.005
	}

I think the MM cfg has to look something like this but not sure, can someone tell me if this is right/what the right cfg would be.

@PART:NEEDS[ProbeLowPower], :HAS[vesselType[Probe]]
MODULE
	{
		name = ProbeLowPower
		lowPowerRatio = 0.005
	}

Thanks :)

Link to comment
Share on other sites

For future reference, Module Manager thread is a better location for these Q's

- Added '[*]' to check the conditions against all parts
- NEEDS goes last
- value check uses '#' in HAS
- extra pair of curlies at PART level

@PART[*]:HAS[#vesselType[Probe]]:NEEDS[ProbeLowPower]
{
	MODULE
	{
		name = ProbeLowPower
		lowPowerRatio = 0.005
	}
}

I would also suggest that a check for ModuleCommand as well with a minimum crew value of 0 would be a more reliable way of detecting probe cores (or rather, parts that can control a vessel without a Kerbal present)

@PART[*]:HAS[@MODULE[ModuleCommand]:HAS[#minimumCrew[0]]]:NEEDS[ProbeLowPower]

And if ProbeLowPower is the mod you are distributing it as, that should be a FOR, not NEEDS

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...