Difference between revisions of "CRAFT.DAT"

From UFOpaedia
Jump to navigation Jump to search
m (forgot Not Used flag on type)
(Updated craft ammo, damage and fuel. Minor spelling and reformatting.)
Line 9: Line 9:
 
  1 - Lightning    6 - Medium Scout
 
  1 - Lightning    6 - Medium Scout
 
  2 - Avenger      7 - Large Scout
 
  2 - Avenger      7 - Large Scout
  3 - Interceptor  8 - Harvestor
+
  3 - Interceptor  8 - Harvester
 
  4 - Firestorm    9 - Abductor
 
  4 - Firestorm    9 - Abductor
 
                   10 - Terror Ship
 
                   10 - Terror Ship
Line 15: Line 15:
 
                   12 - Supply Ship
 
                   12 - Supply Ship
  
Offsets 1, 3, and 5 refer to the weapon placed in the left, center and right slots respecively. Their possible values are listed here:
+
Offsets 1 and 5 refer to the weapon placed in the left and right slots respectively. (The Lightning does not have a center weapon type, only a left). Their possible values are listed here:
 
  0 - Stingray
 
  0 - Stingray
 
  1 - Avalanche
 
  1 - Avalanche
Line 22: Line 22:
 
  4 - Laser Cannon
 
  4 - Laser Cannon
 
  5 - Plasma Cannon
 
  5 - Plasma Cannon
  255 - 'No Weapon
+
  255 - No Weapon
  
 
* '''1 (1 Byte)''' - Left Weapon Type
 
* '''1 (1 Byte)''' - Left Weapon Type
* '''2 (1 Byte)''' - Left Ammo*  
+
* '''2-3 (2 Bytes)''' - Left Ammo*  
* '''3 (1 Byte)''' - Center Weapon Type
+
* '''4 (1 Byte)''' - Unknown, NEED HELP
* '''4 (1 Byte)''' - Center Ammo*
 
 
* '''5 (1 Byte)''' - Right Weapon Type
 
* '''5 (1 Byte)''' - Right Weapon Type
* '''6 (1 Byte)''' - Right Ammo*
+
* '''6-7 (2 Bytes)''' - Right Ammo*
<small>('''*NOTE''': Ammo values normally do not exceed 100)</small>
+
<small>('''*NOTE''': Ammo values normally do not exceed 100, but since variable is stored as 2 bytes you can crank the total up to 32,767).</small>
  
* Offsets 7 - 9 are unknown
+
* Offsets 8 - 9 are unknown
  
* '''10 (2 bytes)''' - Damage, that is the amount it currently has taken
+
* '''10 (2 bytes)''' - Damage, that is the amount it currently has taken. This value divided by the crafts damage capacity gives the percentage shown in-game.
  
 
* Offsets 12-23 are unknown
 
* Offsets 12-23 are unknown
  
* '''24 (2 bytes)''' - Fuel
+
* '''24 (2 bytes)''' - Fuel, amount remaining. This value divided by the crafts total fuel capacity dives the percentage shown in-game.
 
* '''26 (1 Byte)''' - Base Reference as an index to [[LOC.DAT]]
 
* '''26 (1 Byte)''' - Base Reference as an index to [[LOC.DAT]]
  

Revision as of 02:49, 12 March 2007

This file contains information specific to the crafts in the game. Both XCom and Alien crafts (including hidden ones) are in this file, though the values for the alien craft are still shrouded in mystery.

Structure

Each entry is 104 bytes long. All offsets and values are in decimal.

  • 0 (1 Byte) - Craft Type, Possible Values are the same as GEODATA.DAT:
    *HUMAN*          *ALIEN*         
0 - Skyranger     5 - Small Scout      255 - Entry Not Used
1 - Lightning     6 - Medium Scout
2 - Avenger       7 - Large Scout
3 - Interceptor   8 - Harvester
4 - Firestorm     9 - Abductor
                 10 - Terror Ship
                 11 - Battleship
                 12 - Supply Ship

Offsets 1 and 5 refer to the weapon placed in the left and right slots respectively. (The Lightning does not have a center weapon type, only a left). Their possible values are listed here:

0 - Stingray
1 - Avalanche
2 - Cannon
3 - Fusion Ball
4 - Laser Cannon
5 - Plasma Cannon
255 - No Weapon
  • 1 (1 Byte) - Left Weapon Type
  • 2-3 (2 Bytes) - Left Ammo*
  • 4 (1 Byte) - Unknown, NEED HELP
  • 5 (1 Byte) - Right Weapon Type
  • 6-7 (2 Bytes) - Right Ammo*

(*NOTE: Ammo values normally do not exceed 100, but since variable is stored as 2 bytes you can crank the total up to 32,767).

  • Offsets 8 - 9 are unknown
  • 10 (2 bytes) - Damage, that is the amount it currently has taken. This value divided by the crafts damage capacity gives the percentage shown in-game.
  • Offsets 12-23 are unknown
  • 24 (2 bytes) - Fuel, amount remaining. This value divided by the crafts total fuel capacity dives the percentage shown in-game.
  • 26 (1 Byte) - Base Reference as an index to LOC.DAT
  • Offsets 27-41 are unknown
  • 42 (1 Byte) - Status
0 - Ready
1 - Out
2 - Repairs
3 - Refueling
4 - Re-arming

The rest of the known values detail the items on board of the craft.

  • 44 (1 Byte) - Tank/Cannon
  • 45 (1 Byte) - Tank/Rocket Launcher
  • 46 (1 Byte) - Tank/Laser Cannon
  • 47 (1 Byte) - Hover Tank/Plasma
  • 48 (1 Byte) - Hover Tank/Launcher
  • 49 (1 Byte) - Pistol
  • 50 (1 Byte) - Pistol Clip
  • 51 (1 Byte) - Rifle
  • 52 (1 Byte) - Rifle Clip
  • 53 (1 Byte) - Heavy Cannon
  • 54 (1 Byte) - HC-AP Ammo
  • 55 (1 Byte) - HC-HE Ammo
  • 56 (1 Byte) - HC-IN Ammo
  • 57 (1 Byte) - Auto-Cannon
  • 58 (1 Byte) - AC-AP Ammo
  • 59 (1 Byte) - AC-HE Ammo
  • 60 (1 Byte) - AC-IN Ammo
  • 61 (1 Byte) - Rocket Launcher
  • 62 (1 Byte) - Small Rocket
  • 63 (1 Byte) - Large Rocket
  • 64 (1 Byte) - Incendiary Rocket
  • 65 (1 Byte) - Laser Pistol
  • 66 (1 Byte) - Laser Rifle
  • 67 (1 Byte) - Heavy Laser
  • 68 (1 Byte) - Grenade
  • 69 (1 Byte) - Smoke Grenade
  • 70 (1 Byte) - Proximity Grenade
  • 71 (1 Byte) - High Explosive
  • 72 (1 Byte) - Motion Scanner
  • 73 (1 Byte) - Medi- Pack
  • 74 (1 Byte) - Psi- Amp
  • 75 (1 Byte) - Stun Rod
  • 76 (1 Byte) - Electro-Flare
  • 83 (1 Byte) - Heavy Plasma
  • 84 (1 Byte) - Heavy Plasma Clip
  • 85 (1 Byte) - Plasma Rifle
  • 86 (1 Byte) - Plasma Rifle Clip
  • 87 (1 Byte) - Plasma Pistol
  • 88 (1 Byte) - Plasma Pistol Clip
  • 89 (1 Byte) - Blaster Launcher
  • 90 (1 Byte) - Blaster Bomb
  • 91 (1 Byte) - Small Launcher
  • 92 (1 Byte) - Stun Bomb
  • 93 (1 Byte) - Alien Grenade
  • 95 (1 Byte) - Mind Probe
  • All other values are unknown in their function

See Also