Skip to content

Commit

Permalink
A HotFix for the Issue #12 (Zero Mass on Parts) when Issue #15 (Preve…
Browse files Browse the repository at this point in the history
…nt B9PartSwitch to be handled when another Part Switch is active) happens

#12
#15
  • Loading branch information
Lisias committed Aug 28, 2019
1 parent 311ce21 commit 4b97a80
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
// This patch fixes the unholy patching caused by an blindly adding a Fuel Switch module
// on a part that already have another Fuel Switch installed.
//
// There`re many offending patches for this problem.
//
// This patch brute-forces a solution by bluntly deleting one Fuel Switch if both
// the following are found:
//
// * ModuleFuelTank
// * ModuleB9PartSwitch
//
// And the user prefers to use MFT over B9's
//
// References:
// https://github.com/net-lisias-ksp/TweakScale/issues/12
// https://github.com/net-lisias-ksp/TweakScale/issues/15
//
// If needed, copy this file to GameData/__LOCAL/TweakScale/HotFixes subdirectory.
@PART[*]:HAS[@MODULE[TweakScale]&@MODULE[ModuleFuelTank]&@MODULE[ModuleB9PartSwitch]]:NEEDS[TweakScale]:FINAL // This patch should be final, indeed.
{
-MODULE[ModuleFuelTank],* { }
@MMODULE[TweakScale]
{
HOTFIX = https%3A//forum.kerbalspaceprogram.com/index.php%3F/topic/179030-14-tweakscale-under-lisias-management-2433-2019-0814/%26do%3DfindComment%26comment%3D3661426
|
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
// This patch fixes the unholy patching caused by an blindly adding a Fuel Switch module
// on a part that already have another Fuel Switch installed.
//
// There`re many offending patches for this problem.
//
// This patch brute-forces a solution by bluntly deleting one Fuel Switch if both
// the following are found:
//
// * ModuleFuelTank
// * ModuleB9PartSwitch
//
// And the user prefers to use MFT over B9's
//
// References:
// https://github.com/net-lisias-ksp/TweakScale/issues/12
// https://github.com/net-lisias-ksp/TweakScale/issues/15
//
// If needed, copy this file to GameData/__LOCAL/TweakScale/HotFixes subdirectory.
@PART[*]:HAS[@MODULE[TweakScale]&@MODULE[ModuleFuelTank]&@MODULE[ModuleB9PartSwitch]]:NEEDS[TweakScale]:FINAL // This patch should be final, indeed.
{
-MODULE[ModuleB9PartSwitch],* { }
@MMODULE[TweakScale]
{
HOTFIX = https%3A//forum.kerbalspaceprogram.com/index.php%3F/topic/179030-14-tweakscale-under-lisias-management-2433-2019-0814/%26do%3DfindComment%26comment%3D3661426
|
}

0 comments on commit 4b97a80

Please sign in to comment.