From 5b86bf274e1d38fa4c1483dc6ef6f0152b5e52be Mon Sep 17 00:00:00 2001 From: JonnyOThan Date: Thu, 7 May 2026 18:01:41 -0400 Subject: [PATCH 01/15] remove version-template-extension --- .github/workflows/create-release.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/create-release.yml b/.github/workflows/create-release.yml index daa0ad7..bc77c94 100644 --- a/.github/workflows/create-release.yml +++ b/.github/workflows/create-release.yml @@ -12,3 +12,4 @@ jobs: uses: KSPModdingLibs/KSPBuildTools/.github/workflows/create-release.yml@release-version-property with: version-string: ${{ inputs.version-string }} + version-template-extension: From 54f4e5dc9b5560b9bf35b9a85fb8bc9672d8aac7 Mon Sep 17 00:00:00 2001 From: github-actions Date: Thu, 7 May 2026 22:02:13 +0000 Subject: [PATCH 02/15] bump version to 0.9 --- CHANGELOG.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f2bb5db..95f0480 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,4 @@ -## Unreleased +## 0.9 - 2026-05-07 - Fixed memory leaks from dangling event handlers. - Improved performance @@ -22,6 +22,7 @@ - Fixed fission engines logic for engines that use ModuleEngines instead of ModuleEnginesFX (e.g. LV-N when waterfall is not installed) - Fixed fission reactor patches for USI when NearFutureElectrical is also installed. Made the existing patches also match NFE's values when it is not present + ## v0.8.2 - Fixed ungated debug loop strings @@ -427,4 +428,4 @@ ## v0.1.0 -## - Initial version controlled release \ No newline at end of file +## - Initial version controlled release From 94d473773ef3c8238d742a676baaa6f3a803988e Mon Sep 17 00:00:00 2001 From: Jon Cable Date: Thu, 7 May 2026 18:39:37 -0400 Subject: [PATCH 03/15] reverrt to C#9 --- Source/Modules/ModuleSystemHeat.cs | 6 +++--- Source/SystemHeat.csproj | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Source/Modules/ModuleSystemHeat.cs b/Source/Modules/ModuleSystemHeat.cs index 600032b..3a9012d 100644 --- a/Source/Modules/ModuleSystemHeat.cs +++ b/Source/Modules/ModuleSystemHeat.cs @@ -103,8 +103,8 @@ public float LoopFlux } protected SystemHeatSimulator simulator; - protected readonly Dictionary fluxes = []; - protected readonly Dictionary temperatures = []; + protected readonly Dictionary fluxes = new (); + protected readonly Dictionary temperatures = new (); public override string GetModuleDisplayName() { @@ -138,7 +138,7 @@ void SetupUI() { BaseField chooseField = Fields["currentLoopID"]; UI_ChooseOption chooseOption = HighLogic.LoadedSceneIsFlight ? chooseField.uiControlFlight as UI_ChooseOption : chooseField.uiControlEditor as UI_ChooseOption; - chooseOption.options = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]; + chooseOption.options = new string[] { "0", "1", "2", "3", "4", "5", "6", "7", "8", "9" }; chooseOption.onFieldChanged = ChangeLoop; } diff --git a/Source/SystemHeat.csproj b/Source/SystemHeat.csproj index 85fc6d1..a0e5f00 100644 --- a/Source/SystemHeat.csproj +++ b/Source/SystemHeat.csproj @@ -17,7 +17,7 @@ $(ProjectRootDir)GameData\SystemHeat Plugin - 14 + 9 portable true CS1591 From e2af8974fb02a72c69cb87a01d8e627f4ad950ce Mon Sep 17 00:00:00 2001 From: Jon Cable Date: Thu, 7 May 2026 18:39:52 -0400 Subject: [PATCH 04/15] incorporate ksbt_modversion --- Source/SystemHeat.csproj | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Source/SystemHeat.csproj b/Source/SystemHeat.csproj index a0e5f00..fe703e5 100644 --- a/Source/SystemHeat.csproj +++ b/Source/SystemHeat.csproj @@ -1,12 +1,9 @@ - 0.8.2 SystemHeat SystemHeat net481 - $(Version) - 0.1.0.0 $(Version) Heat handling system for Kerbal Space Program @@ -25,6 +22,10 @@ $(DefineConstants);ENABLE_PROFILER + + $(KSPBT_ModVersion) + + From d242af1269060ba2d25837fe5b95ee9806ba351a Mon Sep 17 00:00:00 2001 From: Jon Cable Date: Thu, 7 May 2026 18:41:03 -0400 Subject: [PATCH 05/15] changelog back to unreleased --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 95f0480..3743ddd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,4 @@ -## 0.9 - 2026-05-07 +## Unreleased - Fixed memory leaks from dangling event handlers. - Improved performance From 0b8ed16aba006f81f70d39cf59f5285c1a58754a Mon Sep 17 00:00:00 2001 From: github-actions Date: Thu, 7 May 2026 22:41:42 +0000 Subject: [PATCH 06/15] bump version to 0.9 --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3743ddd..95f0480 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,4 @@ -## Unreleased +## 0.9 - 2026-05-07 - Fixed memory leaks from dangling event handlers. - Improved performance From e78699dcb0c97ab754c035270a6713bf4b8bd35a Mon Sep 17 00:00:00 2001 From: JonnyOThan Date: Thu, 7 May 2026 20:07:25 -0400 Subject: [PATCH 07/15] Fix typo in version property --- Source/SystemHeat.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/SystemHeat.csproj b/Source/SystemHeat.csproj index fe703e5..3c5ca77 100644 --- a/Source/SystemHeat.csproj +++ b/Source/SystemHeat.csproj @@ -22,7 +22,7 @@ $(DefineConstants);ENABLE_PROFILER - + $(KSPBT_ModVersion) From 8641d9af97292123cce2cf796d59a3707d5c7cb1 Mon Sep 17 00:00:00 2001 From: JonnyOThan Date: Fri, 8 May 2026 04:54:53 -0400 Subject: [PATCH 08/15] Include version-file input in create-release.yml Add version file input for release workflow --- .github/workflows/create-release.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/create-release.yml b/.github/workflows/create-release.yml index bc77c94..8c0b709 100644 --- a/.github/workflows/create-release.yml +++ b/.github/workflows/create-release.yml @@ -13,3 +13,4 @@ jobs: with: version-string: ${{ inputs.version-string }} version-template-extension: + version-file: GameData/SystemHeat/Versioning/SystemHeat.version From c5d66ef52c8ac7fba50cd6cfa82553c449ecc155 Mon Sep 17 00:00:00 2001 From: Sean Lynch Date: Fri, 8 May 2026 02:02:46 -0700 Subject: [PATCH 09/15] Create an automated release workflow (#149) * Initial release.yml workflow This just mirrors build.yml for the moment. I'll be adjusting this once I can get a look at the intermediate artifacts * Add setup to actually build the release zip * Fix artifact name * Properly use multiline blocks * Fix a typo * Better compression * Upload SystemHeat.version as an artifact * Simplify a few things * Update to use KSPBT create-release workflow * Switch version file generation to happen through KSPBT * Update repository URLs in SystemHeat.version * Remove version properties from csproj Removed versioning properties and import statement. * Update repository URLs in SystemHeat.version * Delete .github/workflows/release.yml * Delete Source/SystemHeat.version.props * Delete Source/SystemHeat.version.props.versiontemplate --------- Co-authored-by: JonnyOThan --- .github/workflows/build.yml | 3 ++ .../SystemHeat/Versioning/SystemHeat.version | 33 ++++--------------- Source/SystemHeat.csproj | 11 +++++-- Source/SystemHeat.version | 20 +++++++++++ 4 files changed, 39 insertions(+), 28 deletions(-) create mode 100644 Source/SystemHeat.version diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 623b4dc..8f47d59 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -18,3 +18,6 @@ on: jobs: build: uses: KSPModdingLibs/KSPBuildTools/.github/workflows/build.yml@1.1.1 + with: + artifacts: + GameData Extras LICENSE* README* CHANGELOG* diff --git a/GameData/SystemHeat/Versioning/SystemHeat.version b/GameData/SystemHeat/Versioning/SystemHeat.version index 3a0e6a8..b81b84c 100644 --- a/GameData/SystemHeat/Versioning/SystemHeat.version +++ b/GameData/SystemHeat/Versioning/SystemHeat.version @@ -1,28 +1,9 @@ { - "NAME":"SystemHeat", - "URL":"https://raw.githubusercontent.com/post-kerbin-mining-corporation/SystemHeat/master/GameData/SystemHeat/Versioning/SystemHeat.version", - "DOWNLOAD":"https://github.com/post-kerbin-mining-corporation/SystemHeat", - "VERSION": - { - "MAJOR":0, - "MINOR":8, - "PATCH":2, - "BUILD":0 - }, - "KSP_VERSION": - { - "MAJOR":1, - "MINOR":12, - "PATCH":5 - }, - "KSP_VERSION_MIN":{ - "MAJOR":1, - "MINOR":11, - "PATCH":0 - }, - "KSP_VERSION_MAX":{ - "MAJOR":1, - "MINOR":12, - "PATCH":99 - } + "NAME": "SystemHeat", + "URL": "https://github.com/KSPModStewards/SystemHeat/releases/latest/download/SystemHeat.version", + "DOWNLOAD": "https://github.com/KSPModStewards/SystemHeat/releases", + "KSP_VERSION": "1.12.5", + "KSP_VERSION_MIN": "1.11.0", + "KSP_VERSION_MAX": "1.12.99", + "VERSION": "0.8.2" } diff --git a/Source/SystemHeat.csproj b/Source/SystemHeat.csproj index 3c5ca77..806a7c5 100644 --- a/Source/SystemHeat.csproj +++ b/Source/SystemHeat.csproj @@ -4,8 +4,6 @@ SystemHeat net481 - $(Version) - Heat handling system for Kerbal Space Program Area Denial Games SystemHeat @@ -30,6 +28,15 @@ + + + $(KSPBT_ModRoot)/Versioning/SystemHeat.version + 1.12.5 + 1.11.0 + 1.12.99 + + + diff --git a/Source/SystemHeat.version b/Source/SystemHeat.version new file mode 100644 index 0000000..7fee597 --- /dev/null +++ b/Source/SystemHeat.version @@ -0,0 +1,20 @@ +{ + "NAME": "SystemHeat", + "URL": "https://github.com/KSPModStewards/SystemHeat/releases/latest/download/SystemHeat.version", + "DOWNLOAD": "https://github.com/KSPModStewards/SystemHeat/releases", + "KSP_VERSION": { + "MAJOR": 1, + "MINOR": 12, + "PATCH": 5 + }, + "KSP_VERSION_MIN": { + "MAJOR": 1, + "MINOR": 11, + "PATCH": 0 + }, + "KSP_VERSION_MAX": { + "MAJOR": 1, + "MINOR": 12, + "PATCH": 99 + } +} From 031d743c1e036a50f69ae6049ac6120a568db5f3 Mon Sep 17 00:00:00 2001 From: JonnyOThan Date: Fri, 8 May 2026 05:04:02 -0400 Subject: [PATCH 10/15] Change version to 'Unreleased' in CHANGELOG.md Updated changelog to reflect unreleased changes. --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 95f0480..3743ddd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,4 @@ -## 0.9 - 2026-05-07 +## Unreleased - Fixed memory leaks from dangling event handlers. - Improved performance From b2c593b33663897a3dbe7d23edfbe56d28c82114 Mon Sep 17 00:00:00 2001 From: github-actions Date: Fri, 8 May 2026 09:07:18 +0000 Subject: [PATCH 11/15] bump version to 0.9.0 --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3743ddd..c07e296 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,4 @@ -## Unreleased +## 0.9.0 - 2026-05-08 - Fixed memory leaks from dangling event handlers. - Improved performance From 863f9ce73dbca5484ff68722bdf00e7daada82ac Mon Sep 17 00:00:00 2001 From: JonnyOThan Date: Fri, 8 May 2026 05:19:51 -0400 Subject: [PATCH 12/15] Revise CHANGELOG for unreleased updates Updated changelog to reflect unreleased changes and fixes. --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c07e296..3743ddd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,4 @@ -## 0.9.0 - 2026-05-08 +## Unreleased - Fixed memory leaks from dangling event handlers. - Improved performance From dbaa561e1eff8f03b0485b069417df226093204d Mon Sep 17 00:00:00 2001 From: github-actions Date: Fri, 8 May 2026 09:22:32 +0000 Subject: [PATCH 13/15] bump version to 0.9.0 --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3743ddd..c07e296 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,4 @@ -## Unreleased +## 0.9.0 - 2026-05-08 - Fixed memory leaks from dangling event handlers. - Improved performance From 0ec7f693ba5fd94a3de8a5713c3936b9cc62bc1e Mon Sep 17 00:00:00 2001 From: JonnyOThan Date: Fri, 8 May 2026 06:30:48 -0400 Subject: [PATCH 14/15] set changelog back to unreleased --- CHANGELOG.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c07e296..17942ec 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,4 @@ -## 0.9.0 - 2026-05-08 +## Unreleased - Fixed memory leaks from dangling event handlers. - Improved performance @@ -10,7 +10,7 @@ - SystemHeatVessel is now only added to loaded vessels - Added option to avoid running stock radiator logic if SystemHeatConverters and SystemHeatHarvesters are installed. This is one of the biggest performance hits for large vessels with lots of radiators. - This is disabled by default; you can opt in by changing the SystemHeat settings.cfg file + This is disabled by default; you can opt in by setting ForceStockRadiatorLogic to false in the SystemHeat settings.cfg file - Fixed potential fatal NRE for badly configured parts - Fixed NRE when launching a vessel - Fixed NRE when opening the reactor UI for fission engines that don't have heat modules From 811707e3b6cfc372ca9c3d11fa875c274b6a778c Mon Sep 17 00:00:00 2001 From: JonnyOThan Date: Fri, 8 May 2026 06:34:18 -0400 Subject: [PATCH 15/15] langversion to 12 --- Source/Modules/ModuleSystemHeat.cs | 6 +++--- Source/SystemHeat.csproj | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Source/Modules/ModuleSystemHeat.cs b/Source/Modules/ModuleSystemHeat.cs index 3a9012d..600032b 100644 --- a/Source/Modules/ModuleSystemHeat.cs +++ b/Source/Modules/ModuleSystemHeat.cs @@ -103,8 +103,8 @@ public float LoopFlux } protected SystemHeatSimulator simulator; - protected readonly Dictionary fluxes = new (); - protected readonly Dictionary temperatures = new (); + protected readonly Dictionary fluxes = []; + protected readonly Dictionary temperatures = []; public override string GetModuleDisplayName() { @@ -138,7 +138,7 @@ void SetupUI() { BaseField chooseField = Fields["currentLoopID"]; UI_ChooseOption chooseOption = HighLogic.LoadedSceneIsFlight ? chooseField.uiControlFlight as UI_ChooseOption : chooseField.uiControlEditor as UI_ChooseOption; - chooseOption.options = new string[] { "0", "1", "2", "3", "4", "5", "6", "7", "8", "9" }; + chooseOption.options = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]; chooseOption.onFieldChanged = ChangeLoop; } diff --git a/Source/SystemHeat.csproj b/Source/SystemHeat.csproj index 806a7c5..9c19a1c 100644 --- a/Source/SystemHeat.csproj +++ b/Source/SystemHeat.csproj @@ -12,7 +12,7 @@ $(ProjectRootDir)GameData\SystemHeat Plugin - 9 + 12 portable true CS1591