Difference between revisions of "Creating cloth plugin"
From XStoryPlayer Wiki
Line 25: | Line 25: | ||
character = "Saiko"; // Name of character (can also be e.g. Monica) | character = "Saiko"; // Name of character (can also be e.g. Monica) | ||
− | name = "Cloth name"; // | + | name = "Cloth name"; // Change into the name of your cloth |
// First cloth item (can be more if you want more cloth items) | // First cloth item (can be more if you want more cloth items) | ||
item[0] | item[0] | ||
{ | { | ||
− | object = "#plugin/My cloth name/clothObjectNameShape.obj"; // | + | object = "#plugin/My cloth name/clothObjectNameShape.obj"; // Your cloth object filename |
− | stand_state = "#plugin/My cloth name/saikoClothObjectNameStand_0.dat"; // | + | stand_state = "#plugin/My cloth name/saikoClothObjectNameStand_0.dat"; // Your cloth standing pose state filename |
} | } | ||
} | } |
Revision as of 11:18, 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
- 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. - 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. - 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. - 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"; // Your cloth object filename stand_state = "#plugin/My cloth name/saikoClothObjectNameStand_0.dat"; // Your cloth standing pose state filename } }
- 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.