Preparation of mountpoints in a text editor for later editation
Setting debug draw to view mountpoints
Using axis helpers to read mount-point's coordinates
What are mount-points?
Mount-points determine areas where each block can be attached to another block. In the game, areas without mount-points will be red. If you try to place a block there, it won't work and the block will be red. Block without mount-points won’t be attachable to anything.
First we will prepare definition of a block in our notepad/VS so we can edit it later
Go to data folder (C:\KeenSWH\Sandbox\Sources\SpaceEngineers\Content\Data)
Open Cubeblocks.sbc (notepad suffices, visual studio is better)
You will see a section in every block’s definition called <Mountpoints>. See an example picture of hydrogen tank mount-points below:
The picture shows mount-points of a hydrogen tank. When you are making mount-points for a new block, it is good to copy existing one from a different block and just change the values.
Mount-points are set for sides of a block. Top, Bottom, Left, Right, Front and back.
Keep the .sbc with the definition opened for later editing. We are going to return to it.
Setting Debug draw to view mount-points and axis helpers
Start a game (preferably in Empty world scenario) and place your block there
You will need to see mount-points and axis helpers (shown on picture 2) to create new correct mount-points for a block. In order to view the block’s mount-points and axis helpers follow these steps:
Press F12 to view Developer screen (start game in debug in order to enable developer screen)
Check debug draw (A on picture 1)
Click on blue “Game” button
Check Cube blocks checkbox (C on the picture)
Hold alt and check "Debug draw all mount points" (D on picture 1)
When you have mount-points enabled in Debug draw, we can uncheck cube blocks (C on picture 1) so that it does not obstruct our screen.
Switch developers screen off with F12
Now you will see block’s mount-points and axis helpers highlighted as long as you’re close to it. In the next part, we will see how to use axis helpers to read coordinates for mount-points:
Using axis helpers to read mount-points coordinates
We are looking at the block we want to make mount-points for. You can start with any side. In this guide we will setup back side
Fly around the block so that you are looking directly at back side. You know which side it is by searching for axis helper called “back”. If you are uncertain which side the axis helper belongs to, look at its axis arrows, both of them are parallel with edges of the side they belong to.(picture 2)
Look at picture 3. It shows both axis of its back side, there are numbers added too to demonstrate coordinates. Axis units are blocks. (for small grid, chunks of 50 cm, for large grid chunks of 2.5m)
Making coordinates for Y axis: In case of this block, we want the mount-point only on flat surface (not on curved parts of the hydrogen tank)
There is supposed to be 1 mount-point on “back” side of hydrogen tank, and we want it to go from left to right in the middle
If you look at Y axis you can see that on this axis, mount-point starts at 0 and goes all the way to 3
For definition that means StartY="0", EndY="3"
Let’s put these coordinates to <Mount-points> like this: