How to change your apparel/cloths/armor etc.

Started by xiuhte1, March 21, 2014, 08:25:57 AM

Previous topic - Next topic

xiuhte1

Well so hi  i was wandering about how to change the apparel of the people and i find it how so let'go
is better if you do it in a early game play so you take less time saving the file and searching

first open your save file (is in C:\Users\:yourname:\AppData\LocalLow\Ludeon Studios\RimWorld\Saves)

search your colonier and find this part of the code


<wornApparel>
<keys>
<li>OnSkin</li>
</keys>
<values>
<li Class="Apparel">
<def>Apparel_BasicShirt</def>
<id>Apparel_BasicShirt12</id>
<health>100</health>
<color>RGBA(0.000, 0.000, 0.400, 1.000)</color>
</li>
</values>
</wornApparel>


the first place / Keys tell us what is avalible to wearing


<keys>
<li>OnSkin</li>
</keys>


ande the second what is wearing the name
(<def>Apparel_BasicShirt</def>) and the id (<id>Apparel_BasicShirt12</id>)
the third is the color in RGBA (RedGreenBluetransparency) lower the number darker wil be (o black, 1.000 white)  and in A Transparency should be always 1.000


<values>
<li Class="Apparel">
<def>Apparel_BasicShirt</def>
<id>Apparel_BasicShirt12</id>
<health>100</health>
<color>RGBA(0.000, 0.000, 0.400, 1.000)</color>
</li>
</values>


well now to change or to add new cloths move to keys part and add


<keys>
<li>OnSkin</li>
<li>Middle</li>
<li>Shell</li>
</keys>


now you are able to wear more cloths  so let's add a power armor and a vest plate.
do you remember the id number? well they must be different to every one if you just want to change a jacket you could change the number id too. but better just the name of the cloth


<values>
<li Class="Apparel">
<def>Apparel_BasicShirt</def>
<id>Apparel_BasicShirt12</id>
<health>100</health>
<color>RGBA(0.000, 0.000, 0.400, 1.000)</color>
</li>
<li Class="Apparel">
<def>Apparel_VestPlate</def>
<id>Apparel_VestPlate13</id>
<health>100</health>
<color>RGBA(0.450, 0.450, 0.450, 1.000)</color>
</li>
<li Class="Apparel">
<def>Apparel_PowerArmor</def>
<id>Apparel_PowerArmor14</id>
<health>100</health>
<color>RGBA(0.405, 0.000, 0.450, 1.000)</color>
</li>
</values>


so that is all now save and now you will see you new apparel.
but what about the other and the keys for those
and you can't wear more of one in each camp

in the core mods carpet 
D:\Program Files\RimWorldAlpha####\Mods\Core\Defs\ThingDefs
is the Apparel.xml
<ThingDef ParentName="ApparelBase">
      <defName>Apparel_Duster</defName>
      <label>Duster</label>
      <apparel>
         <damageAbsorption>0.08</damageAbsorption>
         <graphicPath>Things/Pawn/Humanoid/Apparel/Duster/Duster</graphicPath>
         <layer>Shell</layer>
         <commonality>50</commonality>
         <tags>
            <li>Duster</li>
         </tags>
      </apparel>
      <colorGenerator Class="ColorGenerator_Options">
         <options>
            <li>
               <weight>10</weight>
               <only>RGBA(0.33,0.33,0.33,1)</only>
            </li>
            <li>
               <weight>10</weight>
               <only>RGBA(0.65,0.65,0.65,1)</only>
            </li>
            <li>
               <weight>30</weight>
               <only>RGBA(0.4,0.3,0.15,1)</only>
            </li>
            <li>
               <weight>6</weight>
               <min>RGBA(0.3,0.3,0.3,1)</min>
               <max>RGBA(0.5,0.5,0.5,1)</max>
            </li>
            <li>
               <weight>2</weight>
               <min>RGBA(0.5,0.5,0.5,1)</min>
               <max>RGBA(1,1,1,1)</max>
            </li>
         </options>
      </colorGenerator>
   </ThingDef>

<ThingDef ParentName="ApparelBase">
<defName>Apparel_Duster</defName>
<label>Duster</label>
<apparel>
<damageAbsorption>0.08</damageAbsorption>
<graphicPath>Things/Pawn/Humanoid/Apparel/Duster/Duster</graphicPath>
<layer>Shell</layer>
<commonality>50</commonality>
<tags>
<li>Duster</li>
</tags>
</apparel>
<colorGenerator Class="ColorGenerator_Options">
<options>
<li>
<weight>10</weight>
<only>RGBA(0.33,0.33,0.33,1)</only>
</li>
<li>
<weight>10</weight>
<only>RGBA(0.65,0.65,0.65,1)</only>
</li>
<li>
<weight>30</weight>
<only>RGBA(0.4,0.3,0.15,1)</only>
</li>
<li>
<weight>6</weight>
<min>RGBA(0.3,0.3,0.3,1)</min>
<max>RGBA(0.5,0.5,0.5,1)</max>
</li>
<li>
<weight>2</weight>
<min>RGBA(0.5,0.5,0.5,1)</min>
<max>RGBA(1,1,1,1)</max>
</li>
</options>
</colorGenerator>
</ThingDef>


and something that i see is the <damageAbsorption> is not currently working so now that is all i hope you can understand me and is helpful for the people  :D / sorry for my band english  ::)