Samstag, 14. Februar 2015

Christine's Outfit System Example: Beach Trip

Hello everyone :-)

I worked a little on my outfit-system..... because I really needed a way to change parts of my outfit faster. And since I may publish it soon I'm giving you an overview of how it works here.

I recently bought some beach clothes and I think it's a good example for how my system works.

First of all I need to plan the outfit. It includes 8 #RLV-Folders in total (take a look at the Appendix at the end of the post to see what's in these folders):
Navy-colored top and shorts

White bikini- top and -bottom

Barefeet and  Barefeet+Flip Flops
Sunglasses and hair

 Note that these are the pictures which I made for my wardrobe (check it out if you don't know it, it's great: http://carlyletheassolutions.com/wardrobe.php), the lingerie is not part of the outfit, I include it in pictures which are not about underwear or bathsuits. And only the last hair is used, the hair on the other pictures is only there because I don't like making pictures without hair ;-)


Now lets get started. First of all I have to attach my CJOS-HUD. It is usually located at the top right.


Now I have to wear all of the above folders, click the HUD and hit Scan. The HUD will automatically detect all the folders I am wearing. Afterwards I click manage to delete folders which I don't want to be included in the outfit (I never change my skin, therefore I delete the skin from the outfit). If something were missing I could add it via the Add-Button (type in the name of the folder there, not the whole path, the HUD will find it automatically).

Afterwards my Manage-Menu will look like this:

Note that the menu-dialog may not be able to display all the names of the folders (there's a restriction by Second Life). Check the local chat, all the folders should be listed there.

Now I can reate Compilations. I just select Dressoptions from the Manage-Menu and give them names. I'm going for:

Compilation1: Dress All
Compilation2: Barefeet
Compilation3: Swimsuit
Compilation4: Topless
Compilation5: Naked

I leave Compilation6 blank, because I don't need it at the moment.

Now I go back to the Manage-Menu and edit the folder-setting. There I can select whether an folder should be attached when I choose one of the Compilations from the Main Menu (checked) or detached (unchecked).

I use the following settings:

Hair: Checked in C1-C5, because there is no reason to change or detach it
Flip Flops: Checked in C1, Unchecked in C2-C5
Barefeet: Checked in C2-C5, Unchecked in C1, because they have to be worn when the Flip Flops are not attached
Sunglasses: Checked in C1&C2, Unchecked in C3-C5
Bikini Top: Checked in C3, Unchecked in C1&C2&C4&C5, because the prim won't fit under my shirt
Bikini Bottom: Checked in C3&4, Unchecked in C1&2&C5
Navy Top: Checked in C1&2, Unchecked in C3-C5
Navy Shorts: Checked in C1&2, Unchecked in C3-C5







Now my Main Menu looks like this:




Lets go to the beach and try it out:

Compilation1: Dress All

Compilation2: Barefeet

Compilation3: Swimsuit

Compilation4: Topless

Compilation5: Naked


I hope this helps understanding of the CJOS can be set up :-)


Appendix: Contents of my folders








Montag, 2. Februar 2015

Setting up the #RLV-Folder

Many people use their #RLV-Folders for their adult toys only. This way they loose a big deal of the potential of this great addition to Second Life. In this tutorial I'd like to show how all the items (at least the ones which you'd like to attach to your avatar) of an inventory can be placed in the #RLV-Folder so that its owner, other players and scripts can easily access them.

1. Set up the folder
Some viewers will automatically create the RLV-folder for you. In case yours didn't go ahead and create a folder named #RLV in your root folder (the highest place where you can create folders). #rlv or #Rlv won't work with most viewers, so make sure that you only use upper-case letters only.

2. One item per folder
Placing many different items in one folder appears to be an easy way to store outfits. After all you can just right-click the folder and attach all items in it to your avatar.

But this effectively renders auto-detach useless. When a script tries to detach one item from your avatar it might scan your inventory for the folder this item is in and will detach all the contents of this folder as well. This makes sense, because this way the script can detach for example your shoes (which are usually located at the left and right foot (I know, in RL that's obvious ;-) )) as well as the alpha and the shoe-form belonging to these shoes without worrying about the alphas of other clothes, your hair, etc.

Also this way you can't swap or (un-)dress single items in an outfit using scripts.

Therefore I advise to put each item in a single folder.

3. Naming folders
Sorting
You can add special chars in front of the names of folders to change their order. For example a ? or a ! will place them higher in a list. Only use special chars when needed and don't use too fancy ones. Some scripts and viewers show unexpected behavior when using them.

Invisble folders
A . will render the folder invisible to scripts which scan folders, but is will still be accessible to scripts which attach or detach folders.

A ~ will work the same way a . does. Typically folders given to you by other objects will start with a ~ so you might want to avoid using this character yourself to avoid confusion.

Protected folders
Adding (nostrip) at the end of a folders name will make it impossible for scripts to detach them. Use this for important things, like your relay, your AO, your hair, etc.

Unique names
Also make sure that the names of your folders are unique. Having a folder "Blue" in one subfolder and another folder "Blue" in a second subfolder might confuse scripts.

It is also important to keep in mind how scripts search folders. They will only the first result which matches their search criteria.

Example:
If you have the folders
"Pretty Blue Dress"
"My new Blue Dress by Some Creator"
"Blue Dress"
and you want to attach the last one your script will have problems to locate this folder, because if it searches for it it will only find the first folder. Therefore you should include enough information in a folders name to avoid confusion, for example the creators name, the date you bought it, etc.

Also: some popular scripts treat spaces as separators of search parameters, meaning that a search for "Blue Dress" might return "Dress Blue" as well, since it contains both words. As said above: make the names unique.

Understandable
When you are into adult activities you might want to give other players access to your folder-structure (no, other players cannot move, edit or delete your items, that's a myth!). Make sure they can understand the names of your folders and start with the relevant word first. Example: "Gag Ball Red Rubber MoDesign" is faster to understand than "Modesign Red Rubber Ball Gag". Especially because menus chop of texts after a certain length.

4. Organization
For your scripts to work it doesn't make any difference where you put the folders. In theory.

But in reality you don't want to have too many sub-folders in one folder. At least if you want to navigate your menu with dialogs. Scripts have memory limitations and they may chop of menu items if there are too many. Also it's a pain to navigate dozens of menu-pages.

As a rule of hand I wouldn't put more than 30 sub-folders in a single folder. If you need more create additional folders in between.

Also, like stated above, other players might take a look at your folders. You might want to make it easy for them to find what they are looking for. Place the stuff they might be looking for at the first positions (take a look a t Sorting above).

And don't worry about the script-load on the server for scanning your inventory. This is done by your client.

Sonntag, 28. Dezember 2014

Easy Item Switcher

Hello :-)


Today I'd like to share something with you, which came to my mind, after I bought some clothes with lots of different options (=cloth-layers/prims). It is nice to have these options, but changing them is a little tedious (open inventory, search the right folder, search the right item, and so on) and sometimes one even forgets about them.

Therefore I created a way which requires nothing but a little bit of setting up and then clicking at the place of an avatars body, where the item should be changed.

You will need a basic understanding of the creation and editing of the easiest SL-objects to copy my approach, as well as a RLV-compatible viewer.

You can find the script here: http://pastebin.com/4Y04mhwf

Example:

I will use the Hobble Doll Black from Mesmerize Dungeon as an example.

It comes with 1 optional part for the head, 3 options for the breasts, optional gloves and socks and two options for the lower part (and also some other options, which I won't cover here ;-) ). Her is a picture of the folder which I received:

Yes, that are many items ^^

So the first step is bringing some order into these items:

-When I can I always choose the underwear-layer for catsuits and similar items, because I won't have to worry about tattoos on the actual tattoo-layer then.
-Everything worn on the head must be a tattoo-layer. That's a SL-Restriction.
-Gloves have to be worn on the gloves-, socks on the socks-layer.
-I also added empty folders so that the script can take of parts (technically it adds the empty folders while removing all the other folders from the outfit).

That's how the folder looks after I ordered the items. Note that I only attached the marked items. The folders for my top and my "pants" have been attached automatically, because they contain the modifier ":default".

Also note, that all the folders are categorized. Folders with the second parameter ":pants" can only be controlled with the item of the same name. The names matter! (not the most beautiful solution, but this way you don't have to play around with menus or notecards to set the system up). Also note: even if your folder only contains one category of items (e.g. you only have tops) you still have to use the categories in the names.


And, of course, this folder must be located anywhere under the #RLV-Folder. Mine is at #RLV/>Clothes/>Costumes/>Catsuits/Latex Catsuit MD Hobble Doll Black Folder but you can place it wherever you like..... while it has the folder "#RLV" (the name matters again ;-) ) as its highest parent-folder.

But where are these prims which I attached? They are invisible (that means their textures transparency is 100%). If you hit CTRL+ALT+T you can see them. Like this:


Note that I attached two items with the same name at two different places. That's because I think it makes sense to control the gloves from either hand.


Now, when I click on one of the prims, a menu shows up. For example the breasts menu:

It shows 4 options. Take a look at the folder above and you see, that every folder, who has "Top" right after the question mark in its name, is listed here. When I click on one of these buttons all folders in the "Top"-Category will be detached and the chosen folder attached. For example I could choose "CutOutBreasts" and the result will look like this:

Don't forget to give the server some time to bake the textures. Your viewer will change the items in a few seconds, but it might take a little longer to actually display the change on your avatar.

That's it.... in case you don't want others to play around with your stuff. In case you want them to do that (just like me ;-) ) you can set your items to public. Doing so is easy, just add ":public" to the items name. Like this:

The hood on my head has been attached by my friend, who controlled the menu for this item. Since I only declared the Head as being public she wasn't able to use the menu for the other parts.

Note that you have to detach an reattach the controlling item, before a change of the name takes effect.


Creating the controlling item....


is easy. In my opinion ;-)

First hit CTRL+B to bring up the build-menu. Click somewhere on the ground. You might need to be at a place where building is allowed, a sandbox is a safe choice. You will get a basic form.

Right click it and choose "Put On->Attach" and the place where you want to attach the item.

The go to the content-tab and add a script ("New Script"). Double click it and paste my code in it. In case you missed it at the top of the post: http://pastebin.com/4Y04mhwf

Stretch and Rotate the object until it is in position. Then go to the Texture-Tab and set the Transparency to 100%.


I hope you enjoy it :-)


The license for my codes is GNU GPLv3

Hello World

Hello everyone and welcome to my blog :-)


One of my hobbies is to create scripts for Second Life.... and I think that it's a shame that I'm the only one who profits from it.


Therefore I'd like to share some of my solutions with you.


Be warned:

I will include pictures of my avatar from time to time. And sometimes they might be considered NSFW or even offensive.

So if you don't like what you see, please don't troll about it :-)


Also:

I'm not a professional programmer, and therefore all my programs should be considered as not being polished. They work for me and I try to keep the script-load as low as possible. But if you find something that could be better.... performance, style, features, whatever.... feel free to leave a (constructive!) comment :-)

Also also:

English is not my native language. Please be polite and ignore all the mistakes I do :-)





Mmmmhhhh..... too much text..... so here are some pictures of me writing some scripts at Dutchie. I hope they don't mind if I use their PC :-)