How to import custom block configs?

    Master1398

    Keep calm and quit raging
    Joined
    Aug 19, 2013
    Messages
    293
    Reaction score
    229
    • Purchased!
    • Community Content - Bronze 2
    • Legacy Citizen 3
    You could either edit the regular config file you can find under "\StarMade\data\config" or use the BlockConfigImport.xml that also works for servers and doesn't overwrite anything.

    Go to your StarMade folder: "\StarMade\customBlockConfig"
    Rename "BlockConfigImportHowTo.xml" to "BlockConfigImport.xml"

    Depending on what you want to do you need to write stuff similar to the following in that file. Note that are already two examples in it.
    NOTE: I don't know if you actually need all tags.
    Code:
    <Config>
        <Element>
            <General>
                <Decoration>
                    <Block icon="767" name="Advanced Metal Grill" textureId="1792" type="CUSTOM_ID_000">
                        <Price>2000</Price>
                        <Description>This is the enhanced version of the regular Metal Grill. Can be opened like a door</Description>
                        <BlockResourceType>2</BlockResourceType>
                        <ProducedInFactory>3</ProducedInFactory>
                        <BasicResourceFactory>0</BasicResourceFactory>
                        <Consistence>
                            <Item count="10">METAL_GRID</Item>
                        </Consistence>
                        <FactoryBakeTime>5.0</FactoryBakeTime>
                        <InventoryGroup>enhancedMetalGrill</InventoryGroup>
                        <Animated>false</Animated>
                        <Armour>0</Armour>
                        <Transparency>true</Transparency>
                        <InShop>true</InShop>
                        <Orientation>false</Orientation>
                        <Enterable>false</Enterable>
                        <Hitpoints>15</Hitpoints>
                        <Placable>true</Placable>
                        <InRecipe>true</InRecipe>
                        <CanActivate>true</CanActivate>
                        <IndividualSides>1</IndividualSides>
                        <HasActivationTexture>false</HasActivationTexture>
                        <MainCombinationController>false</MainCombinationController>
                        <SupportCombinationController>false
                        </SupportCombinationController>
                        <EffectCombinationController>false</EffectCombinationController>
                        <Physical>false</Physical>
                        <BlockStyle>0</BlockStyle>
                        <LightSource>false</LightSource>
                        <LightSourceColor>1.0,1.0,1.0,1.0</LightSourceColor>
                        <Door>true</Door>
                        <Deprecated>false</Deprecated>
                        <CubatomCompound>
                            <Cubatom>
                                <mass>light</mass>
                                <spinning>anti_spin</spinning>
                                <thermal>solid</thermal>
                                <conductivity>insulator</conductivity>
                            </Cubatom>
                            <Cubatom>
                                <mass>medium</mass>
                                <spinning>null_spin</spinning>
                                <thermal>gas</thermal>
                                <conductivity>insulator</conductivity>
                            </Cubatom>
                        </CubatomCompound>
                        <ResourceInjection>0</ResourceInjection>
                        <ExplosionAbsorbtion>0.0</ExplosionAbsorbtion>
                    </Block>
                </Decoration>
            </General>
        </Element>
    </Config>
    Code:
    <Config>
        <Element>
            <General>
                <Hulls>
                    <Grey>
                        <Basic>
                            <Block icon="530" name="Grey Hull" textureId="567" type="Grey_Hull">
                                <Price>100000</Price>
                                <Description>Basic Grey Hull block - Now works like a door and emits light!</Description>
                               <LightSource>true</LightSource>
                                <LightSourceColor>0.8,0.8,0.8,0.8</LightSourceColor>
                                <CanActivate>true</CanActivate>
                                <Door>true</Door>
                            </Block>
                        </Basic>
                    </Grey>
                </Hulls>
            </General>
        </Element>
    </Config>
     
    Last edited:
    Joined
    Jun 20, 2013
    Messages
    2,827
    Reaction score
    1,181
    • Video Genius
    • Legacy Citizen 4
    • Top Forum Contributor
    i got a custom block config file, is there a way to simply import it? because i'd rather not just copy paste it over an existing one as when starmade updates it will ruin it.
     

    Master1398

    Keep calm and quit raging
    Joined
    Aug 19, 2013
    Messages
    293
    Reaction score
    229
    • Purchased!
    • Community Content - Bronze 2
    • Legacy Citizen 3
    i got a custom block config file, is there a way to simply import it? because i'd rather not just copy paste it over an existing one as when starmade updates it will ruin it.
    You could either edit the regular config file you can find under "\StarMade\data\config" or use the BlockConfigImport.xml that also works for servers and doesn't overwrite anything.
    ...
     
    Joined
    Jun 20, 2013
    Messages
    2,827
    Reaction score
    1,181
    • Video Genius
    • Legacy Citizen 4
    • Top Forum Contributor
    i did that, but nothing happened.
    [DOUBLEPOST=1428229309,1428229258][/DOUBLEPOST]oh wait now i know, i spellt it wrong :P
     
    Joined
    Jan 22, 2014
    Messages
    68
    Reaction score
    56
    Hello, I have recently started looking into custom blocks. My question is, is there a way to create alternative versions of existing blocks. Like two different kinds of thrusters?
     

    StormWing0

    Leads the Storm
    Joined
    Jun 26, 2015
    Messages
    2,126
    Reaction score
    316
    • Community Content - Bronze 1
    Maybe a fixed rail turret axis? Would be handy to say the least.