Cool VL Viewer forum
http://sldev.free.fr/forum/

remoutfit oddity with multiple shirts
http://sldev.free.fr/forum/viewtopic.php?f=4&t=735
Page 1 of 1

Author:  Ibrew Meads [ 2012-02-23 23:10:27 ]
Post subject:  remoutfit oddity with multiple shirts

I suppose this is almost a bug, but the behaviour isn't defined as far as I know so I'm calling it an oddity. It is surely unexpected behaviour.

When I wear two shirts and remove them with @remoutfit:shirt=force, It removes the innermost shirt only. When I wear three shirts, it removes the inner and outer shirts, leaving the second shirt. In both cases a second @remoutfit:shirt=force removes the second shirt.

I'm not sure if remoutfit should remove all shirts on a layer or just the outermost, but the current behaviour is unexpected and odd.

I noticed this behaviour first in 1.26.3.5 and it is still present in 1.26.3.7.

My System:
Cool VL Viewer 1.26.3 (7) Feb 22 2012 10:58:22 (Cool VL Viewer)
RestrainedLove viewer v2.08.03.20 (Cool VL Viewer v1.26.3)
Release Notes

Built with GCC version 40102

You are at (home)
Second Life Server 12.02.06.248938
Release Notes

CPU: Intel(R) Core(TM) i7 CPU 930 @ 2.80GHz (1600 MHz)
Memory: 12038 MB
OS Version: Linux 3.2.0-1-amd64 #1 SMP Fri Feb 17 05:17:36 UTC 2012 x86_64
Graphics Card Vendor: NVIDIA Corporation
Graphics Card: GeForce GTX 470/PCIe/SSE2
OpenGL Version: 4.2.0 NVIDIA 295.20

libcurl Version: libcurl/7.20.1 OpenSSL/0.9.7c zlib/1.2.3.3 c-ares/1.7.1
J2C Decoder Version: OpenJPEG: 1.3.0, Runtime: 1.3.0
Audio Driver Version: FMOD version 3.750000
Qt Webkit Version: 4.7.1 (version number hard-coded)
Packets Lost: 672/92434 (0.7%)

Author:  Henri Beauchamp [ 2012-02-24 00:33:56 ]
Post subject:  Re: remoutfit oddity with multiple shirts

Definitely a bug. Found and fixed it. Fix will be in v1.26.3.8.

Author:  Tillie [ 2012-02-27 20:24:24 ]
Post subject:  Re: remoutfit oddity with multiple shirts

Henri Beauchamp wrote:
Definitely a bug. Found and fixed it. Fix will be in v1.26.3.8.


Does it remove all of them with the fix or the outermost?

Author:  Henri Beauchamp [ 2012-02-27 20:44:39 ]
Post subject:  Re: remoutfit oddity with multiple shirts

Tillie wrote:
Henri Beauchamp wrote:
Definitely a bug. Found and fixed it. Fix will be in v1.26.3.8.


Does it remove all of them with the fix or the outermost?
All of them, as documented in the RestrainedLove API.

Author:  Ibrew Meads [ 2012-02-28 05:45:07 ]
Post subject:  Re: remoutfit oddity with multiple shirts

Henri Beauchamp wrote:
Tillie wrote:
Henri Beauchamp wrote:
Definitely a bug. Found and fixed it. Fix will be in v1.26.3.8.


Does it remove all of them with the fix or the outermost?
All of them, as documented in the RestrainedLove API.


I don't mean to be a pain, Henri, but where is that documented? When I wrote the original post, I looked at the RestrainedLove API documentation at http://wiki.secondlife.com/w/index.php?title=LSL_Protocol%2FRestrainedLoveAPI and found no mention of multiple clothing items per layer. That's why I said the behaviour was undocumented. Did I miss something? Is there some other documentation on how RLV is supposed to handle clothing layers?

Thanks!

Author:  Henri Beauchamp [ 2012-02-28 08:40:49 ]
Post subject:  Re: remoutfit oddity with multiple shirts

It's how Marine (tried to) code it: she was just removing the layers in the wrong order (increasing the index in the loop instead of decreasing it; layers being automatically renumbered when you remove them, if you remove index 0, index 1 becomes 0 and when you next remove index 1, you are actually skipping old index 1 and removing old index 2, etc...).

Believe me, it's how it's intended to work !

Author:  Ibrew Meads [ 2012-03-01 02:31:29 ]
Post subject:  Re: remoutfit oddity with multiple shirts

Henri Beauchamp wrote:
It's how Marine (tried to) code it: she was just removing the layers in the wrong order (increasing the index in the loop instead of decreasing it; layers being automatically renumbered when you remove them, if you remove index 0, index 1 becomes 0 and when you next remove index 1, you are actually skipping old index 1 and removing old index 2, etc...).

*laughs* A classic looping error. I admit i've done it more than once over the years.

Henri Beauchamp wrote:
Believe me, it's how it's intended to work !

When I went to elementary school in the US, the teachers had special editions of the textbooks that had the answers to the problems given at the end of each chapter, as well as extra background information to give them a better understanding of what they were teaching. They were called "Teacher's Editions." The student editions had the problems without answers and students were expected to get any extra information from class lectures. In the case of the RLV, you definetly have the Teacher's Edition, since you have worked so closely with it for so long. So you can be sure I believe you! Hopefully Marine will add multiple items on a clothing layers to the RLV API documentation soon.

Thanks again.

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/