Find a way to survive KSPCF's ~~Stupidity~~ *Less Than Smartness*.
Lisias opened this issue ยท 5 comments
So, KSPCF decided to blindly disable KSP-Recall, whatever their fixes are active or not.
KSPModdingLibs/KSPCommunityFixes#124
https://github.com/KSPModdingLibs/KSPCommunityFixes/blob/1.24.6/GameData/KSPCommunityFixes/MMPatches/ModSupport/KSPRecall.cfg (currently the latest)
@PART[*]:HAS[@MODULE[Refunding]]:NEEDS[KSPRECALL-REFUNDING]:FINAL
{
!MODULE[Refunding]{}
}
@KSP-Recall:AFTER[999_KSP-Recall]
{
@INSTALLED
{
@Refunding = false
}
}
And there's no way I can civilly overcome this crap, I will need to brute force my way on the problem.
OBJECTIVE
Find the less brute and intrusive way to allow users to activate the updated Refunding
if this is what they want.
Some people is going to yell on me for sure - as it would be any difference by now. :/
Well, this is what I had done:
- Split the current Refunding Stunt in two
PartModules
- One will deal exclusively to the original problem
- The other will try to handle the
float
precision problem
- And, yeah, a new MetaResource will be added.
- (sigh)
- Both
PartModules
can be individually activated or deactivated.
Implemented on commit 6f7aa4c
Additionally, the Meta Resources are not created anymore when they are not needed. This will shrink a bit the surface of the exposition of the solutionhack.
Now I need to retest the following Issues:
- #12 (KSP 1.11.x is borking the recovering of costs from scaled parts.)
- #60 (Weird Misbehaviour on Interstellar Technologies.)
Job failed. Apparently I found a new misbehaviour somewhere related to KSPIE'sPartModule
s. Still digging on it!- Job worked! :D When the scaled up parts behave, the thing works.
- #60 (Weird Misbehaviour on Interstellar Technologies.) - using scaled down parts this time.
- Works fine. I had misdiagnosed the source of the problem.