RimWorld

RimWorld

Combat Extended [1.4]
Muskeljens 20 Aug, 2021 @ 3:59pm
[Issue/Bug]
Hi. Apologies for this being a cross-mod issue.
I was wondering if anyone has an idea why this issue is occurring:
Using Androids mod, the M7 mech does not fire any of the weapons, however melee still works.
Tested all weapons, all had ammo.

How to replicate:
-Use Androids mod

-Install a VX01 chip in the brain of a colonist
-Build a SkyMind V1 tower
-Build an M7 surrogate mech
-Connect both to SkyMind
-On colonist, use Control and select M7 mech
-Get any mech firearm with proper ammunition(Hand Cannon, 40mm Cannon, Mastiff Shotgun)
-Draft M7, try to attack any target

This appears in log when I try to choose a target to attack:

Exception in JobDriver tick for pawn Pandora driver=JobDriver_AttackStatic (toilIndex=1) driver.job=(AttackStatic (Job_2207) A=Thing_Human351)
System.NullReferenceException: Object reference not set to an instance of an object
at CombatExtended.HarmonyCE.Harmony_Verb_TryStartCastOn.CheckReload (Verse.Verb __instance, Verse.LocalTargetInfo castTarg, Verse.LocalTargetInfo destTarg) [0x00035] in <ccb6738ca9da4e0ba4122c09aec10cab>:0
at (wrapper dynamic-method) Verse.Verb.Verse.Verb.TryStartCastOn_Patch2(Verse.Verb,Verse.LocalTargetInfo,Verse.LocalTargetInfo,bool,bool,bool)
at Verse.Verb.TryStartCastOn (Verse.LocalTargetInfo castTarg, System.Boolean surpriseAttack, System.Boolean canHitNonTargetPawns, System.Boolean preventFriendlyFire) [0x00007] in <00638943358e4807bd44cd7bc8f572da>:0
at (wrapper dynamic-method) Verse.Pawn.Verse.Pawn.TryStartAttack_Patch1(Verse.Pawn,Verse.LocalTargetInfo)
at (wrapper dynamic-method) Verse.AI.JobDriver_AttackStatic+<>c__DisplayClass4_0.Verse.AI.JobDriver_AttackStatic+c__DisplayClass4_0.<MakeNewToils>b__1_Patch1(Verse.AI.JobDriver_AttackStatic/<>c__DisplayClass4_0)
at (wrapper dynamic-method) Verse.AI.JobDriver.Verse.AI.JobDriver.DriverTick_Patch1(Verse.AI.JobDriver)
(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 39)

(Full Log: https://gist.github.com/HugsLibRecordKeeper/7ced11c1aeb91953d09bc615e304128a)

Any input appreciated.