Jump to content

Anyone have a CFG file for pure Liquid Fuel Tanks?


Recommended Posts

Anyone out there who has bothered making an mm.cfg file for copied tanks but with all the oxidizer removed and equal amount of that added in liquid fuel?

Edited by Sokar408
Link to comment
Share on other sites

If you're copying a part, you don't need ModuleManager. The copied tank must have its own fully-featured .cfg file to be loaded by the game. In that file, you can set the values by hand.

But if you were looking to use ModuleManager to change an existing part, here's what you would do:


@PART[<some way to target that part, either with a search term or explicitly>]:FINAL
{
@RESOURCE[LiquidFuel]
{
@amount /= 0.45
@maxAmount /= 0.45
}
!RESOURCE[Oxidizer]
}

Since 45% of the tank's volume is liquid fuel by default, to make liquid fuel occupy 100% you need to perform a mathematical operation that reverses x * 0.45. Since that's a simple multiplication, reversing it is as easy as replacing the multiplication operator with a division operator: x / 0.45. That's what the above config does.

Example: FL-T800 has 360 liquid fuel and 800 capacity. Targeting it with the above config will make it have 800 liquid fuel instead, because 360 / 0.45 = 800.

Edited by Streetwind
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...