The code is going into an infinite loop when firing a weapon. This started happening when I created the AmmoData attribute for the weapon in UIS and mapped this on the weapon in UCC. I was following the training video on this.
I am not sure what I did wrong here. I have copied the call stack below, I hope this can help point at what is going wrong.
Below is a screen capture of the ShootableAction on this weapon. I am guessing one of these modules should not be there or has a bug?
I am not sure what I did wrong here. I have copied the call stack below, I hope this can help point at what is going wrong.
Below is a screen capture of the ShootableAction on this weapon. I am guessing one of these modules should not be there or has a bug?
OneDrive
1drv.ms
Code:
Void Opsive.Shared.Events.EventHandler:ExecuteEvent (Object, String)+0x47 at :-1 C#
Void Opsive.UltimateInventorySystem.Core.ItemObject:ForceChangeEvent ()+0xe at C:\UnityProjects\DeadFear3Upg\DeadFear3\Assets\Opsive\UltimateInventorySystem\Scripts\Core\ItemObject.cs:[82:13-82:84] C#
Void Opsive.UltimateInventorySystem.Core.Item:NotifyAttributeChanged (AttributeBase)+0x44 at C:\UnityProjects\DeadFear3Upg\DeadFear3\Assets\Opsive\UltimateInventorySystem\Scripts\Core\Item.cs:[537:17-537:53] C#
Void Opsive.UltimateInventorySystem.Core.AttributeSystem.AttributeCollection:AttributeChanged (AttributeBase)+0x15 at C:\UnityProjects\DeadFear3Upg\DeadFear3\Assets\Opsive\UltimateInventorySystem\Scripts\Core\AttributeSystem\AttributeCollection.cs:[608:13-608:51] C#
Void Opsive.UltimateInventorySystem.Core.AttributeSystem.AttributeBase:NotifyChange ()+0xe at C:\UnityProjects\DeadFear3Upg\DeadFear3\Assets\Opsive\UltimateInventorySystem\Scripts\Core\AttributeSystem\AttributeBase.cs:[281:13-281:50] C#
Void Opsive.UltimateInventorySystem.Core.AttributeSystem.Attribute`1:NotifyChange ()+0x2 at C:\UnityProjects\DeadFear3Upg\DeadFear3\Assets\Opsive\UltimateInventorySystem\Scripts\Core\AttributeSystem\Attribute.cs:[190:13-190:33] C#
Void Opsive.UltimateInventorySystem.Core.AttributeSystem.Attribute`1:SetOverrideValue (AmmoData, Boolean, Boolean)+0xdd at C:\UnityProjects\DeadFear3Upg\DeadFear3\Assets\Opsive\UltimateInventorySystem\Scripts\Core\AttributeSystem\Attribute.cs:[182:13-182:28] C#
Void Opsive.UltimateCharacterController.Integrations.UltimateInventorySystem.InventoryAmmoDataClip:SetAmmoData (AmmoData, Boolean)+0xa1 at C:\UnityProjects\DeadFear3Upg\DeadFear3\Assets\Opsive\UltimateCharacterController\Integrations\UltimateInventorySystem\Scripts\ItemActionModules\InventoryAmmoDataClip.cs:[124:17-124:66] C#
Void Opsive.UltimateCharacterController.Integrations.UltimateInventorySystem.InventoryAmmoDataClip:NotifyClipChange ()+0x2c at C:\UnityProjects\DeadFear3Upg\DeadFear3\Assets\Opsive\UltimateCharacterController\Integrations\UltimateInventorySystem\Scripts\ItemActionModules\InventoryAmmoDataClip.cs:[247:13-247:45] C#
Void Opsive.UltimateCharacterController.Integrations.UltimateInventorySystem.InventoryAmmoDataClip:ReloadClip (Boolean)+0xf5 at C:\UnityProjects\DeadFear3Upg\DeadFear3\Assets\Opsive\UltimateCharacterController\Integrations\UltimateInventorySystem\Scripts\ItemActionModules\InventoryAmmoDataClip.cs:[326:13-326:32] C#
Void <>c:<ReloadClip>b__87_0 (IModuleReloadClip, Boolean)+0x2 at C:\UnityProjects\DeadFear3Upg\DeadFear3\Assets\Opsive\UltimateCharacterController\Scripts\Items\Actions\ShootableAction.cs:[464:90-464:111] C#
Void Opsive.UltimateCharacterController.Items.Actions.CharacterItemAction:InvokeOnModulesWithType (Boolean, Action`2)+0x59 at C:\UnityProjects\DeadFear3Upg\DeadFear3\Assets\Opsive\UltimateCharacterController\Scripts\Items\Actions\CharacterItemAction.cs:[353:21-353:41] C#
Void Opsive.UltimateCharacterController.Items.Actions.ShootableAction:ReloadClip (Boolean, Boolean)+0x28 at C:\UnityProjects\DeadFear3Upg\DeadFear3\Assets\Opsive\UltimateCharacterController\Scripts\Items\Actions\ShootableAction.cs:[464:17-464:113] C#
Void Opsive.UltimateCharacterController.Items.Actions.Modules.Shootable.GenericReloader:ReloadItem (Boolean)+0x40 at C:\UnityProjects\DeadFear3Upg\DeadFear3\Assets\Opsive\UltimateCharacterController\Scripts\Items\Actions\Modules\Shootable\ReloaderModule.cs:[738:13-738:95] C#
Void <>c:<ReloadItem>b__95_0 (IModuleReloadItem, Boolean)+0x2 at C:\UnityProjects\DeadFear3Upg\DeadFear3\Assets\Opsive\UltimateCharacterController\Scripts\Items\Actions\ShootableAction.cs:[571:86-571:107] C#
Void Opsive.UltimateCharacterController.Items.Actions.CharacterItemAction:InvokeOnModulesWithType (Boolean, Action`2)+0x59 at C:\UnityProjects\DeadFear3Upg\DeadFear3\Assets\Opsive\UltimateCharacterController\Scripts\Items\Actions\CharacterItemAction.cs:[353:21-353:41] C#
Void Opsive.UltimateCharacterController.Items.Actions.ShootableAction:ReloadItem (Boolean)+0x4b at C:\UnityProjects\DeadFear3Upg\DeadFear3\Assets\Opsive\UltimateCharacterController\Scripts\Items\Actions\ShootableAction.cs:[571:13-571:109] C#
Void Opsive.UltimateCharacterController.Integrations.UltimateInventorySystem.InventoryItemAmmo:SetConsumableItemIdentifier (IItemIdentifier)+0x81 at C:\UnityProjects\DeadFear3Upg\DeadFear3\Assets\Opsive\UltimateCharacterController\Integrations\UltimateInventorySystem\Scripts\ItemActionModules\InventoryItemAmmo.cs:[224:13-224:47] C#
Void Opsive.UltimateCharacterController.Integrations.UltimateInventorySystem.InventoryItemAmmo:SetItem (Item)+0xe8 at C:\UnityProjects\DeadFear3Upg\DeadFear3\Assets\Opsive\UltimateCharacterController\Integrations\UltimateInventorySystem\Scripts\ItemActionModules\InventoryItemAmmo.cs:[187:13-187:92] C#
Void Opsive.UltimateCharacterController.Integrations.UltimateInventorySystem.InventoryItemAmmo:SetItem ()+0x1d at C:\UnityProjects\DeadFear3Upg\DeadFear3\Assets\Opsive\UltimateCharacterController\Integrations\UltimateInventorySystem\Scripts\ItemActionModules\InventoryItemAmmo.cs:[148:17-148:44] C#
Void Opsive.Shared.Events.InvokableAction:Invoke ()+0x6 at :-1 C#
Void Opsive.Shared.Events.EventHandler:ExecuteEvent (Object, String)+0x47 at :-1 C#
Void Opsive.UltimateInventorySystem.Core.ItemObject:ForceChangeEvent ()+0xe at C:\UnityProjects\DeadFear3Upg\DeadFear3\Assets\Opsive\UltimateInventorySystem\Scripts\Core\ItemObject.cs:[82:13-82:84] C#
Last edited: