Skip to content

Commit

Permalink
moved ThermalLosses to cfg to disable it, updated to 1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
blackliner committed May 26, 2017
1 parent 6464a17 commit 1c537f7
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 13 deletions.
Binary file modified RealBattery/GameData/RealBattery/RealBattery.dll
Binary file not shown.
10 changes: 7 additions & 3 deletions RealBattery/GameData/RealBattery/RealBattery.version
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,16 @@
"MAJOR":0,
"MINOR":1,
"PATCH":1,
"BUILD":6
"BUILD":7
},
"KSP_VERSION":
{
"MAJOR":1,
"MINOR":2,
"PATCH":99
"MINOR":3
},
"KSP_VERSION_MIN ":
{
"MAJOR":1,
"MINOR":2
}
}
1 change: 1 addition & 0 deletions RealBattery/GameData/RealBattery/RealBattery_mm.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

HighEClevel = 0.9
LowEClevel = 0.1
ThermalLosses = 0.1
}

@maxTemp = 2000 // no overheat explosions
Expand Down
4 changes: 3 additions & 1 deletion RealBattery/source/RealBattery.cs
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ private void loadConfig()
// take cfg for now
// HighEClevel = batCfg.HighEClevel;
// LowEClevel = batCfg.LowEClevel;
ThermalLosses = batCfg.ThermalLosses;
// ThermalLosses = batCfg.ThermalLosses;
ChargeEfficiencyCurve = batCfg.ChargeEfficiencyCurve;
TemperatureCurve = batCfg.TemperatureCurve;

Expand Down Expand Up @@ -251,6 +251,8 @@ public void readAllRealBatteryModules(Vessel gamEventVessel=null)
return;
}

part.force_activate();

// get a fresh list
if (rbList == null)
{
Expand Down
18 changes: 9 additions & 9 deletions RealBattery/source/RealBatteryConfiguration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,9 @@ private static void populateConfig()
tempCfg.ChargeEfficiencyCurve.Add(1.0f, 0.5f);

tempCfg.TemperatureCurve = new FloatCurve();
tempCfg.TemperatureCurve.Add(0, 0.5f);
tempCfg.TemperatureCurve.Add(200, 0.5f);
tempCfg.TemperatureCurve.Add(250, 0.5f);
tempCfg.TemperatureCurve.Add(0, 1.0f);
tempCfg.TemperatureCurve.Add(200, 1.0f);
tempCfg.TemperatureCurve.Add(250, 1.0f);
tempCfg.TemperatureCurve.Add(300, 1.0f);
tempCfg.TemperatureCurve.Add(350, 1.0f);
tempCfg.TemperatureCurve.Add(400, 0.3f);
Expand Down Expand Up @@ -120,9 +120,9 @@ private static void populateConfig()
tempCfg.ChargeEfficiencyCurve.Add(1.0f, 0.5f);

tempCfg.TemperatureCurve = new FloatCurve();
tempCfg.TemperatureCurve.Add(0, 0.5f);
tempCfg.TemperatureCurve.Add(200, 0.5f);
tempCfg.TemperatureCurve.Add(250, 0.5f);
tempCfg.TemperatureCurve.Add(0, 1.0f);
tempCfg.TemperatureCurve.Add(200, 1.0f);
tempCfg.TemperatureCurve.Add(250, 1.0f);
tempCfg.TemperatureCurve.Add(300, 1.0f);
tempCfg.TemperatureCurve.Add(350, 1.0f);
tempCfg.TemperatureCurve.Add(400, 0.3f);
Expand Down Expand Up @@ -151,9 +151,9 @@ private static void populateConfig()
tempCfg.ChargeEfficiencyCurve.Add(1.0f, 0.7f);

tempCfg.TemperatureCurve = new FloatCurve();
tempCfg.TemperatureCurve.Add(0, 0.5f);
tempCfg.TemperatureCurve.Add(200, 0.5f);
tempCfg.TemperatureCurve.Add(250, 0.5f);
tempCfg.TemperatureCurve.Add(0, 1.0f);
tempCfg.TemperatureCurve.Add(200, 1.0f);
tempCfg.TemperatureCurve.Add(250, 1.0f);
tempCfg.TemperatureCurve.Add(280, 1.0f);
tempCfg.TemperatureCurve.Add(340, 1.0f);
tempCfg.TemperatureCurve.Add(360, 0.7f);
Expand Down

0 comments on commit 1c537f7

Please sign in to comment.