Jump to content

[KSP >= 1.3.0] TweakScale - Under Lisias' Management - 2.4.8.6 - 2024-0921


Lisias

Recommended Posts

2 hours ago, Moshbot said:

Good day! I'm sorry in advance for, perhaps, another one question that was solved earlier, but I just didn't find solution worked for me. I've used TweackScale for almost as long as I play KSP. But only now I've got and issue till loading screen.  I have plenty of mods, and to check if this error triggered from some another mod - I delete all of them and try only TweakScale along. Well, still this error sign on loading screen. It tells:

"Unfortunately TweakScale didn't found needed DLLs.

There is no safe 'bla bla bla' without supported DLLs 'bla bla bla'

Missing class: The type initialized for 'KSPe.IO.Hierarchy`1' threw an exception (and etc.)"

Oh, yeah… Old "friend". :)

There's a nasty bug on a thingy called Assembly Resolver/Loader since KSP 1.8.0 , and it's pretty nasty indeed: when an Assembly borks the loading due a missing or broken dependency, something breaks inside KSP and from that point, everything else borks while loading.

Yeah, that's it: DLL A, D, E, F and the kitchen's sink borks because B thrown an Exception while trying to load  C that it's missing, and B needed it. On sane system, only B would be affected (and that's what used to happen until KSP 1.7.3), but on KSP 1.8 and newer… :/

So your last update installed something that triggered this problem, and since TweakScale detected it, it's the one yelling about. The funny thing is that TweakScale is almost 99% surely fine (never got a report like this one due a faulty TweakScale installation, it was always something else).

 

2 hours ago, Moshbot said:

For the protocol - I'm using last version of KSP for this time period. It's 1.12.2(not pirate, licensed, in Steam) 

Funny fact: I'm starting to be able to infer the KSP the user is using by the bugs he/she reports! :)

 

2 hours ago, Moshbot said:

What could cause this problem, even if I do exactly what installing instructions told me to do?

Well, the answer is simple: something borked due a missing/broken dependency and triggered that nasty KSP bug.

Detecting exactly who is the trigger is easy: check your KSP.log and look for the first occurrence of a Exception called System.Reflection.ReflectionTypeLoadException , as this example from a previous report:

[ERR 14:41:14.058] AssemblyLoader: Exception loading 'MoleUtils': System.Reflection.ReflectionTypeLoadException: Exception of type 'System.Reflection.ReflectionTypeLoadException' was thrown.
  at (wrapper managed-to-native) System.Reflection.Assembly.GetTypes(System.Reflection.Assembly,bool)
  at System.Reflection.Assembly.GetTypes () [0x00000] in <9577ac7a62ef43179789031239ba8798>:0
  at AssemblyLoader.LoadAssemblies () [0x000e6] in <cd473063d3a2482f8d93d388d0c95035>:0

It's important to be sure you found THE FIRST ONE, as everything else are bogus (as they are being issued by the faulty code triggered by the first occurrence).

The next line will tell you what gone wrong:

Additional information about this exception:

 System.TypeLoadException: Could not resolve type with token 01000003 (from typeref, class/assembly WildBlueIndustries.Window`1, WildBlueTools, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null)

On this case, this cryptographic message is telling us that MoleUtils was expecting something on WildBlueTools that was not there.

This is another example from another report:

[ERR 18:27:45.081] AssemblyLoader: Exception loading 'Konstruction': System.Reflection.ReflectionTypeLoadException: Exception of type 'System.Reflection.ReflectionTypeLoadException' was thrown.
  at (wrapper managed-to-native) System.Reflection.Assembly.GetTypes(System.Reflection.Assembly,bool)
  at System.Reflection.Assembly.GetTypes () [0x00000] in <9577ac7a62ef43179789031239ba8798>:0
  at AssemblyLoader.LoadAssemblies () [0x000e6] in <cd473063d3a2482f8d93d388d0c95035>:0

Additional information about this exception:

 System.TypeLoadException: Could not resolve type with token 01000066 (from typeref, class/assembly USITools.UI.Window, USITools, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null) assembly:USITools, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null type:USITools.UI.Window member:(null) signature:<none>

Exactly the same problem, but from a different Add'On.

These are usually cumbersome to fix, because you need to reach the Maintainer and ask him where is the right DLL you need, as the one currently on your system, by some reason, is not compatible to the Add'Ons you have installed.

This can be a royal pain in the SAS because not rarely the right DLL for an Add'On you have installed will break another one - usually happening because the maintainer updated a library used by many Add'Ons, but didn't had time to update everything to the latest version of the lib - and yeah, this happens, including to me: the TweakScale 2.4.6.0 took a long time to reach the streets because it uses a new (non retrocompatible) release of a thingy called KSPe.Light.TweakScale, that some TweakScale Companions use (and so I had to update everything first, and then publish everything at the same time).

Software, Laws and sausages - it's better not to know how they made them. :sticktongue:

Finally, the other kind of this problem I have records of:

[ERR 17:21:27.114] AssemblyLoader: Exception loading 'ScrapYard_ContractConfigurator': System.Reflection.ReflectionTypeLoadException: Exception of type 'System.Reflection.ReflectionTypeLoadException' was thrown.
  at (wrapper managed-to-native) System.Reflection.Assembly.GetTypes(System.Reflection.Assembly,bool)
  at System.Reflection.Assembly.GetTypes () [0x00000] in <9577ac7a62ef43179789031239ba8798>:0
  at AssemblyLoader.LoadAssemblies () [0x000e6] in <cd473063d3a2482f8d93d388d0c95035>:0

Additional information about this exception:

 System.IO.FileNotFoundException: Could not load file or assembly 'ContractConfigurator, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies.
File name: 'ContractConfigurator, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'

This one is about a missing DLL, and it is pretty easy to fix find the Add'On where the missing dependency is and install it. :)

 

Additionally, you can send me the KSP.log so I can check it for you. This ends up being useful for me too, as I keep track of the problems happening on the field on this moment, and can help on planning the next releases (as to be aware of a supported Add'On  passing trough a heavy legacy breaking update that needs to be handled by TweakScale).

 

Spoiler

 

2 hours ago, Moshbot said:

Sincerely yours,

Lead Engineer of the
Russian KSP department

One of the best forum signatures ever, Поздравляю!  (hope I did it right :sticktongue:)

Cheers!

Edited by Lisias
better phrasing
Link to comment
Share on other sites

35 minutes ago, Lisias said:

Additionally, you can send me the KSP.log so I can check it for you. This ends up being useful for me too, as I keep track of the problems happening on the field on this moment, and can help on planning the next releases (as to be aware of a supported Add'On  passing trough a heavy legacy breaking update that needs to be handled by TweakScale).

Woah... that's a lot :o I will try to deal with it tomorrow, thank you very much! 
Okay, I uploaded my last KSP.log on google disk. I set it to watcher-commentator mode, but if there will be some trouble - let me know!
https://drive.google.com/file/d/11dPauWBzn3VCpPPe8Ma0Ms1HoVNox_iE/view?usp=sharing

Link to comment
Share on other sites

4 hours ago, Moshbot said:

Woah... that's a lot :o I will try to deal with it tomorrow, thank you very much! 
Okay, I uploaded my last KSP.log on google disk. I set it to watcher-commentator mode, but if there will be some trouble - let me know!
https://drive.google.com/file/d/11dPauWBzn3VCpPPe8Ma0Ms1HoVNox_iE/view?usp=sharing

Got it! You are lucky, it's a very simple problem:

[ERR 19:28:38.811] [AssemblyLoader] Exception when getting assembly attributes: Exception of type 'System.Reflection.ReflectionTypeLoadException' was thrown.

Additional information about this exception:

 System.TypeLoadException: Could not load type of field 'SoundtrackEditor.GuiManager:toolbarControl' (14) due to: Could not load file or assembly 'ToolbarControl, Version=0.1.9.6, Culture=neutral, PublicKeyToken=null' or one of its dependencies. assembly:ToolbarControl, Version=0.1.9.6, Culture=neutral, PublicKeyToken=null type:<unknown type> member:(null) signature:<none>

You forgot to install ToolbarControl or, if you are using CKAN, someone forgot to flag it as a dependency for SoundtrackEditor! :)

Cheers!

Link to comment
Share on other sites

ANNOUNCE

Release 2.4.6.3 is available for downloading, with the following changes:

  • Closes Issues:
    • #211 Mitigate the HotKeys being hijacked by 3rd-parties
    • #209 TweakScale not installed on wrong directory
    • #197 Flags (the parts attachable) are losing the attaching points when its parent is duplicated
    • #167 Mirror Symmetry is displacing some (all?) parts when scaled
    • #139 Scaling Part with Variants that change attachment nodes is not working as expecnted

See OP for the links.

Notes

RL™ can be funny sometimes. I'm having a terribly busy week, but today I had to burn some midnight oil and due the Black Friday, one client flooded our servers with data that needed to be housekept before an update - and boy, this housekeeping took the whole night.

So I had time to tinker with TweakScale in the mean time. :D 

I managed to locate and fix two very annoying bugs (incredibly simple to fix after the heavy refactoring on 2.4.6.0!) and by plain luck these two fixes combined closed 4 issues. It worths to mention that in the process, I think I found another KSP bug:sealed: Check this comment on the #167 if you are curious.

142079978-348b8177-7a9c-4db2-8718-bd3342

— — — — —

This Release will be published using the following Schedule:

  • GitHub, reaching first manual installers and users of KSP-AVC. Right now.
  • CurseForge. 
  • SpaceDock (and CKAN users). Will not be published. Use 2.4.6.4 instead.

The reasoning is that I'm wasted, and I prefer to avoid the risk of making mistakes while publishing the thing - and I could use the time to have some feedback from early-adopters. ;) 

— — — — 

This is some examples of the problems (finally) fixed by this release:

Spoiler

1) Attaching nodes on Variants on mirroring:

Before:99996540-a74d3300-2d9a-11eb-926e-ccbaa8d

Now: 142736304-b250564e-9de4-45a5-a3bf-618a9e

2) Misbehaving symmetry while attaching parts with Auto Scale:

Before: 107807423-de523580-6d46-11eb-8f9b-2caf1c

Now: 142736402-e95f6c0a-cf29-485a-ab3a-c8620a

(note that AutoScale doesn't have meta-information about adapters, so I doesn't auto scale parts being attached to it)

3) Weird misbehaving on Chain Scaling parts on mirrors

Before: 108003964-26858800-6fd3-11eb-80d3-5fbeac108004102-9267f080-6fd3-11eb-88c4-aa2282

108004102-9267f080-6fd3-11eb-88c4-aa2282Now: 142715834-d54ab4e5-bd30-49f5-88a5-a616d2

142715834-d54ab4e5-bd30-49f5-88a5-a616d2 

 

Edited by Lisias
Distribution aborted. Use 2.4.6.4 instead.
Link to comment
Share on other sites

 

MYV8F69.png

Spoiler

[LOG 00:23:27.891] ******* Log Initiated for Kerbal Space Program - 1.12.2.3167 (WindowsPlayer x64) en-us *******
Kerbal Space Program - 1.12.2.3167 (WindowsPlayer x64) en-us


OS: Windows 10  (10.0.0) 64bit
CPU: AMD Ryzen 5 3600 6-Core Processor  (12)
RAM: 16319
GPU: NVIDIA GeForce RTX 3070 (8043MB)
SM: 50 (Direct3D 11.0 [level 11.1])
RT Formats: ARGB32, Depth, ARGBHalf, Shadowmap, RGB565, ARGB4444, ARGB1555, Default, ARGB2101010, DefaultHDR, ARGB64, ARGBFloat, RGFloat, RGHalf, RFloat, RHalf, R8, ARGBInt, RGInt, RInt, BGRA32, RGB111110Float, RG32, RGBAUShort, RG16, BGRA10101010_XR, BGR101010_XR, R16


Log started: Sun, Nov 21, 2021 00:23:27


[LOG 00:23:27.911] ActionCanvas MASK: 3458764513820540928
[LOG 00:23:27.911] AppCanvas MASK: 3458764513820540928
[LOG 00:23:27.913] MainCanvas MASK: 3458764513820540928
[LOG 00:23:29.566] Load(Assembly): /666_ModuleManagerWatchDog
[LOG 00:23:29.566] AssemblyLoader: Loading assembly at C:\Users\bengu\Desktop\KSP Home\KSP_win64\GameData\666_ModuleManagerWatchDog.dll
[LOG 00:23:29.588] AssemblyLoader: KSPAssembly 'ModuleManagerWatchDog' V1.0.0
[LOG 00:23:29.588] Load(Assembly): /999_Scale_Redist
[LOG 00:23:29.588] AssemblyLoader: Loading assembly at C:\Users\bengu\Desktop\KSP Home\KSP_win64\GameData\999_Scale_Redist.dll
[LOG 00:23:29.589] Load(Assembly): /ModuleManager.4.2.1
[LOG 00:23:29.589] AssemblyLoader: Loading assembly at C:\Users\bengu\Desktop\KSP Home\KSP_win64\GameData\ModuleManager.4.2.1.dll
[LOG 00:23:29.590] AssemblyLoader: KSPAssembly 'ModuleManager' V2.5.0
[LOG 00:23:29.590] Load(Assembly): 999_KSP-Recall/Plugins/Attached
[LOG 00:23:29.590] AssemblyLoader: Loading assembly at C:\Users\bengu\Desktop\KSP Home\KSP_win64\GameData\999_KSP-Recall\Plugins\Attached.dll
[LOG 00:23:29.592] AssemblyLoader: KSPAssemblyDependency 'KSPe.Light.Recall' V2.3.0
[LOG 00:23:29.592] Load(Assembly): 999_KSP-Recall/Plugins/ChillingOut
[LOG 00:23:29.592] AssemblyLoader: Loading assembly at C:\Users\bengu\Desktop\KSP Home\KSP_win64\GameData\999_KSP-Recall\Plugins\ChillingOut.dll
[LOG 00:23:29.593] AssemblyLoader: KSPAssemblyDependency 'KSPe.Light.Recall' V2.3.0
[LOG 00:23:29.593] Load(Assembly): 999_KSP-Recall/Plugins/Driftless
[LOG 00:23:29.593] AssemblyLoader: Loading assembly at C:\Users\bengu\Desktop\KSP Home\KSP_win64\GameData\999_KSP-Recall\Plugins\Driftless.dll
[LOG 00:23:29.593] AssemblyLoader: KSPAssemblyDependency 'KSPe.Light.Recall' V2.3.0
[LOG 00:23:29.594] Load(Assembly): 999_KSP-Recall/Plugins/KSP-Recall
[LOG 00:23:29.594] AssemblyLoader: Loading assembly at C:\Users\bengu\Desktop\KSP Home\KSP_win64\GameData\999_KSP-Recall\Plugins\KSP-Recall.dll
[LOG 00:23:29.595] AssemblyLoader: KSPAssemblyDependency 'KSPe.Light.Recall' V2.3.0
[LOG 00:23:29.595] Load(Assembly): 999_KSP-Recall/Plugins/KSPe.Light.Recall
[LOG 00:23:29.595] AssemblyLoader: Loading assembly at C:\Users\bengu\Desktop\KSP Home\KSP_win64\GameData\999_KSP-Recall\Plugins\KSPe.Light.Recall.dll
[LOG 00:23:29.596] AssemblyLoader: KSPAssembly 'KSPe.Light.Recall' V2.3.0
[LOG 00:23:29.596] Load(Assembly): 999_KSP-Recall/Plugins/LetsStayTogether
[LOG 00:23:29.596] AssemblyLoader: Loading assembly at C:\Users\bengu\Desktop\KSP Home\KSP_win64\GameData\999_KSP-Recall\Plugins\LetsStayTogether.dll
[LOG 00:23:29.597] AssemblyLoader: KSPAssemblyDependency 'KSPe.Light.Recall' V2.3.0
[LOG 00:23:29.597] Load(Assembly): 999_KSP-Recall/Plugins/Refunding
[LOG 00:23:29.597] AssemblyLoader: Loading assembly at C:\Users\bengu\Desktop\KSP Home\KSP_win64\GameData\999_KSP-Recall\Plugins\Refunding.dll
[LOG 00:23:29.598] AssemblyLoader: KSPAssemblyDependency 'KSPe.Light.Recall' V2.3.0
[LOG 00:23:29.598] Load(Assembly): 999_KSP-Recall/Plugins/Resourceful
[LOG 00:23:29.598] AssemblyLoader: Loading assembly at C:\Users\bengu\Desktop\KSP Home\KSP_win64\GameData\999_KSP-Recall\Plugins\Resourceful.dll
[LOG 00:23:29.599] AssemblyLoader: KSPAssemblyDependency 'KSPe.Light.Recall' V2.3.0
[LOG 00:23:29.599] Load(Assembly): ModuleManagerWatchDog/Plugins/WatchDogForInterstellarRedist
[LOG 00:23:29.599] AssemblyLoader: Loading assembly at C:\Users\bengu\Desktop\KSP Home\KSP_win64\GameData\ModuleManagerWatchDog\Plugins\WatchDogForInterstellarRedist.dll
[LOG 00:23:29.600] AssemblyLoader: KSPAssembly 'WatchDogForInterstellarRedist' V1.0.0
[LOG 00:23:29.600] Load(Assembly): ModuleManagerWatchDog/Plugins/WatchDogForScaleRedist
[LOG 00:23:29.600] AssemblyLoader: Loading assembly at C:\Users\bengu\Desktop\KSP Home\KSP_win64\GameData\ModuleManagerWatchDog\Plugins\WatchDogForScaleRedist.dll
[LOG 00:23:29.601] AssemblyLoader: KSPAssembly 'WatchDogForScaleRedist' V1.0.0
[LOG 00:23:29.602] Load(Assembly): TweakScale/Plugins/KSPe.Light.TweakScale
[LOG 00:23:29.602] AssemblyLoader: Loading assembly at C:\Users\bengu\Desktop\KSP Home\KSP_win64\GameData\TweakScale\Plugins\KSPe.Light.TweakScale.dll
[LOG 00:23:29.603] AssemblyLoader: KSPAssembly 'KSPe.Light.TweakScale' V2.4.0
[LOG 00:23:29.603] Load(Assembly): TweakScale/Plugins/Scale
[LOG 00:23:29.603] AssemblyLoader: Loading assembly at C:\Users\bengu\Desktop\KSP Home\KSP_win64\GameData\TweakScale\Plugins\Scale.dll
[LOG 00:23:29.604] AssemblyLoader: KSPAssembly 'Scale' V2.4.0
[LOG 00:23:29.604] AssemblyLoader: KSPAssemblyDependency 'KSPe.Light.TweakScale' V2.4.0
[LOG 00:23:29.605] AssemblyLoader: Loading assemblies
[LOG 00:23:29.680] VesselModules: Found VesselModule of type AxisGroupsModule with order 999
[LOG 00:23:29.728] VesselModules: Found VesselModule of type CometVessel with order 999
[LOG 00:23:29.730] VesselModules: Found VesselModule of type SuspensionLoadBalancer with order 999
[LOG 00:23:29.731] VesselModules: Found VesselModule of type FlightIntegrator with order 0
[LOG 00:23:29.733] VesselModules: Found VesselModule of type CommNetVessel with order 999
[LOG 00:23:29.737] VesselModules: Found 5 VesselModule types
[LOG 00:23:29.746] 
************************************************************************

Environment Info
Win32NT 7FFFFFFFFFFFFFFF  Args: KSP_x64.exe 

Mod DLLs found:
Stock assembly: Assembly-CSharp v0.0.0.0
ModuleManagerWatchDog v1.0.1.1
Scale_Redist v1.0.0.0 / v2.4.6.3
ModuleManager v4.2.1.0
KSPe.Light.Recall v2.3.0.4
Attached v0.2.0.6
ChillingOut v0.2.0.6
Driftless v0.2.0.6
KSP-Recall v0.2.0.6
LetsStayTogether v0.2.0.4
Refunding v0.2.0.6
Resourceful v0.2.0.6
WatchDogForInterstellarRedist v1.0.1.1
WatchDogForScaleRedist v1.0.1.1
KSPe.Light.TweakScale v2.4.1.6
Scale v2.4.6.3

Folders and files in GameData:
999_KSP-Recall
ModuleManagerWatchDog
Stock folder: Squad

Stock folder: SquadExpansion

TweakScale
666_ModuleManagerWatchDog.dll
999_Scale_Redist.dll
ModuleManager.4.2.1.dll

************************************************************************

[LOG 00:23:29.766] [AddonLoader]: Instantiating addon 'Startup' from assembly 'ModuleManagerWatchDog'
[LOG 00:23:29.767] [AddonLoader]: Instantiating addon 'ModuleManager' from assembly 'ModuleManager'
[LOG 00:23:29.777] [ModuleManager] Adding post patch to the loading screen 4
[LOG 00:23:29.780] [ModuleManager] Patching started on a new thread, all output will be directed to C:\Users\bengu\Desktop\KSP Home\KSP_win64\Logs\ModuleManager\ModuleManager.log
[LOG 00:23:29.782] [AddonLoader]: Instantiating addon 'Startup' from assembly 'KSPe.Light.Recall'
[LOG 00:23:29.783] [AddonLoader]: Instantiating addon 'Startup' from assembly 'KSP-Recall'
[LOG 00:23:29.783] [AddonLoader]: Instantiating addon 'Startup' from assembly 'WatchDogForInterstellarRedist'
[LOG 00:23:29.783] [AddonLoader]: Instantiating addon 'Startup' from assembly 'WatchDogForScaleRedist'
[LOG 00:23:29.784] [AddonLoader]: Instantiating addon 'Startup' from assembly 'KSPe.Light.TweakScale'
[LOG 00:23:29.785] [KSPe.Globals] INFO: KSPe.cfg does not exists. Using defaults.
[LOG 00:23:29.786] [AddonLoader]: Instantiating addon 'TweakScaleRegister' from assembly 'Scale'
[LOG 00:23:29.786] [AddonLoader]: Instantiating addon 'Startup' from assembly 'Scale'
[LOG 00:23:29.787] [AddonLoader]: Instantiating addon 'ModuleManagerListener' from assembly 'Scale'
[LOG 00:23:30.735] Load(Audio): Squad/Alarms/Sounds/Chirps
[LOG 00:23:30.765] [ModuleManagerWatchDog] Version 1.0.1.1 /L
[LOG 00:23:30.768] [ModuleManagerWatchDog] DETAIL: Current version 1.12 is enforced on rules for 1.8.
[LOG 00:23:30.769] [ModuleManagerWatchDog] DETAIL: Current version 1.12 is enforced on rules for 1.12.
[LOG 00:23:30.791] [KSPe.Light.KSP-Recall] Version 2.3.0.4 /L
[LOG 00:23:30.797] [KSPe] KSPe.cfg does not exists. Using defaults.
[LOG 00:23:30.797] [KSP_Recall] Version 0.2.0.6 /L running on KSP 1.12.2
[LOG 00:23:30.905] [WatchDogForInterstellarRedist] Version 1.0.1.1 /L
[LOG 00:23:30.906] [WatchDogForInterstellarRedist] DETAIL: No clients found. Sanity Check aborted.
[LOG 00:23:30.906] [WatchDogForScaleRedist] Version 1.0.1.1 /L
[LOG 00:23:30.911] [WatchDogForScaleRedist] DETAIL: Clients found. Checking integrity...
[LOG 00:23:30.911] [ModuleManagerWatchDog] DETAIL: Current version 1.12 is enforced on rules for 1.8.
[LOG 00:23:30.912] [WatchDogForScaleRedist] DETAIL: System is good to go.
[LOG 00:23:30.912] [KSPe.Light.TweakScale] Version 2.4.1.6 /L
[LOG 00:23:30.955] [TweakScale] Version 2.4.6.3 /L
[LOG 00:23:31.063] [TweakScale] ERROR: System.TypeInitializationException: The type initializer for 'KSPe.IO.Hierarchy`1' threw an exception. ---> System.TypeInitializationException: The type initializer for 'KSPe.IO.Hierarchy' threw an exception. ---> System.ComponentModel.Win32Exception: The system cannot find the file specified.

  at KSPe.Multiplatform.LowLevelTools.Windows32.GetFinalPathName (System.String path) [0x0002b] in <f267864bc5b14efd9db6b3cdd8146f53>:0 
  at KSPe.Multiplatform.FileSystem.Reparse_windows (System.String path) [0x00000] in <f267864bc5b14efd9db6b3cdd8146f53>:0 
  at KSPe.Multiplatform.FileSystem.ReparsePath (System.String path) [0x00015] in <f267864bc5b14efd9db6b3cdd8146f53>:0 
  at KSPe.IO.Directory.RealPath (System.String path) [0x0001f] in <f267864bc5b14efd9db6b3cdd8146f53>:0 
  at KSPe.IO.Directory.Exists (System.String path) [0x00000] in <f267864bc5b14efd9db6b3cdd8146f53>:0 
  at KSPe.IO.Path.EnsureTrailingSeparatorOnDir (System.String path, System.Boolean blindlyAppend) [0x00033] in <f267864bc5b14efd9db6b3cdd8146f53>:0 
  at KSPe.IO.Path.Combine (System.String path1, System.String path2) [0x00007] in <f267864bc5b14efd9db6b3cdd8146f53>:0 
  at KSPe.IO.Hierarchy..ctor (System.String name, System.String dirName) [0x0000d] in <f267864bc5b14efd9db6b3cdd8146f53>:0 
  at KSPe.IO.Hierarchy..cctor () [0x0002d] in <f267864bc5b14efd9db6b3cdd8146f53>:0 
   --- End of inner exception stack trace ---
   --- End of inner exception stack trace ---
  at (wrapper managed-to-native) System.Object.__icall_wrapper_mono_generic_class_init(intptr)
  at KSPe.Util.SystemTools+Assembly+Loader`1[T].TryPath (System.String path, System.String[] subdirs) [0x00000] in <f267864bc5b14efd9db6b3cdd8146f53>:0 
  at KSPe.Util.SystemTools+Assembly+Loader`1[T]..ctor (System.String[] subdirs) [0x0002e] in <f267864bc5b14efd9db6b3cdd8146f53>:0 
  at TweakScale.Startup.Start () [0x00018] in <45182d9103c649a9b01afeb7178d397a>:0  at error:0
[ERR 00:23:31.065] Unable to use a named GUIStyle without a current skin. Most likely you need to move your GUIStyle initialization code to OnGUI

[ERR 00:23:31.066] Unable to use a named GUIStyle without a current skin. Most likely you need to move your GUIStyle initialization code to OnGUI

[LOG 00:23:31.066] [TweakScale] "Houston, we have a Problem!" about Missing DLLs was displayed

this was done on a fresh install of 1.12.2, even though the screenshot is not vanilla it is the exact same message if the only thing installed is Recall and Tweakscale

Edited by KAO
Link to comment
Share on other sites

1 hour ago, Fihnakis said:

Same message with anything after 2.4.6.2

Just read (it's a work in progress skill for me) your message that another mod installed can mess with assembly loader and prevent tweakscale from loading.  Here is my log file without tweakscale installed. 

There's no TweakScale installed on this KSP.log, sir. I can't help!

Cheers!

Link to comment
Share on other sites

On 11/19/2021 at 12:18 AM, Lisias said:

Got it! You are lucky, it's a very simple problem:

[ERR 19:28:38.811] [AssemblyLoader] Exception when getting assembly attributes: Exception of type 'System.Reflection.ReflectionTypeLoadException' was thrown.

Additional information about this exception:

 System.TypeLoadException: Could not load type of field 'SoundtrackEditor.GuiManager:toolbarControl' (14) due to: Could not load file or assembly 'ToolbarControl, Version=0.1.9.6, Culture=neutral, PublicKeyToken=null' or one of its dependencies. assembly:ToolbarControl, Version=0.1.9.6, Culture=neutral, PublicKeyToken=null type:<unknown type> member:(null) signature:<none>

You forgot to install ToolbarControl or, if you are using CKAN, someone forgot to flag it as a dependency for SoundtrackEditor! :)

Cheers!

Good day again! I'm sorry for not thanking for help before. Have done just now, what you advised about, even with your updated version of TweakScale, but still getting this message. 

I also tried to search the problem in Log by myself and even find something. There was a line "Cannot find config in file : WATERFALL_SETTINGS". I've installed this waterfall mod, but not only message remains, but even in Log this problem stayed. 

With it also finds part "Unable to use a named GUIStyle without a current skin", but here I just don't get it at all, so as what I need to do with this)

Also, installed ToolbarControl not resolve the problem - "System.TypeLoadException: Could not load type of field 'SoundtrackEditor.GuiManager:toolbarControl' "

That is strange.

I've uploaded new log, just in case -

https://drive.google.com/file/d/1NY9Nqf8T-aVqRshHT-nwCIuk2Vro7h7P/view?usp=sharing

Thank you again for help, at least, I'm learning how to find probable mistake in game.

Link to comment
Share on other sites

2 hours ago, Moshbot said:

Good day again! I'm sorry for not thanking for help before. Have done just now, what you advised about, even with your updated version of TweakScale, but still getting this message. 

I also tried to search the problem in Log by myself and even find something. There was a line "Cannot find config in file : WATERFALL_SETTINGS". I've installed this waterfall mod, but not only message remains, but even in Log this problem stayed. 

With it also finds part "Unable to use a named GUIStyle without a current skin", but here I just don't get it at all, so as what I need to do with this)

Also, installed ToolbarControl not resolve the problem - "System.TypeLoadException: Could not load type of field 'SoundtrackEditor.GuiManager:toolbarControl' "

That is strange.

I've uploaded new log, just in case -

https://drive.google.com/file/d/1NY9Nqf8T-aVqRshHT-nwCIuk2Vro7h7P/view?usp=sharing

Thank you again for help, at least, I'm learning how to find probable mistake in game.

Strange indeed. The Log says SoundtrackEditor is not being able to be loaded because ToolbarControl has something it didn't understand.

[ERR 16:03:02.085] [AssemblyLoader] Exception when getting assembly attributes: Exception of type 'System.Reflection.ReflectionTypeLoadException' was thrown.

Additional information about this exception:

 System.TypeLoadException: Could not load type of field 'SoundtrackEditor.GuiManager:toolbarControl' (14) due to: Could not load file or assembly 'ToolbarControl, Version=0.1.
9.6, Culture=neutral, PublicKeyToken=null' or one of its dependencies. assembly:ToolbarControl, Version=0.1.9.6, Culture=neutral, PublicKeyToken=null type:<unknown type> member:(null) signature:<none>

Digging around, I found this:

[WRN 16:03:00.925] AssemblyLoader: Assembly 'ToolbarController' has not met dependency 'ClickThroughBlocker' V1.0.0
[WRN 16:03:00.925] AssemblyLoader: Assembly 'ToolbarController' is missing 1 dependencies

So I think Toolbar Control is borking because CTB is missing, and since ToolbarControl is borked, SoundTrackEditor borks too.

Try to install CTB. If this doesn't fixes the problem, you will need to reach SoundtrackEditor's mainteiner for help!

 

2 hours ago, Moshbot said:

Thank you again for help, at least, I'm learning how to find probable mistake in game.

Welcome! :)

Link to comment
Share on other sites

5 hours ago, Lisias said:

Strange indeed. The Log says SoundtrackEditor is not being able to be loaded because ToolbarControl has something it didn't understand.

[ERR 16:03:02.085] [AssemblyLoader] Exception when getting assembly attributes: Exception of type 'System.Reflection.ReflectionTypeLoadException' was thrown.

Additional information about this exception:

 System.TypeLoadException: Could not load type of field 'SoundtrackEditor.GuiManager:toolbarControl' (14) due to: Could not load file or assembly 'ToolbarControl, Version=0.1.
9.6, Culture=neutral, PublicKeyToken=null' or one of its dependencies. assembly:ToolbarControl, Version=0.1.9.6, Culture=neutral, PublicKeyToken=null type:<unknown type> member:(null) signature:<none>

Digging around, I found this:

[WRN 16:03:00.925] AssemblyLoader: Assembly 'ToolbarController' has not met dependency 'ClickThroughBlocker' V1.0.0
[WRN 16:03:00.925] AssemblyLoader: Assembly 'ToolbarController' is missing 1 dependencies

So I think Toolbar Control is borking because CTB is missing, and since ToolbarControl is borked, SoundTrackEditor borks too.

Try to install CTB. If this doesn't fixes the problem, you will need to reach SoundtrackEditor's mainteiner for help!

Okay, that goes too far XD (Spoilers - not working still)

I've decided to delete Soundtrack Editor, because your mod is unbelievably more helpful, rather than new background sounds. 

I've also installed CTB (google gives me only one mod wich is named so - ClickThroughBlocker. Hope this is the one).

After this I was searching for these log parts you've shown me, and didn't find them. Think it's a good sign. But found something new.

I think I can just type the numbers like "16:03:00.925" and this will be easily for you to find through search bar. 

1 - ERR 00:50:17.394  (and a few more below it)

2 - ERR 00:50:18.035 (and two more below, messing with MeshEngineStock and MeshEngineTweakScale)

3 - LOG 00:50:24.559  (error mentioned TweakScale itself, also adding this known part about 'KSPe.IO.Hierarchy`1' )

4 - ERR 00:50:24.560 (again this GUIStyle and my completely unknowledge of what it is)

5 - ERR 00:50:24.567 (strange, but again something with Waterfall_settings)

6 - ERR 00:50:27.837  (Something about the thing called DXT3 and that format is not supported, + advise to use DXT5)
Next goes just errors of loading some textures but meh, thinking there is no such big problem. 

(Hope it helped at least a little :confused:)

New link -

https://drive.google.com/file/d/1pmT-1uz4Vt10UPcP8nFAd24lGqT0KhTm/view?usp=sharing

Link to comment
Share on other sites

3 hours ago, Moshbot said:

Okay, that goes too far XD (Spoilers - not working still)

Oh well, at least is a step ahead. I hope. :)

 

3 hours ago, Moshbot said:

I've decided to delete Soundtrack Editor, because your mod is unbelievably more helpful, rather than new background sounds. 

Removing Add'Ons is not the best way out of the mess IMHO, but sometimes we need to make compromises. :/

Let's hope that by solving the remaining problems, you can reinstall it back.

 

3 hours ago, Moshbot said:

I've also installed CTB (google gives me only one mod wich is named so - ClickThroughBlocker. Hope this is the one).

Sorry! I'm so used to it that sometimes I forget that people my not know it. :P

About your log...

[LOG 17:53:17.884] [TweakScale] ERROR: System.TypeInitializationException: The type initializer for 'KSPe.IO.Hierarchy`1' threw an exception. ---> System.TypeInitializatio
nException: The type initializer for 'KSPe.IO.Hierarchy' threw an exception. ---> System.ComponentModel.Win32Exception: Не удается найти указанный файл.

  at KSPe.Multiplatform.LowLevelTools.Windows32.GetFinalPathName (System.String path) [0x0002b] in <f267864bc5b14efd9db6b3cdd8146f53>:0
  at KSPe.Multiplatform.FileSystem.Reparse_windows (System.String path) [0x00000] in <f267864bc5b14efd9db6b3cdd8146f53>:0
  at KSPe.Multiplatform.FileSystem.ReparsePath (System.String path) [0x00015] in <f267864bc5b14efd9db6b3cdd8146f53>:0
  at KSPe.IO.Directory.RealPath (System.String path) [0x0001f] in <f267864bc5b14efd9db6b3cdd8146f53>:0
  at KSPe.IO.Directory.Exists (System.String path) [0x00000] in <f267864bc5b14efd9db6b3cdd8146f53>:0
  at KSPe.IO.Path.EnsureTrailingSeparatorOnDir (System.String path, System.Boolean blindlyAppend) [0x00033] in <f267864bc5b14efd9db6b3cdd8146f53>:0
  at KSPe.IO.Path.Combine (System.String path1, System.String path2) [0x00007] in <f267864bc5b14efd9db6b3cdd8146f53>:0
  at KSPe.IO.Hierarchy..ctor (System.String name, System.String dirName) [0x0000d] in <f267864bc5b14efd9db6b3cdd8146f53>:0
  at KSPe.IO.Hierarchy..cctor () [0x0008c] in <f267864bc5b14efd9db6b3cdd8146f53>:0
   --- End of inner exception stack trace ---
   --- End of inner exception stack trace ---
  at (wrapper managed-to-native) System.Object.__icall_wrapper_mono_generic_class_init(intptr)
  at KSPe.Util.SystemTools+Assembly+Loader`1[T].TryPath (System.String path, System.String[] subdirs) [0x00000] in <f267864bc5b14efd9db6b3cdd8146f53>:0
  at KSPe.Util.SystemTools+Assembly+Loader`1[T]..ctor (System.String[] subdirs) [0x0002e] in <f267864bc5b14efd9db6b3cdd8146f53>:0
  at TweakScale.Startup.Start () [0x00018] in <45182d9103c649a9b01afeb7178d397a>:0  at error:0

This one is on me. :( Something changed on Windows 10 and it caught me with my pants down. :(

I'm going to work on it this week https://github.com/net-lisias-ksp/TweakScale/issues/216

But in the mean time, you can download the 2.4.6.2 release and manually extract the KSP.Light.TweakScale.dll and replace the one from 2.4.6.3. Of course you may also just rollback to 2.4.6.2, but the .3 release has some interesting fixes and I think it may worth the pain.

 

3 hours ago, Moshbot said:

4 - ERR 00:50:24.560 (again this GUIStyle and my completely unknowledge of what it is)

These ones are annoying, but harmless. I will tackle them down ASAP, but it's hard to wave a important bug fix or a nice feature to fix something that, at least until this moment, it's completely harmless.

 

3 hours ago, Moshbot said:

6 - ERR 00:50:27.837  (Something about the thing called DXT3 and that format is not supported, + advise to use DXT5)
Next goes just errors of loading some textures but meh, thinking there is no such big problem. 

You need to reach WildBlueTools' maintainer for that!

 

3 hours ago, Moshbot said:

(Hope it helped at least a little :confused:)

Yep, now we nailed it. A proper solution is work in progress, but the workaround above (use KSPe.Light.TweakScale from the 2.4.6.2 release) will work for now.

In time, are you using SymLinks, mount points or similar on your rig?

Link to comment
Share on other sites

17 hours ago, Lisias said:

Yep, now we nailed it. 

I have two news - bad and good.

Good - this notice on loading screen is disappears, + got twicer FPS. 

Bad - nothing can be scaled at all. You can choose part, find this TweakScale option in bar, but scale of part didn't changing. And another strange thing - I can't use any solar panels. To be more specific - those who are pulled out. When I try to drag them from menu list - they looks glitchy...like idk.. imagine two variation of part. 1 - wich is covered by green color and means "kk, I can be attached here!" and 2-  "nope, find another part, I'll stay grey." And this two colors are flickering with almost the speed of light and you can't do anything with them. Only drop back in list.

Those few wich is not moving - working ok. 

 

17 hours ago, Lisias said:

In time, are you using SymLinks, mount points or similar on your rig?

Oh, I wish I could tell how much I didn't get what you've asked XD

What does it mean?

Link to comment
Share on other sites

3 hours ago, Moshbot said:

I have two news - bad and good.

I got these the whole day!!! :confused:

 

3 hours ago, Moshbot said:

Good - this notice on loading screen is disappears, + got twicer FPS. 

What means that the constant TweakScale borks were hitting your FPS (sigh). Well, let's fix this.

 

3 hours ago, Moshbot said:

I have two news - bad and good.

Good - this notice on loading screen is disappears, + got twicer FPS. 

Bad - nothing can be scaled at all. You can choose part, find this TweakScale option in bar, but scale of part didn't changing. And another strange thing - I can't use any solar panels.

What's happening is that I had "split" TweakScale in many cores, each one specialised on a situation on user's rig. This saves me from creating a different TweakScale version for every possible situation in the World (it's like the Companions, but focused on KSP only). But since that bug is screwing up exactly the Assembly Loader/Resolver, KSP is not fulfilling TweakScale's requests for loading them. :(

Right now, I can think of two choices for fixing your problem until I nail that pesky bug on KSPe.Light.TweakScale:

  1. Remove 2.4.6.3 and install 2.4.6.2 (the previous version).
  2. Download 2.4.6.2, extract the KSPe.Light.TweakScale.dll file and copy it into GameData/TweakScale/Plugins folder.
    1. Or just download this file (a 2.4.6.3 release with the DLL already replaced) and use it to reinstall TweakScale, after completely removing the current one.

This will allow you to play while I fix that pesky `Kernel32.dll` problem on a way that doesn't hurt users.

 

1 hour ago, SpaceKid said:

If anyone could help it would be much appreciated. I opened what I think is KSP.log but finding nothing with [TweakScale] ERROR: **FATAL**

But it's there, I assure you. Check this link on how to locate KSP.log and then publish it on dropbox or something (and post the link here!) so I can inspect it for you. I can advance that there're one rogue patch on your GameData that it's patching a part with TweakScale twice, and this is really far from being safe, as this can lead TweakScale to confusion and screw up the scaling of that part on flight on the next boot.

 

3 hours ago, Moshbot said:

Oh, I wish I could tell how much I didn't get what you've asked XD

What does it mean?

It's a way to redirect directories and folders from one location to another. It's also how Windows "mounts" a disk "inside" a directory on another one, so you can use everything as one big disk without having to remember in which disk things are.

Check this link for more info.

Link to comment
Share on other sites

4 hours ago, Lisias said:

But it's there, I assure you. Check this link on how to locate KSP.log and then publish it on dropbox or something (and post the link here!) so I can inspect it for you. I can advance that there're one rogue patch on your GameData that it's patching a part with TweakScale twice, and this is really far from being safe, as this can lead TweakScale to confusion and screw up the scaling of that part on flight on the next boot.

 

Thanks for this. Working on it!

Link to comment
Share on other sites

4 hours ago, SpaceKid said:

Ok, I found the KSP.log file and link is here

https://www.dropbox.com/s/ai5pwtfdi85j8ve/Player.log?dl=0 

Got it:

[TweakScale] ERROR: **FATAL** Part bdWarheadSmall (Small High Explosive Warhead) has a fatal problem due having duplicated properties - see issue [#34]( https://github.com/net-lisias-ksp/TweakScale/issues/34 ). at error:0
(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 35)

You have BDArmory installed twice on your rig! :)

Config(@PART[bdWarheadSmall]:AFTER[BDArmory]) BDArmory/BDArmory/Localization/part_deformatter/@PART[bdWarheadSmall]:AFTER[BDArmory]
Config(@PART[bdWarheadSmall]) BDArmory/BDArmory/MMPatches/BDA_TweakScale/@PART[bdWarheadSmall]
Config(@PART[bdWarheadSmall]:AFTER[BDArmory]) BDArmory/Localization/part_deformatter/@PART[bdWarheadSmall]:AFTER[BDArmory]
Config(@PART[bdWarheadSmall]) BDArmory/MMPatches/BDA_TweakScale/@PART[bdWarheadSmall]

Completely delete GameData/BDArmory/BDArmory and you will be good!

Cheers!

Link to comment
Share on other sites

Also getting the "KSPe.IO.Hierarchy`1" error thrown in my face.
https://www.dropbox.com/s/jv1zz19gf0d1e7k/Player.log?dl=0

I'm trying to get it fixed by myself, but I'm hitting a wall. I reverted everything I could find to the last working configuration but I'm getting nowhere. Feels like I'm turning into my father who never figured out how to adjust the clock on the VCR. First post of this (111th) page is gibberish to me at the moment. Maybe I'd do better after enough sleep, but for now nothing.

 

EDIT: Well, damn. After trying to revert back to an even older, working config, I got a different message and this time it was about modulemanagerwatchdog, and it led me to (I realize now why it's called that) ksp.lisias.net. Cleaned up as was told, and now the game boot without throwing an error in my face. Fingers crossed!

Edited by Axelord FTW
Link to comment
Share on other sites

On 11/22/2021 at 4:49 AM, Lisias said:

But in the mean time, you can download the 2.4.6.2 release and manually extract the KSP.Light.TweakScale.dll and replace the one from 2.4.6.3. Of course you may also just rollback to 2.4.6.2, but the .3 release has some interesting fixes and I think it may worth the pain.

 

15 hours ago, Lisias said:

Right now, I can think of two choices for fixing your problem until I nail that pesky bug on KSPe.Light.TweakScale:

  1. Remove 2.4.6.3 and install 2.4.6.2 (the previous version).
  2. Download 2.4.6.2, extract the KSPe.Light.TweakScale.dll file and copy it into GameData/TweakScale/Plugins folder.
    1. Or just download this file (a 2.4.6.3 release with the DLL already replaced) and use it to reinstall TweakScale, after completely removing the current one.

This will allow you to play while I fix that pesky `Kernel32.dll` problem on a way that doesn't hurt users.

Don't those advise the same? I've just confuse a little)
Looks like yes. But that's my mistake, I didn't say at the first point that I've done it as you said. So, yeah, now I've done it twice. It's even better in terms of checking of will it deal the problem or not.
So, it won't, Then I'll just wait your new patch ^^

Also just in case I've captured how it looks in game -

 

15 hours ago, Lisias said:

It's a way to redirect directories and folders from one location to another. It's also how Windows "mounts" a disk "inside" a directory on another one, so you can use everything as one big disk without having to remember in which disk things are.

Now get it. 
M.. no, never did use that thing..

Link to comment
Share on other sites

6 hours ago, Lisias said:

Got it:

[TweakScale] ERROR: **FATAL** Part bdWarheadSmall (Small High Explosive Warhead) has a fatal problem due having duplicated properties - see issue [#34]( https://github.com/net-lisias-ksp/TweakScale/issues/34 ). at error:0
(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 35)

You have BDArmory installed twice on your rig! :)

Config(@PART[bdWarheadSmall]:AFTER[BDArmory]) BDArmory/BDArmory/Localization/part_deformatter/@PART[bdWarheadSmall]:AFTER[BDArmory]
Config(@PART[bdWarheadSmall]) BDArmory/BDArmory/MMPatches/BDA_TweakScale/@PART[bdWarheadSmall]
Config(@PART[bdWarheadSmall]:AFTER[BDArmory]) BDArmory/Localization/part_deformatter/@PART[bdWarheadSmall]:AFTER[BDArmory]
Config(@PART[bdWarheadSmall]) BDArmory/MMPatches/BDA_TweakScale/@PART[bdWarheadSmall]

Completely delete GameData/BDArmory/BDArmory and you will be good!

Cheers!

:o:o:o

THANK YOU!

Link to comment
Share on other sites

21 minutes ago, Moshbot said:

Don't those advise the same? I've just confuse a little)
Looks like yes. But that's my mistake, I didn't say at the first point that I've done it as you said. So, yeah, now I've done it twice. It's even better in terms of checking of will it deal the problem or not.
So, it won't, Then I'll just wait your new patch ^^

So even by installing 2.4.6.2's KSPe.Light.TweakScale, or by rollbacking entirely to 2.4.6.2, the issue is still present? :(

well… In a way or another, I just found information that clears TweakScale from the problem. Kernel32.dll is part of the Windows Operating System, and it's not being available is a problem on Windows that need to be corrected. Kernel32 provides Win32 File System File Management Functions for both Win32 and Win64 programs, and it's needed to provide support for one of the many Namespaces Windows uses.

In a nutshell, the terrible Microsoft DLL practices that always plagued this sad excuse of Operating System they call Windows are bitting us again.

 

@Moshbot, @Axelord FTW,   @KAO, you guys need to fix your Windows, I found instructions for how to fix your Windows from a trustable source here.

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...