Difference between revisions of "Creating cloth plugin"

From XStoryPlayer Wiki
Jump to: navigation, search
(Created page with "Cloth plugins allow for easy distribution and sharing of new cloth objects with others. Creating a cloth plugin is pretty straightforward. Using textures outside the packs n...")
 
Line 9: Line 9:
  
 
<ol>
 
<ol>
<li>You have created a new cloth object. For using that cloth as a plugin you need to also have a standing pose state for that cloth.
+
<li>You have created a new cloth object. For using that cloth object as a plugin you need to also have a standing pose state for that cloth.
 
Info on how to create cloth and the standing state can be found in [[Creating_cloth]].</li>
 
Info on how to create cloth and the standing state can be found in [[Creating_cloth]].</li>
 
<li>You can see a folder called <code>plugin</code> in the root directory where you installed [[XStoryPlayer]]. In it are several directories with existing plugins.<br>
 
<li>You can see a folder called <code>plugin</code> in the root directory where you installed [[XStoryPlayer]]. In it are several directories with existing plugins.<br>

Revision as of 11:16, 16 March 2015

Cloth plugins allow for easy distribution and sharing of new cloth objects with others.

Creating a cloth plugin is pretty straightforward.

Using textures outside the packs needs a little more explanation. But once see done it it is also pretty straightforward.


Creating cloth plugin

  1. You have created a new cloth object. For using that cloth object as a plugin you need to also have a standing pose state for that cloth. Info on how to create cloth and the standing state can be found in Creating_cloth.
  2. You can see a folder called plugin in the root directory where you installed XStoryPlayer. In it are several directories with existing plugins.
    Create a new directory with a name that fits your cloth plugin and add it.
  3. Copy the file called _plugin.ini from one of the other plugin directories. We will use it as a template for the new plugin.
    This file describes where the plugin files are.
  4. Open the _plugin.ini in a text editor and make it look like this:
    cloth_object
    {
      // This cloth was created by: Your alias
      // Version: 1.0
     
      pack = "pack/pack_dungeon.bin"; // Remove this line if cloth should be used in all fast sex packs.
     
      character = "Saiko";      // Name of character (can also be e.g. Monica)
      name      = "Cloth name"; // The name of your cloth
     
      // First cloth item (can be more if you want more cloth items)
      item[0]
      {
        object      = "#plugin/My cloth name/clothObjectNameShape.obj";        // The cloth object
        stand_state = "#plugin/My cloth name/saikoClothObjectNameStand_0.dat"; // The cloth standing pose state
      }
    }
  5. Make sure the cloth object ans its standing state are also placed in your plugin directory. Now you should be able to use your cloth in the fast sex dungeon pack.