Item Inventory Error (Tutorial not working)

BJPickles

Member
After following the videos, when it comes to add the third person item to the character inventory and test to see if the character will equip the assault rifle, an error is thrown.

I have followed the video to the letter.

Code:
NullReferenceException: Object reference not set to an instance of an object
Opsive.UltimateCharacterController.Items.Actions.CharacterItemAction.InvokeOnModulesWithTypeConditional[Tm,T1] (T1 i1, System.Func`3[T1,T2,TResult] action, System.Boolean returnOnTrue) (at Assets/Opsive/UltimateCharacterController/Scripts/Items/Actions/CharacterItemAction.cs:474)
Opsive.UltimateCharacterController.Items.Actions.ShootableAction.ShouldReload (Opsive.UltimateCharacterController.Items.CharacterItem characterItem, Opsive.Shared.Inventory.IItemIdentifier itemIdentifier, System.Boolean fromPickup) (at Assets/Opsive/UltimateCharacterController/Scripts/Items/Actions/ShootableAction.cs:583)
Opsive.UltimateCharacterController.Character.Abilities.Items.Reload.ShouldReload (Opsive.UltimateCharacterController.Items.CharacterItem characterItem, Opsive.Shared.Inventory.IItemIdentifier itemIdentifier, System.Boolean fromPickup) (at Assets/Opsive/UltimateCharacterController/Scripts/Character/Abilities/Items/Reload.cs:424)
Opsive.UltimateCharacterController.Character.Abilities.Items.Reload.OnTryReload (System.Int32 slotID, Opsive.Shared.Inventory.IItemIdentifier itemIdentifier, System.Boolean immediateReload, System.Boolean equipCheck) (at Assets/Opsive/UltimateCharacterController/Scripts/Character/Abilities/Items/Reload.cs:373)
Opsive.UltimateCharacterController.Character.Abilities.Items.Reload.OnPickupItemIdentifier (Opsive.Shared.Inventory.IItemIdentifier itemIdentifier, System.Int32 amount, System.Boolean immediatePickup, System.Boolean forceEquip) (at Assets/Opsive/UltimateCharacterController/Scripts/Character/Abilities/Items/Reload.cs:346)
Opsive.Shared.Events.InvokableAction`4[T1,T2,T3,T4].Invoke (T1 arg1, T2 arg2, T3 arg3, T4 arg4) (at <f8e88e939b08494e9e6a74df2ca4dcad>:0)
Opsive.Shared.Events.EventHandler.ExecuteEvent[T1,T2,T3,T4] (System.Object obj, System.String eventName, T1 arg1, T2 arg2, T3 arg3, T4 arg4) (at <f8e88e939b08494e9e6a74df2ca4dcad>:0)
Opsive.UltimateCharacterController.Inventory.InventoryBase.OnItemIdentifierPickedUp (Opsive.Shared.Inventory.IItemIdentifier itemIdentifier, System.Int32 amount, System.Int32 slotID, System.Boolean immediatePickup, System.Boolean forceEquip) (at Assets/Opsive/UltimateCharacterController/Scripts/Inventory/InventoryBase.cs:690)
Opsive.UltimateCharacterController.Inventory.InventoryBase.OnCharacterItemSpawned (Opsive.UltimateCharacterController.Items.CharacterItem characterItem) (at Assets/Opsive/UltimateCharacterController/Scripts/Inventory/InventoryBase.cs:801)
Opsive.UltimateCharacterController.Inventory.Inventory.OnCharacterItemSpawned (Opsive.UltimateCharacterController.Items.CharacterItem characterItem) (at Assets/Opsive/UltimateCharacterController/Scripts/Inventory/Inventory.cs:321)
Opsive.UltimateCharacterController.Items.CharacterItem.Initialize (System.Boolean force) (at Assets/Opsive/UltimateCharacterController/Scripts/Items/CharacterItem.cs:284)
Opsive.UltimateCharacterController.Items.CharacterItem.Initialize (Opsive.Shared.Inventory.IItemIdentifier itemIdentifier) (at Assets/Opsive/UltimateCharacterController/Scripts/Items/CharacterItem.cs:348)
Opsive.UltimateCharacterController.Inventory.InventoryBase.SpawnCharacterItem (Opsive.UltimateCharacterController.Items.CharacterItem characterItemPrefab, Opsive.Shared.Inventory.IItemIdentifier itemIdentifier) (at Assets/Opsive/UltimateCharacterController/Scripts/Inventory/InventoryBase.cs:837)
Opsive.UltimateCharacterController.Inventory.InventoryBase.SpawnItemIdentifiersCharacterItem (Opsive.Shared.Inventory.IItemIdentifier itemIdentifier, System.Int32 addToSlotID) (at Assets/Opsive/UltimateCharacterController/Scripts/Inventory/InventoryBase.cs:768)
Opsive.UltimateCharacterController.Inventory.InventoryBase.AddItemIdentifierAmount (Opsive.Shared.Inventory.IItemIdentifier itemIdentifier, System.Int32 amount, System.Boolean spawnCharacterItems, System.Int32 slotID) (at Assets/Opsive/UltimateCharacterController/Scripts/Inventory/InventoryBase.cs:578)
Opsive.UltimateCharacterController.Inventory.InventoryBase.PickupItem (Opsive.Shared.Inventory.IItemIdentifier itemIdentifier, System.Int32 amount, System.Int32 slotID, System.Boolean immediatePickup, System.Boolean forceEquip, System.Boolean notifyOnPickup, System.Boolean spawnCharacterItems) (at Assets/Opsive/UltimateCharacterController/Scripts/Inventory/InventoryBase.cs:631)
Opsive.UltimateCharacterController.Inventory.InventoryBase.AddItemIdentifierAmount (Opsive.Shared.Inventory.IItemIdentifier itemIdentifier, System.Int32 amount) (at Assets/Opsive/UltimateCharacterController/Scripts/Inventory/InventoryBase.cs:550)
Opsive.UltimateCharacterController.Inventory.Inventory.LoadDefaultLoadoutInternal () (at Assets/Opsive/UltimateCharacterController/Scripts/Inventory/Inventory.cs:141)
Opsive.UltimateCharacterController.Inventory.InventoryBase.LoadDefaultLoadout () (at Assets/Opsive/UltimateCharacterController/Scripts/Inventory/InventoryBase.cs:239)
Opsive.UltimateCharacterController.Inventory.InventoryBase.StartInternal () (at Assets/Opsive/UltimateCharacterController/Scripts/Inventory/InventoryBase.cs:211)
Opsive.UltimateCharacterController.Inventory.Inventory.StartInternal () (at Assets/Opsive/UltimateCharacterController/Scripts/Inventory/Inventory.cs:121)
Opsive.UltimateCharacterController.Inventory.InventoryBase.Start () (at Assets/Opsive/UltimateCharacterController/Scripts/Inventory/InventoryBase.cs:189)
 
Top