• If you have a mod, tool or prefab, please use the Resources section. Click Mods at the top of the forums.

Extends comment error

Bazante

New member
I getting an erron On Block i create with comment:Extends

The Error is Following: cntcardboardbox not especified for my block.

Any Ideas?

 
The order of blocks and items in the xml file is important. You need to place new blocks that extends from another block "after" that block in the XML file. So the block you are extending from must have already been read in the file before the compiler reads the new block you made. You will notice in the xml file that all the "master" blocks are at the top/beginning of the xml file. That is why.

 
The order of blocks and items in the xml file is important. You need to place new blocks that extends from another block "after" that block in the XML file. So the block you are extending from must have already been read in the file before the compiler reads the new block you made. You will notice in the xml file that all the "master" blocks are at the top/beginning of the xml file. That is why.
Thank you so Much guy, you helped me a lot.

Thanks Thanks Thanks Thanks Thanks Thanks Thanks Thanks Thanks Thanks Thanks Thanks Thanks Thanks Thanks Thanks Thanks Thanks Thanks Thanks Thanks Thanks Thanks Thanks Thanks Thanks Thanks Thanks Thanks Thanks

Love You

 
I Solved My Problem, But when i go put my Block on Ground it transforms into a street sign.

<block id="2550" name="QuarryPlatform Resources"><property name="CustomIcon" value="cntShippingCrateShamway"/>

<property name="LightOpacity" value="0"/>

<property name="Material" value="Mmetal_medium"/>

<property name="Shape" value="New"/>

<property name="Model" value="cube"/>

<property name="Mesh" value="cutout"/>

<property name="Texture" value="310"/>

<property name="RotationAllowed" value="pivotOnFloor" />

<property name="Class" value="UpgradeRated" />

<property name="UpgradeRated.ToBlock" value="QuarryPlatform Resources2" />

<property name="UpgradeRated.Rate" value="1" />

<property class="RepairItems">

<property name="wood" value="10" />

</property>

<property name="MaxDamage" value="10000"/>

<property name="Stacknumber" value="1"/>

<property class="RepairItems">

<property name="wood" value="1"/>

</property>

<drop event="Destroy" count="0" />

<drop event="Harvest" name="QuarryPlatform Resources" count="1" prob="1" />

</block>

<block id="2551" name="QuarryPlatform Resources2">

<property name="CustomIcon" value="cntShippingCrateShamway" />

<property name="CreativeMode" value="Dev"/>

<property name="LightOpacity" value="0"/>

<property name="Material" value="Mmetal_medium"/>

<property name="Shape" value="New"/>

<property name="Model" value="cube"/>

<property name="Mesh" value="cutout"/>

<property name="Texture" value="310"/>

<property name="RotationAllowed" value="pivotOnFloor" />

<property name="Class" value="PlantGrowing" />

<property class="PlantGrowing">

<property name="FertileLevel" value="0" />

<property name="Next" value="QuarryPlatform Resources" />

<property name="GrowthRate" value="20" />

<property name="LightLevelStay" value="0" />

<property name="IsRandom" value="false" />

<property name="IsGrowOnTopEnabled" value="true" />

<property name="GrowOnTop" value="QuarryResources" param1="1" param2="QuarryResources" />

</property>

<property name="MaxDamage" value="10000"/>

<property name="Stacknumber" value="1"/>

<property class="RepairItems">

<property name="wood" value="1"/>

</property>

<drop event="Destroy" count="0" />

<drop event="Harvest" name="QuarryPlatform Resources" count="1" prob="1" />

</block>

<block id="2552" name="QuarryResources">

<property name="Class" value="Loot" />

<property name="LightOpacity" value="0"/>

<property name="Extends" value="cntCardboardBox" />

<property name="CustomIcon" value="cntShippingCrateConstructionSupplies" />

<property name="IsTerrainDecoration" value="true" />

<property name="LootList" value="231" />

<property name="CreativeMode" value="Dev"/>

<property name="MaxDamage" value="20000"/>

<drop event="Destroy" count="0" prob="1" />

</block>
This is the block.

I'm forgetting something?

 
So Who Id i Can Use?
Open up the block.xml file and starting at the top, look for the first unused number. There is a large number of open blocks ID's beginning at 74

 
That would of been from my Quarry mod.

You are/were having a error with "cntcardboardbox" because it needs to have the same exact lettering that is in the game files.

On another note, if you gave me a day or two more I could of helped you in my own thread since I was/still in the middle of moving files to my new PC.

 
Back
Top