Jump to content

TweakScale "System.Reflection.ReflectionTypeLoadException" error


Recommended Posts

Hello, I installed the TweakScale mod and I get the error "System.Reflection.ReflectionTypeLoadException" I don't understand how to fix it, please help anyone who can.

KSP.log   https://drive.google.com/file/d/15I5zIDrV_m8FMQVf19-7r-9QhwGMlRBh/view?usp=sharing

Error Screenshot   https://drive.google.com/file/d/1Yi6rXs-ca_ADBH-JyZCVDJ1PXsOZfVoO/view?usp=sharing

Link to comment
Share on other sites

6 hours ago, 39Yaroslav2 said:

Hello, I installed the TweakScale mod and I get the error "System.Reflection.ReflectionTypeLoadException" I don't understand how to fix it, please help anyone who can.

KSP.log   https://drive.google.com/file/d/15I5zIDrV_m8FMQVf19-7r-9QhwGMlRBh/view?usp=sharing

Error Screenshot   https://drive.google.com/file/d/1Yi6rXs-ca_ADBH-JyZCVDJ1PXsOZfVoO/view?usp=sharing

Hi.

The fastest way to get in contact with me is to post your questions about TweakScale on the TS' Forum! :)

But now and then a kind Kerbonaut hints me, so no harm is done. Let's see your case.. Humm.

You got bitten by a nasty KSP bug. There's a thingy called Assembly Loader/Resolver on KSP that it's in charge of loading DLLs and bind its contents into the game. Unfortunately, this thing is utterly bugged since forever, and the bug is triggered by something failing to load a needed DLL. When this happens, everything trying to load something after gets screwed by the bug and ends up being falsely flagged as a problem.

In your case, the real problem is:

[ERR 17:55:41.213] AssemblyLoader: Exception loading 'CelestialShadows': 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 <39c0323fb6b449a4aaf3465c00ed3c8d>:0

Additional information about this exception:

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

The `CelestialShadows` thingy is trying to load an Assembly (the thingy that a DLL loads into KSP) called `Utils`. But it was not found, triggering the bug and, later, when TweakScale tries to load its own DLLs, it gets screwed and yells because it can't allow you to load a savegame without that DLLs loaded (or your savegame will get screwed too).

`CelestialShadows` is a thingy from EnvironmentalVisualEnhancements. You will need to reach EnvironmentalVisualEnhancements maintainers , as I don't know how to fix it.

Alternatively, you may want to remove EnvironmentalVisualEnhancements from your KSP in order to be able to play until the EVE maintainers are able to help you!

Cheers!

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

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...