aurora184 Posted 14 hours ago Report Posted 14 hours ago (edited) Trying to add the butchering capability to this mod. In order to make my life simpler, I was starting with the Birds of Prey mod (dromaeosauridae). I have the different cuts and items working, except when I patch in the <code>butchering</code> compatibility behavior onto the entities of the mod, they can not spawn. 13.3.2026 03:43:15 [Error] Exception: Object reference not set to an instance of an object. at Butchering.src.common.entitybehavior.EntityBehaviorButcherable.Initialize(EntityProperties properties, JsonObject attributes) in C:\Users\daifi\Documents\GitHub\Vintage-Story-Modding\VS-Mods-NET7\Mods-Butchering\Butchering\Butchering\src\common\entitybehavior\BehaviorButcherable.cs:line 27 at Vintagestory.API.Common.Entities.EntitySidedProperties.loadBehaviors(Entity entity, EntityProperties properties, IWorldAccessor world) in VintagestoryApi\Common\Entity\EntityProperties.cs:line 382 at Vintagestory.API.Common.Entities.Entity.Initialize(EntityProperties properties, ICoreAPI api, Int64 InChunkIndex3d) in VintagestoryApi\Common\Entity\Entity.cs:line 645 at Vintagestory.API.Common.EntityAgent.Initialize(EntityProperties properties, ICoreAPI api, Int64 InChunkIndex3d) in VintagestoryApi\Common\Entity\EntityAgent.cs:line 128 at Vintagestory.Server.ServerMain.SpawnEntity_internal(EntityProperties type, Entity entity) in VintagestoryLib\Server\ServerMain.cs:line 2469 at Vintagestory.Server.ServerMain.SpawnEntity(Entity entity, EntityProperties type) in VintagestoryLib\Server\ServerMain.cs:line 2443 at Vintagestory.Server.ServerMain.SpawnEntity(Entity entity) in VintagestoryLib\Server\ServerMain.cs:line 2427 at Vintagestory.GameContent.ItemCreature.OnHeldInteractStart(ItemSlot slot, EntityAgent byEntity, BlockSelection blockSel, EntitySelection entitySel, Boolean firstEvent, EnumHandHandling& handHandling) in VSSurvivalMod\Item\ItemCreature.cs:line 177 at Vintagestory.API.Common.CollectibleObject.OnHeldUseStart(ItemSlot slot, EntityAgent byEntity, BlockSelection blockSel, EntitySelection entitySel, EnumHandInteract useType, Boolean firstEvent, EnumHandHandling& handling) in VintagestoryApi\Common\Collectible\Collectible.cs:line 1205 at Vintagestory.Server.ServerSystemInventory.HandleHandInteraction(Packet_Client packet, ConnectedClient client) in VintagestoryLib\Server\Systems\Inventory.cs:line 344 at Vintagestory.Server.ServerMain.HandleClientPacket_mainthread(ReceivedClientPacket cpk) in VintagestoryLib\Server\ServerMainNetworking.cs:line 280 at Vintagestory.Server.ServerMain.ProcessMain() in VintagestoryLib\Server\ServerMain.cs:line 934 13.3.2026 03:43:15 [Warning] An entity dromaeosauridae:dromaeosauridae-austroraptor-adult-male failed to complete initialisation, will not be physics ticked. I originally was working with the different variants of the entity that could spawn and that was working fine, but when I tried to categorize to my own variants I started to encounter this behavior. Original with LoP variants: https://github.com/aurorapar/butdrocom/commit/5bbe5b35ffd16dc2ec72fe7b2acac67ddffb5ab5 My own variants: https://github.com/aurorapar/butdrocom/ I'm assuming theres code from the original Butchering mod which may rely on naming conventions between the original entities and new items, but was hoping that someone else could share some light on what else I may be doing wrong. Edited 14 hours ago by aurora184
aurora184 Posted 14 hours ago Author Report Posted 14 hours ago Just needed to modify my patch file to apply it once :^)
Recommended Posts