(Filename: C:/Program Files (x86)/Steam/steamapps/common/7 Days To Die/Mods_all/_HarmonyProjects/DroneMods/Scripts/ModUtils.cs Line: 37) NullReferenceException: Object reference not set to an instance of an object at ModUtils.GetTarget (EntityDrone __instance, System.Single range) [0x00085] in C:\Program Files (x86)\Steam\steamapps\common\7 Days To Die\Mods_all\_HarmonyProjects\DroneMods\Scripts\ModUtils.cs:37 at Harmony.UpdateDroneSystems.Postfix (EntityDrone __instance, System.Boolean& ___isStunModAttached, System.Boolean& ___isGunModAttached, EntityDrone+State ___state, DroneWeapons+MachineGunWeapon ___machineGunWeapon, System.Boolean ___isFlashlightAttached, System.Boolean ___isFlashlightOn, System.Boolean ___isQuietMode) [0x001ba] in C:\Program Files (x86)\Steam\steamapps\common\7 Days To Die\Mods_all\_HarmonyProjects\DroneMods\Scripts\EntityDrone.cs:184 at (wrapper dynamic-method) EntityDrone.DMD<EntityDrone::UpdateDroneSystems>(EntityDrone) at EntityDrone.OnUpdateEntity () [0x0023a] in <dd87699bea6e432cb1dd88b7a22c5031>:0 at World.TickEntity (Entity e, System.Single _partialTicks) [0x0011e] in <dd87699bea6e432cb1dd88b7a22c5031>:0 at World.TickEntitiesSlice (System.Int32 count) [0x00037] in <dd87699bea6e432cb1dd88b7a22c5031>:0 at World.TickEntitiesFlush () [0x0000c] in <dd87699bea6e432cb1dd88b7a22c5031>:0 at GameManager.UpdateTick () [0x00033] in <dd87699bea6e432cb1dd88b7a22c5031>:0 at GameManager.gmUpdate () [0x00336] in <dd87699bea6e432cb1dd88b7a22c5031>:0 at GameManager.Update () [0x00000] in <dd87699bea6e432cb1dd88b7a22c5031>:0
Works fine still, in 1.1 stable. Make sure you have the right ammo in the drone's inventory and the drone is set to Fire at Will. Get the Remote Drone Control mod too, makes switching firing/targeting modes easier. And you might want to edit item_modifiers.xml and increase the EntityDamage a bit for each weapon.
Would be cool if the damage scaled with the drone weapon's quality, if that's possible. Looks like only the durability does.
Awesome, thank you. I've found no reason to move past 1.1 b14 as a mod user. If you're trying to run 7d on a phone or something and desperate need crossplay then I guess trading great mods for that is worth it?
please add ability for drone to use more than one gun at a time, let it dual wield same gun type or two different guns, also please let us deploy multipole drones at once, thank you <3
154 comments
NullReferenceException: Object reference not set to an instance of an object
at ModUtils.GetTarget (EntityDrone __instance, System.Single range) [0x00085] in C:\Program Files (x86)\Steam\steamapps\common\7 Days To Die\Mods_all\_HarmonyProjects\DroneMods\Scripts\ModUtils.cs:37
at Harmony.UpdateDroneSystems.Postfix (EntityDrone __instance, System.Boolean& ___isStunModAttached, System.Boolean& ___isGunModAttached, EntityDrone+State ___state, DroneWeapons+MachineGunWeapon ___machineGunWeapon, System.Boolean ___isFlashlightAttached, System.Boolean ___isFlashlightOn, System.Boolean ___isQuietMode) [0x001ba] in C:\Program Files (x86)\Steam\steamapps\common\7 Days To Die\Mods_all\_HarmonyProjects\DroneMods\Scripts\EntityDrone.cs:184
at (wrapper dynamic-method) EntityDrone.DMD<EntityDrone::UpdateDroneSystems>(EntityDrone)
at EntityDrone.OnUpdateEntity () [0x0023a] in <dd87699bea6e432cb1dd88b7a22c5031>:0
at World.TickEntity (Entity e, System.Single _partialTicks) [0x0011e] in <dd87699bea6e432cb1dd88b7a22c5031>:0
at World.TickEntitiesSlice (System.Int32 count) [0x00037] in <dd87699bea6e432cb1dd88b7a22c5031>:0
at World.TickEntitiesFlush () [0x0000c] in <dd87699bea6e432cb1dd88b7a22c5031>:0
at GameManager.UpdateTick () [0x00033] in <dd87699bea6e432cb1dd88b7a22c5031>:0
at GameManager.gmUpdate () [0x00336] in <dd87699bea6e432cb1dd88b7a22c5031>:0
at GameManager.Update () [0x00000] in <dd87699bea6e432cb1dd88b7a22c5031>:0
Dedicated
https://www.nexusmods.com/7daystodie/mods/4223
Error When Atk Zombie.
Get the Remote Drone Control mod too, makes switching firing/targeting modes easier.
And you might want to edit item_modifiers.xml and increase the EntityDamage a bit for each weapon.
Would be cool if the damage scaled with the drone weapon's quality, if that's possible. Looks like only the durability does.
If you're trying to run 7d on a phone or something and desperate need crossplay then I guess trading great mods for that is worth it?