Currently, when calling Humanoid:ApplyDescription(), if any of the HumanoidDescription’s fields have a duplicate ID, the API correctly spits the following error : Humanoid::ApplyDescription() HumanoidDescription has the same asset used in more than one property
However, this error is not really useful - it doesn’t specify which property is being duplicated. On an avatar with a lot of accessories, you have to write a script to manually parse the ID fields to flag where the duplicate is!
This makes it harder to debug code that utilizes humanoid descriptions, and it makes it harder to fix the issue if you’re just using them with the command-bar in studio.
Expected behavior
It is expected that the error would specify which field has the duplicate in it, allowing for much easier debugging
Thanks for your report. This is a good suggestion, we can easily provide more information here.
I am planning to change the error message to something like: Humanoid::ApplyDescription() HumanoidDescription has the same asset used more than once: Asset ID 15872746095 is used for AssetTypes LeftArm, RightArm. Asset ID 15696298624 is used for AssetTypes Hat, BackAccessory.
This will be more forward compatible with HumanoidDescription sub-instances (BodyPartDescription and AccessoryDescription) than directly including the property name.