Jump to content

How to edit multiple parts/nodes at once with ModuleManger?


Recommended Posts

I'm attempting to write some life support patches that doubles the amount of resources packed, like so:

// JNSQ days are twice as long, double resources to compensate
@PART[Part1|Part2|Part3]:NEEDS[JNSQ&TacLifeSupport]:FINAL
{
    @RESOURCE[Food|Water|Oxygen|CarbonDioxide|Waste|WasteWater]
    {
        @maxAmount *= 2
    }
    @RESOURCE[Food|Water|Oxygen]
    {
        @amount *= 2
    }
}

However, it does not do anything. Is it possible to specify multiple nodes at once, or must I write each resource and part out separately? The ModuleManager wiki says that wildcards can be used, but does not mention explicitly specifying multiple parts.

Thanks!

Link to comment
Share on other sites

  • 2 weeks later...

try simplifying -  do only one resource at first - to make sure the patch is working - then add complexity. The original patch (here) does everything one at a time. What you want to do (all at once) should be able to be done - suggest just start simple and work towards complex.

also the '|' (pipe) means OR - when you mean to use is ',' (and) - at least in the @PART and maybe even in the @RESOURCE

suggest replacing :FINAL with :AFTER[TacLifeSupport]

 

Link to comment
Share on other sites

Thank you for the advice! I don't have the time to work on this right now, but I'll see what I can figure out.

Re "," for @RESOURCE: I tried that after I posted this, but it seemed to apply to only the first resource listed (and yes, this was with only 1 part being patched).

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