I'm trying to use the Contragravity Generators but they are consuming a massive amount of EC. The amount consumed for a 153368 kilogram vessel landed on Kerbin is 15336.7584 EC/s. However even the most powerful fusion reactor from FFT, the FX-3 Fusion Reactor only produces 10000 EC/s in D-D mode.
In the config file, the comment for ecMassPercentIncrease states, "Amount of increase in Electric Charge that it costs to run the generator. Computed as a percentage of vessel mass. So, if this value is 0.05 (the default), and the vessel masses 100 tonnes, then the EC cost increases by 5." Does this statement mean that a 100 ton vessel should cost 500 EC/s to run the Contragravity Generator? The Blueshift Fusion Reactor produces 4000 EC/s so the calculated value of 15336.7584 EC/s seems strange.
|
protected override ConversionRecipe PrepareRecipe(double deltatime) |
|
{ |
|
ConversionRecipe recipe = base.PrepareRecipe(deltatime); |
|
|
|
if (!HighLogic.LoadedSceneIsFlight || !IsActivated || isMissingResources) |
|
return recipe; |
|
|
|
// Compute modifiers based on vessel mass. |
|
float vesselMass = vessel.GetTotalMass(); |
|
List<ResourceRatio> recipeInputs = recipe.Inputs; |
|
int count = recipeInputs.Count; |
|
ResourceRatio resource; |
|
for (int index = 0; index < count; index++) |
|
{ |
|
// E.C. increases based on a percentage of the vessel's mass. |
|
if (recipe.Inputs[index].ResourceName == "electricCharge") |
|
{ |
|
resource = recipeInputs[index]; |
|
resource.Ratio += (1 + ecMassPercentIncrease) * vesselMass; |
|
recipeInputs[index] = resource; |
|
continue; |
|
} |
|
|
|
resource = recipeInputs[index]; |
|
resource.Ratio *= vesselMass; |
|
recipeInputs[index] = resource; |
|
} |
|
|
|
// Now prepare recipe |
|
recipe.SetInputs(recipeInputs); |
|
return recipe; |
|
} |

I'm trying to use the Contragravity Generators but they are consuming a massive amount of EC. The amount consumed for a 153368 kilogram vessel landed on Kerbin is 15336.7584 EC/s. However even the most powerful fusion reactor from FFT, the FX-3 Fusion Reactor only produces 10000 EC/s in D-D mode.
In the config file, the comment for ecMassPercentIncrease states, "Amount of increase in Electric Charge that it costs to run the generator. Computed as a percentage of vessel mass. So, if this value is 0.05 (the default), and the vessel masses 100 tonnes, then the EC cost increases by 5." Does this statement mean that a 100 ton vessel should cost 500 EC/s to run the Contragravity Generator? The Blueshift Fusion Reactor produces 4000 EC/s so the calculated value of 15336.7584 EC/s seems strange.
Blueshift/Source/Blueshift/GravTech/WBIContragravityGenerator.cs
Lines 118 to 149 in 8db8eeb