BDATAx.DIS - Old Base Data [V]

 +0     WORD    Number of Starbases
 +2   n BYTEs   Records, 156 bytes each
 +m  10 BYTEs   BDATAx.DAT: Signature 2
                BDATAx.DIS: Signature 1
One Starbase Record:
 +0     WORD    Base Id (=Id of planet with this base)
 +2     WORD    Owner (1..11, BDATA.HST: 0=no base at this planet)
 +4     WORD    Defense (0..200)
                One starbase defense unit costs 10 mc and 1 Duranium.
 +6     WORD    Damage (0..100)
 +8     WORD    Engine Tech Level (1..10)
+10     WORD    Hulls Tech Level (1..10)
+12     WORD    Weapon Tech Level (1..10)
+14     WORD    Torpedo Tech Level (1..10)
                Tech upgrades: going from Tech N to N+1 costs 100*N mc.
+16   9 WORDs   Engines in storage (for the 9 engines from ENGSPEC.DAT)
+34  20 WORDs   Hulls in Storage. Each race has up to 20 possible hulls it
                can build. These 20 words correspond to the 20 TRUEHULL.DAT
                slots. There's no possibility to store hulls a player can't
                build normally.
+74  10 WORDs   Beam Weapons in storage
+94  10 WORDs   Torpedo Launchers in storage
+114 10 WORDs   Torpedoes in storage
                All the "storage" fields can hold values between 0 and 10000.
                As of Host 3.22.031, these fields are not allowed to be
                increased without sufficient tech. This prevents the cheat
                of building parts without tech, but also prevents the (legal)
                act of moving high-tech torps from a ship to a low-tech base.
+134    WORD    Number of fighters (0..60)
+136    WORD    Id of ship to be recycled/repaired
+138    WORD    What to do with that ship:
                 0      Nothing
                 1      Fix
                 2      Recycle
+140    WORD    Mission (Primary Order)
                 0      none
                 1      Refuel
                 2      Max Defense
                 3      Load Torps onto ships
                 4      Unload freighters
                 5      Repair base
                 6      Force a surrender
+142    WORD    Type of ship to build (0=no build order, 1..20=index into
                above array)
+144    WORD    Engine Type
+146    WORD    Beam Type
+148    WORD    Beam Count
+150    WORD    Torpedo Type
+152    WORD    Torpedo Count
+154    WORD    0. According to CPLAYER.BAS, this is a fighter count. When
                building a ship this value is effectively ignored, that's
                why PLANETS.EXE puts zero in here. This field should
                really always be zero, after the build as many fighters
                as shown here are destroyed with no compensation...

Build orders

To build ship parts, ammo, tech levels or starbase defense, clients subtract the required resources from the planet and increase the starbase storage.

To build a ship, you must buy the required items into storage; host will subtract them again. The build order must either be completely specified or completely zero. Beam Type and Beam Count are either both zero or both nonzero, likewise Torpedo Type and Count. Specifying a type but count zero is known to cause problems with various programs.

Costs for a starbase fighter are 100 mc, 3 Tritanium and 2 Molybdenum; configurable in PHost 4.0k+.