Clothing Plugins

Guides Clothing Plugins

Stopper

Well-known member
Featured Contributor
Messages
322
Reactions
3,849
Points
93
Stopper submitted a new resource:

Clothing Plugins - A guild to making clothing plugins and clothes that use them

What is a "Clothing Plugin"?
It turns out that you can trick VAM into loading plugins when an item of clothing is loaded. These plugins don't go into the default Atom plugin UIs and are generally their own separate thing.

What can I do with a Clothing Plugin?
A clothing plugin can do anything a regular plugin can do. What's nice about clothing plugins is that a user doesn't need to load them manually. They're added automatically when an item of clothing is put on for the...

Read more about this resource...
 
Stopper never stops! Lol!

Could this be used to give a single clothing item various "undress" states? Some of the built in clothing has a dropdown for different states, but for imported clothes, the only option has been to have separate clothing items for each state, which works but is a pain in the ass.

If such a thing seems feasible, could you put out a template for creators to use? People who make clothes but don't know a thing about plugins?
 
Stopper never stops! Lol!

Could this be used to give a single clothing item various "undress" states? Some of the built in clothing has a dropdown for different states, but for imported clothes, the only option has been to have separate clothing items for each state, which works but is a pain in the ass.

If such a thing seems feasible, could you put out a template for creators to use? People who make clothes but don't know a thing about plugins?

Yeah, it's likely possible. I'll put it on the list of plugins to make, but that's pretty long at this point.

Apart from some other things I'm tracking, in terms of just clothing plugins my next goals are clothing morphs and a clothing "merger" (combine multiple clothing items into one)
 
Hey @Stopper ! This looks really interesting. One use case I can think of is to trigger Breast Bust morphs automatically when a bra clothing item is put on, and remove them when removed.
Would it be possible to get this to work with existing clothing without re-packaging the clothing item? Like just do it in a .vap preset or something?
 
Is there a video guide somewhere because it's difficult for me. As I understand it, all this should be registered in the clothing files?
 
Wow very cool! This opens up so many possibilities for static clothing like piercings and other props 😍

The only issue I'm having that isn't mentioned, is that the textures don't load until you either >disable>enable the clothing item or "force reload" and >disable>enable the clothing items plugin.
1.PNG

Do you have somewhere I can leave you a tip? I super appreciate all you innovative work 💖
 
Last edited:
For any1 who is newbie and confused like me
here's a simple step by step to add clothing Plugins into existing .var files (i try to follow stopper's guides so i'll use mopedlampe's light glasses as an example)
1. find the clothes .var file in addonpackages folder then open it using zip tools like 7zip.
Picture1.png


2. Keep opening the file in zip window until you find the .vaj and .vam of the clothes you want. (Custom->Clothing->female-> ... -> .vaj and .vam files)
In my case, I wanna edit light glasses so i have to look at light glasses.vam and light glasses.vaj
Picture2.png



3. Copy them into any folder (In my case, I just drop it into new folder on my desktop) and don't close zip window yet we'll use it later in step 7
Note: don't forget to backup .vam and .vaj files before edit
==============================================================
next we will edit .vaj and .vam file but i'll start from .vaj
4. Open .vaj with any code edit program (notepad, VScode, etc) then add new element to components and storables list like Stopper's said in his guides
4.1. add new element to "components" list like pic below
1699145856982.png

4.2. add new element to "storables" list like pic below
Note: you can change the "id" to any name but this "id" have to match with "uid" in .vam file
1699146008570.png

5. open .vam file and make sure that "uid" has the same name as "id" in step 4.2.
1699146442247.png

6. save those files
7. drag and drop edited .vam and .vaj files into zip window. Finish !!!
1699146998863.png


If u don't wanna use clothing plugin any more just open the .var files by 7zip then drag and drop the backup .vaj and .vam into it

I'm not good at english and still a newbie, If there are any mistakes please let me know. Thanks :D
 
I don’t know about you, but after trying this workaround, I noticed pitfalls, because of which at the moment (and maybe in general) this feature will remain an “idea”, namely: This only works with single objects such as rings, watches, earrings and other decorations. (Even here there are problems)
Forget about clothes, because they become completely static and are attached only to a certain bone. Plus my textures are not displayed. Just a white object. I don't think anyone can tell me how to fix this.
Well, the main problem in all this is the game itself, which completely depends on the character’s morph and the soft physics of the character’s body. In general, you can forget about getting rid of deformations of clothes and jewelry. It's a pity.
 
The message "Plugin file Stopper.ClothingPluginManager.3: /Custom/Scripts/Stopper/ClothingPluginManager/ClothingPluginManager.cs does not exist" is displayed, and the plugin item does not appear in the UI. I would appreciate any advice you can provide.

"ClothingPluginManager.3 & 4 are installed in the AddonPackage.

Following the steps, I created them using Create New Item, and edited them by opening vaj from the Custom folder.

As a precaution, I also placed ClothingPluginManager in the Custom folder and tried it, but there was no change."
 
Last edited:
I don’t know about you, but after trying this workaround, I noticed pitfalls, because of which at the moment (and maybe in general) this feature will remain an “idea”, namely: This only works with single objects such as rings, watches, earrings and other decorations. (Even here there are problems)
Forget about clothes, because they become completely static and are attached only to a certain bone. Plus my textures are not displayed. Just a white object. I don't think anyone can tell me how to fix this.
Well, the main problem in all this is the game itself, which completely depends on the character’s morph and the soft physics of the character’s body. In general, you can forget about getting rid of deformations of clothes and jewelry. It's a pity.
I'm guessing you're talking about Static Clothing in particular. It was mostly a proof of concept, and can only be used for a few things. The re-wrapper would probably work better for many types of accessories. If you're still seeing texture issues with Static Clothing's latest version then let me know and I'll look into it.

The message "Plugin file Stopper.ClothingPluginManager.3: /Custom/Scripts/Stopper/ClothingPluginManager/ClothingPluginManager.cs does not exist" is displayed, and the plugin item does not appear in the UI. I would appreciate any advice you can provide.

"ClothingPluginManager.3 & 4 are installed in the AddonPackage.

Following the steps, I created them using Create New Item, and edited them by opening vaj from the Custom folder.

As a precaution, I also placed ClothingPluginManager in the Custom folder and tried it, but there was no change."
Hrm. Not sure. Do you have an extra space after the : or was that just a copy/paste issue? Feel free to send me your .vaj file and I take a look.
 
Hrm. Not sure. Do you have an extra space after the : or was that just a copy/paste issue? Feel free to send me your .vaj file and I take a look.

Thank you for your reply. I appreciate the innovative work you are doing to expand the possibilities of VaM. I have attached the vaj file for your review, and I would be grateful if you could take a look.
 

Attachments

  • Skirt_002Pleated_proxy.vaj
    4.6 KB · Views: 0
Thank you so much master.

The line specifying the plugin address had extra spaces before and after the ":". The issue has been resolved. Thank you. I look forward to more of your innovative work in the future.
 
can you help me to see my vaj?
i can't make plugin appear in my UI
 

Attachments

  • AkaliMore-Top222.vaj
    4.1 KB · Views: 0
can you help me to see my vaj?
i can't make plugin appear in my UI

It looks like you missed part 2 of the guide. You need to add a storable for the plugin manager.
Code:
"storables" : [
      {
          "id" : "NoOC:AkaliMore-Top222",
          "plugins" : {
              "plugin#0" : "Stopper.ClothingPluginManager.5:/Custom/Scripts/Stopper/ClothingPluginManager/ClothingPluginManager.cs"
          },
      },
      {
         "id" : "NoOC:AkaliMore-Top222Style"
      },
      {
         "id" : "NoOC:AkaliMore-Top222WrapControl",
         "wrapToSmoothedVerts" : "false",
         "surfaceOffset" : "0.0004",
         "additionalThicknessMultiplier" : "0.0004",
         "smoothIterations" : "1"
      },
 
It looks like you missed part 2 of the guide. You need to add a storable for the plugin manager.
Code:
"storables" : [
      {
          "id" : "NoOC:AkaliMore-Top222",
          "plugins" : {
              "plugin#0" : "Stopper.ClothingPluginManager.5:/Custom/Scripts/Stopper/ClothingPluginManager/ClothingPluginManager.cs"
          },
      },
      {
         "id" : "NoOC:AkaliMore-Top222Style"
      },
      {
         "id" : "NoOC:AkaliMore-Top222WrapControl",
         "wrapToSmoothedVerts" : "false",
         "surfaceOffset" : "0.0004",
         "additionalThicknessMultiplier" : "0.0004",
         "smoothIterations" : "1"
      },
Thanks for your reply!
I did miss that part
Now I've added it
The vaj file is as follows
Now reload can fully load the clothes
But i still can't pop up the plugin ui on my clothes
Is it possible that this clothes does not support adding plugins, or I need to change some settings in some places?
 

Attachments

  • AkaliMore-Top222.vaj
    4.3 KB · Views: 0
Thanks for your reply!
I did miss that part
Now I've added it
The vaj file is as follows
Now reload can fully load the clothes
But i still can't pop up the plugin ui on my clothes
Is it possible that this clothes does not support adding plugins, or I need to change some settings in some places?
Does it give you any errors? And do you have the latest version of the clothing plugin manager downloaded?
 
Does it give you any errors? And do you have the latest version of the clothing plugin manager downloaded?
I truly have downloaded yours [Stopper.ClothingPluginManager.5]
the error is:
Compile of Stopper.ClothingPluginManager.5:/Custom/Scripts/Stopper/ClothingPluginManager/ClothingPluginManager.cs failed. Errors:
!> [CS1540]: Cannot access protected member `MVRPluginManager.RemoveAllPlugins()' via a qualifier of type `MVRPluginManager'. The qualifier must be of type `Stopper.ClothingPluginManager.Destructor' or derived from it in <Unknown> at [373, 15]
!> [CS]: Mono.CSharp.InternalErrorException: (366,16): Stopper.ClothingPluginManager.Destructor.OnDestroy() ---> Mono.CSharp.FatalException: Cannot access protected member `MVRPluginManager.RemoveAllPlugins()' via a qualifier of type `MVRPluginManager'. The qualifier must be of type `Stopper.ClothingPluginManager.Destructor' or derived from it

I can't understand its meaning
 
I truly have downloaded yours [Stopper.ClothingPluginManager.5]
the error is:
Compile of Stopper.ClothingPluginManager.5:/Custom/Scripts/Stopper/ClothingPluginManager/ClothingPluginManager.cs failed. Errors:
!> [CS1540]: Cannot access protected member `MVRPluginManager.RemoveAllPlugins()' via a qualifier of type `MVRPluginManager'. The qualifier must be of type `Stopper.ClothingPluginManager.Destructor' or derived from it in <Unknown> at [373, 15]
!> [CS]: Mono.CSharp.InternalErrorException: (366,16): Stopper.ClothingPluginManager.Destructor.OnDestroy() ---> Mono.CSharp.FatalException: Cannot access protected member `MVRPluginManager.RemoveAllPlugins()' via a qualifier of type `MVRPluginManager'. The qualifier must be of type `Stopper.ClothingPluginManager.Destructor' or derived from it

I can't understand its meaning
Are you running the latest version of vam? MVRPluginManager.RemoveAllPlugins() should be public, not protected.
 
Are you running the latest version of vam? MVRPluginManager.RemoveAllPlugins() should be public, not protected.
It‘s truth!
I did not update vam to the latest version
And I never seem to think about it
Now the problem is completely solved
Thanks again for your reply
 
I've discovered that over time, the plugin tab for clothes can get lost. Or at all in the created scene can be overlaid on top of the same clothes that are used in the scene. Or it may not work at all.
 
I can't see the plugin UI... trying to solve this problem for many times, but I just don't know what's wrong. Help Plz
 

Attachments

  • Race Queen Panty_Morph.vaj
    4 KB · Views: 0
I can't see the plugin UI... trying to solve this problem for many times, but I just don't know what's wrong. Help Plz
Hmm.. The vaj file looks right. I'm assuming you have the v5 of the manager downloaded. If you want to send me your working directory I can try it out locally.
 
Hey @Stopper I got this to work fine when we were on version var 3 but now on version var 7 I get double the clothing item when expecting 1 & forcing reload does not load in the textures like it did before.

I've reviewed your main overview and all this discussion thread. Is this a bug, or is it more likely I'm doing something wrong?

Maybe these now have to be in a var? I always remove hair and clothes from vars since I'm trying to limit to under 6000 vars.

Attached is the .vaj file. Since these are paid VL cothing items I can message you the full file link if needed. Thank you!

Code:
{
   "components" : [
      {
         "type" : "DAZMesh"
      },
      {
         "type" : "DAZSkinWrap"
      },
      {
         "type" : "DAZSkinWrapMaterialOptions"
      },
      {
      "type" : "DAZSkinWrapMaterialOptions"
      },
      {
      "type" : "MVRPluginManager"
      }
      ],
"storables" : [
{
"id" : "VL_13:Earrings_Q_Neck_LOW",
"plugins" : {
"plugin#0" : "Stopper.ClothingPluginManager.7:/Custom/Scripts/Stopper/ClothingPluginManager/ClothingPluginManager.cs"
},
},
{
         "id" : "VL_13:Earrings_Q_Neck_LOWWrapControl",
         "wrapToSmoothedVerts" : "false",
         "surfaceOffset" : "0",
         "additionalThicknessMultiplier" : "0",
         "smoothIterations" : "0"
      },
      {
         "id" : "VL_13:Earrings_Q_Neck_LOWSim",

Doubled clothing
1715022994022.png
 

Attachments

  • Earrings_Q_Neck_LOW.vaj
    6.5 KB · Views: 0
Hey @Stopper I got this to work fine when we were on version var 3 but now on version var 7 I get double the clothing item when expecting 1 & forcing reload does not load in the textures like it did before.

I've reviewed your main overview and all this discussion thread. Is this a bug, or is it more likely I'm doing something wrong?

Maybe these now have to be in a var? I always remove hair and clothes from vars since I'm trying to limit to under 6000 vars.

Attached is the .vaj file. Since these are paid VL cothing items I can message you the full file link if needed. Thank you!

Code:
{
   "components" : [
      {
         "type" : "DAZMesh"
      },
      {
         "type" : "DAZSkinWrap"
      },
      {
         "type" : "DAZSkinWrapMaterialOptions"
      },
      {
      "type" : "DAZSkinWrapMaterialOptions"
      },
      {
      "type" : "MVRPluginManager"
      }
      ],
"storables" : [
{
"id" : "VL_13:Earrings_Q_Neck_LOW",
"plugins" : {
"plugin#0" : "Stopper.ClothingPluginManager.7:/Custom/Scripts/Stopper/ClothingPluginManager/ClothingPluginManager.cs"
},
},
{
         "id" : "VL_13:Earrings_Q_Neck_LOWWrapControl",
         "wrapToSmoothedVerts" : "false",
         "surfaceOffset" : "0",
         "additionalThicknessMultiplier" : "0",
         "smoothIterations" : "0"
      },
      {
         "id" : "VL_13:Earrings_Q_Neck_LOWSim",

Doubled clothingView attachment 363948
The vaj file looks good. Which plugins are you using?
 
Back
Top Bottom