Debugging a Mod ?!

Users who are viewing this thread

Dr.Snutze

Recruit
Hello everyone.... following the latest 1.2.5 beta patch one of my module has broken. I have opened it in DNSpy along all the Native and Core DLL to investigate.

Im normally very good at reverse engineering and learning from looking at someone going through the process but I couldnt find any such material online..

How would you go at debugging this to fix it ? I suspect its just a version or an object used in refence that has changer but I cant tell how to identify it ..

Any help would be appreciated



Exception information
Type: System.Reflection.TargetInvocationException
Message: Exception has been thrown by the target of an invocation.
Source: mscorlib
CallStack:
  1. at object RuntimeMethodHandle.InvokeMethod(object target, object[] arguments, Signature sig, bool constructor)
  2. at object System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(object obj, object[] parameters, object[] arguments)
  3. at object System.Reflection.RuntimeMethodInfo.Invoke(object obj, BindingFlags invokeAttr, Binder binder, object[] parameters, CultureInfo culture)
  4. at object TaleWorlds.Library.Common.InvokeWithLog(MethodInfo methodInfo, object obj, params object[] args)
  5. at void TaleWorlds.Library.ViewModel.ExecuteCommand_Patch1(ViewModel this, string commandName, object[] parameters)
  6. at void TaleWorlds.GauntletUI.Data.GauntletView.OnCommand(string command, object[] args)
  7. at void TaleWorlds.GauntletUI.BaseTypes.Widget.EventFired(string eventName, params object[] args)
  8. at void TaleWorlds.GauntletUI.BaseTypes.ButtonWidget.HandleClick()
  9. at void TaleWorlds.GauntletUI.BaseTypes.ButtonWidget.OnMouseReleased()
  10. at void TaleWorlds.GauntletUI.EventManager.MouseUp()
  11. at void TaleWorlds.GauntletUI.UIContext.UpdateInput(InputType handleInputs)
  12. at void TaleWorlds.ScreenSystem.ScreenManager.Update()
  13. at void TaleWorlds.ScreenSystem.ScreenManager.Tick(float dt, bool activeMouseVisible)
  14. at void ManagedCallbacks.EngineCallbacksGenerated.EngineScreenManager_Tick_Patch1(float dt)


Inner Exception information
Type: System.MissingMethodException
Message: Method not found: 'Void TaleWorlds.Core.MultiSelectionInquiryData..ctor(System.String, System.String, System.Collections.Generic.List`1, Boolean, Int32, System.String, System.String, System.Action`1>, System.Action`1>, System.String)'.
Source: MyLittleWarband
CallStack:
  1. at void MyLittleWarband.CustomUnitsBehavior.UpgradeGear(string equipmentType, string unitId) in C:/Users/18585/source/repos/MyLittleWarband/MyLittleWarband/customUnits/CustomUnitsBehavior.cs:line 107
  2. at void MyLittleWarband.CustomUnitsVM.ChangeWep1() in C:/Users/18585/source/repos/MyLittleWarband/MyLittleWarband/customUnits/CustomUnitsVM.cs:line 1792
 
Are you using reflection to create MultiSelectionInquiryData object? If so, you'd have to make sure MultiSelectionInquiryData constructor with the exact signature exists. This means you'll have to check MultiSelectionInquiryData constructors and find suitable one.
 
Upvote 0
Back
Top Bottom