equippable items with stats

MrWilson

Member
I am trying to make equippable armor, wit stats that increase the health. Ive tried googling and looking at the demo scenes but for the life of me cant seem to figure it out. When i created a piece of armor to give health, i get this error message not sure how to fix it.

error:
Prefab Attribute value is null for Attribute EquipmentPrefab.
UnityEngine.Debug:LogError (object,UnityEngine.Object)
Opsive.UltimateInventorySystem.Equipping.Equipper:CreateItemObject (Opsive.UltimateInventorySystem.Core.Item) (at ./Packages/com.opsive.ultimateinventorysystem/Scripts/Equipping/Equipper.cs:410)


1772428697675.png
 
Last edited:
The error here says that you have an attribute on your item called "EquipmentPrefab" and you haven't assigned a prefab to it.
So the Equipper can't spawn your equipment.

I would suggest you read the following documentation

This for equipping a prefab:

This page for writing a script that edits stats (health in your case):
 
The error here says that you have an attribute on your item called "EquipmentPrefab" and you haven't assigned a prefab to it.
So the Equipper can't spawn your equipment.

I would suggest you read the following documentation

This for equipping a prefab:

This page for writing a script that edits stats (health in your case):
I fixed the top issue, now it gives me this
 

Attachments

  • 1772497036738.png
    1772497036738.png
    86.5 KB · Views: 4
I see you are using the Character Controller.
The error says your item is missing a prefab that is properly setup.
Make sure to read the integration documentation on how to setup equipment correctly

 
I see you are using the Character Controller.
The error says your item is missing a prefab that is properly setup.
Make sure to read the integration documentation on how to setup equipment correctly


I only have 3 pieces of " equippable " stuff

but still get this error .

1772771294416.png
 
Hey MrWilson.
Where you able to figure out your issue?

If not please send me a screenshot of your Item in the InventorySystem editor window, selecting the Attribute named "EquipmentPrefab".

Also I recommend you read the documentation again on equipping items for the integration
 
Hey MrWilson.
Where you able to figure out your issue?

If not please send me a screenshot of your Item in the InventorySystem editor window, selecting the Attribute named "EquipmentPrefab".

Also I recommend you read the documentation again on equipping items for the integration
I was able to get it working, but i get this warning, how do i make one?

1773283968915.png
 
Last edited:
I think you are confusing the UIS equipment with the UCC equipment.
UCC equipment is for weapons and items your character can use using the CharacterController CharacterItem setup.
UIS equipment is for clothes, armour, and any other items you want to visually equip that is not a CharacterItem.

Each one needs it's own ItemCollection so that whenever an item is equipped in the approriate ItemCollection the system can listen to the event a visually equip the item, or equip the CharacterItem

I recommend you check out the tutorials and documentation again for more details
 
I think you are confusing the UIS equipment with the UCC equipment.
UCC equipment is for weapons and items your character can use using the CharacterController CharacterItem setup.
UIS equipment is for clothes, armour, and any other items you want to visually equip that is not a CharacterItem.

Each one needs it's own ItemCollection so that whenever an item is equipped in the approriate ItemCollection the system can listen to the event a visually equip the item, or equip the CharacterItem

I recommend you check out the tutorials and documentation again for more details
what would you recommend i look at? even with looking at docs, im lost on how to fix this
 
I will need more context to be able to help you.

What kind of items are you trying to equip?

Send me a screenshot of your character Equipper component Inspector. Amd your Inventory component Inspector
 
I will need more context to be able to help you.

What kind of items are you trying to equip?

Send me a screenshot of your character Equipper component Inspector. Amd your Inventory component Inspector

What kind of items are you trying to equip? just the regular knight armor and chest piece

Send me a screenshot of your character Equipper component Inspector. Amd your Inventory component Inspector

equipper
1773880273724.png

inventory

1773880332804.png
 
So as mentioned before there is some confusion about CharacterItems and clothe items.

Each should be part of their own ItemCollection.

You have 3 ItemCollections related to equipping on your character

1774014003105.png

You haven't sent a screenshot of your InventoryBridge component. So I will assume it's using the default collections of Equipablle Slots and Equippable
1774014113399.png
These are for your weapons CharacterItems. i.e Assault Rifle, Sword, Shield, etc... All items you use the Ultimate Character Controller to create a setup.

So that leaves your "Equipment" ItemCollection. Which as far as I can tell you are not using. But if I were you, I'd use that for your Clothing items.
Right now you are using the same Equippable itemcollection as your CharacterItems
1774014323436.png

So essentially you are trying to spawn all your items twice. Once as CharacterItems and another time as clothing items


I hope that all makes sense :)
 
So as mentioned before there is some confusion about CharacterItems and clothe items.

Each should be part of their own ItemCollection.

You have 3 ItemCollections related to equipping on your character

View attachment 15651

You haven't sent a screenshot of your InventoryBridge component. So I will assume it's using the default collections of Equipablle Slots and Equippable
View attachment 15652
These are for your weapons CharacterItems. i.e Assault Rifle, Sword, Shield, etc... All items you use the Ultimate Character Controller to create a setup.

So that leaves your "Equipment" ItemCollection. Which as far as I can tell you are not using. But if I were you, I'd use that for your Clothing items.
Right now you are using the same Equippable itemcollection as your CharacterItems
View attachment 15653

So essentially you are trying to spawn all your items twice. Once as CharacterItems and another time as clothing items


I hope that all makes sense :)
it does make since and i appreciate you explaining it.

i have this, equipment
1774061012000.png

Also for this section, do i add equipment prefab to bridged items or no?
1774061070410.png
 

Attachments

  • 1774050404428.png
    1774050404428.png
    63.9 KB · Views: 0
  • 1774050473886.png
    1774050473886.png
    68.7 KB · Views: 1
Last edited:
Back
Top