XML error <invMealCount>

Started by Zim777, July 20, 2016, 03:27:05 PM

Previous topic - Next topic

Zim777

trying to update mod
XML error <invMealCount>3</invMealCount> doesn`t correspond to any field in type PawnKinddef

Quote<PawnKindDef>
    <defName>FeralHusker</defName>
    <label>husker</label>
    <race>Human</race>
    <combatPower>65</combatPower>
    <defaultFactionType>Feral</defaultFactionType>
    <baseRecruitDifficulty>80</baseRecruitDifficulty>
    <backstoryCategory>Raider</backstoryCategory>
    <invMealCount>3</invMealCount>
    <itemQuality>Normal</itemQuality>
    <backstoryCryptosleepCommonality>0.25</backstoryCryptosleepCommonality>
    <maxGenerationAge>58</maxGenerationAge>
    <gearHealthRange>
      <min>0.7</min>
      <max>2.3</max>
    </gearHealthRange>
    <apparelRequired>
      <li>Apparel_HuskerHood</li>
    </apparelRequired>
    <apparelTags>
      <li>Outlander</li>
      <li>Military</li>
    </apparelTags>
    <apparelMoney>
      <min>1500</min>
      <max>2800</max>
    </apparelMoney>
    <weaponMoney>
      <min>400</min>
      <max>700</max>
    </weaponMoney>
    <weaponTags>
      <li>FeralPistol</li>
    </weaponTags>
    <techHediffsMoney>
      <min>1000</min>
      <max>1500</max>
    </techHediffsMoney>
    <techHediffsTags>
      <li>Advanced</li>
    </techHediffsTags>
    <techHediffsChance>0.003</techHediffsChance>
    <inventoryOptions>
      <skipChance>0.8</skipChance>
      <subOptionsChooseOne>
        <li>
          <thingDef>Silver</thingDef>
          <countRange>
            <min>50</min>
            <max>200</max>
          </countRange>
        </li>
        <li>
          <thingDef>Medicine</thingDef>
          <countRange>
            <min>1</min>
            <max>1</max>
          </countRange>
        </li>
      </subOptionsChooseOne>
    </inventoryOptions>
  </PawnKindDef>


Any errors here?

1000101

Time to bust out your decompiler and see that that field has been changed to.

Also, refer to the core defs for reference.
(2*b)||!(2*b) - That is the question.
There are 10 kinds of people in this world - those that understand binary and those that don't.

Powered By

Zim777

Quote from: 1000101 on July 20, 2016, 08:34:02 PM
Time to bust out your decompiler and see that that field has been changed to.

Also, refer to the core defs for reference.
Thank =)
I`ve found changes.

<invMealCount>3</invMealCount> to  <invNutrition>3</invNutrition>
<baseRecruitDifficulty>80</baseRecruitDifficulty> to <baseRecruitDifficulty>0.8</baseRecruitDifficulty>

and also in file <FactionDef>

Quote<li Class="PawnGroupMaker_Normal">
        <commonality>100</commonality>
        <options>
          <li>
            <selectionWeight>200</selectionWeight>
            <kind>FeralHusker</kind>
          </li>

to

Quote<li Class="PawnGroupMaker_Normal">
        <commonality>100</commonality>
        <options>
          <FeralHusker>200</FeralHusker>


;D ;D ;D