Constant error message

Hello, I'm using the "Clothing Library v2" on my game and it works great, but I'm having a problem with an error message.

Error running script: Error compiling expression 'item.worn = true and HasAttribute(item,"wear_slots")': CompareElement: Operation 'Equal' is not defined for types 'Object' and 'Boolean'

I tried to fix it by myself, but I didn't succeed, so, if this has happened to you before, I would like you to tell me how to fix it. Thanks in advance.

I'm sure The Pixie will be able to help with that, since he's the one that wrote it. :D

Actually, I would recommend using Chase's "wearables" library, as it is significantly better.

viewtopic.php?f=10&t=2901

"Clothing Library v2" is Chase's library :D
Siset, could you post your game here?

I'm sorry for the delay, but my computer's power supply broke. The game is in Spanish, but you can find a little walkthrough to go directly to the error.

Thanks.

Ok, I got all the libraries except the asktelllib, but you seem not to use this lib.
Your walkthrough seems to be a bit ambiguous, so I can't go out. Could you record a real walkthrought in Quest and post your game again?

Ok, the walkthrough is ready. This should be fine.

OK, I found the bug. Try it with this version of the wearables lib

I still get that error message. Not always, for example, sometimes I can wear and remove any piece of cloth perfectly normal, but then, I try to wear it again, and I can't.

You have copied the function DoWear from the wearables.lib into your game. Do you really need this function there? I can't see any changes in it. So if you delete this function in your game it should work.

Ok, now it perfectly works. Thank you for your help and your time.