AndreyMrovol / LethalTerminalFormatter

Other
2 stars 0 forks source link

AdvancedCompany dependency? ("TerminalFormatter.ACCompatibility") #7

Closed Fl4sHNoX closed 3 months ago

Fl4sHNoX commented 3 months ago

Does this specific line from the following log mean that AdvancedCompany is set to be a requirement?

System.TypeLoadException: Could not load type of field 'TerminalFormatter.ACCompatibility+<>c:<>9__5_0' (1) due to: Could not load file or assembly 'AdvancedCompany, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies.

If so, could it be possible to not have it as a requirement in the future but more as an optional compatibility?


[Warning:  HarmonyX] AccessTools.GetTypesFromAssembly: assembly LethalSDK, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null => System.Reflection.ReflectionTypeLoadException: Exception of type 'System.Reflection.ReflectionTypeLoadException' was thrown.
Could not load file or assembly 'UnityEditor.CoreModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies.
Could not load file or assembly 'UnityEditor.CoreModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies.
Could not load file or assembly 'UnityEditor.CoreModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies.
Could not load file or assembly 'UnityEditor.CoreModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies.
Could not load file or assembly 'UnityEditor.CoreModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies.
Could not load file or assembly 'UnityEditor.CoreModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies.
Could not load file or assembly 'UnityEditor.CoreModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies.
Could not load file or assembly 'UnityEditor.CoreModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies.
  at (wrapper managed-to-native) System.Reflection.Assembly.GetTypes(System.Reflection.Assembly,bool)
  at System.Reflection.Assembly.GetTypes () [0x00000] in <787acc3c9a4c471ba7d971300105af24>:IL_0000
  at HarmonyLib.AccessTools.GetTypesFromAssembly (System.Reflection.Assembly assembly) [0x0000d] in <474744d65d8e460fa08cd5fd82b5d65f>:IL_000D
System.TypeLoadException: Could not load file or assembly 'UnityEditor.CoreModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies.
System.TypeLoadException: Could not load file or assembly 'UnityEditor.CoreModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies.
System.TypeLoadException: Could not load file or assembly 'UnityEditor.CoreModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies.
System.TypeLoadException: Could not load file or assembly 'UnityEditor.CoreModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies.
System.TypeLoadException: Could not load file or assembly 'UnityEditor.CoreModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies.
System.TypeLoadException: Could not load file or assembly 'UnityEditor.CoreModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies.
System.TypeLoadException: Could not load file or assembly 'UnityEditor.CoreModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies.
System.TypeLoadException: Could not load file or assembly 'UnityEditor.CoreModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies.
[Warning:  HarmonyX] AccessTools.GetTypesFromAssembly: assembly KeepItDown, Version=1.3.1.0, Culture=neutral, PublicKeyToken=null => System.Reflection.ReflectionTypeLoadException: Exception of type 'System.Reflection.ReflectionTypeLoadException' was thrown.
Could not load type of field 'KeepItDown.LethalSettingsUI+<>c__DisplayClass0_0:_sliderToConfigKey' (0) due to: Could not load file or assembly 'LethalSettings, Version=1.4.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies.
Invalid type KeepItDown.LethalSettingsUI/<>c__DisplayClass0_0 for instance field KeepItDown.LethalSettingsUI+<>c__DisplayClass0_2:CS$<>8__locals1
  at (wrapper managed-to-native) System.Reflection.Assembly.GetTypes(System.Reflection.Assembly,bool)
  at System.Reflection.Assembly.GetTypes () [0x00000] in <787acc3c9a4c471ba7d971300105af24>:IL_0000
  at HarmonyLib.AccessTools.GetTypesFromAssembly (System.Reflection.Assembly assembly) [0x0000d] in <474744d65d8e460fa08cd5fd82b5d65f>:IL_000D
System.TypeLoadException: Could not load type of field 'KeepItDown.LethalSettingsUI+<>c__DisplayClass0_0:_sliderToConfigKey' (0) due to: Could not load file or assembly 'LethalSettings, Version=1.4.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies.
System.TypeLoadException: Invalid type KeepItDown.LethalSettingsUI/<>c__DisplayClass0_0 for instance field KeepItDown.LethalSettingsUI+<>c__DisplayClass0_2:CS$<>8__locals1
[Warning:Lethal Company API] Asking all other players for their mod list..
[Warning:  HarmonyX] AccessTools.GetTypesFromAssembly: assembly TerminalFormatter, Version=0.0.1.0, Culture=neutral, PublicKeyToken=null => System.Reflection.ReflectionTypeLoadException: Exception of type 'System.Reflection.ReflectionTypeLoadException' was thrown.
Could not load type of field 'TerminalFormatter.ACCompatibility+<>c:<>9__5_0' (1) due to: Could not load file or assembly 'AdvancedCompany, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies.
  at (wrapper managed-to-native) System.Reflection.Assembly.GetTypes(System.Reflection.Assembly,bool)
  at System.Reflection.Assembly.GetTypes () [0x00000] in <787acc3c9a4c471ba7d971300105af24>:IL_0000
  at HarmonyLib.AccessTools.GetTypesFromAssembly (System.Reflection.Assembly assembly) [0x0000d] in <474744d65d8e460fa08cd5fd82b5d65f>:IL_000D
System.TypeLoadException: Could not load type of field 'TerminalFormatter.ACCompatibility+<>c:<>9__5_0' (1) due to: Could not load file or assembly 'AdvancedCompany, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies.
AndreyMrovol commented 3 months ago

Hey, it should be an optional dependency - it's weird that these functions have been called without AC present.

I'm gonna get it fixed ASAP, thanks for reporting 👍

AndreyMrovol commented 3 months ago

I've read the issue you linked, will check if it happens with LC_API for me as well

AndreyMrovol commented 3 months ago

Hey, sorry for getting back to you so late - it 100% is LC_API issue - for some reason it tries to load every soft-dependency, even if they aren't present, so this is not something I'm able to fix on my end.