Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Topics - Nocturnal

#1
Mods / Could not resolve cross reference?
May 13, 2015, 11:54:41 AM
Hello, I'm making a armor mod but I've run into a problem. When loading in, this message pops up. When in game, the helmet I'm working on doesn't show up. The XML file has everything I think it needs to have. No other mods are enabled. Here is the error message. Could anybody help me please?

Here is the XML.
<?xml version="1.0" encoding="utf-8" ?>
<ThingDefs>

  <ThingDef Name="ApparelMakeableBase" Abstract="True">
    <thingClass>Apparel</thingClass>
    <category>Item</category>
    <selectable>True</selectable>
    <pathCost>10</pathCost>
    <useHitPoints>True</useHitPoints>
    <graphicOnGroundRandomRotateAngle>35</graphicOnGroundRandomRotateAngle>
    <drawGUIOverlay>true</drawGUIOverlay>
    <statBases>
      <MaxHitPoints>100</MaxHitPoints>
      <Flammability>1.0</Flammability>
      <DeteriorationRate>1</DeteriorationRate>
      <SellPriceFactor>0.5</SellPriceFactor>
    </statBases>
    <altitudeLayer>Item</altitudeLayer>
    <alwaysHaulable>True</alwaysHaulable>
    <tickerType>Never</tickerType>
    <thingCategories>
      <li>Headgear</li>
    </thingCategories>
    <comps>
      <li>
        <compClass>CompForbiddable</compClass>
      </li>
      <li>
        <compClass>CompColorable</compClass>
      </li>
      <li>
        <compClass>CompQuality</compClass>
      </li>
    </comps>
  </ThingDef>

  <ThingDef Name="ApparelMakeableBase" ParentName="HatBase" Abstract="True">
    <recipeMaker>
      <workSpeedStat>TailoringSpeed</workSpeedStat>
      <workSkill>Crafting</workSkill>
      <effectWorking>Tailor</effectWorking>
      <soundWorking>Recipe_Tailor</soundWorking>
      <recipeUsers>
        <li>TableTailor</li>
      </recipeUsers>
      <unfinishedThingDef>UnfinishedApparel</unfinishedThingDef>
    </recipeMaker>
  </ThingDef>

  <ThingDef ParentName="ApparelMakeableBase">
    <defName>MRomanHelmet</defName>
    <label>Roman Helmet Helmet</label>
    <description>Ancient Roman Legionaire Armor helmet. Basic protection against swords.</description>
    <graphicPath>MedievalArmor\Textures\Hats\RomanHelmet</graphicPath>
    <graphicClass>Graphic_Single</graphicClass>
    <statBases>
  <MarketValue>150</MarketValue>
      <WorkToMake>500</WorkToMake>
      <ArmorRating_Blunt>0.10</ArmorRating_Blunt>
      <ArmorRating_Sharp>0.20</ArmorRating_Sharp>
  <ArmorRating_Heat>0.1</ArmorRating_Heat>
      <ArmorRating_Electric>0.2</ArmorRating_Electric>
  <Insulation_Cold>-1</Insulation_Cold>
      <Insulation_Heat>-3</Insulation_Heat>
    </statBases>
    <apparel>
      <bodyPartGroups>
        <li>UpperHead</li>
      </bodyPartGroups>
      <worngraphicPath>MedievalArmor\Textures\Hats\RomanHelmet</worngraphicPath>
      <layers>
        <li>Overhead</li>
      </layers>
      <commonality>1</commonality>
      <tags>
        <li>Antique</li>
      </tags>
      <defaultOutfitTags>
        <li>Soldier</li>
      </defaultOutfitTags>
    </apparel>
    <colorGenerator Class="ColorGenerator_Options">
      <options>
        <li>
          <weight>2<weight>
  <only>RGBA(1,1,1,1)</only>
        </li>
      </options>
    </colorGenerator>
  </ThingDef>

</ThingDefs>