SupremeSmash
Member
I've messed something up but have no idea what - everything was working fine but now when I try to open the Tools>Opsive>Ultimate Inventory System>Main Manager it is blank
And I get the following error
When I enter play mode i get the following 3 errors for each of my items
And I get the following error
Code:
NullReferenceException: Object reference not set to an instance of an object
Opsive.UltimateInventorySystem.Core.Item.Equals (Opsive.UltimateInventorySystem.Core.Item other) (at Assets/Opsive/UltimateInventorySystem/Scripts/Core/Item.cs:760)
Opsive.UltimateInventorySystem.Core.Item.Equals (System.Object obj) (at Assets/Opsive/UltimateInventorySystem/Scripts/Core/Item.cs:745)
System.Object.Equals (System.Object objA, System.Object objB) (at <437ba245d8404784b9fbab9b439ac908>:0)
Opsive.UltimateInventorySystem.Core.DataStructures.ItemAmount.Equals (Opsive.UltimateInventorySystem.Core.DataStructures.ItemAmount other) (at Assets/Opsive/UltimateInventorySystem/Scripts/Core/DataStructures/ItemAmount.cs:101)
System.Collections.Generic.GenericEqualityComparer`1[T].Equals (T x, T y) (at <437ba245d8404784b9fbab9b439ac908>:0)
Opsive.UltimateInventorySystem.Core.AttributeSystem.Attribute`1[T].ReevaluateReturnValue (System.Boolean setAsPreEvaluated) (at Assets/Opsive/UltimateInventorySystem/Scripts/Core/AttributeSystem/Attribute.cs:289)
Opsive.UltimateInventorySystem.Core.AttributeSystem.Attribute`1[T].ReevaluateValue (System.Boolean setAsPreEvaluated) (at Assets/Opsive/UltimateInventorySystem/Scripts/Core/AttributeSystem/Attribute.cs:278)
Opsive.UltimateInventorySystem.Core.AttributeSystem.AttributeCollection.ReevaluateAll (System.Boolean setPreevaluate) (at Assets/Opsive/UltimateInventorySystem/Scripts/Core/AttributeSystem/AttributeCollection.cs:528)
Opsive.UltimateInventorySystem.Core.AttributeSystem.AttributeCollection.CreateNewAttributesIfMissing (Opsive.Shared.Utility.ListSlice`1[T] requiredAttributes) (at Assets/Opsive/UltimateInventorySystem/Scripts/Core/AttributeSystem/AttributeCollection.cs:271)
Opsive.UltimateInventorySystem.Core.AttributeSystem.AttributeCollection.UpdateAttributesToMatchList (Opsive.Shared.Utility.ListSlice`1[T] requiredAttributes, System.Boolean removeAdditionalAttributes) (at Assets/Opsive/UltimateInventorySystem/Scripts/Core/AttributeSystem/AttributeCollection.cs:230)
Opsive.UltimateInventorySystem.Core.ItemCategory.UpdateDefinitionAttributes () (at Assets/Opsive/UltimateInventorySystem/Scripts/Core/ItemCategory.cs:322)
Opsive.UltimateInventorySystem.Editor.Managers.DatabaseValidator.CheckIfValid (Opsive.UltimateInventorySystem.Storage.InventorySystemDatabase database, System.Boolean autoFix) (at Assets/Opsive/UltimateInventorySystem/Editor/Managers/DatabaseValidator.cs:141)
Opsive.UltimateInventorySystem.Editor.Managers.MainManagerWindow.ValidateDatabase () (at Assets/Opsive/UltimateInventorySystem/Editor/Managers/MainManagerWindow.cs:475)
Opsive.UltimateInventorySystem.Editor.Managers.MainManagerWindow.OnEnable () (at Assets/Opsive/UltimateInventorySystem/Editor/Managers/MainManagerWindow.cs:243)
UnityEditor.EditorWindow:GetWindow(Boolean, String)
Opsive.UltimateInventorySystem.Editor.Managers.MainManagerWindow:ShowWindow() (at Assets/Opsive/UltimateInventorySystem/Editor/Managers/MainManagerWindow.cs:122)
When I enter play mode i get the following 3 errors for each of my items
Code:
The item Shot Gun (365497693) Item Definition Shot Gun ID[1077542616] and or Item Category Single Item ID[2204504556] which are part of the active database. Please run the 'Replace Database Objects' script by right-clicking on the folder with the affected prefabs, scriptable objects, or scenes.
UnityEngine.Debug:LogError(Object)
Opsive.UltimateInventorySystem.Core.InventoryCollections.ItemCollection:AddItemCondition(ItemInfo) (at Assets/Opsive/UltimateInventorySystem/Scripts/Core/InventoryCollections/ItemCollection.cs:401)
Opsive.UltimateInventorySystem.Core.InventoryCollections.ItemCollection:AddItem(ItemInfo, ItemStack) (at Assets/Opsive/UltimateInventorySystem/Scripts/Core/InventoryCollections/ItemCollection.cs:436)
Opsive.UltimateInventorySystem.Core.InventoryCollections.ItemCollection:AddItem(Item, Int32) (at Assets/Opsive/UltimateInventorySystem/Scripts/Core/InventoryCollections/ItemCollection.cs:459)
Opsive.UltimateInventorySystem.Core.InventoryCollections.ItemCollection:LoadDefaultLoadout() (at Assets/Opsive/UltimateInventorySystem/Scripts/Core/InventoryCollections/ItemCollection.cs:206)
Opsive.UltimateInventorySystem.Core.InventoryCollections.ItemCollection:Initialize(IInventory, Boolean) (at Assets/Opsive/UltimateInventorySystem/Scripts/Core/InventoryCollections/ItemCollection.cs:159)
Opsive.UltimateInventorySystem.Core.InventoryCollections.Inventory:InitializeItemCollectionArray() (at Assets/Opsive/UltimateInventorySystem/Scripts/Core/InventoryCollections/Inventory.cs:169)
Opsive.UltimateInventorySystem.Core.InventoryCollections.Inventory:Initialize(Boolean) (at Assets/Opsive/UltimateInventorySystem/Scripts/Core/InventoryCollections/Inventory.cs:109)
Opsive.UltimateInventorySystem.Core.InventoryCollections.Inventory:Awake() (at Assets/Opsive/UltimateInventorySystem/Scripts/Core/InventoryCollections/Inventory.cs:65)
)
Code:
The Opsive.UltimateInventorySystem.Core.ItemDefinition is not registered, yet it has a non-empty ID 2809060999.
UnityEngine.Debug:LogWarning(Object)
Opsive.UltimateInventorySystem.Core.Registers.InventoryObjectIDOnlyRegister`1:IsRegistered(ItemDefinition) (at Assets/Opsive/UltimateInventorySystem/Scripts/Core/Registers/InventoryObjectRegister.cs:172)
Opsive.UltimateInventorySystem.Core.Registers.ItemRegister:RegisterConditions(Item) (at Assets/Opsive/UltimateInventorySystem/Scripts/Core/Registers/ItemRegister.cs:59)
Opsive.UltimateInventorySystem.Core.Registers.ItemRegister:Register(Item&) (at Assets/Opsive/UltimateInventorySystem/Scripts/Core/Registers/ItemRegister.cs:75)
Opsive.UltimateInventorySystem.Core.Item:Create(ItemDefinition, UInt32, IReadOnlyList`1) (at Assets/Opsive/UltimateInventorySystem/Scripts/Core/Item.cs:128)
Opsive.UltimateInventorySystem.Core.Item:Create(Item, UInt32, IReadOnlyList`1) (at Assets/Opsive/UltimateInventorySystem/Scripts/Core/Item.cs:167)
Opsive.UltimateInventorySystem.Core.Item:Create(Item, IReadOnlyList`1) (at Assets/Opsive/UltimateInventorySystem/Scripts/Core/Item.cs:143)
Opsive.UltimateInventorySystem.Core.InventorySystemFactory:CreateItem(Item, IReadOnlyList`1) (at Assets/Opsive/UltimateInventorySystem/Scripts/Core/InventorySystemFactory.cs:116)
Opsive.UltimateInventorySystem.Core.InventoryCollections.ItemCollection:DuplicateItem(Item) (at Assets/Opsive/UltimateInventorySystem/Scripts/Core/InventoryCollections/ItemCollection.cs:175)
Opsive.UltimateInventorySystem.Core.InventoryCollections.ItemCollection:LoadDefaultLoadout() (at Assets/Opsive/UltimateInventorySystem/Scripts/Core/InventoryCollections/ItemCollection.cs:206)
Opsive.UltimateInventorySystem.Core.InventoryCollections.ItemCollection:Initialize(IInventory, Boolean) (at Assets/Opsive/UltimateInventorySystem/Scripts/Core/InventoryCollections/ItemCollection.cs:159)
Opsive.UltimateInventorySystem.Core.InventoryCollections.Inventory:InitializeItemCollectionArray() (at Assets/Opsive/UltimateInventorySystem/Scripts/Core/InventoryCollections/Inventory.cs:169)
Opsive.UltimateInventorySystem.Core.InventoryCollections.Inventory:Initialize(Boolean) (at Assets/Opsive/UltimateInventorySystem/Scripts/Core/InventoryCollections/Inventory.cs:109)
Opsive.UltimateInventorySystem.Core.InventoryCollections.Inventory:Awake() (at Assets/Opsive/UltimateInventorySystem/Scripts/Core/InventoryCollections/Inventory.cs:65)
Code:
The Item Definition of the Item is not registered.
UnityEngine.Debug:LogWarning(Object)
Opsive.UltimateInventorySystem.Core.Registers.ItemRegister:RegisterConditions(Item) (at Assets/Opsive/UltimateInventorySystem/Scripts/Core/Registers/ItemRegister.cs:60)
Opsive.UltimateInventorySystem.Core.Registers.ItemRegister:Register(Item&) (at Assets/Opsive/UltimateInventorySystem/Scripts/Core/Registers/ItemRegister.cs:75)
Opsive.UltimateInventorySystem.Core.Item:Create(ItemDefinition, UInt32, IReadOnlyList`1) (at Assets/Opsive/UltimateInventorySystem/Scripts/Core/Item.cs:128)
Opsive.UltimateInventorySystem.Core.Item:Create(Item, UInt32, IReadOnlyList`1) (at Assets/Opsive/UltimateInventorySystem/Scripts/Core/Item.cs:167)
Opsive.UltimateInventorySystem.Core.Item:Create(Item, IReadOnlyList`1) (at Assets/Opsive/UltimateInventorySystem/Scripts/Core/Item.cs:143)
Opsive.UltimateInventorySystem.Core.InventorySystemFactory:CreateItem(Item, IReadOnlyList`1) (at Assets/Opsive/UltimateInventorySystem/Scripts/Core/InventorySystemFactory.cs:116)
Opsive.UltimateInventorySystem.Core.InventoryCollections.ItemCollection:DuplicateItem(Item) (at Assets/Opsive/UltimateInventorySystem/Scripts/Core/InventoryCollections/ItemCollection.cs:175)
Opsive.UltimateInventorySystem.Core.InventoryCollections.ItemCollection:LoadDefaultLoadout() (at Assets/Opsive/UltimateInventorySystem/Scripts/Core/InventoryCollections/ItemCollection.cs:206)
Opsive.UltimateInventorySystem.Core.InventoryCollections.ItemCollection:Initialize(IInventory, Boolean) (at Assets/Opsive/UltimateInventorySystem/Scripts/Core/InventoryCollections/ItemCollection.cs:159)
Opsive.UltimateInventorySystem.Core.InventoryCollections.Inventory:InitializeItemCollectionArray() (at Assets/Opsive/UltimateInventorySystem/Scripts/Core/InventoryCollections/Inventory.cs:169)
Opsive.UltimateInventorySystem.Core.InventoryCollections.Inventory:Initialize(Boolean) (at Assets/Opsive/UltimateInventorySystem/Scripts/Core/InventoryCollections/Inventory.cs:109)
Opsive.UltimateInventorySystem.Core.InventoryCollections.Inventory:Awake() (at Assets/Opsive/UltimateInventorySystem/Scripts/Core/InventoryCollections/Inventory.cs:65)
Last edited: