Difference between revisions of "Creating cloth plugin"

From XStoryPlayer Wiki
Jump to: navigation, search
Line 36: Line 36:
 
</syntaxhighlight>
 
</syntaxhighlight>
 
</li>
 
</li>
<li>Make sure the cloth object ans its standing state are also placed in your plugin directory.<br>
+
<li>Make sure the cloth object file and its standing state file are also placed in your plugin directory.<br>
 
You now should be able to use your cloth in the fast sex dungeon pack.</li>
 
You now should be able to use your cloth in the fast sex dungeon pack.</li>
 
</ol>
 
</ol>

Revision as of 11:20, 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 into your newly created directory. 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"; // Change into 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";        // Change into your cloth object filename
        stand_state = "#plugin/My cloth name/saikoClothObjectNameStand_0.dat"; // Change into your cloth standing pose state filename
      }
    }
  5. Make sure the cloth object file and its standing state file are also placed in your plugin directory.
    You now should be able to use your cloth in the fast sex dungeon pack.