Constant error message
Siset
17 Sept 2012, 15:35Hello, 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.
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.
sgreig
17 Sept 2012, 18:15I'm sure The Pixie will be able to help with that, since he's the one that wrote it. 

The Pixie
17 Sept 2012, 18:33Actually, I would recommend using Chase's "wearables" library, as it is significantly better.
viewtopic.php?f=10&t=2901
viewtopic.php?f=10&t=2901

Pertex
17 Sept 2012, 18:59"Clothing Library v2" is Chase's library
Siset, could you post your game here?

Siset, could you post your game here?
Siset
27 Sept 2012, 13:56I'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.
Thanks.

Pertex
27 Sept 2012, 14:54Ok, 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?
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?
Siset
27 Sept 2012, 15:12Ok, the walkthrough is ready. This should be fine.

Pertex
27 Sept 2012, 19:29OK, I found the bug. Try it with this version of the wearables lib
Siset
27 Sept 2012, 23:09I 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.

Pertex
28 Sept 2012, 06:14You 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.
Siset
28 Sept 2012, 19:03Ok, now it perfectly works. Thank you for your help and your time.