Jump to content

how to use module manager to create a duplicate but modied part


starman2022

Recommended Posts

I've learned about MM and have been patching components as needed.   I'd like to duplicate and change existing parts without making copies of the config file. 

For example, to edit the existing IRSU,  

I have    @PART[ISRU]:Final {    @MODULE[ModuleResourceConverter],0    {    .... }   }

But I still have only one IRSU.  I'd like to start with the IRSU, and then make a "super IRSU" part without duplicating or editing the existing IRSU.cfg file.

Running experiments is very slow as make a change, then load the game to see the effect or look at the .log files.  Is there a way to run the MM and look at its effective output?  I C, there is a way to run the C preprocessor and see the effective .h files..

TIA 

 

https://github.com/sarbian/ModuleManager/wiki/Module-Manager-Handbook

Link to comment
Share on other sites

  • 11 months later...

I know I'm necroposting, but this thread came on the very top while I was goggling for the same thing (I'm getting old, hehe). So I decided to post an answer here so anyone getting here the same way will have the answer available:

What you want is a MM patch like this:

+PART[ISRU] 
{
  @name = IRSU_10x
  @MODULE[ModuleResourceConverter],0
  {   
    @OUTPUT_RESOURCE,0 
    {
		@Ratio = 444.0
    }
  }
}

This will copy the current ISRU part (the "+" thing), then will change it's name to IRSU_10x, then will edit the conversion ratio to 444.0 (10 times the original value, IIRC).

Keep in mind: you just created a new part, and any savegame you use it will be screwed if you delete the patch later.

I suggest you save this patch on a file called ISRU_10x.cfg, and to place this file on a directory called __LOCAL on your GameData, so you will be able to keep track of it without risking getting it deleted by accident while updating things.

<Your_KSP_Root>/GameData/__LOCAL/ISRU_10x.cfg

 

Edited by Lisias
Uh… let's pretend I didn't edited anything, ok? :)
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...