On Demand Fuel Cells (ODFC) is a plugin to support fuel cells that only generate power when it is needed, thereby saving precious fuel. Simulates fuel cells in Kerbal Space Program (KSP), and do a better job of it than stock's use of a resource converter. The main difference is it only generates electricity when it's really needed (batteries almost empty), and otherwise lets electricity of a craft float up and down, as it might in a solar powered vehicle when the sun is eclipsed by another celestial body. It also allows fuel cells to generate byproducts, aimed at supporting life support mods like TACLS.
correct .version file max KSP version from 1.8.1 to 1.8.9999
Minor corrections to Changelog
[NEW] TweakScale support added. part and fuel cell now scales if TweakScale is installed. Quadratic scaling.
[NEW] Optional difficulty settings for moderate and hard play - Diminished Returns - the harder the game setting, the less EC/s produced for same fuel. GlobalScalingFactor.
[NEW] Fuel Consumption and Byproduct production rates now show in PAW instead of just the names of the fuels consumed and byproducts produced.
[NEW] B9 Fuel Swapping is now working with parts with ODFC installed; its either that or Bill flubbed up the B9partswtich patches.
changed default thresHoldMax = 1 to 0.85f
[D][BUG 1.1.2.0a] Properly scales ODFC module (maxEC, Fuels, Byproducts) and resources in a part with ODFC installed. Requires TweakScale to be installed.
[D][BUG 1.2.0.0a] fuel consumption and byproduct production should be seen on PAW - it is not
added < public double OnDemandFuelCellsEC { get { return this._fuelModeMaxECRateLimit; }; } >
corrected many -> in code
changed < double int timeOut = 1; > to internal
changed updateFT() -> updateFuelTexts
changed updateFS() -> updateFuelString
changed scn -> ConfigNodeString
1.2.0.17 dev build
slight tweaks to autobuild process
slight code tweaks - working on TweakScale issue.
1.2.0.16 dev build
made public Double fuelModeMaxECRateLimit = 0f; into global variable to be used by AmpYear et al.
1.2.0.15 dev build
split off backgroundProcessing code into separate file
1.2.0.14 dev build
1.2.0.13 dev build
1.2.0.12 dev build
1.2.0.11 dev build
1.2.0.10 dev build
PAW updated
fixed formatting issues breaking the PAW
added suffix to fuel rate (/s /m /h)
should now be rounding to 6 decimal places
initial code changes to implement min/max on/off thresholds (turn on %, turn off %)
initial code changes to implement min/max EC production rate (min %, max %)
1.2.0.9 dev build
started to add boilerplate basic backgroundProcessing code structure and supporting docs
added try {} exception handling code to see if better best practices
added additional debug.log code (so screen message, in game mail, and now ksp.log)
added CurrentVesselChargeState to the PAW - not final placement - shows % current/max vessel EC
started moving specific related code sections into #regions
continued added / editing / clarifying /// sections
contined updating code variables from public to private
1.2.0.8 dev build
added and adjusted fuel_consumption and byproducts strings to include rate
honors PAW color settings
need to figure out how to format the number string to limit the max # of characters (MAYBE)
found an issue where color HexDec codes included extra FF at end - so instead of being 6 characters long, they were 8. Okay, who tried signing the code?
GlobalScalingFactor now included on Game Settings Page, and difficulty settings.
Code: resourceLa -> resourceLabel (string)
1.2.0.7 dev build
TweakScale working in editor, not flight
fixed the issue causing ODFC to error out in flight
started adding GlobalScalingFactor (added on settings page)
1.2.0.6 dev build
added revised tweakscale support by adding private void UpdateEditor();
Changelog
1.2.1.0 - Gone to Plaid
[D][BUG 1.2.0.0a] fuel consumption and byproduct production should be seen on PAW - it is not
1.2.0.18 dev build
1.2.0.17 dev build
1.2.0.16 dev build
made public Double fuelModeMaxECRateLimit = 0f; into global variable to be used by AmpYear et al.
1.2.0.15 dev build
split off backgroundProcessing code into separate file
1.2.0.14 dev build
1.2.0.13 dev build
1.2.0.12 dev build
1.2.0.11 dev build
1.2.0.10 dev build
1.2.0.9 dev build
1.2.0.8 dev build
1.2.0.7 dev build
1.2.0.6 dev build