RimWorld

RimWorld

Dragonian Prime Race
Vazrua  [developer] 29 Jul, 2021 @ 2:52pm
Misc fixes
Hey, I've fixed up a few things. I'll just paste the corrected xmls here so you can reference them. First is the hair issue, note that it seems that hair tags are now defined in cultures, i'm still working on a fix on my end so that dragonian player factions properly use them instead of random hairstyles(that might be only me that experiences it)

<?xml version="1.0" encoding="utf-8"?>
<Defs>
<StyleItemCategoryDef>
<defName>DR_HairCategory</defName>
<label>Dragonian hair</label>
</StyleItemCategoryDef>

<HairDef>
<defName>DR_Male_Hair</defName>
<label>DR short cut</label>
<styleGender>Male</styleGender>
<texPath>Hair/DR_Male_Hair</texPath>
<styleTags>
<li>DR_Hair</li>
</styleTags>
</HairDef>
<HairDef>
<defName>DR_TwinDownBindFront</defName>
<label>DR twin down bind(front)</label>
<styleGender>Female</styleGender>
<texPath>Hair/DR_TwinDownBindFront</texPath>
<styleTags>
<li>DR_Hair</li>
</styleTags>
</HairDef>
<HairDef>
<defName>DR_TwinDownBindBoth</defName>
<label>DR twin down bind</label>
<styleGender>Female</styleGender>
<texPath>Hair/DR_TwinDownBindBoth</texPath>
<styleTags>
<li>DR_Hair</li>
</styleTags>
</HairDef>
<HairDef>
<defName>DR_TwinDownBindBack</defName>
<label>DR twin down bind(back)</label>
<styleGender>Female</styleGender>
<texPath>Hair/DR_TwinDownBindBack</texPath>
<styleTags>
<li>DR_Hair</li>
</styleTags>
</HairDef>
<HairDef>
<defName>DR_Twintail</defName>
<label>DR twin tail</label>
<styleGender>Female</styleGender>
<texPath>Hair/DR_Twintail</texPath>
<styleTags>
<li>DR_Hair</li>
</styleTags>
</HairDef>
<HairDef>
<defName>DR_TwinDownBind</defName>
<label>DR twin down bind</label>
<styleGender>Female</styleGender>
<texPath>Hair/DR_TwinDownBind</texPath>
<styleTags>
<li>DR_Hair</li>
</styleTags>
</HairDef>
<HairDef>
<defName>DR_Long</defName>
<label>DR long</label>
<styleGender>Female</styleGender>
<texPath>Hair/DR_Long</texPath>
<styleTags>
<li>DR_Hair</li>
</styleTags>
</HairDef>
<HairDef>
<defName>DR_Japan</defName>
<label>DR roll up hair</label>
<styleGender>Female</styleGender>
<texPath>Hair/DR_Japan</texPath>
<styleTags>
<li>DR_Hair</li>
</styleTags>
</HairDef>
<HairDef>
<defName>DR_Wavelongop</defName>
<label>DR wavelong op</label>
<styleGender>Female</styleGender>
<texPath>Hair/DR_Wavelongop</texPath>
<styleTags>
<li>DR_Hair</li>
</styleTags>
</HairDef>
<HairDef>
<defName>DR_Twinlongop</defName>
<label>DR twinlong op</label>
<styleGender>Female</styleGender>
<texPath>Hair/DR_Twinlongop</texPath>
<styleTags>
<li>DR_Hair</li>
</styleTags>
</HairDef>
<HairDef>
<defName>DR_Twinlong</defName>
<label>DR twinlong</label>
<styleGender>Female</styleGender>
<texPath>Hair/DR_Twinlong</texPath>
<styleTags>
<li>DR_Hair</li>
</styleTags>
</HairDef>
<HairDef>
<defName>DR_Wavelong</defName>
<label>DR wavelong</label>
<styleGender>Female</styleGender>
<texPath>Hair/DR_Wavelong</texPath>
<styleTags>
<li>DR_Hair</li>
</styleTags>
</HairDef>
<HairDef>
<defName>DR_Middlecut</defName>
<label>DR middlecut</label>
<styleGender>Female</styleGender>
<texPath>Hair/DR_Middlecut</texPath>
<styleTags>
<li>DR_Hair</li>
</styleTags>
</HairDef>
<HairDef>
<defName>DR_Short</defName>
<label>DR shortcut</label>
<styleGender>Female</styleGender>
<texPath>Hair/DR_Short</texPath>
<styleTags>
<li>DR_Hair</li>
</styleTags>
</HairDef>
<HairDef>
<defName>DR_LongAdult</defName>
<label>DR Long Adult</label>
<styleGender>Female</styleGender>
<texPath>Hair/DR_LongAdult</texPath>
<styleTags>
<li>DR_Hair</li>
</styleTags>
</HairDef>
<HairDef>
<defName>DR_Short_male</defName>
<label>DR shortcut male</label>
<styleGender>Male</styleGender>
<texPath>Hair/DR_Short</texPath>
<styleTags>
<li>DR_Hair</li>
</styleTags>
</HairDef>
<HairDef>
<defName>DR_Nohair</defName>
<label>DR no hair</label>
<styleGender>Female</styleGender>
<texPath>DR_Null</texPath>
<styleTags>
<li>DR_Hair</li>
</styleTags>
</HairDef>
</Defs>

You'll notice the change of hairGender to styleGender, and hairTags to styleTags. You can remove references to male specific hair and just use styleGender to set it. I believe any reference to hairTags is depreciated, so those lines will likely throw xml errors.

Next you'll need to use
<initialWillRange>0.8~1.0</initialWillRange>
<initialResistanceRange>20~25</initialResistanceRange>

at whatever values you want in the pawnkinds_player.xml, I've added this to all the pawnkinds in my patch, I'll match whatever value you set.

You'll also wanna add

<raidLootValueFromPointsCurve>
<points>
<li>(35, 15)</li>
<li>(100, 120)</li>
<li>(1000, 500)</li>
<li>(2000, 800)</li>
<li>(4000, 1000)</li>
</points>
</raidLootValueFromPointsCurve>

at whatever values you want to the factions_player.xml, that should fix most of the xml errors. I'll try and find some proper documentation for the HAR framework and fix any more issues people find. Cheers!
< >
Showing 1-2 of 2 comments
Vazrua  [developer] 2 Aug, 2021 @ 9:30pm 
Replacing

<hairSettings>
<hasHair>true</hasHair>
<getsGreyAt>750</getsGreyAt>
<styleTags>
<li>DR_Hair</li>
</styleTags>
</hairSettings>

with

<styleSettings>
<li>
<key>HairDef</key>
<value>
<hasStyle>true</hasStyle>
<styleTagsOverride>
<li>DR_Hair</li>
</styleTagsOverride>
</value>
</li>
<li>
<key>TattooDef</key>
<value>
<hasStyle>false</hasStyle>
<!-- <styleTags> -->
<!-- <li>Minimal</li> -->
<!-- </styleTags> -->
</value>
</li>
<li>
<key>BeardDef</key>
<value>
<hasStyle>false</hasStyle>
<!-- <styleTags> -->
<!-- <li>Minimal</li> -->
<!-- </styleTags> -->
</value>
</li>
</styleSettings>

in the races_Dragonianlike.xml
seems to make it so that dragonians will properly spawn only with their own hairstyles, no beards/tats.
Vazrua  [developer] 3 Sep, 2021 @ 10:12am 
Pawns have tongues now, apparently. adding
<parts>
<li>
<def>Tongue</def>
<coverage>0</coverage>
<depth>Inside</depth>
<groups>
<li>FullHead</li>
</groups>
</li>
</parts>

to the <li> for jaw enables the remove tongue surgery. I've got a line in my patch to add them, but i've not updated it yet.
< >
Showing 1-2 of 2 comments
Per page: 1530 50