Jump to content

[1.1.2] Okram Industries Fuel Cells (OIFC v1.1)


`Orum

Recommended Posts

This is an update to my original thread as I no longer have access to that account, and I've split the parts and the plugin into different parts.

Included is a collection of two types of fuel cells--radial and stackable--each available in three different sizes.  Originally these parts were created alongside a plugin I wrote to demonstrate its capabilities, but they ended up shaping its development and are more polished than a simple cube or cylinder.  The plugin behind them will let the electric charge of your craft float up and down, and, by default, only generate power (and thus consume fuel) when your craft is very low on power and there is additional demand for it.  You won't have to constantly turn the fuel cell on/off to conserve fuel on hybrid-power vehicles when they're in the shadow of a celestial body.

It also gives you different modes to generate power, and you can switch between them at will.  There's also much more eye candy than the stock parts have, though as of the 1.1 update there are a few graphical glitches I'm still trying to iron out.  However, the plugin working the magic has been extensively tested, and I'm unaware of any bugs in the current version.  Plugin source code, discussion, and additional resources for modders using it can be found in its respective thread.

Download at SpaceDock here, or at DropBox here.  Also available on CKAN.

FAQ:

Q: Why is it not generating power?
A: Check to see what the "Status" says in the tweakable (right-click) menu.  "Nominal" means it is generating power.  If it says "No Demand", see the next question.  The other states are fairly self-explanatory.

Q: Why does it the "Status" say "No Demand" when my ElectricCharge is less than 100% full?
A: The fuel cells are meant to only provide power when it is needed, i.e. "on demand."  As vessels often have several means of generating power, such as solar panels, RTGs, or engines with alternators, it is best to let the ElectricCharge (EC) stored in batteries (or any other part of the vessel) "float" up and down with supply and demand.  Only when there is still demand for power, without additional supply to compensate, will the fuel cell burn precious fuel to produce the required EC.  The "Threshold" tweakable can be used to decide at what point the fuel cell should generate power, in percent of total vessel EC.

Q: Should I ever raise the "Threshold" setting?
A: In most cases, no, and this is why the default value is the minimum.  It's best to leave this setting as low as possible to make the best use of a vessel's limited resources.  There are, however, a couple cases where it may be beneficial to raise this value, permanently or temporarily.

	The first case is when you have several fuel cells on a single vessel, operating in different modes (if they are in the same mode you want identical threshold settings).  You may want one fuel type used over another, e.g. (with the included parts) LiquidFuel + Oxidizer to be preferred over MonoPropellant.  The simplest way to do this is just to raise the threshold of the fuel cell burning the preferred fuel by one increment above the other.  Then, only if the power demands rise above what the higher threshold fuel cell can provide, and sink below what the secondary fuel cell's threshold is, will it start burning the more precious or desirable fuel to make up for the difference.

	The second case is if you are separating a single vessel into multiple vessels, via a decoupler, separator, or docking port, and one of the parts will be limited in its ability to produce ElectricCharge.  For example, imagine a battery-powered Lunar Excursion Module (LEM) separating from a Command/Service Module (CSM) that holds the fuel cell(s) but only a fraction of the total EC.  You would want the LEM to be fully charged before separating, so you can get the maximum charge out of its batteries for landing on the Mun.  Here you would want to temporarily set the threshold to 100%, just before you plan to separate the LEM.  As soon as things are fully charged, set the threshold back down and separate the LEM, and continue your Mun landing with full power.

Q: I've set the "Threshold" to 100%, and despite having enough power from other sources, it keeps burning fuel!  Why?
A: I'll avoid a full technical description of why this happens, but suffice it to say it's due to a limitation within the Unity engine.  For this reason I strongly recommend never leaving any fuel cell "Threshold" at 100% for anything more than a brief instant, or you may be wasting fuel.  It's also theoretically possible, though less likely, for this to occur at even lower percentages, in cases where you have large power draws (e.g. several ion thrusters), large alternative sources of power (e.g. big solar panels in full sun near Kerbol), and very little maximum ElectricCharge for a craft (no batteries).

	The only case where setting the "Threshold" tweakable to 100% will not waste fuel is when there are no alternative sources of power (remember, some engines generate power) for this stage or any later stage containing the fuel cell, and there will be no docking with the vessel ever.

Q: I really like your plugin.  Can I use it with parts I make, and is there any documentation?
A: Yes, you can use it with your own parts as long as you follow the plugin's license.  The documentation pertaining to the plugin are HTML files that are included in the plugin-only release, along with its source code.  See the "On Demand Fuel Cells" mod to obtain these.

Known Issues:

Known issues with v1.1
 - At certain angles, the particles from an emitter can disappear
 - When highlighted, the particles from an emitter can disappear, and you can occasionally see through areas of the parts
 - Components of the fuel cells may disappear when viewed from certain angles

Change Log:

v1.1
 - Release split into two pieces; plugin is now distributed separately from the OI parts, to ease CKAN support
 - Parts rebalanced, to be closer to the stock KSP fuel cells released in KSP 1.0 (compared to the previous release, the OI fuel cells are now ~5x more efficient but provide 50% of their previous maximum power)
 - Recreated parts in Unity 5.x and using the new PartTools; may look slightly different from the previous release

v1.0
 - Initial release (for KSP v0.90)

License:

All files contained within are copyright `Orum on the KSP forums.  This license also grants the following rights and restrictions.

1. Definitions:
	a. Content - Copyrighted materials not licensed under the CC BY-NC-SA-4.0 license or consisting of the CC BY-NC-SA-4.0 license itself.
	b. Component - Any portion of the content defined above.
	c. Hosting - Keeping a copy, ephemeral or permanent, of the content on a system with the intent to distribute.
	d. Non-Commercial Use - Use of the content where every party and every potential party is not required to pay a fee or provide compensation, beyond Internet access fees, in order to access said content at every quality level available to any party other than the party responsible for creating or hosting the content.
	e. Commercial Use - Use of the content that does not fall under the definition of "non-commercial" above.
	f. Content Management System - A system intended to facilitate users with the installation (including downloading) of or the management of (including installation and uninstallation) the content or components thereof.
	g. Repackaging - Combining a component bundled in a manner that precludes separation of the content prior to the downloading, extraction, or installation of the component by anyone  other than the end-user of the content; or the download, extraction, or installation of a component where the component does not consist of the entire content by anyone other than the end-user of the content.
	h.	I/me - The owner of the copyright.
	i. You - The individual or organization exercising the rights granted or restricted by this license.
	j. Third Party - Any party that is not you or me.
	k. Party - Any individual or organization.

2. Permission is explicitly granted for the following, but does not imply permission for items similar to the following:
	a. Hosting and distribution of content by sites to which I have uploaded the content.  This is limited to SpaceDock (spacedock.info) and Dropbox (dropbox.com).
	b. Downloading, installing, uninstalling, or other management of the content via "The Comprehensive Kerbal Archive Network" (CKAN; https://github.com/KSP-CKAN/CKAN), and other non-commercial content management systems, provided they don't violate any other portion of this license.
	c. Non-commercial use of the content or components (does not include use in dirivitive works).
	d. Creation, distribution, or use of files created by you or a third party modifying the included *.cfg (config) files via ModuleManager (https://github.com/sarbian/ModuleManager), provided they don't violate any other portion of this license.
	e. Creation, distribution, or use of textures created by you or a third party for use with included components, provided they don't violate any other portion of this license.

3. Additionally, explicitly forbidden is the following:
	a. Repackaging of the content by anyone other than me without explicit permission or authorship from me.
	b. Asserting or implying that endorsement or sponsorship has been granted to you or anything created, edited, or otherwise modified by you without explicit claims made by me.
	c. Commercial use of the content or components.
	d. False claims of ownership of the content or the copyright of the content.

4. This license, or an updated version of it authored by me, must be included in an unmodified state with the content or components thereof.

 

Edited by `Orum
FAQ
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...