Difference between revisions of "Species"
DeamonHunter (Talk | contribs) m (Forgot a bracket) |
m (Fixed typo) |
||
(2 intermediate revisions by one other user not shown) | |||
Line 16: | Line 16: | ||
"male" : { | "male" : { | ||
"icon" : "mods/modname/maleSpeciesIcon.png", | "icon" : "mods/modname/maleSpeciesIcon.png", | ||
− | "bodyType" : "mods.modname. | + | "bodyType" : "mods.modname.malebodytype", |
"model" : "mods/modname/species_Male.qb", | "model" : "mods/modname/species_Male.qb", | ||
"palettes" : [ "staxel.palette.skin.fair", "staxel.palette.skin.slightTan", "staxel.palette.skin.tanned", "staxel.palette.skin.tropical", | "palettes" : [ "staxel.palette.skin.fair", "staxel.palette.skin.slightTan", "staxel.palette.skin.tanned", "staxel.palette.skin.tropical", | ||
Line 36: | Line 36: | ||
= Config Options = | = Config Options = | ||
== "code" == | == "code" == | ||
− | '''Valid options (String): <code> | + | '''Valid options ([[Modding_Key_Terms#String|String]]): <code>A unique string which identifies what Accessory this is.</code>''' |
'''Default Value:''' No default value is specified. Always need to provide your own. | '''Default Value:''' No default value is specified. Always need to provide your own. | ||
− | + | This option is required to uniquely identify any Accessory. This string '''must''' be unique to all other codes, but does not have any other requirements. | |
== "icon" == | == "icon" == | ||
− | '''Valid options (String): <code> | + | '''Valid options ([[Modding_Key_Terms#String|String]]): <code>Any valid string which contains the path to an image.</code>''' |
'''Default Value:''' No default value is specified. Always need to provide your own. | '''Default Value:''' No default value is specified. Always need to provide your own. | ||
− | A string which contains the path to the image which should be displayed for the species | + | A string which contains the path to the image which should be displayed for the species in the character creator. |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
== "male"/"female" == | == "male"/"female" == | ||
− | These contain information for the individual genders of a species. | + | These are both [[Modding_Key_Terms#Blob|Blobs]]. Both of these contain information for the individual genders of a species. These are normally constructed like. (Swap "male" for "female" to change the female version.); |
<pre> | <pre> | ||
Line 74: | Line 65: | ||
} | } | ||
</pre> | </pre> | ||
− | |||
=== "icon" === | === "icon" === | ||
− | '''Valid options (String): <code> | + | '''Valid options ([[Modding_Key_Terms#String|String]]): <code>Any valid string which contains the path to a image.</code>''' |
'''Default Value:''' No default value is specified. Always need to provide your own. | '''Default Value:''' No default value is specified. Always need to provide your own. | ||
Line 85: | Line 75: | ||
− | === " | + | === "bodyType" === |
− | '''Valid options (String): <code>A | + | '''Valid options ([[Modding_Key_Terms#String|String]]): <code>A strings containing the code to a [[Body Type]].</code>''' |
'''Default Value:''' No default value is specified. Always need to provide your own. | '''Default Value:''' No default value is specified. Always need to provide your own. | ||
Line 95: | Line 85: | ||
=== "model" === | === "model" === | ||
− | '''Valid options (String): <code> | + | '''Valid options ([[Modding_Key_Terms#String|String]]): <code>Any valid string which contains the path to a model.</code>''' |
'''Default Value:''' No default value is specified. Always need to provide your own. | '''Default Value:''' No default value is specified. Always need to provide your own. | ||
Line 104: | Line 94: | ||
=== "palettes" === | === "palettes" === | ||
− | '''Valid options (List of Strings): <code>A list of strings | + | '''Valid options ([[Modding_Key_Terms#List|List]] of [[Modding_Key_Terms#String|Strings]]): <code>A list of strings each pointing to a separate [[Palettes]].</code>''' |
+ | |||
+ | '''Default Value:''' If not specified, will not have any palettes and will rely on the model's colours. | ||
+ | |||
+ | |||
+ | This is a list of colour swaps for this model. | ||
+ | |||
+ | |||
+ | === "paletteGroups" === | ||
+ | '''Valid options ([[Modding_Key_Terms#List|List]] of [[Modding_Key_Terms#String|Strings]]): <code>A list of strings each pointing to a separate [[Palette Group]].</code>''' | ||
+ | |||
+ | '''Default Value:''' If not specified, will not have any palettes and will rely on the model's colours. | ||
+ | |||
+ | |||
+ | This is a list of Palette groups which contain a number of colour swaps for this model. | ||
+ | |||
+ | |||
+ | == "playable" == | ||
+ | '''Valid options ([[Modding_Key_Terms#Bool|Bool]]): <code>True or False</code>''' | ||
+ | |||
+ | '''Default Value:''' If not specified, will default to False. | ||
− | |||
− | + | Determines whether or not this species can be played by the player. | |
− | + |
Latest revision as of 08:45, 19 July 2018
In Staxel, *.species files are used to specify a character race or animal's looks. Species files provide the backbone for providing the looks of many of the living things in Staxel. They contain references on how to create two different types, usually "masculine" and "feminine" body. These bodies include;
- The Body Type that the model will be.
- The model and it's Palettes that it will use.
- An icon to show if needed. (Such as for character select.)
Contents
Creating a *.species file
A species file is mostly full of references to other files which provide the more basic information. The common layout of a species file looks like;
{ "code" : "mods.modname.species", "icon" : "mods/modname/speciesIcon.png", "male" : { "icon" : "mods/modname/maleSpeciesIcon.png", "bodyType" : "mods.modname.malebodytype", "model" : "mods/modname/species_Male.qb", "palettes" : [ "staxel.palette.skin.fair", "staxel.palette.skin.slightTan", "staxel.palette.skin.tanned", "staxel.palette.skin.tropical", "staxel.palette.skin.dark", "staxel.palette.skin.darker", "staxel.palette.skin.oriental" ] }, "female" : { "icon" : "mods/modname/femaleSpeciesIcon.png", "bodyType" : "mods.modname.femalebodytype", "model" : "mods/modname/species_Female.qb", "palettes" : [ "staxel.palette.skin.fair", "staxel.palette.skin.slightTan", "staxel.palette.skin.tanned", "staxel.palette.skin.tropical", "staxel.palette.skin.dark", "staxel.palette.skin.darker", "staxel.palette.skin.oriental" ] }, "playable" : true }
All icon properties must point to images. The models must point to a *.qb or .layered file and BodyType and Palettes include a code that points to another file. After this is all created, your species is now ready to be used in Staxel.
Config Options
"code"
Valid options (String): A unique string which identifies what Accessory this is.
Default Value: No default value is specified. Always need to provide your own.
This option is required to uniquely identify any Accessory. This string must be unique to all other codes, but does not have any other requirements.
"icon"
Valid options (String): Any valid string which contains the path to an image.
Default Value: No default value is specified. Always need to provide your own.
A string which contains the path to the image which should be displayed for the species in the character creator.
"male"/"female"
These are both Blobs. Both of these contain information for the individual genders of a species. These are normally constructed like. (Swap "male" for "female" to change the female version.);
"male" : { "icon" : "mods/modname/maleSpeciesIcon.png", "bodyType" : "mods.modname.femalebodytype", "model" : "mods/modname/species_Male.qb", "palettes" : [ "staxel.palette.skin.fair", "staxel.palette.skin.slightTan", "staxel.palette.skin.tanned", "staxel.palette.skin.tropical", "staxel.palette.skin.dark", "staxel.palette.skin.darker", "staxel.palette.skin.oriental" ] }
"icon"
Valid options (String): Any valid string which contains the path to a image.
Default Value: No default value is specified. Always need to provide your own.
A string which contains the path to the image which should be displayed for the particular gender.
"bodyType"
Valid options (String): A strings containing the code to a Body Type.
Default Value: No default value is specified. Always need to provide your own.
This defines the Body Type that the model will use. Body Types include the information on animations and model layers that are needed for movement.
"model"
Valid options (String): Any valid string which contains the path to a model.
Default Value: No default value is specified. Always need to provide your own.
This defines the model that this particular gender will use. There is no restriction on what model is used, although the Body Type must be able to support it.
"palettes"
Valid options (List of Strings): A list of strings each pointing to a separate Palettes.
Default Value: If not specified, will not have any palettes and will rely on the model's colours.
This is a list of colour swaps for this model.
"paletteGroups"
Valid options (List of Strings): A list of strings each pointing to a separate Palette Group.
Default Value: If not specified, will not have any palettes and will rely on the model's colours.
This is a list of Palette groups which contain a number of colour swaps for this model.
"playable"
Valid options (Bool): True or False
Default Value: If not specified, will default to False.
Determines whether or not this species can be played by the player.