Biff Space

[1.1] Jettison - dump unwanted resources

20 posts in this topic

Jettison
This mod allows individual resource tanks to be emptied from the right-click menu.

UPDATED (2016-07-05) v1.1

Download at SpaceDock

Overview
Resources may be dumped from tanks using the right-click menu. This is for the cases where you have brought along monoprop in ships that don't use it or oxidizer in tanks feeding nuclear engines, or you need to get rid of extra mass by any means.

A button is added to the right click menu of any tank with resources, except for electric charge, ablator, solid fuel, and ore (which already has this functionality in stock). For tanks holding both liquid fuel and oxidizer, clicking once empties the oxidizer, and a second click empties the liquid fuel. Other mod resources should be treated as stock ones, but if there are different types of mod resource held in the same tank, all will be emptied with one click.

Installation
The Jettison folder needs to be unzipped and put in your KSP\GameData folder.

Jettison requires Module Manager, which is not included in the zip file. This should go in the GameData folder. 

Code
The source code is in the Source folder in GameData\Jettison.

Updates

2016-07-05, v 1.1.0.0.

- Removed duplicate button from monoprop tanks

- Compiled with KSP 1.1.3 binaries

Licence
Jettison, its associated files and the source code are all released under the GPL 3 licence, text here: http://www.gnu.org/licenses/gpl.txt.

Edited by Biff Space
v1.1
2 people like this

Share this post


Link to post
Share on other sites

Really interesting. I can't download it though, getting a 401 error. 

Can't find it on Spacedock by searching either.

Share this post


Link to post
Share on other sites

My fault, I hadn't clicked the publish button so it was still unavailable. Should work now.

Thanks for pointing that out. :)

Share this post


Link to post
Share on other sites
12 hours ago, MisterFister said:

How does your mod here differ from this one?

I wasn't aware of that mod when I published mine. 

Having done some quick testing, the differences seem to be:

- mine does not jettison electric charge, solid fuel, or ablator, the linked one does.

- for parts with multiple resources (eg liquid fuel & oxidizer tanks, command capsules containing electric charge and monoprop) the linked mod jettisons everything on the one click. Mine jettisons one resource per click. If one of the resources is liquid fuel, it is jettisoned last, so that you can dump oxidizer if you have some in a tank fuelling nuclear engines.

- The behind-the-scenes difference is that the linked mod is a Module Manager cfg file only, adding the stock ModuleFuelJettison functionality to any part with resources, (and also any part with ProceduralPart or InterstellarFuelSwitch) that doesn't already have it. Mine uses Module Manager to implement a new PartModule functionality, Jettison, which allows the hard-coded exemption of electricCharge and the multiple clicks for multiple resources behaviour.

 

Share this post


Link to post
Share on other sites

So this is just a one-and-done button? Any chance of triggering a release at a certain rate that can be stopped? It could be nice to just bleed off *some* fuel for weight management needs, etc.

Great mod, thank you!

1 person likes this

Share this post


Link to post
Share on other sites
9 hours ago, Beetlecat said:

So this is just a one-and-done button? Any chance of triggering a release at a certain rate that can be stopped? It could be nice to just bleed off *some* fuel for weight management needs, etc.

Great mod, thank you!

Yes, at the moment the button instantly empties the tank. If you want the ability to remove some resource, you could look into the TAC Fuel Balancer mod, which allows you to drain tanks at various speeds (and has many other features too).

Share this post


Link to post
Share on other sites
11 hours ago, Biff Space said:

Yes, at the moment the button instantly empties the tank. If you want the ability to remove some resource, you could look into the TAC Fuel Balancer mod, which allows you to drain tanks at various speeds (and has many other features too).

oh -- I currently use that mod, and completely forgot it had a 'vent' feature. :D

1 person likes this

Share this post


Link to post
Share on other sites

FYI - the stock ModuleJettison fully supports what this mod does (i.e. per-resource jettison, etc.) :wink:  

 

(Source:  I coded it)

1 person likes this

Share this post


Link to post
Share on other sites
22 hours ago, RoverDude said:

FYI - the stock ModuleJettison fully supports what this mod does (i.e. per-resource jettison, etc.) :wink:  

 

(Source:  I coded it)

do yo mean ModuleFuelJettison ?

because ModuleJettison is for fairings AFAIK.

Share this post


Link to post
Share on other sites

is this updated for 1.2 yet? nothing happens when I click jettison resources

 

GNZAQRk.jpgdL6vE1S.jpg

Edited by flatbear

Share this post


Link to post
Share on other sites

It's working as normal for me. You seem to have another resources-related mod installed - what is giving that 'flow priority' line at the bottom of the menu dialog?

Possibly my mod and another one are not playing nicely together.

Share this post


Link to post
Share on other sites
15 hours ago, Biff Space said:

It's working as normal for me. You seem to have another resources-related mod installed - what is giving that 'flow priority' line at the bottom of the menu dialog?

Possibly my mod and another one are not playing nicely together.

That's a stock feature as of 1.2 (you have to enable Advanced Tweakables)

Share this post


Link to post
Share on other sites

Thanks, I will have a look at this issue next week. 

Share this post


Link to post
Share on other sites
On 27. 1. 2017 at 1:05 AM, flatbear said:

is this updated for 1.2 yet? nothing happens when I click jettison resources

I did notice the same yesterday... But I had no chance to do further tests (resource transfer dependacy? possible mod causing that?) as I noticed it on final flight of night. Please let me know if you find smthin.

Share this post


Link to post
Share on other sites
On 1/26/2017 at 11:14 PM, Biff Space said:

It's working as normal for me. You seem to have another resources-related mod installed - what is giving that 'flow priority' line at the bottom of the menu dialog?

Possibly my mod and another one are not playing nicely together.

Isn't flow priority just stock in lap 1.2?

Share this post


Link to post
Share on other sites

KSP Console :

Error: Module Jettison threw during OnUpdate: System.MissingMethodException: Method not found: 'PartResoureList.GetEnumerator'.

 at Part.ModulesOnUpdate () [0x00000] in <filename unknown>:0

 

Edited by Skalgrin
correction

Share this post


Link to post
Share on other sites
On 7/6/2016 at 2:53 PM, RoverDude said:

FYI - the stock ModuleJettison fully supports what this mod does (i.e. per-resource jettison, etc.) :wink:  

Is there anywhere this is documented? The only place it's used in stock is in the ore tanks, which just jettison 100% of all resources. Would be handy to know how to use this feature for e.g. life support multi-resource containers, so that we could jettison some fraction of waste products without tossing all of the snacks out as well :) 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now