TweakScale

TweakScale

1M Downloads

TweakScale cannot check the presens of TweakScaleCompanion

handw3rker opened this issue ยท 2 comments

commented

Small error while loading TweakScale in KSP.log:

[LOG 07:55:24.364] [TweakScale] ERROR: Could not check the presense of TweakScale Companion due Could not find file "C:\Program Files (x86)\Steam\steamapps\common\Kerbal Space Program\TweakScaleCompanion" at error:0

I'm not familiar with C# programming (but other languages). So as I can see the following line is the problem:

KSPe.Util.AddOnVersionChecker.Version v = KSPe.Util.AddOnVersionChecker.LoadVersion("TweakScaleCompanion");

In the function call LoadVersion() there must be the second param vendor (as null) to match the overloaded function
public static Version LoadVersion(string addonName, string vendor = null)
in KSPe. Without there will be no path solving. That's explains the wrong folder in the error message.

The line should look like
KSPe.Util.AddOnVersionChecker.Version v = KSPe.Util.AddOnVersionChecker.LoadVersion("TweakScaleCompanion", null);

Am I correct with this?

Thanks a lot for your effort in development of these great tool(s)!

Greetz,
Thomas

commented

Hi, @handw3rker !

Gee! You are right!! O screwed up when I created a new helper on KSPe! Fixing it!

commented

Better, there's nothing to be fixed on TweakScale, the problem is on KSPe:

KSP-ModularManagement/KSPe#63

So I'm closing this one, and will fix the mess where it's messed.