New G-menu Block Simplification

<BlockVariants>

<BlockVariant>

<TypeId>Reactor</TypeId>

<SubtypeId>SBSGLevel2</SubtypeId>

</BlockVariant>

</BlockVariants>

<GuiVisible>false</GuiVisible>

<BlockVariants>

<BlockVariant>

<TypeId>Reactor</TypeId> //this is any typeid of any block in Space Engineers <SubtypeId>YourReactorVar1</SubtypeId> //and subtypeid of your block </BlockVariant>

</BlockVariants>

<Definition xsi:type="MyObjectBuilder_ThrustDefinition"> <Id> <TypeId>Thrust</TypeId> <SubtypeId>LBLHAT3</SubtypeId> </Id> <DisplayName>Large Hydrogen Armor Thrust Tier3</DisplayName> <Icon>Textures\GUI\Icons\Cubes\ArmorHydro3x3x3_T3.dds</Icon> <CubeSize>Large</CubeSize> <BlockTopology>TriangleMesh</BlockTopology> <ResourceSinkGroup>Thrust</ResourceSinkGroup> <ForceMagnitude>48000000</ForceMagnitude> <SlowdownFactor>1</SlowdownFactor> ... lots of other stuff here ... <BlockVariants>

<BlockVariant>

<TypeId>Thrust</TypeId>

<SubtypeId>LBSHVT3</SubtypeId>

</BlockVariant>

<BlockVariant>

<TypeId>Thrust</TypeId>

<SubtypeId>LBLHVT3</SubtypeId>

</BlockVariant>

<BlockVariant>

<TypeId>Thrust</TypeId>

<SubtypeId>LBSHAT3</SubtypeId>

</BlockVariant>

<BlockVariant>

<TypeId>Thrust</TypeId>

<SubtypeId>LBLHASlopeT3</SubtypeId>

</BlockVariant>

<BlockVariant>

<TypeId>Thrust</TypeId>

<SubtypeId>LBSHASlopeT3</SubtypeId>

</BlockVariant>

</BlockVariants> </Definition>

To get the seletion with 'R' to work properly between large and small grids you need to put the above code into the block definition you want showing on the g-menu, to get this to show correctly you will need to have only large grid block types in the large grid definition and only the small grid block types in the small grid definition.

Large grid definition

<BlockVariants>

<BlockVariant>

<TypeId>Thrust</TypeId> //this is any typeid of any block in Space Engineers <SubtypeId>LargeBlockLHAT1</SubtypeId> //and subtypeid of your block </BlockVariant>

</BlockVariants>

Small grid definition

<BlockVariants>

<BlockVariant>

<TypeId>Thrust</TypeId> //this is any typeid of any block in Space Engineers <SubtypeId>SmallBlockLHAT1</SubtypeId> //and subtypeid of your block </BlockVariant>

</BlockVariants>

Note:You will also need to remove all <string></string> of the blocks you don't want shown from the blockcategories.sbc file also. An example would be if I don't want the <string>LBSHASlopeT3</string> to show on the menu i will have to remove that reference from the blockcategories.

First off you will need to have a text editor (I prefer Notepad++) to edit your mod files.I am assuming that if you are using this guide that you already have a basic understanding of how to setup a mod in Space Engineers, and know that you will need at the very least a cubeblocks.sbc file with a modded block defined therein. This guide only shows you the additions need to make the new expandable-scrollable-collapsable block system.For the combining of like blocks into one space on the G-menu you will need these two sections of xml code added to your Cubeblocks.sbc file in the mod.These next two sections of code need to be placed anywhere between thetags of each specified block, however this code is only used in the first block, and theis used in the block definitions that you don't want shown on the G-menu.1. This code makes any blocks in your mod not visible on the G-menu:2. This code defines what blocks you want to show in the combined list of blocks for your mod.**you must have all of the above code or you will get errors or the blocks will not show. (BlockVariants, BlockVariant, TypeID, SubtypeID)Thecan be repeated as many times as needed to put all of your blocks in one list.An Example:Here is a before image of my hydrogen tiered engines: And an after of the block modification to only show engines of each tier instead of all engines in the menu all the time:Hope this guide helps out in understanding the new g-menu setup.