B9PartSwitch icon indicating copy to clipboard operation
B9PartSwitch copied to clipboard

"Could not find matching module" check occurs before all MM patching is done?

Open Gordon-Dry opened this issue 2 years ago • 2 comments

That ominous message even appears when the IDENTIFIER is properly patched, as if the check occurs before all MM patching is done.

Examples for proper patches:

RealActiveRadiators

@PART[*]:HAS[@MODULE[ModuleRealActiveRadiator],@MODULE[ModuleB9PartSwitch]]:NEEDS[B9PartSwitch]:AFTER[RealActiveRadiators]
{
	@MODULE[ModuleB9PartSwitch],*:HAS[@SUBTYPE:HAS[@MODULE:HAS[@IDENTIFIER[ModuleActiveRadiator]]]]
	{
		@SUBTYPE,*:HAS[@MODULE:HAS[@IDENTIFIER[ModuleActiveRadiator]]]
		{
			@MODULE:HAS[@IDENTIFIER[ModuleActiveRadiator]]
			{
				@IDENTIFIER[ModuleActiveRadiator]
				{
					@name = ModuleRealActiveRadiator
				}
				@DATA:HAS[#maxEnergyTransfer[>0]]
				{
					maxCryoEnergyTransfer = #$maxEnergyTransfer$
					@maxCryoEnergyTransfer /= 500
				}
			}
		}
	}
}

zKerbalismSystemHeat

@PART[radiator-microchannel-fixed-*]:NEEDS[Kerbalism,B9PartSwitch]:AFTER[SystemHeat]
{
	@MODULE[ModuleB9PartSwitch]:HAS[#moduleID[sizeSwitch]]
	{
		@SUBTYPE,*
		{
			@MODULE
			{
				@IDENTIFIER
				{
					@name = SystemHeatRadiatorKerbalism
				}
			}
		}
	}
} 

Gordon-Dry avatar Dec 12 '21 00:12 Gordon-Dry

To avoid misunderstandings: Those are two examples, those two mods are NOT installed together, so it's either RealActiveRadiators OR SystemHeat (+ Kerbalism stuff). But in either case the message appears, caption "Could not find matching module".

Gordon-Dry avatar Dec 12 '21 01:12 Gordon-Dry

Can you include the log from a run where this happened?

blowfishpro avatar Jan 18 '22 16:01 blowfishpro