TweakScale

TweakScale

1M Downloads

The type initializer threw an exception.

Joey-Destroyah opened this issue · 6 comments

commented

image
Mods
image
Ksp version 1.10.1

commented

Hi, @KSPFreak !

Your log was complete enough (and TweakScale don't use a dedicated log, it only uses the KSP.log, so don't worry).

I also have that problem. I uninstalled VesselviewerContinued but i still get that error.

In your case, it's a different problem with the same behaviour, the Vessel Mover was innocent on your case, see:

[ERR 14:41:13.998] ADDON BINDER: Cannot resolve assembly: SCANsat.Unity, Culture=neutral, PublicKeyToken=null

[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

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)

You have a problem with WildBlueTools. You need to reach WildBlue maintainer and ask what's mission or wrong on your rig, it appears that MoleUtils trying to link to an older (or too newer) version of something. Did you installed a Pre-Release binary or something? How did you installed these add'ons?

The nasty thing about that KSP bug on AssemblyResolver is that it the wrong guy ends up being accused of the problem. In essence, once the guilty strikes, everybody coming later can get the heat.

commented

hmm... i did not install any Pre-release stuff (at not on purpose)...all the mods i use i install via CKAN. Imma reach out the wild blue guy, maybe he has something for me. But thanks for the help, appreciate it :)

commented

Hi, @JovietUnion .

Without the KSP.log, I can only guess. Please provide the KSP.log so I can inspect exactly what's going on.

This error usually happens when another add'on borks, what ends up with the System.Reflection data structures inconsistent, and from that point everything that relies on it borks relentlessly - as TweakScale.

Without the KSP.log, I can't tell you who is borking on Reflection in order to have it fixed.

commented

KSP_TweakscaleError_2021-10-23.log

Hi, I seem to be having the same error. Have tried reinstalling it through CKAN and manually and still have the same errors. I've attached a log file for you to see if you can figure out what's going on.

@MrHuggy , it's a VesselViewerContinued.

[ERR 20:56:29.653] ADDON BINDER: Cannot resolve assembly: VesselViewRPM, Culture=neutral, PublicKeyToken=null

[ERR 20:56:29.674] AssemblyLoader: Exception loading 'VesselViewerContinued': System.Reflection.ReflectionTypeLoadException: Exception of type 'System.Reflection.ReflectionTypeLoadException' wa
  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 <8861f4ca916d41ddac4d879a32ad34b2>:0

Additional information about this exception:

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

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

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

[LOG 20:56:29.697] VesselModules: Found VesselModule of type AxisGroupsModule with order 999

There's a bug on KSP on a thingy called AssemblyLoader that if anything like that happens on it, then everything later also borks the same. You fix this first problem, and TweakScale will not be a victim of it anymore (unless there're more similar problems on the rig, it's possible).

Go to the VesselViewerContinued thread on Forum and ask for help there. I don't think you will be served by opening an issue on its github, but you can try. :)

Cheers!

commented

KSP_TweakscaleError_2021-10-23.log

Hi, I seem to be having the same error. Have tried reinstalling it through CKAN and manually and still have the same errors. I've attached a log file for you to see if you can figure out what's going on.

commented

I also have that problem. I uninstalled VesselviewerContinued but i still get that error.

Here´s the KSP.log, however it might not be "complete" because i terminated the process with the OK button after that window showed up. Also, if you tell me where i find it (i´m kind of a noob when it comes to computer stuff, sry) i can send you the KSP_TweakscaleError.log thingy. :)

KSP.log