Misc - erdelf/AlienRaces GitHub Wiki
These are some additional tools and options that can be useful for edge case scenarios when creating humanoid alien races.
Humanoid Alien Races adds a custom DefModExtension that can be used on PawnKindDef
s.
This extension gives you a small subset of options that are available on General Settings,
but will only apply to this specific PawnKind.
<PawnKindDef>
<defName>MyRace_CustomPawnKind</defName>
<!-- many fields omitted -->
<modExtensions>
<li Class="AlienRace.Info">
<!-- mod extension settings go here -->
</li>
</modExtensions>
</PawnKindDef>
Setting | Description |
---|---|
<allowHumanBios>false</allowHumanBios> |
(Optional, default: true ) If set to false , then disables the use of
human PawnBios for this PawnKind if human PawnBios are allowed at a race level. Setting this to
true does nothing if the race itself does not allow human PawnBios.
|
<maleGenderProbability>0.5</maleGenderProbability> |
(Optional, default: 0.5 ) Overrides the gender probability for this PawnKind.
Warning: If you use this mod extension, then its default value of |
Humanoid Alien Races also has a custom subclass for LifeStageAges, which can be used to override various race settings for pawns of your race at those age ranges.
You can use this by specifying a Class
attribute for a lifestage list item:
<AlienRace.ThingDef_AlienRace>
<defName>MyMod_MyRace</defName>
<!-- many fields omitted -->
<race>
<lifeStageAges>
<li Class="AlienRace.LifeStageAgeAlien">
<def>MyRace_Larva</def>
<minAge>0</minAge>
<!-- settings go here -->
</li>
<li>
<def>HumanlikeTeenager</def>
<minAge>13</minAge>
</li>
<li>
<def>HumanlikeAdult</def>
<minAge>18</minAge>
</li>
</lifeStageAges>
</race>
</AlienRace.ThingDef_AlienRace>
Setting | Description |
---|---|
<body>MyRace_LarvaBody</body> |
(Optional) If set, overrides the BodyDef used by members of your race at this lifestage. |
<headOffset />
<headOffsetSpecific />
<customDrawSize />
<customPortraitDrawSize />
<customHeadDrawSize />
<customPortraitHeadDrawSize />
<headFemaleOffset />
<headFemaleOffsetSpecific />
<customFemaleDrawSize />
<customFemalePortraitDrawSize />
<customFemaleHeadDrawSize />
<customFemalePortraitHeadDrawSize /> |
(Optional) Overrides the offset values for this life stage. Please see General Settings for more details. |
If the vanilla BodyTypes do not suit your race and your race's custom body style does not fit
any vanilla silhouettes, you can create your own BodyTypeDefs. You can use the vanilla
BodyTypeDefs
as a reference, which can be found under Data/Core/Defs/Misc/BodyTypeDefs
.
Note that this can introduce a number of compatibility issues, as apparel without explicit textures for your custom BodyTypes will render as error boxes unless you use Apparel Graphics fallbacks.
(RimWorld 1.3 Only): All BodyTypeDefs must have woundAnchors
defined - otherwise, when members of your race are injured, their body add-ons and hair may not render properly while they are lying in bed.