Difference between revisions of "CRAFT.DAT (TFTD)"
Jump to navigation
Jump to search
m (→See Also) |
|||
(9 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
+ | This file contains information specific to the crafts in the game. Both X-COM and Alien crafts (including hidden ones) are in this file, though the values for the alien craft are still shrouded in mystery. |
||
+ | |||
+ | Note that [[CRAFT.DAT|UFO:EU uses a different version of this file]]. Compared to the previous game, the TFTD copy is jumbled; presumably this was to prevent players "importing" their "uber craft" from their previous save-games. |
||
+ | |||
+ | |||
==TFTD Structure== |
==TFTD Structure== |
||
− | There are 50 records each having 110 bytes long for a file size of 5,500 bytes. |
+ | There are 50 records each having 110 bytes long for a file size of 5,500 bytes. 2-byte values are signed little-endian integers. |
+ | {| class="wikitable" |
||
− | * '''0''' - Craft Type, Possible Values are the same as [[GEODATA.DAT]]: |
||
− | {| {{stdTable}} |
||
− | ! 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 |
||
|- |
|- |
||
+ | !Offset<br>(Decimal) |
||
− | | colspan="2" align="center" | FF - Entry Not Used |
||
+ | !Offset<br>(Hex) |
||
− | |} |
||
+ | !Usage |
||
− | |||
+ | |- valign="top" |
||
− | 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: |
||
+ | !<span id="0"></span>0 |
||
− | 0 - Ajax Launcher |
||
+ | !<span id="0x00"></span>0x00 |
||
− | 1 - D.U.P. Head Launcher |
||
+ | |Craft type, possible values are the same as [[GEODATA.DAT]]: |
||
− | 2 - Craft Gas Cannon |
||
+ | *HUMAN* *ALIEN* |
||
− | 3 - P.W.T. Cannon |
||
+ | 0 - [[Triton]] 5 - [[Survey Ship]] 255 - Entry Not Used |
||
− | 4 - Gauss Cannon |
||
+ | 1 - [[Hammerhead]] 6 - [[Escort]] |
||
− | 5 - Sonic Wave |
||
+ | 2 - [[Leviathan]] 7 - [[Cruiser]] |
||
+ | 3 - [[Barracuda]] 8 - [[Heavy Cruiser]] |
||
+ | 4 - [[Manta]] 9 - [[Hunter]] |
||
+ | 10 - [[Battleship (TFTD)|Battleship]] |
||
+ | 11 - [[Dreadnought]] |
||
+ | 12 - [[Fleet Supply Cruiser]] |
||
+ | |- valign="top" |
||
+ | |colspan=3|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|Ajax Launcher]] |
||
+ | 1 - [[D.U.P. Head|D.U.P. Head Launcher]] |
||
+ | 2 - [[Craft Gas Cannon]] |
||
+ | 3 - [[P.W.T. Cannon]] |
||
+ | 4 - [[Gauss Cannon]] |
||
+ | 5 - [[Sonic Oscillator]] |
||
FF - No Weapon |
FF - No Weapon |
||
+ | |- valign="top" |
||
− | * '''1''' - Left Weapon Type |
||
+ | !<span id="1"></span>1 |
||
− | * '''2-3''' - Left Ammo Quantity <small>('''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).</small> |
||
+ | !<span id="0x01"></span>0x01 |
||
− | * '''4''' - Indicates what a craft is doing. |
||
+ | |Left weapon type. |
||
+ | |- valign="top" |
||
+ | !<span id="2-3"></span>2-3 |
||
+ | !<span id="0x02-0x03"></span>0x02-0x03 |
||
+ | |Left ammo quantity <small>('''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).</small> |
||
+ | |- valign="top" |
||
+ | !<span id="4"></span>4 |
||
+ | !<span id="0x04"></span>0x04 |
||
+ | |Indicates what a craft is doing. |
||
0 - At base |
0 - At base |
||
− | 1 - |
+ | 1 - Moving |
− | 2 - USOs |
+ | 2 - USOs often get this value, no idea what it represents. |
+ | |- valign="top" |
||
− | * '''5''' - Right Weapon Type |
||
+ | !<span id="5"></span>5 |
||
− | * '''6-3C''' - Items on sub. |
||
+ | !<span id="0x05"></span>0x05 |
||
− | 6 - Coelacanth/G. Cannon |
||
+ | |Right weapon type. |
||
− | 7 - Coelacanth/Aqua Jet |
||
+ | |- valign="top" |
||
− | 8 - Coelacanth/Gauss |
||
+ | |colspan=3|The following values, 6-60 (0x06-0x3C), keep track of how many of item X is stored on the craft. |
||
− | 9 - Displacer /Sonic |
||
+ | |- valign="top" |
||
− | A - Displacer /P.W.T. |
||
+ | !<span id="6"></span>6 |
||
− | B - Dart Gun |
||
+ | !<span id="0x06"></span>0x06 |
||
− | C - Dart Clip |
||
+ | |Coelacanth/G. Cannon |
||
− | D - Jet Harpoon |
||
+ | |- valign="top" |
||
− | E - Harpoon Clip |
||
+ | !<span id="7"></span>7 |
||
− | F - Gas Cannon |
||
+ | !<span id="0x07"></span>0x07 |
||
− | 10 - GC-AP Bolts |
||
+ | |Coelacanth/Aqua Jet |
||
− | 11 - GC-HE Bolts |
||
+ | |- valign="top" |
||
− | 12 - GC-Phosphorous Bolts |
||
+ | !<span id="8"></span>8 |
||
− | 13 - Hydro-Jet Cannon |
||
+ | !<span id="0x08"></span>0x08 |
||
− | 14 - HJ-AP Ammo |
||
+ | |Coelacanth/Gauss |
||
− | 15 - HJ-HE Ammo |
||
+ | |- valign="top" |
||
− | 16 - HJ-P Ammo |
||
+ | !<span id="9"></span>9 |
||
− | 17 - Torpedo Launcher |
||
+ | !<span id="0x09"></span>0x09 |
||
− | 18 - Small Torpedo |
||
+ | |Displacer /Sonic |
||
− | 19 - Large Torpedo |
||
+ | |- valign="top" |
||
− | 1A - Phosphor Torpedo |
||
+ | !<span id="10"></span>10 |
||
− | 1B - Gauss Pistol |
||
+ | !<span id="0x0A"></span>0x0A |
||
− | 1C - Gauss Rifle |
||
+ | |Displacer /P.W.T. |
||
− | 1D - Heavy Gauss |
||
+ | |- valign="top" |
||
− | 1E - Magna-Blast Grenade |
||
+ | !<span id="11"></span>11 |
||
− | 1F - Dye Grenade |
||
+ | !<span id="0x0B"></span>0x0B |
||
− | 20 - Particle Disturbance Grenade |
||
+ | |Dart Gun |
||
− | 21 - Magna-Pack Explosive |
||
+ | |- valign="top" |
||
− | 22 - Particle Disturbance Sensor |
||
+ | !<span id="12"></span>12 |
||
− | 23 - Medi-Kit |
||
+ | !<span id="0x0C"></span>0x0C |
||
− | 24 - M.C. Disruptor |
||
+ | |Dart Clip |
||
− | 25 - Thermal Tazer |
||
+ | |- valign="top" |
||
− | 26 - Chemical Flare |
||
+ | !<span id="13"></span>13 |
||
− | 27 - Vibro Blade |
||
+ | !<span id="0x0D"></span>0x0D |
||
− | 28 - Thermic Lance |
||
+ | |Jet Harpoon |
||
− | 29 - Heavy Thermic Lance |
||
+ | |- valign="top" |
||
− | 2A - ''(Unused)'' |
||
+ | !<span id="14"></span>14 |
||
− | 2B - ''(Unused)'' |
||
+ | !<span id="0x0E"></span>0x0E |
||
− | 2C - ''(Unused)'' |
||
+ | |Harpoon Clip |
||
− | 2D - Sonic Cannon |
||
+ | |- valign="top" |
||
− | 2E - Cannon Power Clip |
||
+ | !<span id="15"></span>15 |
||
− | 2F - Sonic-Blasta Rifle |
||
+ | !<span id="0x0F"></span>0x0F |
||
− | 30 - Blasta Power Clip |
||
+ | |Gas Cannon |
||
− | 31 - Sonic Pistol |
||
+ | |- valign="top" |
||
− | 32 - Pistol Power Clip |
||
+ | !<span id="16"></span>16 |
||
− | 33 - Disruptor Pulse Launcher |
||
+ | !<span id="0x10"></span>0x10 |
||
− | 34 - Disruptor Ammo |
||
+ | |GC-AP Bolts |
||
− | 35 - Thermal Shok Launcher |
||
+ | |- valign="top" |
||
− | 36 - Thermal Shok Bomb |
||
+ | !<span id="17"></span>17 |
||
− | 37 - Sonic Pulser |
||
+ | !<span id="0x11"></span>0x11 |
||
− | 38 - ''(Unused)'' |
||
+ | |GC-HE Bolts |
||
− | 39 - M.C. Reader |
||
+ | |- valign="top" |
||
− | 3A - Gauss Pistol Clip |
||
+ | !<span id="18"></span>18 |
||
− | 3B - Gauss Rifle Clip |
||
+ | !<span id="0x12"></span>0x12 |
||
− | 3C - Heavy Gauss Clip |
||
+ | |GC-Phosphorous Bolts |
||
− | * '''3D''' - Unknown. |
||
+ | |- valign="top" |
||
− | * '''3E-3F''' - Right Ammo Quantity <small>('''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).</small> |
||
+ | !<span id="19"></span>19 |
||
− | * '''40-41''' - Unknown. |
||
+ | !<span id="0x13"></span>0x13 |
||
− | * '''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. |
||
+ | |Hydro-Jet Cannon |
||
− | * '''44-45''' - Depth of craft. |
||
+ | |- valign="top" |
||
+ | !<span id="20"></span>20 |
||
+ | !<span id="0x14"></span>0x14 |
||
+ | |HJ-AP Ammo |
||
+ | |- valign="top" |
||
+ | !<span id="21"></span>21 |
||
+ | !<span id="0x15"></span>0x15 |
||
+ | |HJ-HE Ammo |
||
+ | |- valign="top" |
||
+ | !<span id="22"></span>22 |
||
+ | !<span id="0x16"></span>0x16 |
||
+ | |HJ-P Ammo |
||
+ | |- valign="top" |
||
+ | !<span id="23"></span>23 |
||
+ | !<span id="0x17"></span>0x17 |
||
+ | |Torpedo Launcher |
||
+ | |- valign="top" |
||
+ | !<span id="24"></span>24 |
||
+ | !<span id="0x18"></span>0x18 |
||
+ | |Small Torpedo |
||
+ | |- valign="top" |
||
+ | !<span id="25"></span>25 |
||
+ | !<span id="0x19"></span>0x19 |
||
+ | |Large Torpedo |
||
+ | |- valign="top" |
||
+ | !<span id="26"></span>26 |
||
+ | !<span id="0x1A"></span>0x1A |
||
+ | |Phosphor Torpedo |
||
+ | |- valign="top" |
||
+ | !<span id="27"></span>27 |
||
+ | !<span id="0x1B"></span>0x1B |
||
+ | |Gauss Pistol |
||
+ | |- valign="top" |
||
+ | !<span id="28"></span>28 |
||
+ | !<span id="0x1C"></span>0x1C |
||
+ | |Gauss Rifle |
||
+ | |- valign="top" |
||
+ | !<span id="29"></span>29 |
||
+ | !<span id="0x1D"></span>0x1D |
||
+ | |Heavy Gauss |
||
+ | |- valign="top" |
||
+ | !<span id="30"></span>30 |
||
+ | !<span id="0x1E"></span>0x1E |
||
+ | |Magna-Blast Grenade |
||
+ | |- valign="top" |
||
+ | !<span id="31"></span>31 |
||
+ | !<span id="0x1F"></span>0x1F |
||
+ | |Dye Grenade |
||
+ | |- valign="top" |
||
+ | !<span id="32"></span>32 |
||
+ | !<span id="0x20"></span>0x20 |
||
+ | |Particle Disturbance Grenade |
||
+ | |- valign="top" |
||
+ | !<span id="33"></span>33 |
||
+ | !<span id="0x21"></span>0x21 |
||
+ | |Magna-Pack Explosive |
||
+ | |- valign="top" |
||
+ | !<span id="34"></span>34 |
||
+ | !<span id="0x22"></span>0x22 |
||
+ | |Particle Disturbance Sensor |
||
+ | |- valign="top" |
||
+ | !<span id="35"></span>35 |
||
+ | !<span id="0x23"></span>0x23 |
||
+ | |Medi-Kit |
||
+ | |- valign="top" |
||
+ | !<span id="36"></span>36 |
||
+ | !<span id="0x24"></span>0x24 |
||
+ | |M.C. Disruptor |
||
+ | |- valign="top" |
||
+ | !<span id="37"></span>37 |
||
+ | !<span id="0x25"></span>0x25 |
||
+ | |Thermal Tazer |
||
+ | |- valign="top" |
||
+ | !<span id="38"></span>38 |
||
+ | !<span id="0x26"></span>0x26 |
||
+ | |Chemical Flare |
||
+ | |- valign="top" |
||
+ | !<span id="39"></span>39 |
||
+ | !<span id="0x27"></span>0x27 |
||
+ | |Vibro Blade |
||
+ | |- valign="top" |
||
+ | !<span id="40"></span>40 |
||
+ | !<span id="0x28"></span>0x28 |
||
+ | |Thermic Lance |
||
+ | |- valign="top" |
||
+ | !<span id="41"></span>41 |
||
+ | !<span id="0x29"></span>0x29 |
||
+ | |Heavy Thermic Lance |
||
+ | |- valign="top" |
||
+ | !<span id="42"></span>42 |
||
+ | !<span id="0x2A"></span>0x2A |
||
+ | |''(Unused)'' |
||
+ | |- valign="top" |
||
+ | !<span id="43"></span>43 |
||
+ | !<span id="0x2B"></span>0x2B |
||
+ | |''(Unused)'' |
||
+ | |- valign="top" |
||
+ | !<span id="44"></span>44 |
||
+ | !<span id="0x2C"></span>0x2C |
||
+ | |''(Unused)'' |
||
+ | |- valign="top" |
||
+ | !<span id="45"></span>45 |
||
+ | !<span id="0x2D"></span>0x2D |
||
+ | |Sonic Cannon |
||
+ | |- valign="top" |
||
+ | !<span id="46"></span>46 |
||
+ | !<span id="0x2E"></span>0x2E |
||
+ | |Cannon Power Clip |
||
+ | |- valign="top" |
||
+ | !<span id="47"></span>47 |
||
+ | !<span id="0x2F"></span>0x2F |
||
+ | |Sonic-Blasta Rifle |
||
+ | |- valign="top" |
||
+ | !<span id="48"></span>48 |
||
+ | !<span id="0x30"></span>0x30 |
||
+ | |Blasta Power Clip |
||
+ | |- valign="top" |
||
+ | !<span id="49"></span>49 |
||
+ | !<span id="0x31"></span>0x31 |
||
+ | |Sonic Pistol |
||
+ | |- valign="top" |
||
+ | !<span id="50"></span>50 |
||
+ | !<span id="0x32"></span>0x32 |
||
+ | |Pistol Power Clip |
||
+ | |- valign="top" |
||
+ | !<span id="51"></span>51 |
||
+ | !<span id="0x33"></span>0x33 |
||
+ | |Disruptor Pulse Launcher |
||
+ | |- valign="top" |
||
+ | !<span id="52"></span>52 |
||
+ | !<span id="0x34"></span>0x34 |
||
+ | |Disruptor Ammo |
||
+ | |- valign="top" |
||
+ | !<span id="53"></span>53 |
||
+ | !<span id="0x35"></span>0x35 |
||
+ | |Thermal Shok Launcher |
||
+ | |- valign="top" |
||
+ | !<span id="54"></span>54 |
||
+ | !<span id="0x36"></span>0x36 |
||
+ | |Thermal Shok Bomb |
||
+ | |- valign="top" |
||
+ | !<span id="55"></span>55 |
||
+ | !<span id="0x37"></span>0x37 |
||
+ | |Sonic Pulser |
||
+ | |- valign="top" |
||
+ | !<span id="56"></span>56 |
||
+ | !<span id="0x38"></span>0x38 |
||
+ | |''(Unused)'' |
||
+ | |- valign="top" |
||
+ | !<span id="57"></span>57 |
||
+ | !<span id="0x39"></span>0x39 |
||
+ | |M.C. Reader |
||
+ | |- valign="top" |
||
+ | !<span id="58"></span>58 |
||
+ | !<span id="0x3A"></span>0x3A |
||
+ | |Gauss Pistol Clip |
||
+ | |- valign="top" |
||
+ | !<span id="59"></span>59 |
||
+ | !<span id="0x3B"></span>0x3B |
||
+ | |Gauss Rifle Clip |
||
+ | |- valign="top" |
||
+ | !<span id="60"></span>60 |
||
+ | !<span id="0x3C"></span>0x3C |
||
+ | |Heavy Gauss Clip |
||
+ | |- valign="top" |
||
+ | !<span id="61"></span>61 |
||
+ | !<span id="0x3D"></span>0x3D |
||
+ | |''Unknown use.'' |
||
+ | |- valign="top" |
||
+ | !<span id="62-63"></span>62-63 |
||
+ | !<span id="0x3E-0x3F"></span>0x3E-0x3F |
||
+ | |Right ammo quantity <small>('''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).</small> |
||
+ | |- valign="top" |
||
+ | !<span id="64-65"></span>64-65 |
||
+ | !<span id="0x40-0x41"></span>0x40-0x41 |
||
+ | |''(Unused)'' |
||
+ | |- valign="top" |
||
+ | !<span id="66-67"></span>66-67 |
||
+ | !<span id="0x42-0x43"></span>0x42-0x43 |
||
+ | |Damage, that is the amount it currently has taken. This value divided by the craft's damage capacity gives the percentage shown in-game. |
||
+ | |- valign="top" |
||
+ | !<span id="68-69"></span>68-69 |
||
+ | !<span id="0x44-0x45"></span>0x44-0x45 |
||
+ | |Depth of craft. |
||
0 - Touched Down * |
0 - Touched Down * |
||
1 - Shallow |
1 - Shallow |
||
Line 106: | Line 300: | ||
3 - Deep |
3 - Deep |
||
4 - Very Deep |
4 - Very Deep |
||
− | + | <small>('''*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.)</small> |
|
+ | |- valign="top" |
||
− | * '''46-47''' - Speed of craft. |
||
+ | !<span id="70-71"></span>70-71 |
||
− | * '''48-49''' - Unknown - activity type? |
||
+ | !<span id="0x46-0x47"></span>0x46-0x47 |
||
− | * '''4A-4B''' - Unknown - goes to 0 when tracking a target but not attacking. |
||
+ | |Speed of craft. |
||
− | * '''4C-4D''' - Destination coordinates, horizontal. |
||
+ | |- valign="top" |
||
− | * '''4E-4F''' - Destination coordinates, vertical. |
||
+ | !<span id="72-73"></span>72-73 |
||
− | * '''50-51''' - Fuel, amount remaining. This value divided by the crafts total fuel capacity gives the percentage shown in-game. |
||
+ | !<span id="0x48-0x49"></span>0x48-0x49 |
||
− | * '''52-53''' - Base Reference as an index to [[LOC.DAT]] |
||
+ | |Index into [[LOC.DAT]] referencing the destination - for example, waypoints for X-COM craft, or X-COM bases for alien craft. |
||
− | * '''54-55''' - Mission type craft is on. |
||
+ | |- valign="top" |
||
+ | !<span id="74-75"></span>74-75 |
||
+ | !<span id="0x4A-0x4B"></span>0x4A-0x4B |
||
+ | |Unknown - goes to 0 when tracking a target but not attacking. -1 means the ship is airborne despite the value of byte 0x44 |
||
+ | |- valign="top" |
||
+ | !<span id="76-77"></span>76-77 |
||
+ | !<span id="0x4C-0x4D"></span>0x4C-0x4D |
||
+ | |Destination coordinates, horizontal (longitude). |
||
+ | |- valign="top" |
||
+ | !<span id="78-79"></span>78-79 |
||
+ | !<span id="0x4E-0x4F"></span>0x4E-0x4F |
||
+ | |Destination coordinates, vertical (latitude). |
||
+ | |- valign="top" |
||
+ | !<span id="80-81"></span>80-81 |
||
+ | !<span id="0x50-0x51"></span>0x50-0x51 |
||
+ | |Fuel, amount remaining. This value divided by the crafts total fuel capacity gives the percentage shown in-game. |
||
+ | |- valign="top" |
||
+ | !<span id="82-83"></span>82-83 |
||
+ | !<span id="0x52-0x53"></span>0x52-0x53 |
||
+ | |Base reference as an index to [[LOC.DAT]]. |
||
+ | |- valign="top" |
||
+ | !<span id="84-85"></span>84-85 |
||
+ | !<span id="0x54-0x55"></span>0x54-0x55 |
||
+ | |Mission type craft is on. |
||
0 - Alien Probe Mission |
0 - Alien Probe Mission |
||
1 - Alien Interdiction |
1 - Alien Interdiction |
||
Line 123: | Line 341: | ||
6 - Floating Base Attack |
6 - Floating Base Attack |
||
7 - Colony Supply Missions |
7 - Colony Supply Missions |
||
+ | |- valign="top" |
||
− | * '''56-57''' - Zone where mission is being carried out. |
||
+ | !<span id="86-87"></span>86-87 |
||
+ | !<span id="0x56-0x57"></span>0x56-0x57 |
||
+ | |Zone where mission is being carried out. |
||
0 - North Atlantic |
0 - North Atlantic |
||
1 - South Atlantic |
1 - South Atlantic |
||
Line 139: | Line 360: | ||
D - North America |
D - North America |
||
E - Africa |
E - Africa |
||
+ | |- valign="top" |
||
− | * '''58-59''' - Unknown. |
||
+ | !<span id="88-89"></span>88-89 |
||
− | * '''5A-5B''' - Unknown. |
||
+ | !<span id="0x58-0x59"></span>0x58-0x59 |
||
− | * '''5C-5D''' - Primary Alien Race found on craft. |
||
+ | |''Unknown use.'' |
||
+ | |- valign="top" |
||
+ | !<span id="90-91"></span>90-91 |
||
+ | !<span id="0x5A-0x5B"></span>0x5A-0x5B |
||
+ | |''Unknown use.'' |
||
+ | |- valign="top" |
||
+ | !<span id="92-93"></span>92-93 |
||
+ | !<span id="0x5C-0x5D"></span>0x5C-0x5D |
||
+ | |Primary alien race found on craft. |
||
0 - Aquatoid |
0 - Aquatoid |
||
1 - Gill Man |
1 - Gill Man |
||
2 - Lobster Man |
2 - Lobster Man |
||
3 - Tasoth |
3 - Tasoth |
||
− | 4 |
+ | 4 - Mixed Tasoth based |
+ | 5 - Mixed Lobster Man based |
||
− | * '''5E-5F''' - USO attack timer. |
||
+ | |- valign="top" |
||
− | * '''60-61''' - Unknown. |
||
+ | !<span id="94-95"></span>94-95 |
||
− | * '''62-63''' - Craft status. |
||
+ | !<span id="0x5E-0x5F"></span>0x5E-0x5F |
||
+ | |USO attack timer. |
||
+ | |- valign="top" |
||
+ | !<span id="96-97"></span>96-97 |
||
+ | !<span id="0x60-0x61"></span>0x60-0x61 |
||
+ | |USO escape maneuver timer. |
||
+ | |- valign="top" |
||
+ | !<span id="98-99"></span>98-99 |
||
+ | !<span id="0x62-0x63"></span>0x62-0x63 |
||
+ | |Craft status. |
||
0 - Ready |
0 - Ready |
||
1 - Out |
1 - Out |
||
Line 155: | Line 395: | ||
3 - Refueling |
3 - Refueling |
||
4 - Re-arming |
4 - Re-arming |
||
+ | |- valign="top" |
||
− | * '''64''' - Bit Flags. |
||
+ | !<span id="100-103"></span>100-103 |
||
+ | !<span id="0x64-0x67"></span>0x64-0x67 |
||
+ | |Bit Flags. |
||
40 - Show full Transmission Resolver data |
40 - Show full Transmission Resolver data |
||
+ | |- valign="top" |
||
− | * '''65-67''' - Unknown - possibly 64 is actually a 4-byte value. |
||
+ | !<span id="104-105"></span>104-105 |
||
− | * '''68-69''' - Touchdown depth (see entry at 44-45 for possible values). |
||
+ | !<span id="0x68-0x69"></span>0x68-0x69 |
||
− | * '''6A-6D''' - Unknown. |
||
+ | |Touchdown depth (see entry at [[#68-69|[68-69]]] for possible values). |
||
+ | |- valign="top" |
||
+ | !<span id="106"></span>106 |
||
+ | !<span id="0x6A"></span>0x6A |
||
+ | |''Used to determine if Xcraft are able to intercept.'' |
||
+ | |- valign="top" |
||
+ | !<span id="107"></span>107 |
||
+ | !<span id="0x6B"></span>0x6B |
||
+ | |''Used to determine if Xcraft are able to intercept.'' |
||
+ | |- valign="top" |
||
+ | !<span id="108"></span>108 |
||
+ | !<span id="0x6C"></span>0x6C |
||
+ | |''Used to determine if Xcraft are able to intercept.'' |
||
+ | |- valign="top" |
||
+ | !<span id="109"></span>109 |
||
+ | !<span id="0x6D"></span>0x6D |
||
+ | |''Unknown.'' |
||
+ | |- |
||
+ | |} |
||
==See Also== |
==See Also== |
||
− | [[CRAFT.DAT]] |
+ | * [[CRAFT.DAT]] |
− | |||
* [[Saved Game Files]] |
* [[Saved Game Files]] |
||
[[Category:Game Files (TFTD)]] |
[[Category:Game Files (TFTD)]] |
||
+ | [[Category:TFTD]] |
Latest revision as of 15:19, 23 July 2013
This file contains information specific to the crafts in the game. Both X-COM and Alien crafts (including hidden ones) are in this file, though the values for the alien craft are still shrouded in mystery.
Note that UFO:EU uses a different version of this file. Compared to the previous game, the TFTD copy is jumbled; presumably this was to prevent players "importing" their "uber craft" from their previous save-games.
TFTD Structure
There are 50 records each having 110 bytes long for a file size of 5,500 bytes. 2-byte values are signed little-endian integers.
Offset (Decimal) |
Offset (Hex) |
Usage |
---|---|---|
0 | 0x00 | Craft type, possible values are the same as GEODATA.DAT:
*HUMAN* *ALIEN* 0 - Triton 5 - Survey Ship 255 - Entry Not Used 1 - Hammerhead 6 - Escort 2 - Leviathan 7 - Cruiser 3 - Barracuda 8 - Heavy Cruiser 4 - Manta 9 - Hunter 10 - Battleship 11 - Dreadnought 12 - Fleet Supply Cruiser |
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 Oscillator FF - No Weapon | ||
1 | 0x01 | Left weapon type. |
2-3 | 0x02-0x03 | 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 | 0x04 | Indicates what a craft is doing.
0 - At base 1 - Moving 2 - USOs often get this value, no idea what it represents. |
5 | 0x05 | Right weapon type. |
The following values, 6-60 (0x06-0x3C), keep track of how many of item X is stored on the craft. | ||
6 | 0x06 | Coelacanth/G. Cannon |
7 | 0x07 | Coelacanth/Aqua Jet |
8 | 0x08 | Coelacanth/Gauss |
9 | 0x09 | Displacer /Sonic |
10 | 0x0A | Displacer /P.W.T. |
11 | 0x0B | Dart Gun |
12 | 0x0C | Dart Clip |
13 | 0x0D | Jet Harpoon |
14 | 0x0E | Harpoon Clip |
15 | 0x0F | Gas Cannon |
16 | 0x10 | GC-AP Bolts |
17 | 0x11 | GC-HE Bolts |
18 | 0x12 | GC-Phosphorous Bolts |
19 | 0x13 | Hydro-Jet Cannon |
20 | 0x14 | HJ-AP Ammo |
21 | 0x15 | HJ-HE Ammo |
22 | 0x16 | HJ-P Ammo |
23 | 0x17 | Torpedo Launcher |
24 | 0x18 | Small Torpedo |
25 | 0x19 | Large Torpedo |
26 | 0x1A | Phosphor Torpedo |
27 | 0x1B | Gauss Pistol |
28 | 0x1C | Gauss Rifle |
29 | 0x1D | Heavy Gauss |
30 | 0x1E | Magna-Blast Grenade |
31 | 0x1F | Dye Grenade |
32 | 0x20 | Particle Disturbance Grenade |
33 | 0x21 | Magna-Pack Explosive |
34 | 0x22 | Particle Disturbance Sensor |
35 | 0x23 | Medi-Kit |
36 | 0x24 | M.C. Disruptor |
37 | 0x25 | Thermal Tazer |
38 | 0x26 | Chemical Flare |
39 | 0x27 | Vibro Blade |
40 | 0x28 | Thermic Lance |
41 | 0x29 | Heavy Thermic Lance |
42 | 0x2A | (Unused) |
43 | 0x2B | (Unused) |
44 | 0x2C | (Unused) |
45 | 0x2D | Sonic Cannon |
46 | 0x2E | Cannon Power Clip |
47 | 0x2F | Sonic-Blasta Rifle |
48 | 0x30 | Blasta Power Clip |
49 | 0x31 | Sonic Pistol |
50 | 0x32 | Pistol Power Clip |
51 | 0x33 | Disruptor Pulse Launcher |
52 | 0x34 | Disruptor Ammo |
53 | 0x35 | Thermal Shok Launcher |
54 | 0x36 | Thermal Shok Bomb |
55 | 0x37 | Sonic Pulser |
56 | 0x38 | (Unused) |
57 | 0x39 | M.C. Reader |
58 | 0x3A | Gauss Pistol Clip |
59 | 0x3B | Gauss Rifle Clip |
60 | 0x3C | Heavy Gauss Clip |
61 | 0x3D | Unknown use. |
62-63 | 0x3E-0x3F | 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). |
64-65 | 0x40-0x41 | (Unused) |
66-67 | 0x42-0x43 | Damage, that is the amount it currently has taken. This value divided by the craft's damage capacity gives the percentage shown in-game. |
68-69 | 0x44-0x45 | 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.) |
70-71 | 0x46-0x47 | Speed of craft. |
72-73 | 0x48-0x49 | Index into LOC.DAT referencing the destination - for example, waypoints for X-COM craft, or X-COM bases for alien craft. |
74-75 | 0x4A-0x4B | Unknown - goes to 0 when tracking a target but not attacking. -1 means the ship is airborne despite the value of byte 0x44 |
76-77 | 0x4C-0x4D | Destination coordinates, horizontal (longitude). |
78-79 | 0x4E-0x4F | Destination coordinates, vertical (latitude). |
80-81 | 0x50-0x51 | Fuel, amount remaining. This value divided by the crafts total fuel capacity gives the percentage shown in-game. |
82-83 | 0x52-0x53 | Base reference as an index to LOC.DAT. |
84-85 | 0x54-0x55 | 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 |
86-87 | 0x56-0x57 | 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 |
88-89 | 0x58-0x59 | Unknown use. |
90-91 | 0x5A-0x5B | Unknown use. |
92-93 | 0x5C-0x5D | Primary alien race found on craft.
0 - Aquatoid 1 - Gill Man 2 - Lobster Man 3 - Tasoth 4 - Mixed Tasoth based 5 - Mixed Lobster Man based |
94-95 | 0x5E-0x5F | USO attack timer. |
96-97 | 0x60-0x61 | USO escape maneuver timer. |
98-99 | 0x62-0x63 | Craft status.
0 - Ready 1 - Out 2 - Repairs 3 - Refueling 4 - Re-arming |
100-103 | 0x64-0x67 | Bit Flags.
40 - Show full Transmission Resolver data |
104-105 | 0x68-0x69 | Touchdown depth (see entry at [68-69] for possible values). |
106 | 0x6A | Used to determine if Xcraft are able to intercept. |
107 | 0x6B | Used to determine if Xcraft are able to intercept. |
108 | 0x6C | Used to determine if Xcraft are able to intercept. |
109 | 0x6D | Unknown. |