Jump to content

[1.8.x-1.12.x] Module Manager 4.2.3 (July 03th 2023) - Fireworks season


sarbian

Recommended Posts

Hello I am having trouble writing a config file for an engine in rocket motor menagerie. What i would like to do is increase the thrust and its subtype as well. But I just can't seem to get it to work. The config file is in a separate mod called Myconfigs with a folder inside it called Patches and the config is in that folder. I would appreciate any help. I have attached the config at the bottom.                                    

@PART[rmm_cotopaxi]:NEEDS[RocketMotorMenagerie]
{
    @MODULE[ModuleB9PartSwitch]
    {
        @Subtype[RS-53]
        {        

            @description = <b>Thrust:</b> 1962 kN ASL / 2421 kN Vac.\n<b Isp:</b> 368 s ASL / 454 s Vac.
            @maxThrust = 2421 // kN

            }

        @Subtype[ssme_BlockIII]
        {        

            @description = <b>Thrust:</b> 1962 kN ASL / 2421 kN Vac.\n<b Isp:</b> 368 s ASL / 454 s Vac.
            @maxThrust = 2421 // kN

            }

        @Subtype[ssme_BlockII]
        {        

            @description = <b>Thrust:</b> 1962 kN ASL / 2421 kN Vac.\n<b Isp:</b> 368 s ASL / 454 s Vac.
            @maxThrust = 2421 // kN

            }

        @Subtype[ssme_Block1]
        {        

            @description = <b>Thrust:</b> 1962 kN ASL / 2421 kN Vac.\n<b Isp:</b> 368 s ASL / 454 s Vac.
            @maxThrust = 2421 // kN

            }

        @Subtype[ssme_FOMF]
        {        

            @description = <b>Thrust:</b> 1962 kN ASL / 2421 kN Vac.\n<b Isp:</b> 368 s ASL / 454 s Vac.
            @maxThrust = 2421 // kN

            }
    }
}
 

Link to comment
Share on other sites

33 minutes ago, AerospaceBricks said:

Hello I am having trouble writing a config file for an engine in rocket motor menagerie. What i would like to do is increase the thrust and its subtype as well. But I just can't seem to get it to work. The config file is in a separate mod called Myconfigs with a folder inside it called Patches and the config is in that folder. I would appreciate any help. I have attached the config at the bottom.                                    
 

You need to match the name of the descriptionDetail field in the patch and correctly nest the maxThrust field. Then since you're applying the same change to all the subtypes you can use ,* to match them all provided you add a has clause to identify the correct B9PartSwitch.

Here's the modified patch (untested):

@PART[rmm_cotopaxi]:NEEDS[RocketMotorMenagerie]
{
	@MODULE[ModuleB9PartSwitch]:HAS[#moduleID[engineSwitch]]
	{
		@SUBTYPE,*
		{        
			@descriptionDetail = <b>Thrust:</b> 1962 kN ASL / 2421 kN Vac.\n<b Isp:</b> 368 s ASL / 454 s Vac.
			@MODULE
			{
				@DATA
				{
					@maxThrust = 2421 // kN
				}
			}
		}
	}
}

 

Link to comment
Share on other sites

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