Ship construction data

Disassembly reveals a data structure at location $1e560 in the main K240 executable, beginning "1402011400020302". This stores construction data for all Terran ships. All values below are hexadecimal.

Arm.

Spd.

HP

Build

Ore 1

Ore 2

ID

Name

Cost

Len

?? 1

?? 2

Ship name

14

02

01

14

0002

0302

0200

007f

1770

000d

00000000

00000000

Assault Fighter

1e

02

02

1e

0004

0304

0300

0080

1f40

000a

00000000

00000000

Combat Eagle

05

01

01

14

0004

0302

0400

0081

0bb8

000c

00000000

00000000

Scout Ship

28

01

03

30

0008

0306

3500

0082

3a98

0022

00080b0a

LAB_0BFC

Destructor

32

00

04

50

0008

0702

3600

0083

84d0

0034

00080b0e

LAB_0BFD

Terminator

28

00

02

72

0006

0701

3700

0084

5dc0

0069

00030f0f

LAB_0BFE

Transporter

46

00

06

72

0008

0706

3800

0085

ea60

005c

00030f0f

LAB_0BFE

Fleet Battleship

78

00

04

56

050a

0714

3900

00ad

ffff

00d7

00010312

LAB_0BFB

Orbital Space Dock

Armour is the default amount of armour the ship has. Speed is the ship's speed measured in FN, minus one. HP is number of hardpoints. Build is build time in days. Ore1 and Ore2 are the ores required; the first byte refers to the [[[project:k240-ores|type of ore]] starting with Selenium at 00, and the second is the amount required. ID is the ship's ID number to identify its type. Cost is the price in credits. Name is the index of the ship's name in the game strings set. Leng is ship length as listed on the build screen.

The eight following bytes are unknown. Both are blank for the small ships and only apply to large ships (ships which cannot land on a Landing Pad). The first four bytes are unknown. The second four bytes are pointers to later data as follows. It's worth noting that Transporter and Fleet Battleship share both fields.