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

Extending an existing shape/block?

I'm having an issue with a modlet I am porting from A19 to A21. A19 had a "CustomIcon" value and I had it set to the stainless steel block. That's gone so I just removed the custom icon line for now. However, the growing line is confusing me. I cannot figure out how to tell it to grow a steel block.

Code:
<property name="PlantGrowing.Next" value="steelBlock"/>

This does not work. I see something called "steelShapes" in the official blocks.xml file, but I am not sure how to use that in my modlet. This thing basically costs the same as X steel blocks, you place it down, and it grows up X blocks to speed building. How do I tell it to place a steel cube in A21?

 
Okay, I figured it out.

Code:
<property name="PlantGrowing.Next" value="steelShapes:cube"/>

I had no idea I could do that. My only remaining option is the "CustomIcon" field. Is there a way to set that to the steel cube icon? I've tried several things and nothing seems to work. The icon is always blank or the mod fails to apply.

 
The_Great_Sephiroth said:
I had no idea I could do that. My only remaining option is the "CustomIcon" field. Is there a way to set that to the steel cube icon? I've tried several things and nothing seems to work. The icon is always blank or the mod fails to apply.


What does your code look like?

 
Been away from 7 Days recently. Things in real life taking over. I do not need a custom icon. Somehow the game knows what to put on its own.

Spoke too soon. I started adding pillars and such, and they have the wrong icon. Going to look into the icons folder and see if I see pillar icons.

Code:
<property name="CustomIcon" value="woodMaster"/>

That's the icon line currently.

 
Last edited by a moderator:
Okay, I believe I know what my issue is. I extended the "woodMaster" for the basic cube that grows up. I also used this for the pillars (woodShapes:pillar100) and the icon is a wood cube. In fact, when I place it in the world it is a wood cube, but as it builds up, it changes into the correct pillar shape. The thing is, I cannot find the shape for a "pillar100" that I need to extend or use as an icon. The two lines that are likely my problem are below.

Code:
<property name="Extends" value="woodMaster"/>
<property name="CustomIcon" value="woodMaster"/>

I assume I should extend some wood pillar, but I cannot find it in the "blocks.xml" file, so I am a tad lost.

 
@The_Great_Sephiroth

Have you tried the shapes.xml file?

Code:
    <shape name="cubeHalf1mHole">
        <property name="Path" value="solid" />
        <property name="Model" value="cube_half_1m_hole" />
        <property name="CustomIcon" value="shapeCubeHalf1mHole" />
        <property name="ShapeCategories" value="Square,Round" />
        <property name="Collide" value="movement,melee,bullet,arrow,rocket" />
        <property name="UseGlobalUV" value="G,L,G,G,G,G" />
        <property name="LightOpacity" value="0" />
        <property name="WaterFlow" value="permitted" />
    </shape>
 
Last edited by a moderator:
I did not. I'll check it out, thanks for the tip!

Update:

That's the file I needed! Now to figure out how to mesh it all into the modlet. Thanks! The first thing in the "ROUND" section:

Code:
    <shape name="pillar100">
        <property name="Path" value="solid" />
        <property name="Model" value="Pole1m" />
        <property name="CustomIcon" value="shapePole1m" />
        <property name="ShapeCategories" value="Basic,Round" />
        <property name="Collide" value="movement,melee,bullet,arrow,rocket" />
        <property name="UseGlobalUV" value="Local" />
        <property name="ImposterExchange" value="imposterBlock" />
        <property name="WaterFlow" value="permitted" />
    </shape>

The piece I was looking for. Thanks!

 
Last edited by a moderator:
Back
Top