TweakScale
TweakScale copied to clipboard
[NF-solar] power of curved solar panels
Power generation does not scale. This is the exponent I use:
TWEAKSCALEEXPONENTS:NEEDS[NearFutureSolar]
{
name = ModuleCurvedSolarPanel
TotalEnergyRate = 2
}
I had a look in https://github.com/ChrisAdderley/NearFutureSolar/blob/master/ModuleCurvedSolarPanel.cs
The problem seems to be that TotalEnergyRate is used only once to calculate chargePerTransform, probably this is done before TweakScale tries to scale it. chargePerTransform can not be scaled because it is not a kspField.
In my opinion this is best solved in NF-Solar, by evaluating TotalEnergyRate directly in the fixedUpdate method.
EDIT: I am working on a pull request for NF-Solar