[Solved] UCC + UIS and dual wield unique weapon setup results in to many spawned weapons

Hi,

as described within the discord server here I have the problem of using a dual wield setup having different weapon ids via UIS unique flag.

My setup:
UCC 3.2.2
UIS 1.3.2
Integration Version 3.0.5

I think the problem can be observed on two different systems. First one can be seen via the integration demo scene and without having done any changes. When equipping the pistol in both hands the InventoryItemSetManager will create double the amount of ItemSets. Scrolling through the loadout results in equipping the same two pistols again. I would have expected to have the dual wield pistol just one time in the InventoryItemSetManager.

1747325017801.png

The other situation is when having a ItemSlotCollectionItemSetRule configured and configuring two weapons into each slot (0,1) that uses different ids. In my case I have the same origin but using the unique flag in the inventory manager. The InventoryItemSetManager will create just one item set but drawing the weapons result in having weapons visually drawn and holstered at the same time.

1747324901759.png

Further more I noticed different behaviour when using different ItemSetRules. Here are my observations:

ItemSlotCollectionItemSetRule: When using the amount of weapons (for example 2) just one will be recognised. Drawing this one weapon does not show the holstered variant any more.
1747325184740.png
1747325196498.png

ItemCategoryItemSetRule: When using the amount of weapon (for example 2) both weapons will be correctly drawn. The holstered variants are not present any more. In this case the same item id will be used.
1747325471883.png
Using two different item ids (but the same weapon) the InventoryItemSetManager does create double the amount of ItemSetRules. Additionally the drawn AND holstered weapons are visible. This is likely the default use case for my game because weapon items can not be stacked and therefore get a new id.

If you have any questions or need more feedback I am looking forward to help.
 
I did find another problem that may relates to the same issue. As it can be seem above my weapons have a left and right variant as this has been suggested in the documentation. Having just one Wanderer's Sword in the equippable slots collection result in two visible holstered weapons. This is because of the used ItemCategoryItemSetRule. The Bridge also indicates that this is just one sword.
1747565341348.png
 
Hello @wartoshika
I'm very sorry for the delay, unfortunatly this bug is more complicated than it seems. And it made me find another bug somewhere else with the ItemSets and ItemSetRules. I am in process of fixing it, but due to the complexity of the task it will take more time than I first expected.
As soon as I figure out a solution for this I will share the code fix and udpate the package.

Thank you for reporting this, I'm glad you found it because we completely missed it during our testing.
 
Hey!
So I finally got it fixed, it required changes in a few scripts so unfortunatly it's not something I can just send you here.
We are preparing an update which will include this fix, so once it's ready make sure to download the latest version to get the fix.

To give context I improved the ItemSetManager and ItemSetGroups to better support complex dual weilding scenarios. Now the ItemSetRules in the integration have a way to handle invalid item sets depending on other itemsets.

And finally to fix your particular issue with the holster, I added a check that only enables soft equipped items if they are part of a valid ItemSet. Previously there was no function to check that.

I hope this will help you achieve the result you want :)
 
Thank you! I'll integrate those changes and report back any found issues.
Since I do also have the Behavior Editor Pro I want the full experience before writing any review. I will once I have a somewhat deep understanding. The products are lare and complex. A steep learning curve is always part of such complex systems.

At the time beeing I do love the overall products, the support and what I can do with them. The products cost a lot for a hobbyist but I think that it worth it :)
 
Back
Top