(SOLVED) Custom lamp not showing in building options

Started by Hunter712, December 20, 2014, 10:05:29 PM

Previous topic - Next topic

Hunter712

Code is here, absolutely  no conflicts in the debugs, mod is enabled and I just can't figure out why it isn't showing up as a build option.

<?xml version="1.0" encoding="utf-8" ?>
<Buildings>

  <ThingDef Name="BuildingBase" Abstract="True">
    <category>Building</category>
    <thingClass>Building</thingClass>
    <soundImpactDefault>BulletImpactMetal</soundImpactDefault>
    <selectable>true</selectable>
    <drawerType>MapMeshAndRealTime</drawerType>
    <terrainAffordanceNeeded>Light</terrainAffordanceNeeded>
    <repairEffect>Repair</repairEffect>
  </ThingDef>


  <ThingDef ParentName="BuildingBase">
    <defName>UVGroundLight</defName>
    <eType>BuildingComplex</eType>
    <label>uv ground light</label>
    <thingClass>Building</thingClass>
    <category>Building</category>
    <graphicPath>Things/Building/Production/LampUV</graphicPath>
    <graphicClass>Graphic_Single</graphicClass>
    <altitudeLayer>BuildingTall</altitudeLayer>
    <passability>PassThroughOnly</passability>
    <statBases>
      <MaxHealth>50</MaxHealth>
      <WorkToMake>330</WorkToMake>
      <Flammability>1.0</Flammability>
          <Beauty>10</Beauty>
    </statBases>
    <selectable>true</selectable>
    <description>A powerful UV light capable of covering multiple plants.</description>
    <size>(1,1)</size>
    <costList>
      <Steel>35</Steel>
    </costList>
    <soundImpactDefault>BulletImpactMetal</soundImpactDefault>
    <leaveResourcesWhenKilled>false</leaveResourcesWhenKilled>
    <comps>
      <li>
        <compClass>CompGlower</compClass>
        <overlightRadius>7.0</overlightRadius>
        <glowRadius>16</glowRadius>
        <glowColor>(78,0,106,0)</glowColor>
      </li>
      <li>
        <compClass>CompPowerTrader</compClass>
        <startElectricalFires>true</startElectricalFires>
        <soundPowerOn>PowerOnSmall</soundPowerOn>
        <soundPowerOff>PowerOffSmall</soundPowerOff>
        <basePowerConsumption>750</basePowerConsumption>
      </li>
    </comps>
    <!-- Determined by trial and error
    This value isn't perfect because these radii use different algorithms
    but it matches in this case-->
    <specialDisplayRadius>5.8</specialDisplayRadius>
    <designationCategory>Misc</designationCategory>
    <sunShadowInfo>
      <basewidth>0.2</basewidth>
      <baseHeight>0.2</baseHeight>
      <tallness>0.4</tallness>
      <offset>(0,0,-0.1)</offset>
    </sunShadowInfo>
    <rotatable>false</rotatable>
    <designationHotKey>U</designationHotKey>
</ThingDef>
       
</Buildings>


Got it, nevermind!