Cant 'copy' custom wall blocks

Started by Elrol_Arrowsend, December 14, 2017, 05:19:18 AM

Previous topic - Next topic

Elrol_Arrowsend

For some reason, when I right click my custom walls, they dont show me an option to copy the wall, like the core mod already does, I am sure I have either overlooked something or I am not looking in the right places. If anyone could point out my mistake I would be grateful

RawCode

is your custom walls have this property?

is your custom walls exact copy of vanilla walls or completely different object class?

Elrol_Arrowsend

I took the vanilla code, changed a few things and made it, here is the xml


<?xml version="1.0" encoding="utf-8" ?>
<Defs>
    <ThingDef Name="MB_BuildingBase" Abstract="True">
<category>Building</category>
<thingClass>Building</thingClass>
<soundImpactDefault>BulletImpactMetal</soundImpactDefault>
<selectable>true</selectable>
<drawerType>MapMeshAndRealTime</drawerType>
<terrainAffordanceNeeded>Light</terrainAffordanceNeeded>
<repairEffect>Repair</repairEffect>
<leaveResourcesWhenKilled>true</leaveResourcesWhenKilled>
<filthLeaving>BuildingRubble</filthLeaving>
</ThingDef>

      <ThingDef ParentName="MB_BuildingBase" Name="MB_ColoredWallBase" Abstract="True">
<thingClass>Building</thingClass>
<saveCompressible>false</saveCompressible>
<category>Building</category>
<graphicData>
<graphicClass>Graphic_Single</graphicClass>
<linkType>CornerFiller</linkType>
<linkFlags>
<li>Wall</li>
</linkFlags>
<damageData>
<cornerTL>Damage/Corner</cornerTL>
<cornerTR>Damage/Corner</cornerTR>
<cornerBL>Damage/Corner</cornerBL>
<cornerBR>Damage/Corner</cornerBR>
<edgeTop>Damage/Edge</edgeTop>
<edgeBot>Damage/Edge</edgeBot>
<edgeLeft>Damage/Edge</edgeLeft>
<edgeRight>Damage/Edge</edgeRight>
</damageData>
</graphicData>
<blueprintGraphicData>
<texPath>Things/Building/Linked/Wall_Blueprint_Atlas</texPath>
</blueprintGraphicData>
<statBases>
<MaxHitPoints>500</MaxHitPoints>
<WorkToBuild>50</WorkToBuild>
<Flammability>0.5</Flammability>
</statBases>       
<costList>
<WoodLog>4</WoodLog>
            <BasicCraftingComponent>1</BasicCraftingComponent>
        </costList>
<leaveResourcesWhenKilled>false</leaveResourcesWhenKilled>
<altitudeLayer>Building</altitudeLayer>
<passability>Impassable</passability>
<blockWind>true</blockWind>
<castEdgeShadows>true</castEdgeShadows>
<fillPercent>1</fillPercent>
<coversFloor>true</coversFloor>
<placingDraggableDimensions>1</placingDraggableDimensions>
<tickerType>Never</tickerType>
<rotatable>false</rotatable>
<selectable>true</selectable>
<neverMultiSelect>true</neverMultiSelect>
<terrainAffordanceNeeded>Heavy</terrainAffordanceNeeded>
<holdsRoof>true</holdsRoof>
<designationCategory>MoreBlocks</designationCategory>
<staticSunShadowHeight>1.0</staticSunShadowHeight>
<blockLight>true</blockLight>
<canOverlapZones>false</canOverlapZones>
<building>
<isInert>true</isInert>
</building>
        <designationHotKey>Misc3</designationHotKey>
<tradeability>Never</tradeability>
        <researchPrerequisites>
            <li>BasicBlocks</li>
        </researchPrerequisites>
        <constructionSkillPrerequisite>4</constructionSkillPrerequisite>
    </ThingDef>
   
    <ThingDef ParentName="MB_ColoredWallBase" Name="MB_RedColoredWall">
        <defName>RedColoredWall</defName>
<label>red colored wall</label>
<description>A wall constructed of a red colored material</description>
<graphicData>
<texPath>Things/Building/Linked/MB_Wall_Atlas_Red_MetalWall</texPath>
</graphicData>
<uiIconPath>Things/Building/Linked/MB_Wall_Icon_Red_MetalWall</uiIconPath>
        <costList>
    <RedComponent>1</RedComponent>
</costList>
    </ThingDef>
   
    <ThingDef ParentName="MB_ColoredWallBase" Name="MB_OrangeColoredWall">
        <defName>OrangeColoredWall</defName>
<label>orange colored wall</label>
<description>A wall constructed of a orange colored material</description>
<graphicData>
<texPath>Things/Building/Linked/MB_Wall_Atlas_Orange_MetalWall</texPath>
</graphicData>
<uiIconPath>Things/Building/Linked/MB_Wall_Icon_Orange_MetalWall</uiIconPath>
        <costList>
    <OrangeComponent>1</OrangeComponent>
</costList>
    </ThingDef>
   
    <ThingDef ParentName="MB_ColoredWallBase" Name="MB_YellowColoredWall">
        <defName>YellowColoredWall</defName>
<label>yellow colored wall</label>
<description>A wall constructed of a yellow colored material</description>
<graphicData>
<texPath>Things/Building/Linked/MB_Wall_Atlas_Yellow_MetalWall</texPath>
</graphicData>
<uiIconPath>Things/Building/Linked/MB_Wall_Icon_Yellow_MetalWall</uiIconPath>
        <costList>
    <YellowComponent>1</YellowComponent>
</costList>
    </ThingDef>
   
    <ThingDef ParentName="MB_ColoredWallBase" Name="MB_GreenColoredWall">
        <defName>GreenColoredWall</defName>
<label>green colored wall</label>
<description>A wall constructed of a green colored material</description>
<graphicData>
<texPath>Things/Building/Linked/MB_Wall_Atlas_Green_MetalWall</texPath>
</graphicData>
<uiIconPath>Things/Building/Linked/MB_Wall_Icon_Green_MetalWall</uiIconPath>
        <costList>
    <GreenComponent>1</GreenComponent>
</costList>
    </ThingDef>
   
    <ThingDef ParentName="MB_ColoredWallBase" Name="MB_BlueColoredWall">
        <defName>BlueColoredWall</defName>
<label>blue colored wall</label>
<description>A wall constructed of a blue colored material</description>
<graphicData>
<texPath>Things/Building/Linked/MB_Wall_Atlas_Blue_MetalWall</texPath>
</graphicData>
<uiIconPath>Things/Building/Linked/MB_Wall_Icon_Blue_MetalWall</uiIconPath>
        <costList>
    <BlueComponent>1</BlueComponent>
</costList>
    </ThingDef>
   
    <ThingDef ParentName="MB_ColoredWallBase" Name="MB_PurpleColoredWall">
        <defName>PurpleColoredWall</defName>
<label>purple colored wall</label>
<description>A wall constructed of a purple colored material</description>
<graphicData>
<texPath>Things/Building/Linked/MB_Wall_Atlas_Purple_MetalWall</texPath>
</graphicData>
<uiIconPath>Things/Building/Linked/MB_Wall_Icon_Purple_MetalWall</uiIconPath>
        <costList>
    <PurpleComponent>1</PurpleComponent>
</costList>
    </ThingDef>
   
    <ThingDef ParentName="MB_ColoredWallBase" Name="MB_BlackColoredWall">
        <defName>BlackColoredWall</defName>
<label>black colored wall</label>
<description>A wall constructed of a black colored material</description>
<graphicData>
<texPath>Things/Building/Linked/MB_Wall_Atlas_Black_MetalWall</texPath>
</graphicData>
<uiIconPath>Things/Building/Linked/MB_Wall_Icon_Black_MetalWall</uiIconPath>
        <costList>
    <BlackComponent>1</BlackComponent>
</costList>
    </ThingDef>
   
    <ThingDef ParentName="MB_ColoredWallBase" Name="MB_WhiteColoredWall">
        <defName>WhiteColoredWall</defName>
<label>white colored wall</label>
<description>A wall constructed of a white colored material</description>
<graphicData>
<texPath>Things/Building/Linked/MB_Wall_Atlas_White_MetalWall</texPath>
</graphicData>
<uiIconPath>Things/Building/Linked/MB_Wall_Icon_White_MetalWall</uiIconPath>
        <costList>
    <WhiteComponent>1</WhiteComponent>
</costList>
    </ThingDef>
   
</Defs>

Elrol_Arrowsend

Does anyone know how to add the ability to copy a block in order to place more? I still have yet to figure it out.