Work bench not Working

Started by BukTaki, January 20, 2019, 03:07:19 PM

Previous topic - Next topic

BukTaki

Work bench not Working

Pawns wont build and i can't right click and prioritize any help would be greatly appreciated


  <ThingDef ParentName="BenchBase">
    <defName>MedievalShieldBench</defName>
    <label>Medieval Shield Crafting Bench</label>
    <description>A workbench for crafting shields by hand</description>
    <thingClass>Building_WorkTable</thingClass>
    <graphicData>
      <texPath>Things/Building/Production/ShieldBench</texPath>
      <graphicClass>Graphic_Single</graphicClass>
      <drawSize>(2,2)</drawSize>
      <damageData>
        <cornerTL>Damage/Corner</cornerTL>
        <cornerTR>Damage/Corner</cornerTR>
        <cornerBL>Damage/Corner</cornerBL>
        <cornerBR>Damage/Corner</cornerBR>
      </damageData>
    </graphicData>
    <castEdgeShadows>true</castEdgeShadows>
    <staticSunShadowHeight>0.20</staticSunShadowHeight>
    <costList>
      <Steel>100</Steel>
      <WoodLog>50</WoodLog>
</costList>
    <altitudeLayer>Building</altitudeLayer>
    <fillPercent>0.5</fillPercent>
    <useHitPoints>True</useHitPoints>
    <statBases>
      <WorkToBuild>1000</WorkToBuild>
      <MaxHitPoints>180</MaxHitPoints>
  <WorkTableWorkSpeedFactor>0.5</WorkTableWorkSpeedFactor>
      <Flammability>0.75</Flammability>
    </statBases>
    <size>(2,2)</size>
    <designationCategory>Production</designationCategory>
    <passability>PassThroughOnly</passability>
    <pathCost>70</pathCost>
    <hasInteractionCell>True</hasInteractionCell>
    <interactionCellOffset>(1,0,0)</interactionCellOffset>
    <surfaceType>Item</surfaceType>
    <constructionSkillPrerequisite>3</constructionSkillPrerequisite>
    <inspectorTabs>
      <li>ITab_Bills</li>
    </inspectorTabs>
    <comps>
      <li Class="CompProperties_AffectedByFacilities">
        <linkableFacilities>
          <li>ToolCabinet</li>
        </linkableFacilities>
      </li>
    </comps>
    <building>
      <spawnedConceptLearnOpportunity>BillsTab</spawnedConceptLearnOpportunity>
    </building>
    <constructEffect>ConstructMetal</constructEffect>
    <designationHotKey>Misc7</designationHotKey>
    <placeWorkers>
      <li>PlaceWorker_ShowFacilitiesConnections</li>
    </placeWorkers>
<researchPrerequisites>
      <li>MedievalShield</li>
    </researchPrerequisites>
  </ThingDef>

Kirby23590

#1
It won't work since you don't have any WorkGiverDef for the Work Bench...

Look at the WorkGiversDefs Folder at the Core Mod Folder and Copy that to your Mod Folder and Rename your WorkGiver.xml to MyWorkerGiver.xml (Any Name Will do) and make this...

to your MyWorkGiver.xml


<WorkGiverDef>
    <defName>DoBillsMyWorkBench</defName>
    <label>make things at my custom work bench</label>
    <giverClass>WorkGiver_DoBill</giverClass>
    <workType>Smithing</workType>
    <priorityInType>75</priorityInType>
    <fixedBillGiverDefs>
      <li>MyWorkbench</li>
    </fixedBillGiverDefs>
    <verb>work</verb>
    <gerund>working at</gerund>
    <requiredCapacities>
      <li>Manipulation</li>
    </requiredCapacities>
    <prioritizeSustains>true</prioritizeSustains>
  </WorkGiverDef>


Change MyWorkbench in the fixedBillGiverDefs to your Workbench's defname so that you can make your custom weapons, armor and stuff in your workbench...

One "happy family" in the rims...
Custom font made by Marnador.



BukTaki