Error: Unable to find a Equip Unequip ability with category id 1636424895.

finaratic

Member
I get this error, i found out that this ID belongs to DeathmatchItemCollection BUT i use my custom character that uses completely different item collection! How this be possible? I changed Item Category for every ability and set up item sets to work with NEW item collection, but its still trying to access the demo one...
 
Also i have this weapon set up, weapons are in category items + its type, for ammo should i use nothing or Items too? I found a post on forum about this issue, but in my case i dont know why even it happens since i use different item collection :/ My abilities and item sets linked to new collection
 

Attachments

  • 1736948241509.png
    1736948241509.png
    29.3 KB · Views: 0
Last edited:
The only way to get that error is if one of your abilities are still pointing to an old category. You could try removing the Equip Unequip abilities until you figure out which one is causing the issue. The category also automatically gets set based on the ItemCollection that you are using so within the Item Set Manager you are referencing your new ItemCollection.
 
The only way to get that error is if one of your abilities are still pointing to an old category. You could try removing the Equip Unequip abilities until you figure out which one is causing the issue. The category also automatically gets set based on the ItemCollection that you are using so within the Item Set Manager you are referencing your new ItemCollection.
Yes, ItemSetManager is set up right, all stuff in item sets from custom collection, all abilities use custom collection too, i will try to debug it. But on the screenshots ALL stuff i share is set to new custom collection...
The thing is that they wont swap to different weapons because of this warning, BUT they can equip EACH weapon they have in inventory if they start with it. SO equip\unequip actually works..... I have only 2 equip\unequip abilities which point to custom item collection, one for ITEMS second one for LeftHandGrenades. Without one of this abilities or if i add more they just stand with no weapons in hand. Can you please check my set up. Maybe collection is set up wrong? Can you tell me what category bullets should have? I Have put them to items, weapons have two categories depending on type, for example all of them have ITEMS category + TwoHandShootable for example for AR rifle
 

Attachments

  • 1737022418892.png
    1737022418892.png
    156.7 KB · Views: 6
  • 1737022437396.png
    1737022437396.png
    229.2 KB · Views: 6
  • 1737022824913.png
    1737022824913.png
    907.4 KB · Views: 6
  • 1737023475247.png
    1737023475247.png
    63.3 KB · Views: 5
  • 1737023587958.png
    1737023587958.png
    77.1 KB · Views: 6
I also checked the whole project, there is NO item category with this ID at all, so it doesn't even exist.... And none of inventory items on this character have this category too in debug :/
 
Also after i explicitly replace the ID in code with needed items category id, i get same error for ID 0
Can i just ignore it?
 

Attachments

  • 1737030663956.png
    1737030663956.png
    18.8 KB · Views: 3
  • 1737030679731.png
    1737030679731.png
    27 KB · Views: 3
Last edited:
The error relates to the category set on the Item Set Group. Your screenshots don't show the Equip/Unequip abilities, but the same category should match:

1737032379619.png

1737032405123.png
 
Same for toggle equip, i made 2 toggle abilities for items + left hand grenade
 

Attachments

  • 1737103734999.png
    1737103734999.png
    736.3 KB · Views: 5
  • 1737103756023.png
    1737103756023.png
    829.4 KB · Views: 5
What is the stack trace of the error? I couldn't find any text that has the exact wording from what you posted and assumed it is the one within ItemSetGroup.cs.

If it is within ItemSetGroup.cs, can you output the values of the EquipUnequip ability category ID along with the category ID that it is looking for?

Code:
                    if (equipUnequipAbility.ItemSetCategoryID <= 0) {
                        genericEquipUnequipAbility = equipUnequipAbility;
                    }

                    Debug.Log(equipUnequipAbility.ItemSetCategoryID + " " + CategoryID); // Here
                    if (equipUnequipAbility.ItemSetCategoryID == CategoryID) {
                        m_EquipUnequip = equipUnequipAbility;
                        break;
                    }
 
What is the stack trace of the error? I couldn't find any text that has the exact wording from what you posted and assumed it is the one within ItemSetGroup.cs.

If it is within ItemSetGroup.cs, can you output the values of the EquipUnequip ability category ID along with the category ID that it is looking for?

Code:
                    if (equipUnequipAbility.ItemSetCategoryID <= 0) {
                        genericEquipUnequipAbility = equipUnequipAbility;
                    }

                    Debug.Log(equipUnequipAbility.ItemSetCategoryID + " " + CategoryID); // Here
                    if (equipUnequipAbility.ItemSetCategoryID == CategoryID) {
                        m_EquipUnequip = equipUnequipAbility;
                        break;
                    }
Okay let me try but check this out, i dont event have a category with this ID in my whole project this is the most interesting part, i am starting to lose my mind lol
 
I think i will need to see what sets m_CategoryID.Value in behavior designer Equip\Unequip, seems like there is an issue with the setter of this value
 
Ah, that error is coming from the Behavior Designer task. Ok, so it's not related to the group.

The Start Equip Unequip task cannot find the specified ability. If you are using the example deathmatch tree then you will need to update all of the tasks to point to the new ability.
 
Ah, that error is coming from the Behavior Designer task. Ok, so it's not related to the group.

The Start Equip Unequip task cannot find the specified ability. If you are using the example deathmatch tree then you will need to update all of the tasks to point to the new ability.
Can you please tell me how to do it?
 
Go to your behavior tree and for all of the StartEquipUnequip tasks update the Category ID. If you want to see the exact Category ID int value you can remove the [ItemSetCategoryDrawer] attribute from the m_CategoryID field.
 
Okay here is what i can change in the tree, item set category gets set automatically to the right one, same for item set i guess, only way i can change Category ID is in script itself, Should i change it in script also? since on the task it should take IteSetCategory from agent automatically?
 

Attachments

  • 1737105026163.png
    1737105026163.png
    17.2 KB · Views: 4
  • 1737105073865.png
    1737105073865.png
    12.4 KB · Views: 4
Back
Top