#Module Manager Patch
102 messages · Page 1 of 1 (latest)
there's nothing special about "part"
@tidal grailEVER just patches all of the top-level WHATEVER nodes it finds
...sorry for ping
if you haven't found it yet, the docs are useful, though sometimes incomplete: https://github.com/sarbian/ModuleManager/wiki/Module-Manager-Handbook
thx. sspx is done. But i dont get the patch for planetside to work (planetside ls patch from benjee)
@MMSEV_TAC_LS
{
@PART[Benjee10_MMSEV_baseGreenhouse]:NEEDS[TacLifeSupport]
{
@MODULE[TacGenericConverter]:AFTER[Benjee10_MMSEV]
{
@OUTPUT_RESOURCE
{
ResourceName = Food
Ratio = 0.00001925
DumpExcess = false
}
}
}
}
my patch
you can't have :AFTER on a non-top-level node
move that up to the first line
um
and I don't understand why you have a non-top-level @PART
becasue i want to edit the greenhouse converter, in that patch are multiple "TacGenericConverter". how would i specify that
but the PART isn't inside MMSEV_TAC_LS, is it?
the part configs is saved somewhere eles
@MMSEV_TAC_LS
{
@PART[Benjee10_MMSEV_baseGreenhouse]:NEEDS[TacLifeSupport]
that says "find a PART node inside a MMSEV_TAC_LS node"
PARTs generally aren't inside other things
yeah. but i tryed it without the @MMSEV_TAC_LS
{
then you did something else wrong
and it dident worked
like the AFTER is in the wrong place
so it have to be spmething like that
@PART[Benjee10_MMSEV_baseGreenhouse]:NEEDS[TacLifeSupport]:AFTER[Benjee10_MMSEV]
{
@MODULE[TacGenericConverter]
{
@OUTPUT_RESOURCE
{
ResourceName = Food
Ratio = 0.00001925
DumpExcess = false
}
}
}
the output_resource block looks suspect
are you trying to add a new output or replace an existing one?
i just want to increase the food output for now
for that matter, does the part already have this converter module or are you trying to add one?
oh I see
the coverter gets added with that #1095682055863537685 message
@OUTPUT_RESOURCE is going to target the first one it finds, so you need to specify the one you actually want: @OUTPUT_RESOURCE:HAS[#ResourceName[Food]]
and then all the keys inside need @ at the front, or else it will just add them
and you don't actually have to specify the resourcename and dumpexcess because you aren't changing them
so?
@PART[Benjee10_MMSEV_baseGreenhouse]:NEEDS[TacLifeSupport]:AFTER[Benjee10_MMSEV]
{
@OUTPUT_RESOURCE:HAS[#ResourceName[Food]]
{
ResourceName = Food
Ratio = 0.00001925
DumpExcess = false
}
}
and then all the keys inside need @ at the front, or else it will just add them
and you don't actually have to specify the resourcename and dumpexcess because you aren't changing them
@PART[Benjee10_MMSEV_baseGreenhouse]:NEEDS[TacLifeSupport]:AFTER[Benjee10_MMSEV]
{
@OUTPUT_RESOURCE:HAS[#ResourceName[Food]]
{
@ResourceName = Food
@Ratio = 0.00001925
@DumpExcess = false
}
}
yes, except you could just delete the ones you're not changing
so removing DumpExcess = false
and resourcename
got that now, dident worked @PART[Benjee10_MMSEV_baseGreenhouse]:NEEDS[TacLifeSupport]:AFTER[Benjee10_MMSEV]
{
@OUTPUT_RESOURCE:HAS[#ResourceName[Food]]
{
@Ratio = 0.00001925
}
}
ok, check the logs for the name of your patch and see when/where it applied
oh you know what
I don't think any of the planetside patches use FOR[Benjee10_MMSEV] so you can't use AFTER with that token
I could be wrong about that; but check ksp.log for a marker like :FOR[Benjee10_MMSEV] pass
i have that line
also :AFTER
ah ok, I just re-read the docs and it should be fine
[LOG 17:15:42.450] Applying update zMein Zeugs/Greenhous/@PART[Benjee10_MMSEV_baseGreenhouse]:NEEDS[TacLifeSupport]:AFTER[Benjee10_MMSEV] to Benjee10_MMSEV/Parts/base_greenhouse.cfg/PART[Benjee10_MMSEV_baseGreenhouse]
ok that's good
search for the part name and make sure that your patch got applied after the base support patch
and check to see if any other patches are affecting that part
so if my pathc comes afeter the patch of benjee and no other patch is patching my patch
I would expect it to work, yeah
but patches don't patch other patches, they just patch the current set of data
so you're looking for other patches that touch the same part
and you're sure the patch isn't applying? you can look in modulemanager.configcache to see the final state of all nodes after patching applies
that log doesn't contain "Benjee10_MMSEV_baseGreenhouse" anywhere
it's not done loading
i right. i launched ksp in an accident and worked with full log
well, there are 4 patches in total:
8217 [LOG 17:40:24.775] Applying update Benjee10_MMSEV/Patches/TAC/MMSEV_TAC_LS/@PART[Benjee10_MMSEV_baseGreenhouse]:NEEDS[TacLifeSupport] to Benjee10_MMSEV/Parts/base_greenhouse.cfg/PART[Benjee10_MMSEV_baseGreenhouse]
8270 [LOG 17:40:24.800] Applying update zMein Zeugs/Greenhous/@PART[Benjee10_MMSEV_baseGreenhouse]:NEEDS[TacLifeSupport] to Benjee10_MMSEV/Parts/base_greenhouse.cfg/PART[Benjee10_MMSEV_baseGreenhouse]
8397 [LOG 17:40:24.923] Applying update ThunderAerospace/TacLifeSupport/MM_AddLifeSupportModule/@PART[*]:HAS[#CrewCapacity[>0],!MODULE[LifeSupportModule]]:FOR[TacLifeSupport] to Benjee10_MMSEV/Parts/base_greenhouse.cfg/PART[Benjee10_MMSEV_baseGreenhouse]
8576 [LOG 17:40:25.009] Applying update B9PartSwitch/PartInfo/@PART[*]:HAS[@MODULE[ModuleB9PartSwitch]]:FOR[zzzzzz-B9PartSwitch] to Benjee10_MMSEV/Parts/base_greenhouse.cfg/PART[Benjee10_MMSEV_baseGreenhouse]
the b9ps one probably isn't interesting, but it's worth looking at the TACLS one
for what do i have to search in th MMcache?
ok in the MM config its the old value
dumb question, but did you forget to save your cfg patch after editing it?
because in the log file it doesn't include the AFTER part
nope. the sspx is in the same config but gets loadede
it's not the same patch you showed here
looks like i had the after deleted
added :AFTER[Benjee10_MMSEV], no change
@PART[Benjee10_MMSEV_baseGreenhouse]:NEEDS[TacLifeSupport]:AFTER[Benjee10_MMSEV]
{
@OUTPUT_RESOURCE:HAS[#ResourceName[Food]]
{
@Ratio = 0.00001925
}
}
also if i edit the value in the benjee patch manually the manual edit gets applyed
OH
we forgot about the TacGenericConverter module
the @OUTPUT_RESOURCE node has to be inside @MODULE[TacGenericConverter] {}
you had that in the first version but removed it
@PART[Benjee10_MMSEV_baseGreenhouse]:NEEDS[TacLifeSupport]:AFTER[Benjee10_MMSEV]
{
MODULE[TacGenericConverter]
{
@OUTPUT_RESOURCE:HAS[#ResourceName[Food]]
{
@Ratio = 0.00001925
}
}
}
so?
need @ before MODULE
right
but yeah that looks right
yes. it works
thx
semse like the sspx patch wasent working
@SSPXR-ROOT-TACGREENHOUSE:NEEDS[TacLifeSupport,PlanetarySurfaceStructures]:AFTER[StationPartsExpansionRedux]
{
@MODULE[TacGenericConverter]
{
@OUTPUT_RESOURCE:HAS[#ResourceName[Food]]
{
@Ratio = 0.0000333927083
}
}
}
well, you have a MODULE patch inside something that isn't a PART
yes, how do i handle that?
look at your other patch that worked
so i have to patch all 4 parts invidual.
Not necessarily
you can do @PART[a|b|c]
but if they have different ratios..
you can do math like @Ratio *= 5
that would increase the output by five, right