CRAFT.DAT (TFTD)
TFTD Structure
There are 50 records each having 110 bytes long for a file size of 5,500 bytes. Unless otherwise noted, all values and offsets are in Hex; 2-byte values are signed little-endian integers.
- 0 - Craft Type, Possible Values are the same as GEODATA.DAT:
Human | Alien |
---|---|
0 - Triton | 5 - Survey Ship |
1 - Hammerhead | 6 - Escort |
2 - Leviathan | 7 - Cruiser |
3 - Barracuda | 8 - Heavy Cruiser |
4 - Manta | 9 - Hunter |
A - Battleship | |
B - Dreadnought | |
C - Fleet Supply Cruiser | |
FF - Entry Not Used |
Offsets 1 and 5 refer to the weapon placed in the left and right slots respectively. (The Hammerhead does not have a center weapon type, only a left). Their possible values are listed here:
0 - Ajax Launcher 1 - D.U.P. Head Launcher 2 - Craft Gas Cannon 3 - P.W.T. Cannon 4 - Gauss Cannon 5 - Sonic Wave FF - No Weapon
- 1 - Left Weapon Type
- 2-3 - Left Ammo Quantity (NOTE: Ammo values normally do not exceed 100, but since the variable is stored as 2 bytes you can crank the total up to 32,767).
- 4 - Indicates what a craft is doing.
0 - At base 1 - Airborne 2 - USOs normally get this value, have no idea what it represents.
- 5 - Right Weapon Type
- 6-3C - Items on sub.
6 - Coelacanth/G. Cannon 7 - Coelacanth/Aqua Jet 8 - Coelacanth/Gauss 9 - Displacer /Sonic A - Displacer /P.W.T. B - Dart Gun C - Dart Clip D - Jet Harpoon E - Harpoon Clip F - Gas Cannon 10 - GC-AP Bolts 11 - GC-HE Bolts 12 - GC-Phosphorous Bolts 13 - Hydro-Jet Cannon 14 - HJ-AP Ammo 15 - HJ-HE Ammo 16 - HJ-P Ammo 17 - Torpedo Launcher 18 - Small Torpedo 19 - Large Torpedo 1A - Phosphor Torpedo 1B - Gauss Pistol 1C - Gauss Rifle 1D - Heavy Gauss 1E - Magna-Blast Grenade 1F - Dye Grenade 20 - Particle Disturbance Grenade 21 - Magna-Pack Explosive 22 - Particle Disturbance Sensor 23 - Medi-Kit 24 - M.C. Disruptor 25 - Thermal Tazer 26 - Chemical Flare 27 - Vibro Blade 28 - Thermic Lance 29 - Heavy Thermic Lance 2A - (Unused) 2B - (Unused) 2C - (Unused) 2D - Sonic Cannon 2E - Cannon Power Clip 2F - Sonic-Blasta Rifle 30 - Blasta Power Clip 31 - Sonic Pistol 32 - Pistol Power Clip 33 - Disruptor Pulse Launcher 34 - Disruptor Ammo 35 - Thermal Shok Launcher 36 - Thermal Shok Bomb 37 - Sonic Pulser 38 - (Unused) 39 - M.C. Reader 3A - Gauss Pistol Clip 3B - Gauss Rifle Clip 3C - Heavy Gauss Clip
- 3D - Unknown.
- 3E-3F - Right Ammo Quantity (NOTE: Ammo values normally do not exceed 100, but since the variable is stored as 2 bytes you can crank the total up to 32,767).
- 40-41 - Unknown.
- 42-43 - Damage, that is the amount it currently has taken. This value divided by the craft's damage capacity gives the percentage shown in-game.
- 44-45 - Depth of craft.
0 - Touched Down * 1 - Shallow 2 - Normal 3 - Deep 4 - Very Deep (*NOTE: If craft is moving and you change it to this value the depth will correct itself automatically. Speed must also be edited to 0 for the change in depth to hold.)
- 46-47 - Speed of craft.
- 48-49 - Unknown - activity type?
- 4A-4B - Unknown - goes to 0 when tracking a target but not attacking.
- 4C-4D - Destination coordinates, horizontal.
- 4E-4F - Destination coordinates, vertical.
- 50-51 - Fuel, amount remaining. This value divided by the crafts total fuel capacity gives the percentage shown in-game.
- 52-53 - Base Reference as an index to LOC.DAT
- 54-55 - Mission type craft is on.
0 - Alien Probe Mission 1 - Alien Interdiction 2 - Alien Resource Raid 3 - Alien Infiltration 4 - Alien Colony Expansion 5 - Alien Surface Attacks 6 - Floating Base Attack 7 - Colony Supply Missions
- 56-57 - Zone where mission is being carried out.
0 - North Atlantic 1 - South Atlantic 2 - North Pacific 3 - South Pacific 4 - Mediterranean 5 - South China Sea 6 - Indian Ocean 7 - Sea of Japan 8 - North Sea 9 - Caribbean A - Antarctic B - Arctic C - Eurasia D - North America E - Africa
- 58-59 - Unknown.
- 5A-5B - Unknown.
- 5C-5D - Primary Alien Race found on craft.
0 - Aquatoid 1 - Gill Man 2 - Lobster Man 3 - Tasoth 4+ - Mixed
- 5E-5F - USO attack timer.
- 60-61 - Unknown.
- 62-63 - Craft status.
0 - Ready 1 - Out 2 - Repairs 3 - Refueling 4 - Re-arming
- 64 - Bit Flags.
40 - Show full Transmission Resolver data
- 65-67 - Unknown - possibly 64 is actually a 4-byte value.
- 68-69 - Touchdown depth (see entry at 44-45 for possible values).
- 6A-6D - Unknown.