Jump to content

Need help creating Module Manager patch


Greavsie93

Recommended Posts

Hi, I'm new here and trying to make my first mod. I believe this is in the right place to post this, apologies if not.

I need help to multiply the fuel in all fuel tanks by ten. Reason for this is to use RSS with stock fuel, and in my mind multiplying the amount of fuel will allow me to do this, right? Simply put, I want to play in RSS with the stock difficulty, and increasing the fuel amount without effecting other values seems like the simplest way of achieving this.

I know I need to use Module Manager, and I have worked out how to edit the parts that use fuel resources and edit the amount and maxAmount values but cannot figure out how to multiply the stock maxAmount by ten.

Can anyone help me with this please?

Link to comment
Share on other sites

To do this in Module Manager you're going to want to use the Multiplier. It's *=

I'm by no means sure if this code will work, but it should be at least close. And it shows how the multiplier works.

@PART[*]:HAS[RESOURCE[LiquidFuel]]
{
	@RESOURCE[LiquidFuel]
	{
		amount *= 10
		maxAmount *= 10
	}
}

@PART[*]:HAS[RESOURCE[Oxidizer]]
{
	@RESOURCE[Oxidizer]
	{
		amount *= 10
		maxAmount *= 10
	}
}

 

Link to comment
Share on other sites

33 minutes ago, Phineas Freak said:

A much simpler solution would be to get SMURF. It will do exactly what you are looking for.

Thank you, exactly what I was looking for.

 

23 minutes ago, 5thHorseman said:

To do this in Module Manager you're going to want to use the Multiplier. It's *=

I'm by no means sure if this code will work, but it should be at least close. And it shows how the multiplier works.


@PART[*]:HAS[RESOURCE[LiquidFuel]]
{
	@RESOURCE[LiquidFuel]
	{
		amount *= 10
		maxAmount *= 10
	}
}

@PART[*]:HAS[RESOURCE[Oxidizer]]
{
	@RESOURCE[Oxidizer]
	{
		amount *= 10
		maxAmount *= 10
	}
}

 

Hmm, so that's how to multiply. Thank you for this.

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