Blueprint File Format Header

From StarMade Wiki

Revision as of 00:09, 17 February 2017 by SgSkallagrim (talk | contribs) (Created page with "=header.smbph= A file that contains information about entity type/class, followed by its boundary around the blueprint. After that, the amount of blocks are listed. Ships also...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

header.smbph

A file that contains information about entity type/class, followed by its boundary around the blueprint. After that, the amount of blocks are listed. Ships also have statistics at the end of the file. Docked entities have their own header file and have no influence on the main entity header file. This file is written using Big-endian.

Header of file

Purpose Data type Version
Version int32 0
Entity type int32 0
Entity classification int32 3
Box min [float, float, float] 0
Box max [float, float, float] 0

Entity type

Name Id
Ship 0
Shop 1
Space Station 2
Asteroid 3
Managed Asteroid 4
Planet 5

Entity classification

Entity Id Name
Ship 0 General
1 Mining
2 Support
3 Cargo
4 Attack
5 Defence
6 Carrier
7 Scout
8 Scavenger
Space Station 9 General
10 Shipyard
11 Outpost
12 Defense
13 Mining
14 Factory
15 Trade
16 Warp Gate
17 Shopping
Asteroid 18 General
Managed Asteroid 19 General
Planet 20 General
Shop 21 General

Block quantities

Purpose Data type Version
Number of entries int32 0
Entry[Block id, Quantity] [int16, int32] 0

Statistic

Statistics were added with version 1 of the 'header.smbph'.

Purpose Data type Version
Has statistic Boolean 1

Statistic data

Only ships have this section!

Purpose Data type Statistic version
Statistic version int16 0
Offensive 1 double 0
Defensive double 0
Power double 0
Mobility double 0
Danger double 0
Survivability double 0
Offensive 2 double 0
Support double 0
Mining double 1