Costume File: Difference between revisions

From Unofficial Homecoming Wiki
Jump to navigation Jump to search
imported>Rugiel
imported>Felderburg
(wip -> incomplete - maybe unnecessary?)
 
(6 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{{incomplete|note=This article appears largely complete, but since there are no notes and I am not familiar with costume files, I am unsure.}}
== Overview ==
== Overview ==


Line 20: Line 21:
:HipScale ''#''
:HipScale ''#''
:LegScale ''#''
:LegScale ''#''
:HeadScales ''#'', ''#'', ''#''
:HeadScales ''#'', ''#'', ''#''
:BrowScales ''#'', ''#'', ''#''
:BrowScales ''#'', ''#'', ''#''
:CheekScales ''#'', ''#'', ''#''
:CheekScales ''#'', ''#'', ''#''
:ChinScales ''#'', ''#'', ''#''
:ChinScales ''#'', ''#'', ''#''
:CraniumScales ''#'', ''#'', ''#''
:CraniumScales ''#'', ''#'', ''#''
:JawScales ''#'', ''#'', ''#''
:JawScales ''#'', ''#'', ''#''
:NoseScales ''#'', ''#'', ''#''
:NoseScales ''#'', ''#'', ''#''


Scales are followed by two to three general definitions:
Scales are followed by two to three general definitions - note the reversed color triplet:


:SkinColor ''RRR'', ''GGG'', ''BBB''
:SkinColor ''BBB'', ''GGG'', ''RRR''
:NumParts 27
:NumParts 27
:BodyType ''#'' (1 = female, 4 = huge)  
:BodyType ''#'' (1 = female, 4 = huge)  


The costume piece data blocks, which specify the particulars about each individual costume piece including pattern and colors, comprise the remainder of the file. Costume piece data blocks use the following format:
There is also occasionally another identifier
 
:CostumeFilePrefix ''xxx''
 
with the values of either "Huge", "male" or "fem".  This may or may not be an antiquated value, but it occasionally appears without the associated BodyType field.
 
The costume piece data blocks, which specify the particulars about each individual costume piece including pattern and colors (once again, the RGB values are in reverse order), comprise the remainder of the file. Costume piece data blocks use the following format:


:Geometry ''string''
:Geometry ''string''
Line 42: Line 49:
:RegionName "''string''"
:RegionName "''string''"
:BodySetName "''string''"
:BodySetName "''string''"
:Color1 ''RRR'', ''GGG'', ''BBB''
:Color1 ''BBB'', ''GGG'', ''RRR''
:Color2 ''RRR'', ''GGG'', ''BBB''
:Color2 ''BBB'', ''GGG'', ''RRR''
:Color3 ''RRR'', ''GGG'', ''BBB''
:Color3 ''BBB'', ''GGG'', ''RRR''
:Color4 ''RRR'', ''GGG'', ''BBB''
:Color4 ''BBB'', ''GGG'', ''RRR''


=== Model scales ===
=== Model scales ===
As of [[Issue 15]], players who have purchased the [[Super Booster III: Superscience|Superscience]] [[Booster Pack]] have the option of altering model height and body type at the [[tailor]] in addition to costume pieces and head scales. Since it can be difficult to reproduce scale settings accurately with the sliders when changing body types, manually editing the numerical scale settings in the [[costume file]] gives players much greater control over costume changes.
As of [[Issue 15]], players who have purchased [[Super Booster III: Superscience]] have the option of altering model height and body type at the [[tailor]] in addition to costume pieces and head scales. Since it can be difficult to reproduce scale settings accurately with the sliders when changing body types, manually editing the numerical scale settings in the costume file gives players much greater control over costume changes.


The following reference table gives the minimum and maximum values for each scale appropriate to each body type.
The following reference table gives the minimum and maximum values for each scale appropriate to each body type.
----
{| class="wikitable"
                      FEMALE             MALE & HUGE
|-
                '''Minimum'''  '''Maximum'''  |  '''Minimum'''  '''Maximum'''
! BODY !! colspan=2 | FEMALE !! colspan=2 | MALE & HUGE
        ''Scale''   -27     36       |   -33       25
|-
    ''BoneScale''     -1       1       |     -1         1
! Scale Type !! Minimum !! Maximum !! Minimum !! Maximum
''ShoulderScale''     -1       0.9984 |     -1         1
|-
    ''ChestScale''     -1       1       |     -1         1
| ''Scale'' || -27 || 36 || -33 || 25
    ''WaistScale''     -1       1       |     -1         1
|-
      ''HipScale''     -1       1       |     -1         1
| ''BoneScale'' || -1 || 1 || -1 || 1
      ''LegScale''     -0.1     0.02   |     -0.1       0.02
|-
                                    +
| ''ShoulderScale'' || -1 || 0.9984 || -1 || 1
Head/face scales                  |
|-
for all models    -1       1       |     -1         1
| ''ChestScale'' || -1 || 1 || -1 || 1
----
|-
| ''WaistScale'' || -1 || 1 || -1 || 1
|-
| ''HipScale'' || -1 || 1 || -1 || 1
|-
| ''LegScale'' || -0.1 || 0.02 || -0.1 || 0.02
|-
! HEAD/FACE !! colspan=2 | FEMALE !! colspan=2 | MALE & HUGE
|-
! Scale Type !! Minimum !! Maximum !! Minimum !! Maximum
|-
| All Scales || -1 || 1 || -1 || 1
|}
<!--
<!--
head scales - L,H,W? Which order?
head scales - L,H,W? Which order?
-->
-->
{{wip}}
[[Category:Game Client]]

Latest revision as of 18:07, 21 February 2014

Overview

Issue 13 introduced the ability to save and load costumes.

A costume file contains the necessary data to reproduce a costume, from body and facial scales to the colors and patterns on each individual costume piece on a character.

Costume files are saved in the INSTALLDIR/data/Costumes/ folder.

The costume editor also provides a button to Attempt Fix for cases when a saved costume contains costume parts that have not been unlocked for the character loading the costume, or contain legacy parts that have been reorganized in the costume editor. This button attempts to substitute the closest match available for the costume part(s) in question, and allows the player to proceed from the costume load screen to the costume editor interface and manually edit the costume, rather than prevent the costume from loading altogether. After restoring the costume, saving the newer version of the costume is a good idea!

File structure

Costume files encode character model scales with a label and a number. If any of the model scales are 0, they are omitted, except the first, which defines the model's height and can never be zero. Scale specs appear first and use the following format:

Scale #
BoneScale #
ShoulderScale #
ChestScale #
WaistScale #
HipScale #
LegScale #
HeadScales #, #, #
BrowScales #, #, #
CheekScales #, #, #
ChinScales #, #, #
CraniumScales #, #, #
JawScales #, #, #
NoseScales #, #, #

Scales are followed by two to three general definitions - note the reversed color triplet:

SkinColor BBB, GGG, RRR
NumParts 27
BodyType # (1 = female, 4 = huge)

There is also occasionally another identifier

CostumeFilePrefix xxx

with the values of either "Huge", "male" or "fem". This may or may not be an antiquated value, but it occasionally appears without the associated BodyType field.

The costume piece data blocks, which specify the particulars about each individual costume piece including pattern and colors (once again, the RGB values are in reverse order), comprise the remainder of the file. Costume piece data blocks use the following format:

Geometry string
Texture1 string
Texture2 string
DisplayName P-string
RegionName "string"
BodySetName "string"
Color1 BBB, GGG, RRR
Color2 BBB, GGG, RRR
Color3 BBB, GGG, RRR
Color4 BBB, GGG, RRR

Model scales

As of Issue 15, players who have purchased Super Booster III: Superscience have the option of altering model height and body type at the tailor in addition to costume pieces and head scales. Since it can be difficult to reproduce scale settings accurately with the sliders when changing body types, manually editing the numerical scale settings in the costume file gives players much greater control over costume changes.

The following reference table gives the minimum and maximum values for each scale appropriate to each body type.

BODY FEMALE MALE & HUGE
Scale Type Minimum Maximum Minimum Maximum
Scale -27 36 -33 25
BoneScale -1 1 -1 1
ShoulderScale -1 0.9984 -1 1
ChestScale -1 1 -1 1
WaistScale -1 1 -1 1
HipScale -1 1 -1 1
LegScale -0.1 0.02 -0.1 0.02
HEAD/FACE FEMALE MALE & HUGE
Scale Type Minimum Maximum Minimum Maximum
All Scales -1 1 -1 1