TweakScale

TweakScale

1M Downloads

Houston, we have a problem! error in 1.12.3

Joey-Destroyah opened this issue · 7 comments

commented

image
That is the error page I get. Here Is the mod list and log.
image
KSP.txt

commented

I got it. THanks.

commented

Hi, @JovietUnion !

I need the FULL KSP.log in order to inspect what's happening! It's mostly sure it's other add'on borking up somewhere, what would trigger a KSP bug on the Assembly Loader. It was expected that 1.12.3 would had it fixed, but apparently it didn't did it for every case.

In a way or another, I need your FULL KSP.log in order to inspect it and detect what's happening.

commented
commented

@JovietUnion ,

I converted the log file into text. Could that be why it isn't a full log? I'll fix it this evening

You can zip the whole file, and then attach the zip file on a post here (just drag and drop the zip file on the message box)

commented
commented

Also, I closed the game whilst it was still loading.

commented

@JovietUnion , I inspected your KSP.log and found what follows:

[LOG 20:47:19.672] [AddonLoader]: Instantiating addon 'PQSModCreator' from assembly 'KopernicusExpansion.RegionalPQSMods'
[EXC 20:47:19.790] MissingMemberException: Cannot find property
        TriAxis.RunSharp.TypeInfo.FindProperty (System.Type t, System.String name, TriAxis.RunSharp.Operand[] indexes, System.Boolean static) (at <fd18e0e
        TriAxis.RunSharp.Operand.Property (System.String name, TriAxis.RunSharp.ITypeMapper typeMapper, TriAxis.RunSharp.Operand[] indexes) (at <fd18e0ef8
        TriAxis.RunSharp.Operand.Property (System.String name, TriAxis.RunSharp.ITypeMapper typeMapper) (at <fd18e0ef899946d5b101c3255bfcbde8>:0)
        TriAxis.RunSharp.ContextualOperand.Property (System.String name) (at <fd18e0ef899946d5b101c3255bfcbde8>:0)
        KopernicusExpansion.RegionalPQSMods.PQSModCreator.Awake () (at <75abdfc5d5d246049a5a123212571efd>:0)
        UnityEngine.DebugLogHandler:LogException(Exception, Object)
        ModuleManager.UnityLogHandle.InterceptLogHandler:LogException(Exception, Object)
        UnityEngine.GameObject:AddComponent(Type)
        AddonLoader:StartAddon(LoadedAssembly, Type, KSPAddon, Startup)
        AddonLoader:StartAddons(Startup)
        <LoadObjects>d__90:MoveNext()
        UnityEngine.MonoBehaviour:StartCoroutine(IEnumerator)
        <CreateDatabase>d__71:MoveNext()
        UnityEngine.MonoBehaviour:StartCoroutine(IEnumerator)
        GameDatabase:StartLoad()
        <LoadSystems>d__11:MoveNext()
        UnityEngine.MonoBehaviour:StartCoroutine(IEnumerator)
        LoadingScreen:Start()

I think you are missing a dependency on Kopernicus, or perhaps have the wrong version of such dependency installed.

I also found this one:

[LOG 20:47:32.669] [KSP_Recall] Version 0.2.0.6 /L running on KSP 1.12.3
[EXC 20:47:33.328] TypeLoadException: Could not resolve type with token 01000013 (from typeref, class/assembly Assembly`1, )
        UnityEngine.DebugLogHandler:LogException(Exception, Object)
        ModuleManager.UnityLogHandle.InterceptLogHandler:LogException(Exception, Object)
        UnityEngine.Debug:CallOverridenDebugHandler(Exception, Object)

And this one is my fault: I borked a release on KSP-Recall (sorry, Real Life™ is bitting hard and I ended up rushing something I should not):

KSP-Recall v0.2.0.6
KSPRecall v0.2.0.6

Completely remove 999_KSP-Recall from your rig and install the latest KSP-Release.

TweakScale is borking on you because one (or both) of the Exceptions above is triggering a KSP bug inside a thingy called Assembly Resolver - once something triggers this bug, everything else ends up borking because of it:

[LOG 20:47:34.355] [TweakScale] ERROR: System.TypeInitializationException: The type initializer for 'KSPe.IO.Hierarchy`1' threw an exception. ---> System.
  at System.Reflection.Emit.AssemblyBuilder.GetTypes (System.Boolean exportedOnly) [0x0012d] in <9577ac7a62ef43179789031239ba8798>:0
  at System.Reflection.Assembly.GetTypes () [0x00000] in <9577ac7a62ef43179789031239ba8798>:0
  at KSPe.IO.Hierarchy`1+<>c[T].<calculateTypeRoot>b__10_0 (System.Reflection.Assembly assembly) [0x00000] in <1793ebae5aeb4976bb9a4bc09c6e4d48>:0
  at System.Linq.Enumerable+<SelectManyIterator>d__167`3[TSource,TCollection,TResult].MoveNext () [0x0004e] in <351e49e2a5bf4fd6beabb458ce2255f3>:0
  at System.Linq.Enumerable+WhereSelectEnumerableIterator`2[TSource,TResult].MoveNext () [0x00059] in <351e49e2a5bf4fd6beabb458ce2255f3>:0
  at System.Linq.Enumerable.TryGetFirst[TSource] (System.Collections.Generic.IEnumerable`1[T] source, System.Boolean& found) [0x00045] in <351e49e2a5bf4fd
  at System.Linq.Enumerable.FirstOrDefault[TSource] (System.Collections.Generic.IEnumerable`1[T] source) [0x00000] in <351e49e2a5bf4fd6beabb458ce2255f3>:0
  at KSPe.IO.Hierarchy`1[T].calculateTypeRoot () [0x000a5] in <1793ebae5aeb4976bb9a4bc09c6e4d48>:0
  at KSPe.IO.Hierarchy`1[T].CalculateTypeRoot () [0x00022] in <1793ebae5aeb4976bb9a4bc09c6e4d48>:0
  at KSPe.IO.Hierarchy`1[T]..ctor (KSPe.IO.Hierarchy hierarchy) [0x00007] in <1793ebae5aeb4976bb9a4bc09c6e4d48>:0
  at KSPe.IO.Hierarchy`1[T]..cctor () [0x0000a] in <1793ebae5aeb4976bb9a4bc09c6e4d48>:0
   --- 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 <1793ebae5aeb4976bb9a4bc09c6e4d48>:0
  at KSPe.Util.SystemTools+Assembly+Loader`1[T]..ctor (System.String[] subdirs) [0x0002e] in <1793ebae5aeb4976bb9a4bc09c6e4d48>:0
  at TweakScale.Startup.Start () [0x00018] in <c8a4ba9de07c4f43928c3b6b1d79e4c1>:0  at error:0
[ERR 20:47:34.357] Unable to use a named GUIStyle without a current skin. Most likely you need to move your GUIStyle initialization code to OnGUI
[LOG 20:47:34.359] [TweakScale] "Houston, we have a Problem!" about Missing DLLs was displayed

Problem: you are using KSP 1.12.3, where this problem are expected to had been fixed. Obviously, it was not.

Reinstall KSP-Recall and see if the problem is fixed. In a way or another, you may want to reach Kopernicus' Maintainers to see if the Exception I found is important or can be ignored.

Let me know if this fixed the problem for you!

Cheers!