Skip to content

Commit

Permalink
Merge pull request #83 from post-kerbin-mining-corporation/dev
Browse files Browse the repository at this point in the history
quick fix
  • Loading branch information
ChrisAdderley committed Aug 11, 2021
2 parents d089c79 + fc12ff1 commit c6bf46f
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 4 deletions.
1 change: 1 addition & 0 deletions GameData/SystemHeat/Localization/en-us.cfg
Expand Up @@ -83,6 +83,7 @@ Localization
#LOC_SystemHeat_ModuleSystemHeat_Field_LoopID = Loop ID
#LOC_SystemHeat_ModuleSystemHeat_Field_SystemFlux = System Flux
#LOC_SystemHeat_ModuleSystemHeat_Field_SystemTemperature = System Temperature
#LOC_SystemHeat_ModuleSystemHeat_Field_LoopTemperature = Loop Temperature
// ModuleSystemHeatRadiator
/// =================================
Expand Down
Binary file modified GameData/SystemHeat/Plugin/SystemHeat.dll
Binary file not shown.
2 changes: 1 addition & 1 deletion GameData/SystemHeat/Versioning/SystemHeat.version
Expand Up @@ -6,7 +6,7 @@
{
"MAJOR":0,
"MINOR":5,
"PATCH":2,
"PATCH":3,
"BUILD":0
},
"KSP_VERSION":
Expand Down
7 changes: 6 additions & 1 deletion SystemHeat/SystemHeat/Modules/ModuleSystemHeat.cs
Expand Up @@ -76,6 +76,10 @@ public class ModuleSystemHeat : PartModule
[KSPField(isPersistant = false, guiActive = true, guiActiveEditor = true, guiName = "#LOC_SystemHeat_ModuleSystemHeat_Field_SystemTemperature", groupName = "sysheatinfo", groupDisplayName = "#LOC_SystemHeat_ModuleSystemHeat_GroupName", groupStartCollapsed = false)]
public string SystemTemperatureUI = "-";

// Current total system flux of all associated modules
[KSPField(isPersistant = false, guiActive = true, guiActiveEditor = true, guiName = "#LOC_SystemHeat_ModuleSystemHeat_Field_LoopTemperature", groupName = "sysheatinfo", groupDisplayName = "#LOC_SystemHeat_ModuleSystemHeat_GroupName", groupStartCollapsed = false)]
public string LoopTemperatureUI = "-";

public HeatLoop Loop
{
get {
Expand Down Expand Up @@ -326,11 +330,12 @@ public void UpdateSimulationValues(float nominalTemp, float currentTemp, float c
protected void FixedUpdate()
{
SystemFluxUI = String.Format("{0:F0} kW", totalSystemFlux);
LoopTemperatureUI = String.Format("{0:F0} / {1:F0} K", currentLoopTemperature, nominalLoopTemperature);
if (totalSystemFlux > 0f)
{
Fields["SystemTemperatureUI"].guiActive = true;
Fields["SystemTemperatureUI"].guiActiveEditor = true;
SystemTemperatureUI = String.Format("{0:F0} / {1:F0} K", totalSystemTemperature, nominalLoopTemperature);
SystemTemperatureUI = String.Format("{0:F0} K", totalSystemTemperature);
}
else
{
Expand Down
Expand Up @@ -68,7 +68,7 @@ public override string GetInfo()
Localizer.Format("#LOC_SystemHeat_ModuleSystemHeatFissionEngine_PartInfo",
ElectricalGeneration.Evaluate(100f).ToString("F0"),
FindTimeRemaining(this.part.Resources.Get(PartResourceLibrary.Instance.GetDefinition(FuelName).id).amount, baseRate),
HeatGeneration.Evaluate(100f).ToString("F0"),
(HeatGeneration.Evaluate(100f) - ElectricalGeneration.Evaluate(100f)).ToString("F0"),
NominalTemperature.ToString("F0"),
NominalTemperature.ToString("F0"),
CriticalTemperature.ToString("F0"),
Expand Down
5 changes: 5 additions & 0 deletions changelog.txt
@@ -1,3 +1,8 @@
v0.5.3
------
- Fixed ModuleFissionEngine displaying total heat instead of waste heat in part info
- Changed display of temperatures in PAW - new 'Loop Temperatures' shows loop info, tuned the other fields

v0.5.2
------
- Updated ModuleManager to 4.2.1
Expand Down
2 changes: 1 addition & 1 deletion readme.txt
@@ -1,5 +1,5 @@
================
SystemHeat 0.5.2
SystemHeat 0.5.3
================

A mod for Kerbal Space Program, intended to provide a better experience for heat management, particularly geared towards resource extraction, high energy engines, and nuclear reactors.
Expand Down

0 comments on commit c6bf46f

Please sign in to comment.