Difference between revisions of "CRAFT.DAT"

From UFOpaedia
Jump to navigation Jump to search
(Added in byte 43.)
(Updated items on craft, formatted using obdata names.)
Line 44: Line 44:
 
  4 - Re-arming
 
  4 - Re-arming
 
* '''43 (1 Byte)''' - Unknown, NEED HELP
 
* '''43 (1 Byte)''' - Unknown, NEED HELP
The rest of the known values detail the items on board of the craft.
+
The rest of the known values detail the items on board of the craft. 49-98 refer to offsets 0-49 in [[OBDATA.DAT]].
 
* '''44 (1 Byte)''' - Tank/Cannon
 
* '''44 (1 Byte)''' - Tank/Cannon
 
* '''45 (1 Byte)''' - Tank/Rocket Launcher
 
* '''45 (1 Byte)''' - Tank/Rocket Launcher
Line 50: Line 50:
 
* '''47 (1 Byte)''' - Hover Tank/Plasma
 
* '''47 (1 Byte)''' - Hover Tank/Plasma
 
* '''48 (1 Byte)''' - Hover Tank/Launcher
 
* '''48 (1 Byte)''' - Hover Tank/Launcher
* '''49 (1 Byte)''' - Pistol
+
* '''49 (1 Byte)''' - PISTOL
* '''50 (1 Byte)''' - Pistol Clip
+
* '''50 (1 Byte)''' - PISTOL CLIP
* '''51 (1 Byte)''' - Rifle
+
* '''51 (1 Byte)''' - RIFLE
* '''52 (1 Byte)''' - Rifle Clip
+
* '''52 (1 Byte)''' - RIFLE CLIP
* '''53 (1 Byte)''' - Heavy Cannon
+
* '''53 (1 Byte)''' - HEAVY CANNON
* '''54 (1 Byte)''' - HC-AP Ammo
+
* '''54 (1 Byte)''' - CANNON AP-AMMO
* '''55 (1 Byte)''' - HC-HE Ammo
+
* '''55 (1 Byte)''' - CANNON HE-AMMO
* '''56 (1 Byte)''' - HC-IN Ammo
+
* '''56 (1 Byte)''' - CANNON I-AMMO
* '''57 (1 Byte)''' - Auto-Cannon
+
* '''57 (1 Byte)''' - AUTO-CANNON
* '''58 (1 Byte)''' - AC-AP Ammo
+
* '''58 (1 Byte)''' - AUTO-CANNON AP-AMMO
* '''59 (1 Byte)''' - AC-HE Ammo
+
* '''59 (1 Byte)''' - AUTO-CANNON HE-AMMO
* '''60 (1 Byte)''' - AC-IN Ammo
+
* '''60 (1 Byte)''' - AUTO-CANNON I-AMMO
* '''61 (1 Byte)''' - Rocket Launcher
+
* '''61 (1 Byte)''' - ROCKET LAUNCHER
* '''62 (1 Byte)''' - Small Rocket
+
* '''62 (1 Byte)''' - SMALL ROCKET
* '''63 (1 Byte)''' - Large Rocket
+
* '''63 (1 Byte)''' - LARGE ROCKET
* '''64 (1 Byte)''' - Incendiary Rocket
+
* '''64 (1 Byte)''' - INCENDIARY ROCKET
* '''65 (1 Byte)''' - Laser Pistol
+
* '''65 (1 Byte)''' - LASER PISTOL
* '''66 (1 Byte)''' - Laser Rifle
+
* '''66 (1 Byte)''' - LASER GUN
* '''67 (1 Byte)''' - Heavy Laser
+
* '''67 (1 Byte)''' - HEAVY LASER
* '''68 (1 Byte)''' - Grenade
+
* '''68 (1 Byte)''' - GRENADE
* '''69 (1 Byte)''' - Smoke Grenade
+
* '''69 (1 Byte)''' - SMOKE GRENADE
* '''70 (1 Byte)''' - Proximity Grenade
+
* '''70 (1 Byte)''' - PROXIMITY GRENADE
* '''71 (1 Byte)''' - High Explosive
+
* '''71 (1 Byte)''' - HIGH EXPLOSIVE
* '''72 (1 Byte)''' - Motion Scanner
+
* '''72 (1 Byte)''' - MOTION SCANNER
* '''73 (1 Byte)''' - Medi- Pack
+
* '''73 (1 Byte)''' - MEDI-KIT
* '''74 (1 Byte)''' - Psi- Amp
+
* '''74 (1 Byte)''' - PSI-AMP
* '''75 (1 Byte)''' - Stun Rod
+
* '''75 (1 Byte)''' - STUN ROD
* '''76 (1 Byte)''' - Electro-Flare
+
* '''76 (1 Byte)''' - Flare
 +
* '''77 (1 Byte)''' - empty
 +
* '''78 (1 Byte)''' - empty
 +
* '''79 (1 Byte)''' - empty
 +
* '''80 (1 Byte)''' - CORPSE
 +
* '''81 (1 Byte)''' - CORPSE & ARMOUR
 +
* '''82 (1 Byte)''' - CORPSE & POWER SUIT
 
* '''83 (1 Byte)''' - Heavy Plasma
 
* '''83 (1 Byte)''' - Heavy Plasma
 
* '''84 (1 Byte)''' - Heavy Plasma Clip
 
* '''84 (1 Byte)''' - Heavy Plasma Clip
Line 84: Line 90:
 
* '''87 (1 Byte)''' - Plasma Pistol
 
* '''87 (1 Byte)''' - Plasma Pistol
 
* '''88 (1 Byte)''' - Plasma Pistol Clip
 
* '''88 (1 Byte)''' - Plasma Pistol Clip
* '''89 (1 Byte)''' - Blaster Launcher
+
* '''89 (1 Byte)''' - BLASTER LAUNCHER
* '''90 (1 Byte)''' - Blaster Bomb
+
* '''90 (1 Byte)''' - BLASTER BOMB
* '''91 (1 Byte)''' - Small Launcher
+
* '''91 (1 Byte)''' - SMALL LAUNCHER
* '''92 (1 Byte)''' - Stun Bomb
+
* '''92 (1 Byte)''' - STUN MISSILE
* '''93 (1 Byte)''' - Alien Grenade
+
* '''93 (1 Byte)''' - ALIEN GRENADE
* '''95 (1 Byte)''' - Mind Probe
+
* '''94 (1 Byte)''' - ELERIUM-115
 
+
* '''95 (1 Byte)''' - MIND PROBE
* All other values are unknown in their function
+
* '''96 (1 Byte)''' - >>UNDEFINED <<
 +
* '''97 (1 Byte)''' - >> empty <<
 +
* '''98 (1 Byte)''' - >> empty <<
 +
* Offsets 99-104 are unknown
  
 
==See Also==
 
==See Also==

Revision as of 04:01, 13 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 the variable is stored as 2 bytes you can crank the total up to 32,767).

  • Offsets 8 - 9 are unknown
  • 10-11 (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-25 (2 bytes) - Fuel, amount remaining. This value divided by the crafts total fuel capacity gives 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
  • 43 (1 Byte) - Unknown, NEED HELP

The rest of the known values detail the items on board of the craft. 49-98 refer to offsets 0-49 in OBDATA.DAT.

  • 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) - CANNON AP-AMMO
  • 55 (1 Byte) - CANNON HE-AMMO
  • 56 (1 Byte) - CANNON I-AMMO
  • 57 (1 Byte) - AUTO-CANNON
  • 58 (1 Byte) - AUTO-CANNON AP-AMMO
  • 59 (1 Byte) - AUTO-CANNON HE-AMMO
  • 60 (1 Byte) - AUTO-CANNON I-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 GUN
  • 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-KIT
  • 74 (1 Byte) - PSI-AMP
  • 75 (1 Byte) - STUN ROD
  • 76 (1 Byte) - Flare
  • 77 (1 Byte) - empty
  • 78 (1 Byte) - empty
  • 79 (1 Byte) - empty
  • 80 (1 Byte) - CORPSE
  • 81 (1 Byte) - CORPSE & ARMOUR
  • 82 (1 Byte) - CORPSE & POWER SUIT
  • 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 MISSILE
  • 93 (1 Byte) - ALIEN GRENADE
  • 94 (1 Byte) - ELERIUM-115
  • 95 (1 Byte) - MIND PROBE
  • 96 (1 Byte) - >>UNDEFINED <<
  • 97 (1 Byte) - >> empty <<
  • 98 (1 Byte) - >> empty <<
  • Offsets 99-104 are unknown

See Also