Difference between revisions of "Game Files"

From UFOpaedia
Jump to navigation Jump to search
Line 73: Line 73:
 
*[[MISSION2.DAT]]
 
*[[MISSION2.DAT]]
 
*[[OBPOS2.DAT]]
 
*[[OBPOS2.DAT]]
*[[OPTION.DAT]] - Scroll speed settings etc.
+
*[[OPTION.DAT]]
 
*[[UNIREF2.DAT]]
 
*[[UNIREF2.DAT]]
 
*[[UNITPOS.DAT]]
 
*[[UNITPOS.DAT]]
  
  
<i>BB - How does the game know whether to load from the save slot, or the missdat folder?</i>
+
<i>How does the game know whether to load from the save slot, or the missdat folder? - BB</i>
  
 
(12 unique files, plus 27 standard save files (does not use dum.bin), totaling 39).
 
(12 unique files, plus 27 standard save files (does not use dum.bin), totaling 39).

Revision as of 12:56, 16 June 2006

Chris Voss's page has notes on several of XCOM's file formats not yet detailed on this wiki.

See also Under_The_Hood#Game_File_Analysis.

Geoscape Files

These files are used by the Geoscape portion of the game. This can be considered a 'standard' save.

  • ACTS.DAT
  • AKNOW.DAT
  • ALIEN.DAT - Contains Alien activity in Countries and areas, for graphs
  • ASTORE.DAT - Has the info on aliens in alien containment.
  • BASE.DAT - Has all of the base layout and contents information, radar scanning abilities and other base information.
  • BPROD.DAT - List of goods being produced.
  • CRAFT.DAT - Has all the craft info, weapons, fuel, damage and items onboard. Also stores UFO information, although information is handled differently from friendly aircraft.
  • DIPLOM.DAT - Diplomacy info.
  • DUM.BIN - Dummy file for keeping directory structure. Not used.
  • FACIL.DAT - Info on facilities you can build.
  • IGLOB.DAT - Date and time.
  • INTER.DAT
  • LEASE.DAT
  • LIGLOB.DAT - Money!
  • LOC.DAT - Location of bases on the planet as well as other things like ships, waypoints and missions. Basically anything that is an icon on the Geoscape.
  • MISSIONS.DAT
  • PRODUCT.DAT - Info on things you can produce.
  • PROJECT.DAT - These are things you are researching.
  • PURCHASE.DAT - Info on stuff you can buy.
  • RESEARCH.DAT - Completed research.
  • SAVEINFO.DAT - Name of the saved game.
  • SOLDIER.DAT - Data about the soldiers.
  • TRANSFER.DAT - Personnel and goods being transferred.
  • UIGLOB.DAT - the name suggests global user interface data, but this file appears to store scores earned for completing research.
  • UP.DAT - UFOpaedia info.
  • XBASES.DAT - Alien Base information
  • XCOM.DAT - Contains X-Com activity in Countries and areas, for graphs
  • ZONAL.DAT

(28 files. Note that if you find a geoscape save with additional files, this simply means a battlescape save was made in that slot at some prior point. UFO does not remove unused save files).

Battlescape Files

These files are created and used by the tactical portion of the game. They are only created if the game is saved while in the battlescape. Battlescape saves also contain all the files used in a standard save.

  • BGLOB.DAT
  • GEODATA.DAT
  • MAP.DAT - Stores tile information for the whole map. Basically all static structures, such as trees, walls, floors and furniture.
  • MISDATA.DAT
  • OBPOS.DAT - Stores all the objects that your soldiers can pick up (guns, corpses, etc).
  • ROUTES.DAT - Stores nodes for soldier and alien spawn points, also acts as waypoints for AI pathfinding.
  • SEEMAP.DAT - Fog of war overlay.
  • SMOKBIT.DAT - Smoke particles and fire patches on the map.
  • SMOKREF.DAT - Smoke particles and fire patches on the map.
  • SOURCEMP.DAT and TERMP.DAT - Both files are light source overlays. Ones for mobile light sources (i.e. your soldiers) and the other is for ambient (or fixed) lighting.
  • UNITPOS.DAT - Controls every section of a small unit or a large unit in the map. Works hand in hand with UNITREF.DAT. Controls ownership, visibility, whether the unit is under temporary mind control, etc.
  • UNITREF.DAT - Contains the primary stats for all units in combat. X-Com owned soldiers in this file are virtual copies of the soldiers in soldier.dat. Works very closely with unitpos.dat.
  • WGLOB.DAT - Battlescape map global information such as map dimensions and the number of turns that have elapsed.

(14 unique files, plus all 28 standard save files, totaling 42).

Missdat Files

These temporary files are used at run time, when a battlescape game is in progress. The missdat folder also contains all the files needed to create a standard Geoscape save for the game in progress.

When a new tactical mission is begun (as opposed to when you load an old one), these files are created:


If you load a game, the only file created is DIRECT.DAT (which details the path to the save slot).

When combat ends, these files are created:


How does the game know whether to load from the save slot, or the missdat folder? - BB

(12 unique files, plus 27 standard save files (does not use dum.bin), totaling 39).


Did You Know?: If your game crashes and you are returned to previous mission, the game is actually referring to the battlescape information in the missdat directory.

Also, if a tactical mission is abnormally aborted, the results are obtained from the missdat folder as well. As the game was not able to update the files that hold the results of the last mission you, your current game will be updated with information from the previous mission that was able to end normally.

Abnormal program termination simply means that the tactical game engine crashed or was forced to crash by the user.