Skip to content

Total damage caused a crash (I think) #37

@tharbad08

Description

@tharbad08

Hi,

Game just crash in the middle of the battle as I was about to shot.

Trace:
ERR System.Exception: Exception from HarmonyInstance "Sheepy.BattleTechMod.AttackImprovementMod" ---> System.Exception: Parameter "totalDamage" not found in method BattleTech.Mech.DamageLocation(System.Int32, BattleTech.WeaponHitInfo, BattleTech.ArmorLocation, BattleTech.Weapon, System.Single, System.Single, System.Int32, BattleTech.AttackImpactQuality, BattleTech.DamageType)
at Harmony.MethodPatcher.EmitCallParameter (System.Reflection.Emit.ILGenerator il, System.Reflection.MethodBase original, System.Reflection.MethodInfo patch, System.Collections.Generic.Dictionary2[TKey,TValue] variables, System.Boolean allowFirsParamPassthrough) [0x00490] in <1b23547042994e96b8b6361dbe3791d9>:0 at Harmony.MethodPatcher+<>c__DisplayClass19_0.<AddPrefixes>b__0 (System.Reflection.MethodInfo fix) [0x00001] in <1b23547042994e96b8b6361dbe3791d9>:0 at System.Collections.Generic.List1[T].ForEach (System.Action1[T] action) [0x00024] in <d7ac571ca2d04b2f981d0d886fa067cf>:0 at Harmony.MethodPatcher.AddPrefixes (System.Reflection.Emit.ILGenerator il, System.Reflection.MethodBase original, System.Collections.Generic.List1[T] prefixes, System.Collections.Generic.Dictionary2[TKey,TValue] variables, System.Reflection.Emit.Label label) [0x0002b] in <1b23547042994e96b8b6361dbe3791d9>:0 at Harmony.MethodPatcher.CreatePatchedMethod (System.Reflection.MethodBase original, System.String harmonyInstanceID, System.Collections.Generic.List1[T] prefixes, System.Collections.Generic.List1[T] postfixes, System.Collections.Generic.List1[T] transpilers) [0x00123] in <1b23547042994e96b8b6361dbe3791d9>:0
--- End of inner exception stack trace ---
at Harmony.MethodPatcher.CreatePatchedMethod (System.Reflection.MethodBase original, System.String harmonyInstanceID, System.Collections.Generic.List1[T] prefixes, System.Collections.Generic.List1[T] postfixes, System.Collections.Generic.List1[T] transpilers) [0x0030d] in <1b23547042994e96b8b6361dbe3791d9>:0 at Harmony.PatchFunctions.UpdateWrapper (System.Reflection.MethodBase original, Harmony.PatchInfo patchInfo, System.String instanceID) [0x00028] in <1b23547042994e96b8b6361dbe3791d9>:0 at Harmony.PatchProcessor.Patch () [0x000d8] in <1b23547042994e96b8b6361dbe3791d9>:0 at Harmony.HarmonyInstance.Patch (System.Reflection.MethodBase original, Harmony.HarmonyMethod prefix, Harmony.HarmonyMethod postfix, Harmony.HarmonyMethod transpiler) [0x00019] in <1b23547042994e96b8b6361dbe3791d9>:0 at Sheepy.BattleTechMod.BattleModModule.Patch (System.Reflection.MethodBase patched, Harmony.HarmonyMethod prefix, Harmony.HarmonyMethod postfix, Harmony.HarmonyMethod transpiler) [0x000d6] in <9f9556d1b59345b6972f7515aacde0ac>:0 at Sheepy.BattleTechMod.BattleModModule.Patch (System.Reflection.MethodBase patched, System.String prefix, System.String postfix, System.String transpiler) [0x00037] in <9f9556d1b59345b6972f7515aacde0ac>:0 at Sheepy.BattleTechMod.BattleModModule.Patch (System.Type patchedClass, System.String patchedMethod, System.Type[] parameterTypes, System.String prefix, System.String postfix, System.String transpiler) [0x0006c] in <9f9556d1b59345b6972f7515aacde0ac>:0 at Sheepy.BattleTechMod.BattleModModule.Patch (System.Type patchedClass, System.String patchedMethod, System.String prefix, System.String postfix, System.String transpiler) [0x00001] in <9f9556d1b59345b6972f7515aacde0ac>:0 at Sheepy.BattleTechMod.AttackImprovementMod.AttackLog.CombatStartsOnce () [0x00336] in <9f9556d1b59345b6972f7515aacde0ac>:0 at Sheepy.BattleTechMod.BattleMod+<>c.<RunCombatStarts>b__42_0 (Sheepy.BattleTechMod.BattleModModule module) [0x00000] in <9f9556d1b59345b6972f7515aacde0ac>:0 at Sheepy.BattleTechMod.BattleMod.CallAllModules (System.Action1[T] task) [0x00031] in <9f9556d1b59345b6972f7515aacde0ac>:0

I've set ShowTotalWeaponDamage to false in settings.json.

Hopefully it'll help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions