Jump to content

[WIP] Stock Tank Fuel Switcher - v0.0.1 alpha


Recommended Posts

What is STFS?
STFS is a mod that allows users to choose which switcher-mod they want to use on the stock LFO tanks. Furthermore users can configure the fuel-setups to their likings. The customization is done via PatchManager, no need to dive into the MM-patches.

What are the dependencies?
ModuleManager and PatchManager are hard-dependency and the mod will not work without them.
At least one Resource Switcher mod is also required. Currently InterstellarFuelSwitch (IFS), Firespitter (FS) and B9PartSwitch (B9PS) are supported.
Depending on the resource-setups you want to use, you may need CommunityResourcePack.
None of the dependencies are included in the download!

How to use it?
When you install STFS, it will do nothing (*1) unless you configure it. To do so:
1. start KSP, load a savegame and at the KSC open the PatchManager window. Navigate to STFS000priority and expand it. Now choose a mod to handle the fuel-switching. If no switcher is chosen, the mod is deactivated.
2. In the PatchManager window navigate to STFS100LFOtanks and expand it. Now choose the resources you want to have available on the stock tanks.
3. Apply the changes AND RESTART KSP!

Will it interfere with other mods patching stock LFO tanks?
STFS always plays nicely (hopefully) with other mods. By default the patching will take place at the end of MM load order (zzSTFS...). If fuel-switcher modules are detected, no further fuel-switcher modules will be applied. Even in aggressive mode, STFS will never add fuel-switchers to parts that already have a fuel-switcher module (not breaking stuff if other mods don't play nicely).

How does 'aggressive mode' work?
Aggressive mode adds a 'dummy' fuel-switcher in the :FIRST section of MM-patching and removes it right before STFS starts its usual patching. As long as your other mods also play nicely and don't apply additonal switcher modules, STFS can do its job.

How is STFS balanced?
That is the tricky part, which is mostly WIP currently:
 - Each setup on a tank uses the same volume for resource-storage. The Resource-Storage-Volume (RSV) is calculated from the amount of stored LiquidFuel and Oxidizer on each tank.
 - Cost of each stock LFO tank is reduced to its dry-cost (KSP default cost include resource-cost)
 - Each setup uses the default tank-mass. The results are rather bad fuel-to-mass ratios on some setups. I'm open for suggestions!

No pics, no clicks?
Since there is not really anything to show, some screenshots of the PatchManager setups:

Spoiler

ipGYW1T.png
9wxwoA4.png

Currently supported fuel-setups:

Spoiler
  • LiquidFuel & Oxidizer
  • LiquidFuel
  • Monopropellant
  • XenonGas
  • LqdHydrogen & LqdOxygen
  • LqdHydrogen & Oxidizer
  • LqdHydrogen
  • LqdMethane & LqdOxygen
  • LqdArgon
  • LqdNitrogen
  • many more to come

Download:
The current release is very early development and I'm looking for testers! If you are interested let me know in this thread or via pm.
Download from GitHub (direct)

Limitations:
 - Order of setups cannot be changed
 - The setups are global for all savegames on the same installation of KSP

Notes:
(*1): The mod adds a useless key (stockLFO = true) to all stock tanks to make identification easier. The key will be removed at the end of MM-patching.
 - The cost of stock LFO tanks is set to their dry-cost instead of the default wet-cost.
 - The default RESOURCE nodes are removed.

Warranty:
The mod is VERY WIP, so no warranty if it breaks craft- or save-files. Make backups in time!

License:
CC-BY-SA 4.0 International

Changelog:

Spoiler

- 2018.04.22 - Initial release of 0.0.1 alpha
  - support for IFS, FS and B9PS
  - support for all stock LFO tanks

Thanks to
- @sarbian for ModuleManager
- @linuxgurugamer for PatchManager
- @FreeThinker for InterstellarFuelSwitch
- @blowfish for B9PartSwitch
- @Snjo & @RoverDude for Firespitter
- @RoverDude for CommunityResourcePack
- @NecroBones for FuelTanksPlus
- @534443 for the help with costs

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