BattletechModders / ModTek

Mod system for HBS's PC game BattleTech.
GNU Lesser General Public License v2.1
121 stars 34 forks source link

BTML void param: ModTek.Init #62

Closed TotalMeltdown closed 6 years ago

TotalMeltdown commented 6 years ago

Just updated to the new release. Fresh install of Battletech, Installed BTML 2.0 and then downloaded ModTek2.0 and get this exception. BTML.log attached. Game will launch but ModTek will not load or load any .dll files.

BTModLoader -- 6/4/2018 12:10:57 PM Found DLL: ModTek.dll 12:10:57 PM - ModTek.dll: Found and called entry point with void param: ModTek.Init 12:10:57 PM - ModTek.dll: While loading a dll, an exception occured: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ArgumentException: No target method specified for class ModTek.VersionInfo_GetReleaseVersion_Patch at Harmony.PatchProcessor.PrepareType () [0x00000] in :0 at Harmony.PatchProcessor..ctor (Harmony.HarmonyInstance instance, System.Type type, Harmony.HarmonyMethod attributes) [0x00000] in :0 at Harmony.HarmonyInstance.b__7_0 (System.Type type) [0x00000] in :0 at Harmony.CollectionExtensions.Do[Type] (IEnumerable1 sequence, System.Action1 action) [0x00000] in :0 at Harmony.HarmonyInstance.PatchAll (System.Reflection.Assembly assembly) [0x00000] in :0 at ModTek.ModTek.Init () [0x00000] in :0 at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&) at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in :0 --- End of inner exception stack trace --- at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in :0 at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in :0 at BattleTechModLoader.BTModLoader.LoadDLL (System.String path, System.String methodName, System.String typeName, System.Object[] prms, BindingFlags bFlags) [0x00000] in :0

Took 0.1028383 seconds to load mods No Harmony Patches loaded.

CptMoore commented 6 years ago

you need to update battletech, 1.0 is not supported

the latest BTML is 2.1 btw

TotalMeltdown commented 6 years ago

facepalm Let me check GoG for an update.

TotalMeltdown commented 6 years ago

End-User Error confirmed. RTFM Protocol initiated.