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

#RLV folders issue
http://sldev.free.fr/forum/viewtopic.php?f=7&t=1532
Page 1 of 1

Author:  Tillie [ 2015-06-06 10:25:00 ]
Post subject:  #RLV folders issue

Hello Henri,

Cool VL Viewer 1.26.13 (13) May 30 2015 10:50:08 (Cool VL Viewer)

I just tried to use the #rlv folder stuff.

What I have is:
Code:
#rlv/
   outfitname/
        +part1/
                item
        +part2/
                item
        +part3/
                item


If I now rightclick/wear folder on any of the parts, the clicked folder gets named .(spine). If I do this for all three, they all are named like that, that, ending up in:

Code:
#rlv/
   outfitname/
        .(spine)/
                item
        .(spine)/
                item
        .(spine)/
                item


Even unwearing the items doesn't restore the foldername.

Maybe items in #rlv are not meant to be worn "manually" but only by script? I was wearing them manually while trying to complete the outfit. And the items are all meant to go to spine attachment point, yes, but I thing the folder name should change to +itemx (spine)/ then?


Do I do something completely wrong or is there an issue?

Author:  Henri Beauchamp [ 2015-06-06 15:26:58 ]
Post subject:  Re: #RLV folders issue

This is how it is expected to work for no-mod items... The algorithm is a bit confusing, however, and I think you still can find the explanation for it on Marine's blog (it's a very old post, dating from the first RLV year back in 2007 or so).

Here is how it works: when an object is attached from inside the #RLV folder, RestrainedLove attempts to rename the object so that the name contains "(attachment_point)" (this is to keep track of where each object is supposed to be attached by the server on "attach on default joint" request and find out by looking at its name before sending that request or not to the server, depending on what other objects are worn on the same attachment point and their locked status).
Of course, this cannot work for no-mod items (since you can't rename them). In the latter case, RestrainedLove checks whether the item is at least two levels under the #RLV folder (i.e. whether it's an outfit sub-folder) and if so, renames that folder into ".(attachment_point)" (the "." got a special meaning for RestrainedLove: it denotes an "invisible" folder that will not be taken into account by folder-browsing RLV commands).

So, when using no-mod objects (that don't already have their name with "(attachment_point)" in them, which could happen...) in #RLV outfits, you should place them inside a sub-folder of that outfit (simply create a "New Folder" and place the no-mod object in it: that sub-folder will be renamed on first attachment).

In your case, you should use:
Code:
#RLV/
   outfitname/
      +part1/
         New Folder/
            no-mod object1
      +part2/
         New Folder/
            no-mod object2
      +part3/
         New Folder/
            no-mod object3
      +part4/
         mod-ok object4


Which, once "outfitname" worn the first time, will turn into:
Code:
#RLV/
   outfitname/
      +part1/
         .(spine)/
            no-mod object1
      +part2/
         .(spine)/
            no-mod object2
      +part3/
         .(spine)/
            no-mod object3
      +part4/
         mod-ok object4

Author:  Tillie [ 2015-06-06 15:45:47 ]
Post subject:  Re: #RLV folders issue

Oh, ok. Understood, thanks so much! :D

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