Humanoid:ApplyDescription() error does not specify which property is duplicated

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

5 Likes

This does seem more of a feature-request to me, however I experience this issue and thus would like it fixed.

2 Likes

This is just an acknowledgment announcement!

We’ve filed a ticket into our internal database for this issue, and will come back as soon as we have updates!

Thanks for flagging!

1 Like

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.

3 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.

The change to update this error message has shipped. Thanks again for your report.

3 Likes