Blueprint File Format Logic

From StarMade Wiki

Revision as of 12:06, 17 February 2017 by SgSkallagrim (talk | contribs) (Created page with "=logic.smbpl = The logic file contains logic links between modules. ==Header of file== {| class="wikitable" ! Purpose !! Data type |- | Version || int32 |- | Controller Vers...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

logic.smbpl

The logic file contains logic links between modules.

Header of file

Purpose Data type
Version int32
Controller Version int32

The 'Controller Version' will not exist in old logic files.
If this value is read and is positive, then the 'number of controllers' value was read, not the 'Controller Version'.
The 'Controller Version' is always negative.
If 'Controller Version' does not exist or is between -1024 <= x < 0 all positions are relative to a core/center at (8, 8, 8).
A value lower than -1024 means positions are relative to a core/center at (16, 16, 16).

The following description is only right for files where a 'Controller Version' does not exist or is lower than -1024.

Purpose Data type
Number of controller entries int32

Controller entry

Purpose Data type
Position [int16, int16, int16, ]
Number of group entries int32

Group entry

Purpose Data type
Block Id int16
Number of position entries int32

Position entry

Purpose Data type
Position [int16, int16, int16, ]