From 41422abb5b7a42ebf0b38248aa5cad4447a609a7 Mon Sep 17 00:00:00 2001 From: drewcassidy Date: Sun, 17 May 2020 20:46:36 -0700 Subject: [PATCH] Fix negative masses on engine plates in KSP 1.8.x see #853 --- .../Coupling/restock-mh-engineplates.cfg | 28 +++++++++++++++++++ Distribution/Restock/changelog.txt | 1 + 2 files changed, 29 insertions(+) diff --git a/Distribution/Restock/GameData/ReStock/PatchesMH/Coupling/restock-mh-engineplates.cfg b/Distribution/Restock/GameData/ReStock/PatchesMH/Coupling/restock-mh-engineplates.cfg index 29715d91..0b86ec6f 100644 --- a/Distribution/Restock/GameData/ReStock/PatchesMH/Coupling/restock-mh-engineplates.cfg +++ b/Distribution/Restock/GameData/ReStock/PatchesMH/Coupling/restock-mh-engineplates.cfg @@ -16,6 +16,13 @@ texture = blank, ReStock/Assets/Structural/restock-structural-tubes-1 texture = blank-n, ReStock/Assets/Structural/restock-structural-tubes-1-n } + + // this is the same as the stock value in KSP 1.9.x, but since KSP 1.8.x + // has different mass values, the variant masses below result in negative mass. + // This prevents that from happening, at the expense of slightly affecting part balance + // when ReStock is used with 1.8.x + @mass = 0.14 + !MODULE[ModulePartVariants] {} MODULE { @@ -449,6 +456,13 @@ texture = blank, ReStock/Assets/Structural/restock-structural-tubes-1 texture = blank-n, ReStock/Assets/Structural/restock-structural-tubes-1-n } + + // this is the same as the stock value in KSP 1.9.x, but since KSP 1.8.x + // has different mass values, the variant masses below result in negative mass. + // This prevents that from happening, at the expense of slightly affecting part balance + // when ReStock is used with 1.8.x + @mass = 0.25 + !MODULE[ModulePartVariants] {} MODULE { @@ -978,6 +992,13 @@ texture = blank, ReStock/Assets/Structural/restock-structural-tubes-1 texture = blank-n, ReStock/Assets/Structural/restock-structural-tubes-1-n } + + // this is the same as the stock value in KSP 1.9.x, but since KSP 1.8.x + // has different mass values, the variant masses below result in negative mass. + // This prevents that from happening, at the expense of slightly affecting part balance + // when ReStock is used with 1.8.x + @mass = 0.58 + !MODULE[ModulePartVariants] {} MODULE { @@ -1411,6 +1432,13 @@ texture = blank, ReStock/Assets/Structural/restock-structural-tubes-1 texture = blank-n, ReStock/Assets/Structural/restock-structural-tubes-1-n } + + // this is the same as the stock value in KSP 1.9.x, but since KSP 1.8.x + // has different mass values, the variant masses below result in negative mass. + // This prevents that from happening, at the expense of slightly affecting part balance + // when ReStock is used with 1.8.x + @mass = 1.0 + !MODULE[ModulePartVariants] {} MODULE { diff --git a/Distribution/Restock/changelog.txt b/Distribution/Restock/changelog.txt index bca05d2c..7ce62478 100644 --- a/Distribution/Restock/changelog.txt +++ b/Distribution/Restock/changelog.txt @@ -1,6 +1,7 @@ v1.1.2 ------ - Fixed engine plate compatability with stock vessels by moving boattails to the end of the variant list +- Fixed engine plate negative masses when used in KSP 1.8.x by setting the part mass to the 1.9.x values. This comes at the expense of affecting part balance when used in 1.8.x. v1.1.1 ------